url
stringlengths 55
59
| repository_url
stringclasses 1
value | labels_url
stringlengths 69
73
| comments_url
stringlengths 64
68
| events_url
stringlengths 62
66
| html_url
stringlengths 44
49
| id
int64 338k
1.06B
| node_id
stringlengths 18
32
| number
int64 1
44.6k
| title
stringlengths 1
590
| user
dict | labels
listlengths 0
9
| state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
listlengths 0
5
| milestone
dict | comments
int64 0
477
| created_at
timestamp[us, tz=UTC] | updated_at
timestamp[us, tz=UTC] | closed_at
timestamp[us, tz=UTC] | author_association
stringclasses 3
values | active_lock_reason
stringclasses 4
values | body
stringlengths 0
251k
⌀ | reactions
dict | timeline_url
stringlengths 64
68
| performed_via_github_app
float64 | draft
float64 0
1
⌀ | pull_request
dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/pandas-dev/pandas/issues/36217
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36217/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36217/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36217/events
|
https://github.com/pandas-dev/pandas/pull/36217
| 695,803,237
|
MDExOlB1bGxSZXF1ZXN0NDgxOTg2Njkw
| 36,217
|
Backport PR #36182 on branch 1.1.x (DOC: release date for 1.1.2)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 0
| 2020-09-08T11:50:25Z
| 2020-09-08T12:34:57Z
| 2020-09-08T12:34:57Z
|
NONE
| null |
Backport PR #36182: DOC: release date for 1.1.2
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36217/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36217/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36217.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36217",
"merged_at": "2020-09-08T12:34:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36217.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36217"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36218
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36218/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36218/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36218/events
|
https://github.com/pandas-dev/pandas/pull/36218
| 695,815,026
|
MDExOlB1bGxSZXF1ZXN0NDgxOTk2MjE3
| 36,218
|
REF: eliminate method _write() in json writers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 6
| 2020-09-08T12:09:13Z
| 2020-11-06T15:35:25Z
| 2020-10-22T19:36:59Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Attempted to figure out what is wrong with the issue https://github.com/pandas-dev/pandas/issues/36211.
I noticed that the private methods ``_write`` are defined in each child of class ``Writer``, which simply re-define ``obj`` and call the parent ``_write`` method.
It turns out that the source of the recursion does not lie there, but I refactored the module slightly by removing the mediator ``_write`` method. Instead I put the differences between the writers into their ``__init__`` method.
It seems that source of the problem with the recursion mentioned in the bug report is in ``pandas/_libs/src/ujson/python/objToJSON.c``.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36218/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36218/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36218.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36218",
"merged_at": "2020-10-22T19:36:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36218.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36218"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36219
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36219/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36219/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36219/events
|
https://github.com/pandas-dev/pandas/issues/36219
| 695,820,319
|
MDU6SXNzdWU2OTU4MjAzMTk=
| 36,219
|
QST:Column deletion
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43586762?v=4",
"events_url": "https://api.github.com/users/chipxx/events{/privacy}",
"followers_url": "https://api.github.com/users/chipxx/followers",
"following_url": "https://api.github.com/users/chipxx/following{/other_user}",
"gists_url": "https://api.github.com/users/chipxx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chipxx",
"id": 43586762,
"login": "chipxx",
"node_id": "MDQ6VXNlcjQzNTg2NzYy",
"organizations_url": "https://api.github.com/users/chipxx/orgs",
"received_events_url": "https://api.github.com/users/chipxx/received_events",
"repos_url": "https://api.github.com/users/chipxx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chipxx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chipxx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chipxx"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-09-08T12:17:33Z
| 2020-09-08T12:45:23Z
| 2020-09-08T12:45:23Z
|
NONE
| null |
Hi, how do I delete the first column that is useless? Thanks

|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36219/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36219/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36220
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36220/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36220/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36220/events
|
https://github.com/pandas-dev/pandas/pull/36220
| 695,875,261
|
MDExOlB1bGxSZXF1ZXN0NDgyMDQ2MzEw
| 36,220
|
TST: skip test_groupby_rolling_index_changed on 32bit
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0e8a16",
"default": false,
"description": "32-bit systems",
"id": 563047854,
"name": "32bit",
"node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 2
| 2020-09-08T13:32:35Z
| 2020-09-08T14:22:22Z
| 2020-09-08T14:20:27Z
|
MEMBER
| null |
this is against 1.1.x directly. see https://github.com/pandas-dev/pandas/issues/35831#issuecomment-688862692
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36220/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36220/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36220.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36220",
"merged_at": "2020-09-08T14:20:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36220.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36220"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36221
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36221/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36221/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36221/events
|
https://github.com/pandas-dev/pandas/pull/36221
| 695,903,045
|
MDExOlB1bGxSZXF1ZXN0NDgyMDY5MjM4
| 36,221
|
Backport PR #36141 on branch 1.1.x (BUG: copying series into empty dataframe does not preserve dataframe index name)
|
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 0
| 2020-09-08T14:06:41Z
| 2020-09-08T14:55:08Z
| 2020-09-08T14:55:07Z
|
NONE
| null |
Backport PR #36141: BUG: copying series into empty dataframe does not preserve dataframe index 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/36221/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36221/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36221.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36221",
"merged_at": "2020-09-08T14:55:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36221.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36221"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36222
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36222/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36222/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36222/events
|
https://github.com/pandas-dev/pandas/pull/36222
| 695,906,761
|
MDExOlB1bGxSZXF1ZXN0NDgyMDcyMzI3
| 36,222
|
CLN remove trailing commas
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61059243?v=4",
"events_url": "https://api.github.com/users/tiagohonorato/events{/privacy}",
"followers_url": "https://api.github.com/users/tiagohonorato/followers",
"following_url": "https://api.github.com/users/tiagohonorato/following{/other_user}",
"gists_url": "https://api.github.com/users/tiagohonorato/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tiagohonorato",
"id": 61059243,
"login": "tiagohonorato",
"node_id": "MDQ6VXNlcjYxMDU5MjQz",
"organizations_url": "https://api.github.com/users/tiagohonorato/orgs",
"received_events_url": "https://api.github.com/users/tiagohonorato/received_events",
"repos_url": "https://api.github.com/users/tiagohonorato/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tiagohonorato/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tiagohonorato/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tiagohonorato"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-08T14:10:59Z
| 2020-09-08T15:28:25Z
| 2020-09-08T15:28:22Z
|
CONTRIBUTOR
| null |
#35925
From this set of 10 files, only the first 3 needed changes to comply if the new version of black:
- [x] pandas/tests/io/pytables/test_timezones.py
- [x] pandas/tests/io/test_feather.py
- [x] pandas/tests/io/test_s3.py
- [ ] pandas/tests/io/test_sql.py
- [ ] pandas/tests/io/test_stata.py
- [ ] pandas/tests/plotting/test_frame.py
- [ ] pandas/tests/resample/test_datetime_index.py
- [ ] pandas/tests/reshape/merge/test_merge_index_as_string.py
- [ ] pandas/tests/reshape/test_crosstab.py
- [ ] pandas/tests/reshape/test_get_dummies.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/36222/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36222/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36222.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36222",
"merged_at": "2020-09-08T15:28:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36222.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36222"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36223
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36223/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36223/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36223/events
|
https://github.com/pandas-dev/pandas/pull/36223
| 696,004,956
|
MDExOlB1bGxSZXF1ZXN0NDgyMTU0MDMz
| 36,223
|
CLN: w3 formatting
|
{
"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": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-09-08T16:14:42Z
| 2020-09-09T05:11:04Z
| 2020-09-08T23:56:47Z
|
CONTRIBUTOR
| null |
- [x] closes #35706
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Cleans a very minor formatting error to be consistent with w3schools specification.
`colspan=2 ---> colspan="2"`
Note this generally has no effect in browsers parsing HTML.
|
{
"+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/36223/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36223/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36223.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36223",
"merged_at": "2020-09-08T23:56:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36223.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36223"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36224
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36224/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36224/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36224/events
|
https://github.com/pandas-dev/pandas/pull/36224
| 696,038,456
|
MDExOlB1bGxSZXF1ZXN0NDgyMTgxNTE2
| 36,224
|
BUG: GH36212 DataFrame agg() raises error when DataFrame column name is `name`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/65842583?v=4",
"events_url": "https://api.github.com/users/leonarduschen/events{/privacy}",
"followers_url": "https://api.github.com/users/leonarduschen/followers",
"following_url": "https://api.github.com/users/leonarduschen/following{/other_user}",
"gists_url": "https://api.github.com/users/leonarduschen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/leonarduschen",
"id": 65842583,
"login": "leonarduschen",
"node_id": "MDQ6VXNlcjY1ODQyNTgz",
"organizations_url": "https://api.github.com/users/leonarduschen/orgs",
"received_events_url": "https://api.github.com/users/leonarduschen/received_events",
"repos_url": "https://api.github.com/users/leonarduschen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/leonarduschen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leonarduschen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/leonarduschen"
}
|
[
{
"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": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-09-08T17:07:18Z
| 2020-09-13T13:15:12Z
| 2020-09-13T13:15:08Z
|
CONTRIBUTOR
| null |
- [x] closes #36212
- [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/36224/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36224/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36224.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36224",
"merged_at": "2020-09-13T13:15:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36224.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36224"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36225
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36225/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36225/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36225/events
|
https://github.com/pandas-dev/pandas/issues/36225
| 696,085,219
|
MDU6SXNzdWU2OTYwODUyMTk=
| 36,225
|
DOC: whatsnew for Pandas release 1.1.2
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3580210?v=4",
"events_url": "https://api.github.com/users/engineerchange/events{/privacy}",
"followers_url": "https://api.github.com/users/engineerchange/followers",
"following_url": "https://api.github.com/users/engineerchange/following{/other_user}",
"gists_url": "https://api.github.com/users/engineerchange/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/engineerchange",
"id": 3580210,
"login": "engineerchange",
"node_id": "MDQ6VXNlcjM1ODAyMTA=",
"organizations_url": "https://api.github.com/users/engineerchange/orgs",
"received_events_url": "https://api.github.com/users/engineerchange/received_events",
"repos_url": "https://api.github.com/users/engineerchange/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/engineerchange/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/engineerchange/subscriptions",
"type": "User",
"url": "https://api.github.com/users/engineerchange"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-09-08T18:25:34Z
| 2020-09-08T19:29:10Z
| 2020-09-08T19:29:10Z
|
NONE
| null |
#### Location of the documentation
https://github.com/pandas-dev/pandas/releases/tag/v1.1.2
#### Documentation problem
The "what's new" link doesn't appear to function for update 1.1.2.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36225/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36225/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36226
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36226/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36226/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36226/events
|
https://github.com/pandas-dev/pandas/issues/36226
| 696,088,756
|
MDU6SXNzdWU2OTYwODg3NTY=
| 36,226
|
EA: _can_hold_element, _validate_fill_value
|
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
open
| false
| null |
[] | null | 9
| 2020-09-08T18:31:34Z
| 2021-08-13T02:32:55Z
| null |
MEMBER
| null |
TL;DR: we should add `_validate_fill_value` to the EA interface and define `_can_hold_element` in terms of it.
ATM `ExtensionBlock._can_hold_element` incorrectly always returns True. This needs to be an EA method that returns True if and only if `self[0] = value` is allowed on a non-empty array.
This method can in turn to defined in terms of a more broadly useful `_validate_fill_value` that we use DTA/TDA/PA/PandasArray/Categorical:
```
def _can_hold_element(self, value):
try:
self._validate_fill_value(value)
return True
except (ValueError, TypeError):
return False
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36226/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36226/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36227
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36227/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36227/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36227/events
|
https://github.com/pandas-dev/pandas/issues/36227
| 696,119,766
|
MDU6SXNzdWU2OTYxMTk3NjY=
| 36,227
|
BUG: using df.drop(labels=x, level='level_name') does not update df.index.levels
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45951413?v=4",
"events_url": "https://api.github.com/users/jeffliu-LL/events{/privacy}",
"followers_url": "https://api.github.com/users/jeffliu-LL/followers",
"following_url": "https://api.github.com/users/jeffliu-LL/following{/other_user}",
"gists_url": "https://api.github.com/users/jeffliu-LL/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeffliu-LL",
"id": 45951413,
"login": "jeffliu-LL",
"node_id": "MDQ6VXNlcjQ1OTUxNDEz",
"organizations_url": "https://api.github.com/users/jeffliu-LL/orgs",
"received_events_url": "https://api.github.com/users/jeffliu-LL/received_events",
"repos_url": "https://api.github.com/users/jeffliu-LL/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeffliu-LL/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeffliu-LL/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeffliu-LL"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
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
| 2020-09-08T19:25:57Z
| 2021-04-20T22:50:55Z
| 2021-04-20T22:50:55Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'], ['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two']]
tuples = list(zip(*arrays))
index = pd.MultiIndex.from_tuples(tuples, names=['first', 'second'])
s = pd.Series(np.random.randn(8), index=index)
s2 = s.drop(labels='one', level='second') #drop the label 'one' from the second level
print(s2.index.levels) #the levels still include the label 'one' in the second level
```
outputs:
`FrozenList([['bar', 'baz', 'foo', 'qux'], ['one', 'two']])`
despite dropping `one` from the second level
#### Problem description
When calling `df.drop(labels='one', level='second')`, one would expect that the dropped label would no longer appear in `df.index.levels` since all rows with that label are dropped. However, the label persists in the `df.index.levels` despite not showing up in `df.index.get_level_values('second')`. I would expect that `df.index.levels` only include labels of entries currently in `df`, not ones that were previously there but dropped.
#### Expected Output
`FrozenList([['bar', 'baz', 'foo', 'qux'], ['two']])`
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 4.14.182-llgrid-10ms
Version : #1 SMP Fri May 29 11:57:47 EDT 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : C
LANG : C.UTF-8
LOCALE : None.None
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.3.1.post20200810
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 : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.0
pytables : None
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/36227/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36227/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36228
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36228/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36228/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36228/events
|
https://github.com/pandas-dev/pandas/pull/36228
| 696,125,412
|
MDExOlB1bGxSZXF1ZXN0NDgyMjUzNzg3
| 36,228
|
Change default of float_precision for read_csv and read_table to "high"
|
{
"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": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 5
| 2020-09-08T19:35:57Z
| 2020-09-18T11:35:31Z
| 2020-09-13T22:54:42Z
|
CONTRIBUTOR
| null |
- [x] closes #17154
- [x] tests added / passed
- modified `tests/io/parser/test_c_parser.py` to make sure all 4 options are tested
- added `tests/io/parser/test_c_parser.py:test_high_is_default`
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
- for version 1.2
See discussion at bottom of #36149 for the performance tests. Added `float_precision="legacy"` so people can pick up the old parser. Can't change default to "high" because of incompatibility with python 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/36228/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36228/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36228.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36228",
"merged_at": "2020-09-13T22:54:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36228.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36228"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36229
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36229/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36229/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36229/events
|
https://github.com/pandas-dev/pandas/pull/36229
| 696,180,771
|
MDExOlB1bGxSZXF1ZXN0NDgyMjk5MzU5
| 36,229
|
CLN: re-use invalid_comparison in Categorical comparisons
|
{
"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": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-08T21:12:00Z
| 2020-09-08T23:10:03Z
| 2020-09-08T22:53:04Z
|
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/36229/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36229/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36229.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36229",
"merged_at": "2020-09-08T22:53:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36229.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36229"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/36230
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36230/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36230/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36230/events
|
https://github.com/pandas-dev/pandas/pull/36230
| 696,187,840
|
MDExOlB1bGxSZXF1ZXN0NDgyMzA1NDM0
| 36,230
|
TST GH 29699 multilevel column is called after multiple appends
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11210290?v=4",
"events_url": "https://api.github.com/users/TAJD/events{/privacy}",
"followers_url": "https://api.github.com/users/TAJD/followers",
"following_url": "https://api.github.com/users/TAJD/following{/other_user}",
"gists_url": "https://api.github.com/users/TAJD/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TAJD",
"id": 11210290,
"login": "TAJD",
"node_id": "MDQ6VXNlcjExMjEwMjkw",
"organizations_url": "https://api.github.com/users/TAJD/orgs",
"received_events_url": "https://api.github.com/users/TAJD/received_events",
"repos_url": "https://api.github.com/users/TAJD/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TAJD/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TAJD/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TAJD"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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 | 5
| 2020-09-08T21:25:03Z
| 2020-11-17T17:07:12Z
| 2020-11-17T17:07:12Z
|
CONTRIBUTOR
| null |
- [ ] closes #29699
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Not sure where the best place to put the test is.
Also, this code generates a warning which doesn't seem to disappear when following the guidance of the warning i.e: set `sort=False`. As the default behaviour is meant to return a warning this is tested for.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36230/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36230/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36230.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36230",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36230.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36230"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36231
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36231/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36231/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36231/events
|
https://github.com/pandas-dev/pandas/pull/36231
| 696,188,706
|
MDExOlB1bGxSZXF1ZXN0NDgyMzA2MTUw
| 36,231
|
BUG: Fix unintentionally added suffix in DataFrame.apply/agg and Series.apply/agg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "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": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 7
| 2020-09-08T21:26:39Z
| 2020-09-14T09:54:41Z
| 2020-09-13T15:53:38Z
|
MEMBER
| null |
- [x] closes #36189
- [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/36231/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36231/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36231.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36231",
"merged_at": "2020-09-13T15:53:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36231.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36231"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36232
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36232/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36232/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36232/events
|
https://github.com/pandas-dev/pandas/pull/36232
| 696,192,973
|
MDExOlB1bGxSZXF1ZXN0NDgyMzA5Nzc0
| 36,232
|
TYP: @final for some Index methods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 6
| 2020-09-08T21:35:02Z
| 2020-09-13T18:42:26Z
| 2020-09-11T23:01:01Z
|
MEMBER
| null |
cc @simonjayhawkins
Tangential question: when I run flake8 it passes, but the pre-commit hook often gives me a bunch of messages like `pandas/core/indexes/base.py:956:51: F821 undefined name 'ignore'`. Is this something I can fix by pinning a version or something?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36232/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36232/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36232.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36232",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36232.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36232"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36233
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36233/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36233/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36233/events
|
https://github.com/pandas-dev/pandas/pull/36233
| 696,246,890
|
MDExOlB1bGxSZXF1ZXN0NDgyMzU3MjEw
| 36,233
|
BUG: df.to_markdown() with empty frame incorrect output
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18493550?v=4",
"events_url": "https://api.github.com/users/ylin00/events{/privacy}",
"followers_url": "https://api.github.com/users/ylin00/followers",
"following_url": "https://api.github.com/users/ylin00/following{/other_user}",
"gists_url": "https://api.github.com/users/ylin00/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ylin00",
"id": 18493550,
"login": "ylin00",
"node_id": "MDQ6VXNlcjE4NDkzNTUw",
"organizations_url": "https://api.github.com/users/ylin00/orgs",
"received_events_url": "https://api.github.com/users/ylin00/received_events",
"repos_url": "https://api.github.com/users/ylin00/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ylin00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ylin00/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ylin00"
}
|
[
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
},
{
"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
| 2020-09-08T23:06:11Z
| 2020-12-11T04:47:21Z
| 2020-12-11T04:47:21Z
|
CONTRIBUTOR
| null |
- [x] closes #31771
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] added test_empty_frame for test_to_markdown.py (#31771)
- [x] Required tabulate >= 0.8.7
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36233/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36233/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36233.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36233",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36233.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36233"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36234
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36234/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36234/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36234/events
|
https://github.com/pandas-dev/pandas/pull/36234
| 696,257,148
|
MDExOlB1bGxSZXF1ZXN0NDgyMzY1OTQ5
| 36,234
|
REF: pass setitem to unbox_scalar to de-duplicate validation
|
{
"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": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-09-08T23:34:30Z
| 2020-09-09T00:58:12Z
| 2020-09-09T00:55:22Z
|
MEMBER
| null |
Also fixes a test that is failing on master because _np_version_under_118 is no longer defined.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36234/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36234/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36234.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36234",
"merged_at": "2020-09-09T00:55:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36234.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36234"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36235
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36235/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36235/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36235/events
|
https://github.com/pandas-dev/pandas/pull/36235
| 696,258,376
|
MDExOlB1bGxSZXF1ZXN0NDgyMzY2OTQy
| 36,235
|
STY: De-privatize imported names
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-09-08T23:38:09Z
| 2020-09-09T01:58:31Z
| 2020-09-09T01:33:42Z
|
MEMBER
| null |
Getting close to the end on these.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36235/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36235/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36235.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36235",
"merged_at": "2020-09-09T01:33:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36235.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36235"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36236
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36236/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36236/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36236/events
|
https://github.com/pandas-dev/pandas/pull/36236
| 696,281,247
|
MDExOlB1bGxSZXF1ZXN0NDgyMzg0MDE5
| 36,236
|
TST: add test case for sort_index on multiindexed Frame with sparse cols
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18493550?v=4",
"events_url": "https://api.github.com/users/ylin00/events{/privacy}",
"followers_url": "https://api.github.com/users/ylin00/followers",
"following_url": "https://api.github.com/users/ylin00/following{/other_user}",
"gists_url": "https://api.github.com/users/ylin00/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ylin00",
"id": 18493550,
"login": "ylin00",
"node_id": "MDQ6VXNlcjE4NDkzNTUw",
"organizations_url": "https://api.github.com/users/ylin00/orgs",
"received_events_url": "https://api.github.com/users/ylin00/received_events",
"repos_url": "https://api.github.com/users/ylin00/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ylin00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ylin00/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ylin00"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-09T00:33:24Z
| 2020-09-12T21:23:25Z
| 2020-09-12T21:23:21Z
|
CONTRIBUTOR
| null |
- [ ] closes #29735
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] add test case for sort_index on multiindexed Frame with sparse cols
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36236/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36236/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36236.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36236",
"merged_at": "2020-09-12T21:23:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36236.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36236"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36237
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36237/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36237/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36237/events
|
https://github.com/pandas-dev/pandas/pull/36237
| 696,348,041
|
MDExOlB1bGxSZXF1ZXN0NDgyNDQxMjQx
| 36,237
|
CLN: simplify Categorical comparisons
|
{
"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": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-09T02:47:03Z
| 2020-09-11T14:34:57Z
| 2020-09-11T13:12:12Z
|
MEMBER
| null |
Not as much as I had hoped, but not nothing.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36237/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36237/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36237.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36237",
"merged_at": "2020-09-11T13:12:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36237.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36237"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36238
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36238/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36238/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36238/events
|
https://github.com/pandas-dev/pandas/pull/36238
| 696,358,898
|
MDExOlB1bGxSZXF1ZXN0NDgyNDUwNTg0
| 36,238
|
DOC: Update groupby.rst
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49715980?v=4",
"events_url": "https://api.github.com/users/Nikhil1O1/events{/privacy}",
"followers_url": "https://api.github.com/users/Nikhil1O1/followers",
"following_url": "https://api.github.com/users/Nikhil1O1/following{/other_user}",
"gists_url": "https://api.github.com/users/Nikhil1O1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Nikhil1O1",
"id": 49715980,
"login": "Nikhil1O1",
"node_id": "MDQ6VXNlcjQ5NzE1OTgw",
"organizations_url": "https://api.github.com/users/Nikhil1O1/orgs",
"received_events_url": "https://api.github.com/users/Nikhil1O1/received_events",
"repos_url": "https://api.github.com/users/Nikhil1O1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Nikhil1O1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Nikhil1O1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Nikhil1O1"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-09T03:09:02Z
| 2020-09-11T16:47:21Z
| 2020-09-11T16:47:14Z
|
CONTRIBUTOR
| null |
The previous description still had a conflict between the column name and index level
- [x] closes #16870
- [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/36238/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36238/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36238.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36238",
"merged_at": "2020-09-11T16:47:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36238.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36238"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36239
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36239/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36239/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36239/events
|
https://github.com/pandas-dev/pandas/pull/36239
| 696,372,190
|
MDExOlB1bGxSZXF1ZXN0NDgyNDYyMzUx
| 36,239
|
DOC: Improve Index docstrings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49715980?v=4",
"events_url": "https://api.github.com/users/Nikhil1O1/events{/privacy}",
"followers_url": "https://api.github.com/users/Nikhil1O1/followers",
"following_url": "https://api.github.com/users/Nikhil1O1/following{/other_user}",
"gists_url": "https://api.github.com/users/Nikhil1O1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Nikhil1O1",
"id": 49715980,
"login": "Nikhil1O1",
"node_id": "MDQ6VXNlcjQ5NzE1OTgw",
"organizations_url": "https://api.github.com/users/Nikhil1O1/orgs",
"received_events_url": "https://api.github.com/users/Nikhil1O1/received_events",
"repos_url": "https://api.github.com/users/Nikhil1O1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Nikhil1O1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Nikhil1O1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Nikhil1O1"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 11
| 2020-09-09T03:33:22Z
| 2020-09-09T22:25:46Z
| 2020-09-09T22:25:32Z
|
CONTRIBUTOR
| null |
Index is now described as List instead of Set
- [x] closes #36170
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36239/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36239/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36239.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36239",
"merged_at": "2020-09-09T22:25:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36239.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36239"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36240
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36240/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36240/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36240/events
|
https://github.com/pandas-dev/pandas/pull/36240
| 696,387,789
|
MDExOlB1bGxSZXF1ZXN0NDgyNDc1OTk4
| 36,240
|
PERF: Allow groupby transform with numba engine to be fully parallelizable
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-09-09T04:03:17Z
| 2020-09-13T17:25:07Z
| 2020-09-13T13:13:54Z
|
MEMBER
| null |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
New performance comparison with 10k groups
```
In [1]: df_g = pd.DataFrame({'a': range(10**4), 'b': range(10**4), 'c': range(10**4)})
In [2]: df_g.groupby('a').transform(lambda x: x + 1)
Out[2]:
b c
0 1 1
1 2 2
2 3 3
3 4 4
4 5 5
... ... ...
9995 9996 9996
9996 9997 9997
9997 9998 9998
9998 9999 9999
9999 10000 10000
[10000 rows x 2 columns]
In [3]: %timeit df_g.groupby('a').transform(lambda x: x + 1)
9.48 s ± 885 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [4]: def f(values, index):
...: return values + 1
...:
In [5]: df_g.groupby('a').transform(f, engine='numba', engine_kwargs={'parallel': True})
Out[5]:
b c
0 1.0 1.0
1 2.0 2.0
2 3.0 3.0
3 4.0 4.0
4 5.0 5.0
... ... ...
9995 9996.0 9996.0
9996 9997.0 9997.0
9997 9998.0 9998.0
9998 9999.0 9999.0
9999 10000.0 10000.0
[10000 rows x 2 columns]
In [6]: %timeit df_g.groupby('a').transform(f, engine='numba', engine_kwargs={'parallel': True})
4.41 ms ± 34.4 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36240/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36240/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36240.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36240",
"merged_at": "2020-09-13T13:13:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36240.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36240"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36241
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36241/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36241/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36241/events
|
https://github.com/pandas-dev/pandas/issues/36241
| 696,510,952
|
MDU6SXNzdWU2OTY1MTA5NTI=
| 36,241
|
BUG: .str.startswith(..., na=False) consistency between categorical and string series (again)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3257214?v=4",
"events_url": "https://api.github.com/users/dlimpid/events{/privacy}",
"followers_url": "https://api.github.com/users/dlimpid/followers",
"following_url": "https://api.github.com/users/dlimpid/following{/other_user}",
"gists_url": "https://api.github.com/users/dlimpid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dlimpid",
"id": 3257214,
"login": "dlimpid",
"node_id": "MDQ6VXNlcjMyNTcyMTQ=",
"organizations_url": "https://api.github.com/users/dlimpid/orgs",
"received_events_url": "https://api.github.com/users/dlimpid/received_events",
"repos_url": "https://api.github.com/users/dlimpid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dlimpid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dlimpid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dlimpid"
}
|
[
{
"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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 1
| 2020-09-09T07:11:56Z
| 2020-09-12T21:17:49Z
| 2020-09-12T21:17:49Z
|
NONE
| null |
#### Code Sample, a copy-pastable example
```pycon
>>> import pandas as pd
>>> import numpy as np
>>> s = pd.Series(["a", "b", np.nan], index=["a", "b", np.nan], dtype="category")
>>> df = pd.DataFrame().assign(
... cat_contains=s.str.contains("a", na=False),
... cat_startswith=s.str.startswith("a", na=False),
... cat_endswith=s.str.endswith("a", na=False),
... str_contains=s.astype("string").str.contains("a", na=False),
... str_startswith=s.astype("string").str.startswith("a", na=False),
... str_endswith=s.astype("string").str.endswith("a", na=False),
... )
>>> df.info()
<class 'pandas.core.frame.DataFrame'>
Index: 3 entries, a to nan
Data columns (total 6 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 cat_contains 3 non-null bool
1 cat_startswith 2 non-null object
2 cat_endswith 2 non-null object
3 str_contains 3 non-null boolean
4 str_startswith 3 non-null boolean
5 str_endswith 3 non-null boolean
dtypes: bool(1), boolean(3), object(2)
memory usage: 93.0+ bytes
>>> df
cat_contains cat_startswith cat_endswith str_contains str_startswith str_endswith
a True True True True True True
b False False False False False False
NaN False NaN NaN False False False
```
#### Problem description
`.str.startswith(..., na=False)` and `.str.endswith` should make missing values `False` when the calling series is of type categorical just like it does for string series.
Similar to #22158, but `.str.contains` works here.
#### Expected Output
```pycon
>>> df
cat_contains cat_startswith cat_endswith str_contains str_startswith str_endswith
a True True True True True True
b False False False False False False
NaN False False False False False False
```
#### Output of ``pd.show_versions()``
Using conda env with `conda create -n pandas112 -c conda-forge pandas=1.1.2`
<details>
INSTALLED VERSIONS
------------------
commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6
python : 3.8.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Korean_Korea.949
pandas : 1.1.2
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 49.6.0.post20200814
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36241/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36241/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36242
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36242/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36242/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36242/events
|
https://github.com/pandas-dev/pandas/pull/36242
| 696,591,866
|
MDExOlB1bGxSZXF1ZXN0NDgyNjUzOTc4
| 36,242
|
Backport PR #36183 on branch 1.1.x (DOC: Start 1.1.3)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 0
| 2020-09-09T08:32:45Z
| 2020-09-09T09:28:47Z
| 2020-09-09T09:28:47Z
|
NONE
| null |
Backport PR #36183: DOC: Start 1.1.3
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36242/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36242/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36242.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36242",
"merged_at": "2020-09-09T09:28:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36242.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36242"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36243
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36243/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36243/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36243/events
|
https://github.com/pandas-dev/pandas/issues/36243
| 696,600,826
|
MDU6SXNzdWU2OTY2MDA4MjY=
| 36,243
|
Backward fill method: custom method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/66080348?v=4",
"events_url": "https://api.github.com/users/MattiaMartinelliGeo/events{/privacy}",
"followers_url": "https://api.github.com/users/MattiaMartinelliGeo/followers",
"following_url": "https://api.github.com/users/MattiaMartinelliGeo/following{/other_user}",
"gists_url": "https://api.github.com/users/MattiaMartinelliGeo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MattiaMartinelliGeo",
"id": 66080348,
"login": "MattiaMartinelliGeo",
"node_id": "MDQ6VXNlcjY2MDgwMzQ4",
"organizations_url": "https://api.github.com/users/MattiaMartinelliGeo/orgs",
"received_events_url": "https://api.github.com/users/MattiaMartinelliGeo/received_events",
"repos_url": "https://api.github.com/users/MattiaMartinelliGeo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MattiaMartinelliGeo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MattiaMartinelliGeo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MattiaMartinelliGeo"
}
|
[
{
"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
| 2020-09-09T08:41:16Z
| 2020-09-09T10:42:24Z
| 2020-09-09T10:39:33Z
|
NONE
| null |
<img width="90" alt="Figure_1" src="https://user-images.githubusercontent.com/66080348/92575683-edf5bb80-f288-11ea-8d41-e6e58832e7db.PNG">
Good morning,
I have a Pandas dataframe with several missing values.
What I want to do is to use next valid observation to fill gap like the bfill method.
However, I do not need to simply fill missing value with the same value.
I need to fill them with values randomly sampled from a normal distribution centered in the next valid observation value and standard deviation of 1.
I try to explain myself with the attached figure (Figure 1).
In the dataframe in the figure I want to fill the rows from 3 to 8 with values randomly sampled from a normal distribution
centered in 2 a standard deviation of 1.
the same thing for cell from 10 to 14 I want to fill them with values randomly sampled from a normal distribution
centered in 5 a standard deviation of 1.
Is there a way to do that in pandas? maybe applying a custom function to bfill method?
Thank 'you very much for your help.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36243/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36243/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36244
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36244/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36244/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36244/events
|
https://github.com/pandas-dev/pandas/pull/36244
| 696,846,923
|
MDExOlB1bGxSZXF1ZXN0NDgyODcxMDUz
| 36,244
|
DOC: Update numeric.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49715980?v=4",
"events_url": "https://api.github.com/users/Nikhil1O1/events{/privacy}",
"followers_url": "https://api.github.com/users/Nikhil1O1/followers",
"following_url": "https://api.github.com/users/Nikhil1O1/following{/other_user}",
"gists_url": "https://api.github.com/users/Nikhil1O1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Nikhil1O1",
"id": 49715980,
"login": "Nikhil1O1",
"node_id": "MDQ6VXNlcjQ5NzE1OTgw",
"organizations_url": "https://api.github.com/users/Nikhil1O1/orgs",
"received_events_url": "https://api.github.com/users/Nikhil1O1/received_events",
"repos_url": "https://api.github.com/users/Nikhil1O1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Nikhil1O1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Nikhil1O1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Nikhil1O1"
}
|
[] |
closed
| false
| null |
[] | null | 3
| 2020-09-09T14:07:12Z
| 2020-09-09T22:22:24Z
| 2020-09-09T22:22:23Z
|
CONTRIBUTOR
| null |
changed set to list as it is more appropriate
- [x] closes #36239
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36244/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36244/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36244.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36244",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36244.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36244"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36245
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36245/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36245/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36245/events
|
https://github.com/pandas-dev/pandas/issues/36245
| 696,886,813
|
MDU6SXNzdWU2OTY4ODY4MTM=
| 36,245
|
BUG: pd.json_normalize on a column loses rows that have an empty list for that column
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12517855?v=4",
"events_url": "https://api.github.com/users/ldacey/events{/privacy}",
"followers_url": "https://api.github.com/users/ldacey/followers",
"following_url": "https://api.github.com/users/ldacey/following{/other_user}",
"gists_url": "https://api.github.com/users/ldacey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ldacey",
"id": 12517855,
"login": "ldacey",
"node_id": "MDQ6VXNlcjEyNTE3ODU1",
"organizations_url": "https://api.github.com/users/ldacey/orgs",
"received_events_url": "https://api.github.com/users/ldacey/received_events",
"repos_url": "https://api.github.com/users/ldacey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ldacey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ldacey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ldacey"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
open
| false
| null |
[] | null | 5
| 2020-09-09T14:55:23Z
| 2021-04-29T14:49:07Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
We lose the first row when we normalize the "sections" field:
```python
import pandas as pd
import pandas as pd
df = pd.DataFrame({'id': [1, 2, 3],
'sections': [[], [{"id": 1, "answers": [{"id": 1, "value": 10, "question_id": 1}]}], [{"id": 2, "answers": []}]]
})
df2 = pd.json_normalize(df.to_dict(orient="records"), meta=["id"], record_path="sections", record_prefix="section_")
df2
```
The problem would then impact the section_answers field if that column gets normalized (we end up with only a single row for ID 2)
`pd.json_normalize(df2.to_dict(orient="records"), meta=["id", "section_id"], record_path="section_answers", record_prefix="answer_")`
#### Problem description
I am losing the first row when I normalize the "sections" field in my example. This is because the field contains an empty list.
The end result is that I have a dataframe with fewer unique IDs than I started out with which is not desirable since the distinct count of these IDs are used as a metric.
#### Expected Output
I would expect one at least one row per meta column that I passed to pd.json_normalize. I do not think that I should lose the row ID 1 without some type of warning at least:

#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-1028-azure
Version : #29~18.04.1-Ubuntu SMP Fri Jun 5 14:32:34 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : 0.29.21
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.17.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.3.0
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.4
pandas_gbq : None
pyarrow : 1.0.0
pytables : None
pyxlsb : 1.0.6
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.19
tables : 3.6.1
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36245/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36245/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36246
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36246/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36246/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36246/events
|
https://github.com/pandas-dev/pandas/pull/36246
| 696,888,248
|
MDExOlB1bGxSZXF1ZXN0NDgyOTA1Nzg3
| 36,246
|
DOC: Fixed a broken JSON Table Schema link
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12420863?v=4",
"events_url": "https://api.github.com/users/danchev/events{/privacy}",
"followers_url": "https://api.github.com/users/danchev/followers",
"following_url": "https://api.github.com/users/danchev/following{/other_user}",
"gists_url": "https://api.github.com/users/danchev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danchev",
"id": 12420863,
"login": "danchev",
"node_id": "MDQ6VXNlcjEyNDIwODYz",
"organizations_url": "https://api.github.com/users/danchev/orgs",
"received_events_url": "https://api.github.com/users/danchev/received_events",
"repos_url": "https://api.github.com/users/danchev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danchev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danchev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danchev"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-09T14:57:05Z
| 2020-09-09T15:12:12Z
| 2020-09-09T15:12:06Z
|
CONTRIBUTOR
| null |
Fixed a link to JSON Table Schema specification hosted on https://specs.frictionlessdata.io/table-schema/
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36246/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36246/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36246.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36246",
"merged_at": "2020-09-09T15:12:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36246.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36246"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36247
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36247/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36247/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36247/events
|
https://github.com/pandas-dev/pandas/issues/36247
| 696,909,430
|
MDU6SXNzdWU2OTY5MDk0MzA=
| 36,247
|
[BUG] loc does not preserve datatype with a single element
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1426279?v=4",
"events_url": "https://api.github.com/users/glyg/events{/privacy}",
"followers_url": "https://api.github.com/users/glyg/followers",
"following_url": "https://api.github.com/users/glyg/following{/other_user}",
"gists_url": "https://api.github.com/users/glyg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/glyg",
"id": 1426279,
"login": "glyg",
"node_id": "MDQ6VXNlcjE0MjYyNzk=",
"organizations_url": "https://api.github.com/users/glyg/orgs",
"received_events_url": "https://api.github.com/users/glyg/received_events",
"repos_url": "https://api.github.com/users/glyg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/glyg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/glyg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/glyg"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] | null | 7
| 2020-09-09T15:23:15Z
| 2020-09-10T11:22:13Z
| 2020-09-10T11:22:12Z
|
CONTRIBUTOR
| null |
Opening a new issue as per @Dr-Irv suggestion on #31763
Sorry issue formatting got lost
```py
import pandas as pd
import numpy as np
not_preserved = pd.DataFrame(np.arange(24).reshape((8, 3)), columns=list("ABC"))
not_preserved['F'] = np.random.random(8)
print("Mixed datatype DataFrame")
print(not_preserved.dtypes)
print("Single value loc: ")
print(not_preserved.loc[0, ['A', 'B', 'C']].dtypes)
print("Single value through slice: ")
print(not_preserved.loc[0:0, ['A', 'B', 'C']].dtypes)
print("The columns are cast to float:")
print(not_preserved.loc[0, ['A', 'B', 'C']])
# This prints:
# Mixed datatype DataFrame
# A int64
# B int64
# C int64
# F float64
# dtype: object
# Single value loc:
# float64
# Single value through slice:
# A int64
# B int64
# C int64
# dtype: object
# The columns are cast to float:
# A 0.0
# B 1.0
# C 2.0
```
As a test:
```py
# A single cell is fine
assert isinstance(not_preserved.loc[0, "A"], np.int64) # passes
assert not_preserved.loc[0:0, ["A", "B"]].dtypes["A"] is np.dtype('int64') # passes
assert not_preserved.loc[0, ["A", "B"]].dtypes is np.dtype('int64') # AssertionError
```
This is with pandas 1.0.3 but was already the case in 0.24.1, it seems that what changed was the behavior of a `replace` method downstream in my code.
_Originally posted by @glyg in https://github.com/pandas-dev/pandas/issues/31763#issuecomment-586213659_
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36247/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36247/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36248
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36248/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36248/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36248/events
|
https://github.com/pandas-dev/pandas/issues/36248
| 696,959,285
|
MDU6SXNzdWU2OTY5NTkyODU=
| 36,248
|
BUG:Inconsistent when use Series.get
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10040946?v=4",
"events_url": "https://api.github.com/users/liudengfeng/events{/privacy}",
"followers_url": "https://api.github.com/users/liudengfeng/followers",
"following_url": "https://api.github.com/users/liudengfeng/following{/other_user}",
"gists_url": "https://api.github.com/users/liudengfeng/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/liudengfeng",
"id": 10040946,
"login": "liudengfeng",
"node_id": "MDQ6VXNlcjEwMDQwOTQ2",
"organizations_url": "https://api.github.com/users/liudengfeng/orgs",
"received_events_url": "https://api.github.com/users/liudengfeng/received_events",
"repos_url": "https://api.github.com/users/liudengfeng/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/liudengfeng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/liudengfeng/subscriptions",
"type": "User",
"url": "https://api.github.com/users/liudengfeng"
}
|
[
{
"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": "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": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
}
] |
open
| false
| null |
[] | null | 2
| 2020-09-09T16:25:44Z
| 2020-09-10T02:57:02Z
| null |
NONE
| null |
- [ ] I have checked that this issue has not already been reported.
- [ + ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import pandas as pd
animals = pd.Series(['lama', 'cow', 'lama', 'beetle', 'lama'],index=[-1,0,1,2,3])
animals.get([1,-1,2]) # ok
animals = pd.Series(['lama', 'cow', 'lama', 'beetle', 'lama'])
animals.get([1,2]) # ok
BUT:
animals.get([1,-1,2]) return None!!!
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
#### Expected Output
If you mix existing labels with non-existent labels, at least need to return the corresponding results of the existing labels?
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6
python : 3.8.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Chinese (Simplified)_China.936
pandas : 1.1.2
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : 0.29.21
pytest : 6.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fsspec : 0.8.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.19
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : None
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36248/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36248/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36249
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36249/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36249/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36249/events
|
https://github.com/pandas-dev/pandas/pull/36249
| 696,963,630
|
MDExOlB1bGxSZXF1ZXN0NDgyOTY5MjYx
| 36,249
|
BUG: na parameter for str.startswith and str.endswith not propagating for Series with categorical dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1978117?v=4",
"events_url": "https://api.github.com/users/asishm/events{/privacy}",
"followers_url": "https://api.github.com/users/asishm/followers",
"following_url": "https://api.github.com/users/asishm/following{/other_user}",
"gists_url": "https://api.github.com/users/asishm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/asishm",
"id": 1978117,
"login": "asishm",
"node_id": "MDQ6VXNlcjE5NzgxMTc=",
"organizations_url": "https://api.github.com/users/asishm/orgs",
"received_events_url": "https://api.github.com/users/asishm/received_events",
"repos_url": "https://api.github.com/users/asishm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/asishm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/asishm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/asishm"
}
|
[
{
"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": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 2
| 2020-09-09T16:31:45Z
| 2020-09-13T12:25:48Z
| 2020-09-12T21:17:49Z
|
CONTRIBUTOR
| null |
- [x] closes #36241
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I parametrized dtype in existing tests. Should I create a separate test instead?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36249/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36249/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36249.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36249",
"merged_at": "2020-09-12T21:17:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36249.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36249"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36250
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36250/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36250/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36250/events
|
https://github.com/pandas-dev/pandas/pull/36250
| 697,021,364
|
MDExOlB1bGxSZXF1ZXN0NDgzMDE5NzEw
| 36,250
|
CLN: simplify Categorical comparisons
|
{
"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": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-09T17:45:09Z
| 2020-09-12T21:18:29Z
| 2020-09-12T21:14:36Z
|
MEMBER
| null |
We have way too many ways of comparing Categorical dtypes.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36250/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36250/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36250.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36250",
"merged_at": "2020-09-12T21:14:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36250.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36250"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36251
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36251/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36251/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36251/events
|
https://github.com/pandas-dev/pandas/issues/36251
| 697,029,724
|
MDU6SXNzdWU2OTcwMjk3MjQ=
| 36,251
|
DOC: slicing with labels when index has duplicate labels
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1517155?v=4",
"events_url": "https://api.github.com/users/notestaff/events{/privacy}",
"followers_url": "https://api.github.com/users/notestaff/followers",
"following_url": "https://api.github.com/users/notestaff/following{/other_user}",
"gists_url": "https://api.github.com/users/notestaff/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/notestaff",
"id": 1517155,
"login": "notestaff",
"node_id": "MDQ6VXNlcjE1MTcxNTU=",
"organizations_url": "https://api.github.com/users/notestaff/orgs",
"received_events_url": "https://api.github.com/users/notestaff/received_events",
"repos_url": "https://api.github.com/users/notestaff/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/notestaff/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/notestaff/subscriptions",
"type": "User",
"url": "https://api.github.com/users/notestaff"
}
|
[
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26526439?v=4",
"events_url": "https://api.github.com/users/junjunjunk/events{/privacy}",
"followers_url": "https://api.github.com/users/junjunjunk/followers",
"following_url": "https://api.github.com/users/junjunjunk/following{/other_user}",
"gists_url": "https://api.github.com/users/junjunjunk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/junjunjunk",
"id": 26526439,
"login": "junjunjunk",
"node_id": "MDQ6VXNlcjI2NTI2NDM5",
"organizations_url": "https://api.github.com/users/junjunjunk/orgs",
"received_events_url": "https://api.github.com/users/junjunjunk/received_events",
"repos_url": "https://api.github.com/users/junjunjunk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/junjunjunk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/junjunjunk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/junjunjunk"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/26526439?v=4",
"events_url": "https://api.github.com/users/junjunjunk/events{/privacy}",
"followers_url": "https://api.github.com/users/junjunjunk/followers",
"following_url": "https://api.github.com/users/junjunjunk/following{/other_user}",
"gists_url": "https://api.github.com/users/junjunjunk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/junjunjunk",
"id": 26526439,
"login": "junjunjunk",
"node_id": "MDQ6VXNlcjI2NTI2NDM5",
"organizations_url": "https://api.github.com/users/junjunjunk/orgs",
"received_events_url": "https://api.github.com/users/junjunjunk/received_events",
"repos_url": "https://api.github.com/users/junjunjunk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/junjunjunk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/junjunjunk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/junjunjunk"
}
] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 3
| 2020-09-09T17:59:08Z
| 2020-11-05T01:22:24Z
| 2020-11-05T01:22:24Z
|
NONE
| null |
#### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#slicing-ranges
**Note**: You can check the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/).
#### Documentation problem
Documentation doesn't specify what happens when you slice an index that has duplicates. Does it denote the range from the first occurrence of the start element, to the last occurrence of the end element?
#### Suggested fix for documentation
Clarify how slicing interacts with non-unique index elements.
I would also emphasize, at
https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#slicing-with-labels
that the actual values of the index labels, and their natural comparison order and the elements between them in that natural order, do _not_ matter for slicing; i.e. that a slice of 'Z':'A' is not empty but depends on the positions that the labels denote in the array. In all current documentation examples, the label denoting the start of the slice end also happens to be lexicographically smaller than the label denoting the end of the slice, which can mislead readers into thinking the natural order of the labels has some meaning, when all they do is denote integer positions.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36251/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36251/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36252
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36252/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36252/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36252/events
|
https://github.com/pandas-dev/pandas/issues/36252
| 697,037,741
|
MDU6SXNzdWU2OTcwMzc3NDE=
| 36,252
|
BUG: timeseries plot x-axis starts way off when one column is all NaNs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24496457?v=4",
"events_url": "https://api.github.com/users/gabrielecalvo/events{/privacy}",
"followers_url": "https://api.github.com/users/gabrielecalvo/followers",
"following_url": "https://api.github.com/users/gabrielecalvo/following{/other_user}",
"gists_url": "https://api.github.com/users/gabrielecalvo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gabrielecalvo",
"id": 24496457,
"login": "gabrielecalvo",
"node_id": "MDQ6VXNlcjI0NDk2NDU3",
"organizations_url": "https://api.github.com/users/gabrielecalvo/orgs",
"received_events_url": "https://api.github.com/users/gabrielecalvo/received_events",
"repos_url": "https://api.github.com/users/gabrielecalvo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gabrielecalvo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gabrielecalvo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gabrielecalvo"
}
|
[
{
"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
| 2020-09-09T18:12:27Z
| 2021-08-13T02:35:39Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
#### Code Sample
```python
import pandas as pd
import numpy as np
pd.DataFrame(dict(
a=[np.nan, np.nan],
b=[1, 2],
ts = [pd.Timestamp('2020-01-01'), pd.Timestamp('2020-02-02')]
)).set_index('ts').plot()
```
#### Problem description
The x-axis (time axis) start in before 2000 where it really should start at 2020-01-01

#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6
python : 3.8.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United Kingdom.1252
pandas : 1.1.2
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 49.6.0.post20200814
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
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 : 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/36252/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36252/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36253
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36253/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36253/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36253/events
|
https://github.com/pandas-dev/pandas/issues/36253
| 697,075,386
|
MDU6SXNzdWU2OTcwNzUzODY=
| 36,253
|
New feature/enhancement: it would be cool if read_csv() function can read n random lines from a csv file.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18237212?v=4",
"events_url": "https://api.github.com/users/wenjunsun/events{/privacy}",
"followers_url": "https://api.github.com/users/wenjunsun/followers",
"following_url": "https://api.github.com/users/wenjunsun/following{/other_user}",
"gists_url": "https://api.github.com/users/wenjunsun/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wenjunsun",
"id": 18237212,
"login": "wenjunsun",
"node_id": "MDQ6VXNlcjE4MjM3MjEy",
"organizations_url": "https://api.github.com/users/wenjunsun/orgs",
"received_events_url": "https://api.github.com/users/wenjunsun/received_events",
"repos_url": "https://api.github.com/users/wenjunsun/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wenjunsun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wenjunsun/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wenjunsun"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-09-09T19:06:11Z
| 2020-09-10T00:07:46Z
| 2020-09-10T00:07:46Z
|
NONE
| null |
#### Problem:
I am using Pandas for reading in data to do machine learning tasks. And one problem I encounter is that the data I have is usually very very big. For example one data set I have is about 16 GB big, and my RAM is only 12 GB. So instead of reading all the lines from this data, I know I can read in the first million rows from my data, and do machine learning on that. But what I really want to do is select 100 random lines from the entire file for it to be a valid sample from the 16 GB data. Pandas currently doesn't allow that.
#### Solution I would like
[pd.read_csv() should take in an additional parameter, called random. Random should be a tuple of 3 ints. (start, end, number of random lines). For example: pd.read_csv('my_data.csv', random = (100, 1000, 100)) should read in 100 random lines into python datafraem from 100 lines to 1000 lines within the data.csv file.]
#### API breaking implications
[existing API about nrows should be modified so that when random = (100, 1000, 100) is present, nrows doesn't do anything, since we specify the number of rows we need to read in parameter random already.]
#### alternatives I considered
[what we could do also is to have another parameter specifying the starting line and end line, for example start line = 10, end line = 100 will allow the reader to read from 10 lines and up to 100 lines in the csv file, nrows specifies how many lines starting from 10 we read. If Random = True then we read 10 random lines from 10 to 100 lines instead of reading from 10 - 20 lines.]
#### Additional context
[I haven't looked too deep into pandas to see if my idea is already being developed, but if there is any development, I would appreciate the link to that discussion post. I would very much like to help and code this thing if no one has done this before.]
[FYI: this is my first time to contribute to open source, so please let me know how to help code this feature.]
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36253/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36253/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36254
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36254/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36254/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36254/events
|
https://github.com/pandas-dev/pandas/pull/36254
| 697,106,092
|
MDExOlB1bGxSZXF1ZXN0NDgzMDkyNzcy
| 36,254
|
searchsorted numpy compat for Period dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-09T19:44:52Z
| 2020-09-12T21:17:52Z
| 2020-09-12T21:15:13Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36254/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36254/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36254.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36254",
"merged_at": "2020-09-12T21:15:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36254.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36254"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36255
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36255/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36255/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36255/events
|
https://github.com/pandas-dev/pandas/pull/36255
| 697,138,136
|
MDExOlB1bGxSZXF1ZXN0NDgzMTIwMjAz
| 36,255
|
[DOC]: Improve doc of index.drop
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-09-09T20:32:37Z
| 2020-09-23T21:03:35Z
| 2020-09-23T21:03:29Z
|
MEMBER
| null |
- [x] closes #36227
Improved the docs a bit here. Closes the issue
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36255/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36255/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36255.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36255",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36255.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36255"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36256
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36256/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36256/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36256/events
|
https://github.com/pandas-dev/pandas/issues/36256
| 697,142,377
|
MDU6SXNzdWU2OTcxNDIzNzc=
| 36,256
|
Disable read_pickle() function to avoid having security vulnerabilities.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/54373447?v=4",
"events_url": "https://api.github.com/users/sergeisantoyo/events{/privacy}",
"followers_url": "https://api.github.com/users/sergeisantoyo/followers",
"following_url": "https://api.github.com/users/sergeisantoyo/following{/other_user}",
"gists_url": "https://api.github.com/users/sergeisantoyo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sergeisantoyo",
"id": 54373447,
"login": "sergeisantoyo",
"node_id": "MDQ6VXNlcjU0MzczNDQ3",
"organizations_url": "https://api.github.com/users/sergeisantoyo/orgs",
"received_events_url": "https://api.github.com/users/sergeisantoyo/received_events",
"repos_url": "https://api.github.com/users/sergeisantoyo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sergeisantoyo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sergeisantoyo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sergeisantoyo"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-09-09T20:39:49Z
| 2020-09-10T12:24:27Z
| 2020-09-10T11:25:50Z
|
NONE
| null |
Pandas is a requirement for MLflow, which we are trying to deploy in production. However, our security scan is showing us that pandas has a security vulnerability (CVE-2020-13091) and this vulnerability is preventing us from using MLflow in production, due to compliance issues.
It would be great if you could launch an alternative version of pandas, without the read_pickle method. This would be really useful and would solve the current security vulnerability.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36256/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36256/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36257
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36257/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36257/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36257/events
|
https://github.com/pandas-dev/pandas/issues/36257
| 697,156,099
|
MDU6SXNzdWU2OTcxNTYwOTk=
| 36,257
|
BUG: Series.get() does not return default value in case one of slice(n,m) is not found
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
}
] |
open
| false
| null |
[] | null | 0
| 2020-09-09T21:02:38Z
| 2020-09-09T21:03:13Z
| null |
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
ds = pd.Series(['a', 'b', 'c'])
print(ds.get([1,-1]))
print(ds.get(slice(-1,2)))
```
#### Problem description
The first get call returns the default value None as expected. The second returns an empty series. This seems inconsistent. I propose that we return here None too.
#### Expected Output
None and None
#### Output of ``pd.show_versions()``
<details>
master
</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/36257/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36257/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36258
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36258/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36258/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36258/events
|
https://github.com/pandas-dev/pandas/issues/36258
| 697,165,570
|
MDU6SXNzdWU2OTcxNjU1NzA=
| 36,258
|
DOC: Deprecation Warnings in user guide
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
|
{
"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"
}
|
[
{
"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"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-09T21:18:43Z
| 2020-09-11T21:33:03Z
| 2020-09-11T21:33:03Z
|
MEMBER
| null |
#### Location of the documentation
https://pandas.pydata.org/docs/user_guide/indexing.html#indexing-deprecate-loc-reindex-listlike
#### Documentation problem
We have a lot of warnings in the documentation ``Starting with 0.x the following is deprecated.`` Most of these things stopped working with 1.0. Should we update the docs and say, that this stopped working with 1.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/36258/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36258/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36259
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36259/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36259/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36259/events
|
https://github.com/pandas-dev/pandas/pull/36259
| 697,245,997
|
MDExOlB1bGxSZXF1ZXN0NDgzMjEyMjA0
| 36,259
|
de-privatize imported names
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-09T23:49:42Z
| 2020-09-11T21:51:23Z
| 2020-09-11T20:51:55Z
|
MEMBER
| null |
After this we're down to ~5 i think
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36259/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36259/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36259.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36259",
"merged_at": "2020-09-11T20:51:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36259.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36259"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36260
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36260/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36260/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36260/events
|
https://github.com/pandas-dev/pandas/pull/36260
| 697,265,199
|
MDExOlB1bGxSZXF1ZXN0NDgzMjI5MTk0
| 36,260
|
CLN: _wrap_applied_output
|
{
"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": "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": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-09-10T00:25:23Z
| 2020-09-12T21:15:53Z
| 2020-09-12T21:12:43Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36260/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36260/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36260.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36260",
"merged_at": "2020-09-12T21:12:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36260.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36260"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36261
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36261/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36261/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36261/events
|
https://github.com/pandas-dev/pandas/pull/36261
| 697,283,904
|
MDExOlB1bGxSZXF1ZXN0NDgzMjQ1NDY5
| 36,261
|
ENH: consistently cast strings for DTA/TDA/PA.__setitem__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-09-10T00:59:20Z
| 2020-09-12T23:41:15Z
| 2020-09-12T23:24:34Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
ATM we cast strings for listlike inputs but not for scalars.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36261/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36261/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36261.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36261",
"merged_at": "2020-09-12T23:24:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36261.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36261"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36262
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36262/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36262/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36262/events
|
https://github.com/pandas-dev/pandas/issues/36262
| 697,384,755
|
MDU6SXNzdWU2OTczODQ3NTU=
| 36,262
|
Support resample('D').agg(new_col_name=('col_name', func) )
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3938751?v=4",
"events_url": "https://api.github.com/users/eromoe/events{/privacy}",
"followers_url": "https://api.github.com/users/eromoe/followers",
"following_url": "https://api.github.com/users/eromoe/following{/other_user}",
"gists_url": "https://api.github.com/users/eromoe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eromoe",
"id": 3938751,
"login": "eromoe",
"node_id": "MDQ6VXNlcjM5Mzg3NTE=",
"organizations_url": "https://api.github.com/users/eromoe/orgs",
"received_events_url": "https://api.github.com/users/eromoe/received_events",
"repos_url": "https://api.github.com/users/eromoe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eromoe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eromoe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eromoe"
}
|
[
{
"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": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
open
| false
| null |
[] | null | 3
| 2020-09-10T03:41:47Z
| 2021-03-15T22:45:50Z
| null |
NONE
| null |
Normal agg support:
```
df.agg(
sale_hour=('sale_count', 'count')
)
```

But resample().agg doesn't :
```
df.resample('D').agg(
sale_hour=('sale_count', 'count')
)
```
got
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-159-8afb38e3b96b> in <module>
1 df.resample('D').agg(
----> 2 sale_hour=('sale_count', 'count')
3 )
TypeError: aggregate() missing 1 required positional argument: 'func'
```
-----
Now I have to write
```
df.resample('D').agg(
dict(
sale_count="sum",
home_rec="mean",
discount_money_rate="mean",
is_flashsale="mean",
is_plan_market="mean",
is_plan_store="mean",
discount_rate="mean",
in_stock_rate="mean",
),
).join(
df.resample('D').agg(
dict(
sale_count="count",
),
).rename(columns={'sale_count':'sale_hours'})
)
```
This because rename multiple level is much more difficult than join .
|
{
"+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/36262/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36262/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36263
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36263/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36263/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36263/events
|
https://github.com/pandas-dev/pandas/issues/36263
| 697,436,205
|
MDU6SXNzdWU2OTc0MzYyMDU=
| 36,263
|
pd.concat() crashes if dataframe contains duplicate indices but not df.join()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10172392?v=4",
"events_url": "https://api.github.com/users/xuancong84/events{/privacy}",
"followers_url": "https://api.github.com/users/xuancong84/followers",
"following_url": "https://api.github.com/users/xuancong84/following{/other_user}",
"gists_url": "https://api.github.com/users/xuancong84/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xuancong84",
"id": 10172392,
"login": "xuancong84",
"node_id": "MDQ6VXNlcjEwMTcyMzky",
"organizations_url": "https://api.github.com/users/xuancong84/orgs",
"received_events_url": "https://api.github.com/users/xuancong84/received_events",
"repos_url": "https://api.github.com/users/xuancong84/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xuancong84/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xuancong84/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xuancong84"
}
|
[
{
"color": "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": "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"
}
] |
open
| false
|
{
"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"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/29484286?v=4",
"events_url": "https://api.github.com/users/kasmith11/events{/privacy}",
"followers_url": "https://api.github.com/users/kasmith11/followers",
"following_url": "https://api.github.com/users/kasmith11/following{/other_user}",
"gists_url": "https://api.github.com/users/kasmith11/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kasmith11",
"id": 29484286,
"login": "kasmith11",
"node_id": "MDQ6VXNlcjI5NDg0Mjg2",
"organizations_url": "https://api.github.com/users/kasmith11/orgs",
"received_events_url": "https://api.github.com/users/kasmith11/received_events",
"repos_url": "https://api.github.com/users/kasmith11/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kasmith11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kasmith11/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kasmith11"
},
{
"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"
}
] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 2
| 2020-09-10T04:47:03Z
| 2021-09-22T17:24:19Z
| null |
NONE
| null |
I just found out that when we concatenate two dataframes horizontally, if one dataframe has duplicate indices, pd.concat() will crash, but df.join() will not crash. Instead, df.join() will spread the values into all rows with the same index value. Is this behavior by design? Thanks!
```
df1 = pd.DataFrame(np.random.randn(5), index=[0,1,2,3,3], columns=['a'])
df2 = pd.DataFrame(np.random.randn(5), index=[0,1,2,2,4], columns=['b'])
dfj = df1.join(df2, how='outer')
display(df1, df2, dfj)
dfc = pd.concat([df1, df2], axis=1)
display(dfc)
```
<img width="165" alt="image" src="https://user-images.githubusercontent.com/10172392/92682234-6e3c1f80-f362-11ea-8b07-21ffe291ad5c.png">
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-40-150ce3e802ea> in <module>
3 dfj = df1.join(df2, how='outer')
4 display(df1, df2, dfj)
----> 5 dfc = pd.concat([df1, df2], axis=1)
6 display(dfc)
~/anaconda3/lib/python3.7/site-packages/pandas/core/reshape/concat.py in concat(objs, axis, join, ignore_index, keys, levels, names, verify_integrity, sort, copy)
282 )
283
--> 284 return op.get_result()
285
286
~/anaconda3/lib/python3.7/site-packages/pandas/core/reshape/concat.py in get_result(self)
495
496 new_data = concatenate_block_managers(
--> 497 mgrs_indexers, self.new_axes, concat_axis=self.axis, copy=self.copy
498 )
499 if not self.copy:
~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in concatenate_block_managers(mgrs_indexers, axes, concat_axis, copy)
2025 blocks.append(b)
2026
-> 2027 return BlockManager(blocks, axes)
~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in __init__(self, blocks, axes, do_integrity_check)
137
138 if do_integrity_check:
--> 139 self._verify_integrity()
140
141 self._consolidate_check()
~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in _verify_integrity(self)
332 for block in self.blocks:
333 if block._verify_integrity and block.shape[1:] != mgr_shape[1:]:
--> 334 construction_error(tot_items, block.shape[1:], self.axes)
335 if len(self.items) != tot_items:
336 raise AssertionError(
~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in construction_error(tot_items, block_shape, axes, e)
1692 if block_shape[0] == 0:
1693 raise ValueError("Empty data passed with indices specified.")
-> 1694 raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}")
1695
1696
ValueError: Shape of passed values is (9, 2), indices imply (7, 2)
```
By right, if the dataframes have duplicate indices, it can behave like df.join() and at least it should NOT crash.
I suggest we introduce additional arguments to handle duplicate indices, e.g., if the same index has X(>0) rows in df1, Y(>0) rows in df2, then if `dup_index=`:
1. `combinatorial`: after merging, it will have `X*Y` rows for every combination possibility.
2. `outer-top-align`: after merging, it will have `max(X, Y)` rows, in which the rows align from top
3. `outer-bottom-align`: after merging, it will have `max(X, Y)` rows, in which the rows align from bottom
4. `inner-top-align`: after merging, it will have `min(X, Y)` rows, in which the rows align from top
5. `inner-bottom-align`: after merging, it will have `min(X, Y)` rows, in which the rows align from bottom
6. `raise`: raise an exception with the warning message
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36263/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36263/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36264
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36264/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36264/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36264/events
|
https://github.com/pandas-dev/pandas/pull/36264
| 697,568,300
|
MDExOlB1bGxSZXF1ZXN0NDgzNDk3NDEx
| 36,264
|
Resample fix dst transition
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30658763?v=4",
"events_url": "https://api.github.com/users/Flix6x/events{/privacy}",
"followers_url": "https://api.github.com/users/Flix6x/followers",
"following_url": "https://api.github.com/users/Flix6x/following{/other_user}",
"gists_url": "https://api.github.com/users/Flix6x/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Flix6x",
"id": 30658763,
"login": "Flix6x",
"node_id": "MDQ6VXNlcjMwNjU4NzYz",
"organizations_url": "https://api.github.com/users/Flix6x/orgs",
"received_events_url": "https://api.github.com/users/Flix6x/received_events",
"repos_url": "https://api.github.com/users/Flix6x/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Flix6x/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Flix6x/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Flix6x"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-10T07:48:04Z
| 2020-09-12T21:08:11Z
| 2020-09-12T21:07:53Z
|
CONTRIBUTOR
| null |
Fix bug when resampling with DST transition.
- [x] closes #35219
- [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/36264/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36264/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36264.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36264",
"merged_at": "2020-09-12T21:07:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36264.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36264"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36265
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36265/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36265/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36265/events
|
https://github.com/pandas-dev/pandas/issues/36265
| 697,701,176
|
MDU6SXNzdWU2OTc3MDExNzY=
| 36,265
|
Disabling ORC Support in pyarrow conda packages
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/70274?v=4",
"events_url": "https://api.github.com/users/xhochy/events{/privacy}",
"followers_url": "https://api.github.com/users/xhochy/followers",
"following_url": "https://api.github.com/users/xhochy/following{/other_user}",
"gists_url": "https://api.github.com/users/xhochy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xhochy",
"id": 70274,
"login": "xhochy",
"node_id": "MDQ6VXNlcjcwMjc0",
"organizations_url": "https://api.github.com/users/xhochy/orgs",
"received_events_url": "https://api.github.com/users/xhochy/received_events",
"repos_url": "https://api.github.com/users/xhochy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xhochy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xhochy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xhochy"
}
|
[
{
"color": "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 | 0
| 2020-09-10T09:55:29Z
| 2020-10-03T20:00:01Z
| 2020-10-03T20:00:01Z
|
CONTRIBUTOR
| null |
I'm fed up dealing with the build issues from the ORC C++ conda package and consider just disabling the support of it in the `pyarrow` conda package.
Main discussion should/can happen in the dask issue tracker as they seem to have the largest user base of this feature: https://github.com/dask/dask/issues/6615 There I also posted what needs to be done.
This issue is just a FYI, feel free to close anytime.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36265/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36265/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36266
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36266/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36266/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36266/events
|
https://github.com/pandas-dev/pandas/pull/36266
| 697,824,438
|
MDExOlB1bGxSZXF1ZXN0NDgzNzI3NzUx
| 36,266
|
BUG: fix isin with nans and large arrays
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1024416?v=4",
"events_url": "https://api.github.com/users/Hanspagh/events{/privacy}",
"followers_url": "https://api.github.com/users/Hanspagh/followers",
"following_url": "https://api.github.com/users/Hanspagh/following{/other_user}",
"gists_url": "https://api.github.com/users/Hanspagh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Hanspagh",
"id": 1024416,
"login": "Hanspagh",
"node_id": "MDQ6VXNlcjEwMjQ0MTY=",
"organizations_url": "https://api.github.com/users/Hanspagh/orgs",
"received_events_url": "https://api.github.com/users/Hanspagh/received_events",
"repos_url": "https://api.github.com/users/Hanspagh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Hanspagh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Hanspagh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Hanspagh"
}
|
[
{
"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": "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": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 12
| 2020-09-10T11:40:06Z
| 2020-09-24T20:20:07Z
| 2020-09-19T02:14:26Z
|
CONTRIBUTOR
| null |
Does a np.isnan if nan is given to isin and we have a large enough array to trigger the `np.in1d` path
- [x] closes #22205
- [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/36266/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36266/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36266.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36266",
"merged_at": "2020-09-19T02:14:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36266.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36266"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36267
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36267/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36267/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36267/events
|
https://github.com/pandas-dev/pandas/issues/36267
| 698,065,702
|
MDU6SXNzdWU2OTgwNjU3MDI=
| 36,267
|
ENH: short caption for LaTeX tables
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"color": "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": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-10T14:43:09Z
| 2020-10-17T16:23:32Z
| 2020-10-17T16:23:32Z
|
MEMBER
| null |
#### Is your feature request related to a problem?
``DataFrame.to_latex()`` does not allow one to specify short caption.
Short caption is useful for the creation of neat-looking list of tables, where the caption is short, fitting into one line.
#### Describe the solution you'd like
Either add kwarg ``short_caption`` to ``to_latex`` method.
Alternatively expand the meaning of kwarg ``caption``, so that it can optionally be unpacked into ``full_caption, short_caption``.
#### API breaking implications
No.
#### Describe alternatives you've considered
No.
#### Additional context
Example of LaTeX table with short caption.
```
\begin{table}
\centering
\caption[Short caption]{Long-long full caption}
\label{tab:label}
\begin{tabular}{lr}
\toprule
Col1 & Col2 \\
\midrule
1 & 3 \\
2 & 4 \\
\bottomrule
\end{tabular}
\end{table}
```
Possible code snippet:
```
df = pd.DataFrame({'a': [1, 2], 'b': [3, 4]})
df.to_latex(caption=('long caption', 'short caption'))
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36267/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36267/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36268
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36268/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36268/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36268/events
|
https://github.com/pandas-dev/pandas/issues/36268
| 698,148,150
|
MDU6SXNzdWU2OTgxNDgxNTA=
| 36,268
|
BUG: DataFrame.sort_values(by, ascending): by CANNOT recognize a tuple, yet ascending can.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4404547?v=4",
"events_url": "https://api.github.com/users/runsun/events{/privacy}",
"followers_url": "https://api.github.com/users/runsun/followers",
"following_url": "https://api.github.com/users/runsun/following{/other_user}",
"gists_url": "https://api.github.com/users/runsun/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/runsun",
"id": 4404547,
"login": "runsun",
"node_id": "MDQ6VXNlcjQ0MDQ1NDc=",
"organizations_url": "https://api.github.com/users/runsun/orgs",
"received_events_url": "https://api.github.com/users/runsun/received_events",
"repos_url": "https://api.github.com/users/runsun/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/runsun/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/runsun/subscriptions",
"type": "User",
"url": "https://api.github.com/users/runsun"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 4
| 2020-09-10T15:44:15Z
| 2020-09-10T18:47:20Z
| 2020-09-10T18:13:39Z
|
NONE
| null |
This behavior looks like a bug to me.
Inconsistent behaviors of the argument for **DataFrame.sort_values**( )
The first argument takes list, but fail to take tuple .
These worked:
``` python
df.sort_values( ['A', 'B'], ascending= [1, 0] ) # list, list
df.sort_values( ['A', 'B'], ascending= (1, 0) ) # list, tuple
```
These failed:
``` python
df.sort_values( ('A', 'B'), ascending= [1, 0] ) # tuple, list
df.sort_values( ('A', 'B'), ascending= (1, 0) ) # tuple, tuple
```
Error:
``` phthon
raise ValueError(
ValueError: Length of ascending (2) != length of by (1)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36268/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36268/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36269
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36269/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36269/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36269/events
|
https://github.com/pandas-dev/pandas/pull/36269
| 698,205,610
|
MDExOlB1bGxSZXF1ZXN0NDg0MDcyMzU3
| 36,269
|
CLN: pandas/io/parsers.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"color": "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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-10T16:26:00Z
| 2020-09-12T20:54:28Z
| 2020-09-12T20:54:23Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Slight clean-up of ``pandas/io/parsers.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/36269/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36269/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36269.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36269",
"merged_at": "2020-09-12T20:54:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36269.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36269"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36270
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36270/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36270/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36270/events
|
https://github.com/pandas-dev/pandas/pull/36270
| 698,271,144
|
MDExOlB1bGxSZXF1ZXN0NDg0MTMxMjE1
| 36,270
|
FIX: allow sorting by tuple of column names
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-09-10T17:28:16Z
| 2020-09-10T18:29:49Z
| 2020-09-10T18:26:03Z
|
MEMBER
| null |
- [ ] closes #36268
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36270/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36270/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36270.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36270",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36270.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36270"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36271
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36271/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36271/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36271/events
|
https://github.com/pandas-dev/pandas/issues/36271
| 698,313,542
|
MDU6SXNzdWU2OTgzMTM1NDI=
| 36,271
|
BUG: since pandas==1.1.0 pd.read_json() fails for strings that look similar to fsspec_url
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/35582223?v=4",
"events_url": "https://api.github.com/users/tbachlechner/events{/privacy}",
"followers_url": "https://api.github.com/users/tbachlechner/followers",
"following_url": "https://api.github.com/users/tbachlechner/following{/other_user}",
"gists_url": "https://api.github.com/users/tbachlechner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tbachlechner",
"id": 35582223,
"login": "tbachlechner",
"node_id": "MDQ6VXNlcjM1NTgyMjIz",
"organizations_url": "https://api.github.com/users/tbachlechner/orgs",
"received_events_url": "https://api.github.com/users/tbachlechner/received_events",
"repos_url": "https://api.github.com/users/tbachlechner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tbachlechner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tbachlechner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tbachlechner"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
open
| false
| null |
[] | null | 9
| 2020-09-10T18:07:31Z
| 2021-09-21T06:29:41Z
| null |
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
input_json = '[{"0":"this is a string ://"}]'
print('Input json string: {}'.format(input_json))
print('URL? {}'.format(str(pd.io.common.is_url(input_json))))
print('fsspec? {}'.format(str(pd.io.common.is_fsspec_url(input_json))))
print(pd.read_json(input_json))
```
output:
```
Input json string: [{"0":"this is a string ://"}]
URL? False
fsspec? True
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-f3bc94ba133f> in <module>
7 print('fsspec? {}'.format(str(pd.io.common.is_fsspec_url(input_json))))
8
----> 9 pd.read_json(input_json)
~/miniconda3/envs/eltest/lib/python3.7/site-packages/pandas/util/_decorators.py in wrapper(*args, **kwargs)
197 else:
198 kwargs[new_arg_name] = new_arg_value
--> 199 return func(*args, **kwargs)
200
201 return cast(F, wrapper)
~/miniconda3/envs/eltest/lib/python3.7/site-packages/pandas/util/_decorators.py in wrapper(*args, **kwargs)
294 )
295 warnings.warn(msg, FutureWarning, stacklevel=stacklevel)
--> 296 return func(*args, **kwargs)
297
298 return wrapper
~/miniconda3/envs/eltest/lib/python3.7/site-packages/pandas/io/json/_json.py in read_json(path_or_buf, orient, typ, dtype, convert_axes, convert_dates, keep_default_dates, numpy, precise_float, date_unit, encoding, lines, chunksize, compression, nrows)
592 compression = infer_compression(path_or_buf, compression)
593 filepath_or_buffer, _, compression, should_close = get_filepath_or_buffer(
--> 594 path_or_buf, encoding=encoding, compression=compression
595 )
596
~/miniconda3/envs/eltest/lib/python3.7/site-packages/pandas/io/common.py in get_filepath_or_buffer(filepath_or_buffer, encoding, compression, mode, storage_options)
201 if filepath_or_buffer.startswith("s3n://"):
202 filepath_or_buffer = filepath_or_buffer.replace("s3n://", "s3://")
--> 203 fsspec = import_optional_dependency("fsspec")
204
205 # If botocore is installed we fallback to reading with anon=True
~/miniconda3/envs/eltest/lib/python3.7/site-packages/pandas/compat/_optional.py in import_optional_dependency(name, extra, raise_on_missing, on_version)
108 except ImportError:
109 if raise_on_missing:
--> 110 raise ImportError(msg) from None
111 else:
112 return None
ImportError: Missing optional dependency 'fsspec'. Use pip or conda to install fsspec.
```
#### Problem description
The method `pd.read_json()` is widely used and accepts either a path or a json string. Since pandas==1.1.0 passing a string containing a json input is often interpreted as a fssspec_url and results in an error.
#### Expected Output
```
Input json string: [{"0":"this is a string ://"}]
URL? False
fsspec? False
0
0 this is a string ://
```
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-112-generic
Version : #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.2
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 3.0.0a1
IPython : 7.18.1
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 : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.13
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : None
```
</details>
|
{
"+1": 11,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 11,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36271/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36271/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36272
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36272/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36272/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36272/events
|
https://github.com/pandas-dev/pandas/pull/36272
| 698,322,671
|
MDExOlB1bGxSZXF1ZXN0NDg0MTc3NTcy
| 36,272
|
CI: xfail failing parquet test
|
{
"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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 8
| 2020-09-10T18:15:21Z
| 2020-09-15T16:09:48Z
| 2020-09-11T19:18: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/36272/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36272/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36272.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36272",
"merged_at": "2020-09-11T19:18:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36272.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36272"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/36273
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36273/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36273/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36273/events
|
https://github.com/pandas-dev/pandas/pull/36273
| 698,327,511
|
MDExOlB1bGxSZXF1ZXN0NDg0MTgyMDE4
| 36,273
|
Fix issue #36271 to disambiguate json string
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/35582223?v=4",
"events_url": "https://api.github.com/users/tbachlechner/events{/privacy}",
"followers_url": "https://api.github.com/users/tbachlechner/followers",
"following_url": "https://api.github.com/users/tbachlechner/following{/other_user}",
"gists_url": "https://api.github.com/users/tbachlechner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tbachlechner",
"id": 35582223,
"login": "tbachlechner",
"node_id": "MDQ6VXNlcjM1NTgyMjIz",
"organizations_url": "https://api.github.com/users/tbachlechner/orgs",
"received_events_url": "https://api.github.com/users/tbachlechner/received_events",
"repos_url": "https://api.github.com/users/tbachlechner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tbachlechner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tbachlechner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tbachlechner"
}
|
[
{
"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": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] |
closed
| false
| null |
[] | null | 10
| 2020-09-10T18:19:56Z
| 2020-12-29T20:44:17Z
| 2020-12-29T20:44:16Z
|
NONE
| null |
pd.read_json() fails currently for strings that look like fsspec_url and contain "://". adding another condition to fix this at least in most cases
- [X] closes #36271
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36273/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36273/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36273.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36273",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36273.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36273"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36274
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36274/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36274/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36274/events
|
https://github.com/pandas-dev/pandas/pull/36274
| 698,328,890
|
MDExOlB1bGxSZXF1ZXN0NDg0MTgzMjc4
| 36,274
|
REF: implement Categorical._validate_listlike
|
{
"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": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-09-10T18:21:12Z
| 2020-09-12T21:19:38Z
| 2020-09-12T21:13:32Z
|
MEMBER
| null |
I found it really confusing why we used slightly different dtype-comparisons in a bunch of different places (e.g CategoricalIndex.get_indexer vs CategoricalIndex.get_indexer_non_unique). AFAICT It's just a matter of optimizations accruing over time without a helper method to keep them in sync.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36274/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36274/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36274.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36274",
"merged_at": "2020-09-12T21:13:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36274.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36274"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36275
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36275/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36275/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36275/events
|
https://github.com/pandas-dev/pandas/pull/36275
| 698,461,537
|
MDExOlB1bGxSZXF1ZXN0NDg0MzAyMTUx
| 36,275
|
Fix #35484 - re-allow sqlalchemy declarative system to use `%` in read_sql.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2574498?v=4",
"events_url": "https://api.github.com/users/machow/events{/privacy}",
"followers_url": "https://api.github.com/users/machow/followers",
"following_url": "https://api.github.com/users/machow/following{/other_user}",
"gists_url": "https://api.github.com/users/machow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/machow",
"id": 2574498,
"login": "machow",
"node_id": "MDQ6VXNlcjI1NzQ0OTg=",
"organizations_url": "https://api.github.com/users/machow/orgs",
"received_events_url": "https://api.github.com/users/machow/received_events",
"repos_url": "https://api.github.com/users/machow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/machow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/machow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/machow"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
},
{
"color": "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
| 2020-09-10T20:33:13Z
| 2020-12-28T00:38:39Z
| 2020-12-28T00:38:38Z
|
NONE
| null |
- [x] closes #35484
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
* Adds tests to cover sql cases combining parameters and `%`.
* Notably, these tests highlight two regressions in v1.1
- `pd.read_sql("SELECT 1 %% 2", engine)` fails. See #35871.
- `pd.read_sql(sqlalchemy.sql.text("SELECT 1 % 2"), engine)` fails. See #35484.
* Fixes second issue by modifying SqlDatabase to not use `no_parameter`, and wrapping string queries in `sql.text()` when no parameters are passed.
I was going nuts trying to keep track of all the cases, so tossed them into a table! I didn't have time to explicitly check v1.05, so would be helpful if someone could verify that column (or I may be able to loop back to it)!
| query | v1.05 | v.1.1 | PR | issue |
| --- | --- | --- | --- | --- |
| no params, `%` | ❌ | ✅ | ✅ | #34211 (merged) |
| no params, `%%` | ✅ | ❌ | ❌ | #35871 |
| params, `%` | ❌ | ❌ | ❌ | https://github.com/psycopg/psycopg2/issues/827 |
| params, `%%` | ✅ | ✅ | ✅ | |
| sqla declarative, `%` | ✅ | ❌ | ✅ | #35484 |
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36275/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36275/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36275.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36275",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36275.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36275"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36276
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36276/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36276/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36276/events
|
https://github.com/pandas-dev/pandas/pull/36276
| 698,477,454
|
MDExOlB1bGxSZXF1ZXN0NDg0MzE2MDE0
| 36,276
|
CLN: typo cleanups
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-10T20:50:05Z
| 2020-09-12T01:00:19Z
| 2020-09-12T01:00:16Z
|
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/36276/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36276/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36276.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36276",
"merged_at": "2020-09-12T01:00:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36276.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36276"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/36277
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36277/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36277/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36277/events
|
https://github.com/pandas-dev/pandas/pull/36277
| 698,509,860
|
MDExOlB1bGxSZXF1ZXN0NDg0MzQ1MTY4
| 36,277
|
ENH: add peek function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22649802?v=4",
"events_url": "https://api.github.com/users/Quetzalcohuatl/events{/privacy}",
"followers_url": "https://api.github.com/users/Quetzalcohuatl/followers",
"following_url": "https://api.github.com/users/Quetzalcohuatl/following{/other_user}",
"gists_url": "https://api.github.com/users/Quetzalcohuatl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Quetzalcohuatl",
"id": 22649802,
"login": "Quetzalcohuatl",
"node_id": "MDQ6VXNlcjIyNjQ5ODAy",
"organizations_url": "https://api.github.com/users/Quetzalcohuatl/orgs",
"received_events_url": "https://api.github.com/users/Quetzalcohuatl/received_events",
"repos_url": "https://api.github.com/users/Quetzalcohuatl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Quetzalcohuatl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Quetzalcohuatl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Quetzalcohuatl"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false
| null |
[] | null | 6
| 2020-09-10T21:25:00Z
| 2020-09-19T03:34:41Z
| 2020-09-12T20:46:36Z
|
NONE
| null |
- [x] closes #18691
- [x] tests added / passed
- [ ] passes black pandas
- [ ] passes git diff upstream/master -u -- "*.py" | flake8 --diff
- [x] whatsnew entry
added peek, which is essentially a concatenation of head and tail functions. The reason I add, is because often for sorted data, you are interested in looking at both the head and tail simultaneously to see the min/max range.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36277/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36277/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36277.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36277",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36277.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36277"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36278
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36278/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36278/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36278/events
|
https://github.com/pandas-dev/pandas/pull/36278
| 698,528,739
|
MDExOlB1bGxSZXF1ZXN0NDg0MzYyMjYz
| 36,278
|
Concatenating rows with Int64 datatype coerces to object
|
{
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-09-10T21:46:06Z
| 2020-09-13T23:54:12Z
| 2020-09-13T23:25:30Z
|
MEMBER
| null |
- [x] closes #24768
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Issue was fixed in the past.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36278/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36278/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36278.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36278",
"merged_at": "2020-09-13T23:25:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36278.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36278"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36279
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36279/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36279/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36279/events
|
https://github.com/pandas-dev/pandas/issues/36279
| 698,560,986
|
MDU6SXNzdWU2OTg1NjA5ODY=
| 36,279
|
QST: Python 3.9 testing in CI
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2142266?v=4",
"events_url": "https://api.github.com/users/wumpus/events{/privacy}",
"followers_url": "https://api.github.com/users/wumpus/followers",
"following_url": "https://api.github.com/users/wumpus/following{/other_user}",
"gists_url": "https://api.github.com/users/wumpus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wumpus",
"id": 2142266,
"login": "wumpus",
"node_id": "MDQ6VXNlcjIxNDIyNjY=",
"organizations_url": "https://api.github.com/users/wumpus/orgs",
"received_events_url": "https://api.github.com/users/wumpus/received_events",
"repos_url": "https://api.github.com/users/wumpus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wumpus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wumpus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wumpus"
}
|
[
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "72e24d",
"default": false,
"description": "",
"id": 1971420228,
"name": "Python 3.9",
"node_id": "MDU6TGFiZWwxOTcxNDIwMjI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.9"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 11
| 2020-09-10T22:23:16Z
| 2020-09-16T15:28:46Z
| 2020-09-16T15:28:46Z
|
NONE
| null |
I use Travis CI to test, and I've tested all of my projects against the upcoming python 3.9 release. The only problem I'm seeing is dependent packages is pandas.
Pandas + 3.9 takes a long time to build and then dies with a compiler error. It also does this when I install cython first, which is the usual workaround when a new version of Python is close to release. Is some not-yet-mainstream cython version needed? I suppose there will be a wheel by the time 3.9.0 comes out in October?
Example CI log: https://travis-ci.com/github/wumpus/paramsurvey/jobs/383337409
```
pandas/_libs/writers.c:4942:5: error: ‘_PyUnicode_get_wstr_length’ is deprecated [-Werror=deprecated-declarations]
__pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);
^
In file included from /opt/python/3.9-dev/include/python3.9/unicodeobject.h:1026:0,
from /opt/python/3.9-dev/include/python3.9/Python.h:97,
from pandas/_libs/writers.c:33:
/opt/python/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^
pandas/_libs/writers.c:4942:5: error: ‘PyUnicode_AsUnicode’ is deprecated [-Werror=deprecated-declarations]
__pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);
^
In file included from /opt/python/3.9-dev/include/python3.9/unicodeobject.h:1026:0,
from /opt/python/3.9-dev/include/python3.9/Python.h:97,
from pandas/_libs/writers.c:33:
/opt/python/3.9-dev/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
^
pandas/_libs/writers.c:4942:5: error: ‘_PyUnicode_get_wstr_length’ is deprecated [-Werror=deprecated-declarations]
__pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);
^
In file included from /opt/python/3.9-dev/include/python3.9/unicodeobject.h:1026:0,
from /opt/python/3.9-dev/include/python3.9/Python.h:97,
from pandas/_libs/writers.c:33:
/opt/python/3.9-dev/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
^
cc1: all warnings being treated as errors
error: command '/usr/bin/gcc' failed with exit code 1
```
The logfile contains complete version information about the travisci environment.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36279/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36279/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36280
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36280/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36280/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36280/events
|
https://github.com/pandas-dev/pandas/pull/36280
| 698,713,545
|
MDExOlB1bGxSZXF1ZXN0NDg0NTMxMzQ1
| 36,280
|
PERF: CategoricalDtype.__eq__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-11T01:52:01Z
| 2020-09-13T15:03:54Z
| 2020-09-13T12:29:32Z
|
MEMBER
| null |
Three special cases where we can get better performance
1) categories have different lengths --> never equal
2) categories have different dtypes --> never equal
3) categories are not object-dtype --> can use use get_indexer instead of hashing
```
import pandas as pd
import numpy as np
dti = pd.date_range("2016-01-01", periods=10000, tz="US/Pacific")
dti2 = type(dti)(dti._data.copy())
np.random.shuffle(dti._data._data)
assert not dti.equals(dti2)
cd1 = pd.CategoricalDtype(dti)
cd2 = pd.CategoricalDtype(dti2)
cd3 = pd.CategoricalDtype(dti2[:-1])
cd4 = pd.CategoricalDtype(pd.Index(range(len(dti))))
In [5]: %timeit cd1 == cd2
548 µs ± 3.94 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- master
239 µs ± 1.04 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- PR
In [6]: %timeit cd1 == cd3
543 µs ± 4.05 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- master
5.05 µs ± 257 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <-- PR
In [7]: %timeit cd1 == cd4
389 µs ± 13.7 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- master
2.17 µs ± 63.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # <-- PR
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36280/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36280/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36280.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36280",
"merged_at": "2020-09-13T12:29:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36280.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36280"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36281
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36281/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36281/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36281/events
|
https://github.com/pandas-dev/pandas/issues/36281
| 698,751,134
|
MDU6SXNzdWU2OTg3NTExMzQ=
| 36,281
|
QST: Appending to pandas DataFrames
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2142266?v=4",
"events_url": "https://api.github.com/users/wumpus/events{/privacy}",
"followers_url": "https://api.github.com/users/wumpus/followers",
"following_url": "https://api.github.com/users/wumpus/following{/other_user}",
"gists_url": "https://api.github.com/users/wumpus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wumpus",
"id": 2142266,
"login": "wumpus",
"node_id": "MDQ6VXNlcjIxNDIyNjY=",
"organizations_url": "https://api.github.com/users/wumpus/orgs",
"received_events_url": "https://api.github.com/users/wumpus/received_events",
"repos_url": "https://api.github.com/users/wumpus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wumpus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wumpus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wumpus"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-09-11T02:44:08Z
| 2021-08-13T02:45:19Z
| 2021-08-13T02:45:19Z
|
NONE
| null |
Like a lot of people, I wrote some code that attempted to call `DataFrame.append()` a few million times, and it was slow. So I read the pandas docs ("don't do that, use `pd.concat()`") and StackOverflow (blah blah blah Ginger) and decided that if I was going to write a function that made chunks of dataframe and then concatenated them, the least I could do would be to make it general purpose, and a package others could use.
Thus I created [pandas-appender](https://github.com/wumpus/pandas-appender).
It has some features that I care about -- scalability to 100s of millions of rows, and features that help specify or identify categorical columns. But of course, it's not quite compatible with `DataFrame.append()`, and I'm new enough to pandas to be unsure if I've made it follow pandas conventions as far as possible.
So my question is, can someone who is better versed in pandas conventions than I am, preferably someone who would love to use a package that let them easily build up a dataframe with `.append()`, take a look at this code and give me some advice?
Thanks in advance!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36281/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36281/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36282
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36282/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36282/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36282/events
|
https://github.com/pandas-dev/pandas/pull/36282
| 698,753,726
|
MDExOlB1bGxSZXF1ZXN0NDg0NTY3Nzc0
| 36,282
|
REF: de-duplicate _wrap_joined_index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-11T02:47:46Z
| 2020-09-12T20:57:10Z
| 2020-09-12T20:31:30Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36282/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36282/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36282.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36282",
"merged_at": "2020-09-12T20:31:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36282.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36282"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/36283
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36283/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36283/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36283/events
|
https://github.com/pandas-dev/pandas/pull/36283
| 698,880,605
|
MDExOlB1bGxSZXF1ZXN0NDg0NjgxMDQ5
| 36,283
|
TST: #31922 assert no segmentation fault with numpy.array.__contains__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18493550?v=4",
"events_url": "https://api.github.com/users/ylin00/events{/privacy}",
"followers_url": "https://api.github.com/users/ylin00/followers",
"following_url": "https://api.github.com/users/ylin00/following{/other_user}",
"gists_url": "https://api.github.com/users/ylin00/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ylin00",
"id": 18493550,
"login": "ylin00",
"node_id": "MDQ6VXNlcjE4NDkzNTUw",
"organizations_url": "https://api.github.com/users/ylin00/orgs",
"received_events_url": "https://api.github.com/users/ylin00/received_events",
"repos_url": "https://api.github.com/users/ylin00/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ylin00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ylin00/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ylin00"
}
|
[
{
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-09-11T06:03:39Z
| 2020-11-19T00:34:52Z
| 2020-09-19T22:07:25Z
|
CONTRIBUTOR
| null |
- [ ] closes #31922
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] new test cases
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36283/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36283/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36283.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36283",
"merged_at": "2020-09-19T22:07:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36283.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36283"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36284
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36284/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36284/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36284/events
|
https://github.com/pandas-dev/pandas/pull/36284
| 698,935,810
|
MDExOlB1bGxSZXF1ZXN0NDg0NzMwODcx
| 36,284
|
DOC: Fixed type hints for GroupBy.{any, all}
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16566635?v=4",
"events_url": "https://api.github.com/users/ytakashina/events{/privacy}",
"followers_url": "https://api.github.com/users/ytakashina/followers",
"following_url": "https://api.github.com/users/ytakashina/following{/other_user}",
"gists_url": "https://api.github.com/users/ytakashina/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ytakashina",
"id": 16566635,
"login": "ytakashina",
"node_id": "MDQ6VXNlcjE2NTY2NjM1",
"organizations_url": "https://api.github.com/users/ytakashina/orgs",
"received_events_url": "https://api.github.com/users/ytakashina/received_events",
"repos_url": "https://api.github.com/users/ytakashina/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ytakashina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ytakashina/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ytakashina"
}
|
[
{
"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": "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": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 8
| 2020-09-11T07:08:35Z
| 2020-10-09T01:50:00Z
| 2020-10-09T01:47:41Z
|
CONTRIBUTOR
| null |
The current documentation says the return value of GroupBy.all and GroupBy.any is `bool`.
```
def any(self, skipna: bool = True):
"""
Return True if any value in the group is truthful, else False.
Parameters
----------
skipna : bool, default True
Flag to ignore nan values during truth testing.
Returns
-------
bool
"""
```
However, the actual returned type is DataFrame or Series (with the same shape as `GroupBy.sum()`).
```
In [25]: df
Out[25]:
0 1 2 3
0 1.0 0.0 0.0 0.0
1 0.0 1.0 0.0 0.0
2 0.0 0.0 1.0 0.0
3 0.0 0.0 0.0 1.0
In [26]: df.groupby(0).any()
Out[26]:
1 2 3
0
0.0 True True True
1.0 False False False
In [27]: type(df.groupby(0).any())
Out[27]: pandas.core.frame.DataFrame
```
This PR fixes the wrong type hints for `GroupBy.{any, all}`.
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36284/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36284/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36284.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36284",
"merged_at": "2020-10-09T01:47:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36284.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36284"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36285
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36285/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36285/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36285/events
|
https://github.com/pandas-dev/pandas/issues/36285
| 699,039,335
|
MDU6SXNzdWU2OTkwMzkzMzU=
| 36,285
|
QST: why do we compute hash here
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20952040?v=4",
"events_url": "https://api.github.com/users/danielhrisca/events{/privacy}",
"followers_url": "https://api.github.com/users/danielhrisca/followers",
"following_url": "https://api.github.com/users/danielhrisca/following{/other_user}",
"gists_url": "https://api.github.com/users/danielhrisca/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danielhrisca",
"id": 20952040,
"login": "danielhrisca",
"node_id": "MDQ6VXNlcjIwOTUyMDQw",
"organizations_url": "https://api.github.com/users/danielhrisca/orgs",
"received_events_url": "https://api.github.com/users/danielhrisca/received_events",
"repos_url": "https://api.github.com/users/danielhrisca/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danielhrisca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielhrisca/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danielhrisca"
}
|
[
{
"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"
}
| 2
| 2020-09-11T08:47:01Z
| 2020-09-11T12:15:01Z
| 2020-09-11T12:06:13Z
|
CONTRIBUTOR
| null |
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
---
#### Question about pandas
In pandas.core.indexes.base ``hash`` is called [here](https://github.com/pandas-dev/pandas/blob/a09259b5699b0f2667761356cb3b22ef43ef37f0/pandas/core/indexes/base.py#L4118) and the value is not used.
Why is this done?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36285/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36285/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36286
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36286/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36286/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36286/events
|
https://github.com/pandas-dev/pandas/issues/36286
| 699,089,690
|
MDU6SXNzdWU2OTkwODk2OTA=
| 36,286
|
ENH: allow sort_values to use the natural sort order
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13885630?v=4",
"events_url": "https://api.github.com/users/AlexeyGy/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexeyGy/followers",
"following_url": "https://api.github.com/users/AlexeyGy/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexeyGy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexeyGy",
"id": 13885630,
"login": "AlexeyGy",
"node_id": "MDQ6VXNlcjEzODg1NjMw",
"organizations_url": "https://api.github.com/users/AlexeyGy/orgs",
"received_events_url": "https://api.github.com/users/AlexeyGy/received_events",
"repos_url": "https://api.github.com/users/AlexeyGy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexeyGy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexeyGy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexeyGy"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 6
| 2020-09-11T09:35:22Z
| 2020-09-15T22:32:26Z
| 2020-09-15T22:32:26Z
|
CONTRIBUTOR
| null |
#### Is your feature request related to a problem?
The [natural sort order](https://en.wikipedia.org/wiki/Natural_sort_order#:~:text=Natural%20sort%20order%20is%20an,machine%2Doriented%20pure%20alphabetical%20order) is a common use case when working with real-world data. For example, consider the following DataFrame of clinical data where the body temperature of patients was measured:
```
data = {'Patient_ID': {0: 'ID-1',
1: 'ID-11',
2: 'ID-2'},
'temperature': {0: 37.2, 1: 37.5, 2: 37.2}}
df = pd.DataFrame(data).sort_values(by=['Patient_ID'])
df.head(5)
```
will yield:
| | Patient_ID | temperature |
|---:|:-------------|--------------:|
| 0 | ID-1 | 37.2 |
| 1 | ID-11 | 37.5 |
| 2 | ID-2 | 37.2 |
whereas we would want
| | Patient_ID | temperature |
|---:|:-------------|--------------:|
| 0 | ID-1 | 37.2 |
| 2 | ID-2 | 37.2 |
| 1 | ID-11 | 37.5 |
#### Describe the solution you'd like
- sort_values could get a new parameter `sort_order` that is by default alphabetical and could be switched to natural.
- the implementation could be similar to the [natsort](https://github.com/SethMMorton/natsort) package without any of the extra options `natsort` brings.: modify all values and pass them to np.argsort() s.t. then transform them back.
#### API breaking implications
Since we are only adding a parameter this would not break any existing API.
#### Describe alternatives you've considered
Currently, one could use the `natsort` package. However, this seems cumbersome for such a common operation and makes it necessary to reindex the DataFrame. [Stackoverflow example](https://stackoverflow.com/questions/29580978/naturally-sorting-pandas-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/36286/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36286/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36287
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36287/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36287/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36287/events
|
https://github.com/pandas-dev/pandas/pull/36287
| 699,118,608
|
MDExOlB1bGxSZXF1ZXN0NDg0ODkzNDg3
| 36,287
|
ENH: support of pandas.DataFrame.hist for datetime data
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21543236?v=4",
"events_url": "https://api.github.com/users/onshek/events{/privacy}",
"followers_url": "https://api.github.com/users/onshek/followers",
"following_url": "https://api.github.com/users/onshek/following{/other_user}",
"gists_url": "https://api.github.com/users/onshek/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/onshek",
"id": 21543236,
"login": "onshek",
"node_id": "MDQ6VXNlcjIxNTQzMjM2",
"organizations_url": "https://api.github.com/users/onshek/orgs",
"received_events_url": "https://api.github.com/users/onshek/received_events",
"repos_url": "https://api.github.com/users/onshek/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/onshek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onshek/subscriptions",
"type": "User",
"url": "https://api.github.com/users/onshek"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "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": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 11
| 2020-09-11T10:04:07Z
| 2020-10-10T23:07:49Z
| 2020-10-10T23:07:42Z
|
CONTRIBUTOR
| null |
- [x] closes #32590
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
# Update
```
import numpy as np
from pandas import DataFrame, to_datetime
from datetime import timedelta
df = DataFrame(
{
"a": np.random.rand(10),
"b": [timedelta(np.random.randn()) for _ in range(10)],
"c": to_datetime(
np.random.randint(
1582800000000000000, 1583500000000000000, 10, dtype=np.int64
)
),
"d": to_datetime(
np.random.randint(
1582800000000000000, 1583500000000000000, 10, dtype=np.int64
),
utc=True
),
}
)
df.dtypes
a float64
b timedelta64[ns]
c datetime64[ns]
d datetime64[ns, UTC]
dtype: object
df.hist(xrot=90, figsize=(9, 6))
array([[<AxesSubplot:title={'center':'a'}>,
<AxesSubplot:title={'center':'c'}>],
[<AxesSubplot:title={'center':'d'}>, <AxesSubplot:>]], dtype=object)
```

# ~~WIP~~
Since there's no response for several days in https://github.com/pandas-dev/pandas/issues/32590, I decide to open this PR for further discussion.
There's two feasible options:
Plan A:
As is shown in the files changed, `data._get_numeric_data()` is modified to `data._get_numeric_or_datetime_data()`, and I will work on related tests as the next step.
Plan B, this may be a fotfix according to https://github.com/pandas-dev/pandas/issues/32590#issuecomment-687477764:
```
column_dt = data.select_dtypes(include='datetime64[ns]')
if len(column_dt) > 0:
data[column_dt] = data[column_dt].astype(np.int64)
data = data._get_numeric_data()
if len(column_dt) > 0:
data[column_dt] = data[column_dt].astype('datetime64[ns]')
```
Also, related tests will be modified.
Any comment / thought is welcomed.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36287/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36287/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36287.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36287",
"merged_at": "2020-10-10T23:07:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36287.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36287"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36288
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36288/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36288/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36288/events
|
https://github.com/pandas-dev/pandas/issues/36288
| 699,125,226
|
MDU6SXNzdWU2OTkxMjUyMjY=
| 36,288
|
ERR: Report key on (unsupported) indexing errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7011110?v=4",
"events_url": "https://api.github.com/users/prhbrt/events{/privacy}",
"followers_url": "https://api.github.com/users/prhbrt/followers",
"following_url": "https://api.github.com/users/prhbrt/following{/other_user}",
"gists_url": "https://api.github.com/users/prhbrt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/prhbrt",
"id": 7011110,
"login": "prhbrt",
"node_id": "MDQ6VXNlcjcwMTExMTA=",
"organizations_url": "https://api.github.com/users/prhbrt/orgs",
"received_events_url": "https://api.github.com/users/prhbrt/received_events",
"repos_url": "https://api.github.com/users/prhbrt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/prhbrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prhbrt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/prhbrt"
}
|
[
{
"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": "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"
}
] |
open
| false
| null |
[] | null | 1
| 2020-09-11T10:11:16Z
| 2021-08-13T02:45:51Z
| null |
NONE
| null |
I would suggest to that indexing errors also state what they received, e.g. change [this](https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexing.py#L705) to:
except ValueError as err:
raise ValueError(
"Location based indexing can only have "
f"[{self._valid_types}] types, but got: {key}"
) from err
Or possibly a truncation for long types: `f"{(str(key)[:20] + '...') if len(str(key)) > 23 else str(key)}"`
It would particularly help sloppy data scientists like me :)
I'm happy to make a pull request, but I'd like to hear thoughts first.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36288/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36288/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36289
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36289/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36289/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36289/events
|
https://github.com/pandas-dev/pandas/issues/36289
| 699,438,070
|
MDU6SXNzdWU2OTk0MzgwNzA=
| 36,289
|
BUG: Index.union() drops Index component for duplicate Index elements not sorted
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"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"
}
| 2
| 2020-09-11T15:15:51Z
| 2021-03-04T02:01:10Z
| 2021-03-04T02:01:10Z
|
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
idx1 = pd.Index([0, 0, 1])
idx2 = pd.Index([0, 1])
print(idx1.union(idx2))
# Int64Index([0, 0, 1], dtype='int64')
print(idx2.union(idx1))
# Int64Index([0, 0, 1], dtype='int64')
idx1 = pd.Index([1, 0, 0])
print(idx1.union(idx2))
# Int64Index([0, 0, 1], dtype='int64')
print(idx2.union(idx1))
# Int64Index([0, 1], dtype='int64')
```
#### Problem description
In the fourth call ``idx2.union(idx1)`` one of the ``0`` is dropped. Meaning union() depends on the call order and on the index order, which seems buggy.
#### Expected Output
``Int64Index([0, 0, 1], dtype='int64')`` for every print Statement
#### Output of ``pd.show_versions()``
<details>
master
</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/36289/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36289/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36290
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36290/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36290/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36290/events
|
https://github.com/pandas-dev/pandas/pull/36290
| 699,450,353
|
MDExOlB1bGxSZXF1ZXN0NDg1MTkwNDQ4
| 36,290
|
[BUG]: Fix ValueError in concat() when at least one Index has duplicates
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 11
| 2020-09-11T15:27:36Z
| 2020-12-24T15:09:44Z
| 2020-11-19T19:01:09Z
|
MEMBER
| null |
- [x] closes #36263
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
If obj_labes Index has duplicates and they are not removed from new_labels before redindexing, they are multiplied. So we would get a way too big 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/36290/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36290/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36290.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36290",
"merged_at": "2020-11-19T19:01:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36290.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36290"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36291
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36291/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36291/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36291/events
|
https://github.com/pandas-dev/pandas/issues/36291
| 699,456,547
|
MDU6SXNzdWU2OTk0NTY1NDc=
| 36,291
|
BUG: pandas series creation fails with OverflowError when given large integers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1246446?v=4",
"events_url": "https://api.github.com/users/mdering/events{/privacy}",
"followers_url": "https://api.github.com/users/mdering/followers",
"following_url": "https://api.github.com/users/mdering/following{/other_user}",
"gists_url": "https://api.github.com/users/mdering/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mdering",
"id": 1246446,
"login": "mdering",
"node_id": "MDQ6VXNlcjEyNDY0NDY=",
"organizations_url": "https://api.github.com/users/mdering/orgs",
"received_events_url": "https://api.github.com/users/mdering/received_events",
"repos_url": "https://api.github.com/users/mdering/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mdering/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mdering/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mdering"
}
|
[
{
"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": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 1
| 2020-09-11T15:33:37Z
| 2020-09-13T12:34:52Z
| 2020-09-13T12:34:52Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
>>> import pandas as pd
>>> pd.Series(1000000000000000000000)
0 1000000000000000000000
dtype: object
>>> pd.Series(1000000000000000000000, index = pd.date_range(pd.Timestamp.now().floor("1D"), pd.Timestamp.now(), freq='T'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/matt/opt/anaconda3/lib/python3.7/site-packages/pandas/core/series.py", line 327, in __init__
data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True)
File "/Users/matt/opt/anaconda3/lib/python3.7/site-packages/pandas/core/construction.py", line 475, in sanitize_array
subarr = construct_1d_arraylike_from_scalar(value, len(index), dtype)
File "/Users/matt/opt/anaconda3/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1555, in construct_1d_arraylike_from_scalar
subarr.fill(value)
OverflowError: int too big to convert
>>> pd.Series(1000000000000000000000.0, index = pd.date_range(pd.Timestamp.now().floor("1D"), pd.Timestamp.now(), freq='T'))
2020-09-11 00:00:00 1.000000e+21
2020-09-11 00:01:00 1.000000e+21
2020-09-11 00:02:00 1.000000e+21
2020-09-11 00:03:00 1.000000e+21
2020-09-11 00:04:00 1.000000e+21
...
2020-09-11 11:24:00 1.000000e+21
2020-09-11 11:25:00 1.000000e+21
2020-09-11 11:26:00 1.000000e+21
2020-09-11 11:27:00 1.000000e+21
2020-09-11 11:28:00 1.000000e+21
Freq: T, Length: 689, dtype: float64
```
#### Problem description
Hi pandas, when creating a new series with very large integers, series creation fails. This is not true if you pass in a float, or if you just pass in one value of a series and no index. the traceback points to pandas code so I'm submitting a bug here.
#### Expected Output
I would expect this to fail more gracefully or either output a series of object type, or float type. when initializing an array in numpy, it transparently converts it to object type
```python
>>> np.array([1000000000000000000000]*1000).dtype
dtype('O')
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f2ca0a2665b2d169c97de87b8e778dbed86aea07
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.1
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : 0.29.21
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.1
blosc : 1.7.0
feather : None
xlsxwriter : 1.3.3
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fsspec : 0.8.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.19
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
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/36291/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36291/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36292
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36292/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36292/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36292/events
|
https://github.com/pandas-dev/pandas/pull/36292
| 699,482,564
|
MDExOlB1bGxSZXF1ZXN0NDg1MjE5MjI4
| 36,292
|
[DOC]: Update deprecation warnings, which were already removed
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-11T15:59:32Z
| 2020-09-11T22:29:09Z
| 2020-09-11T21:33:03Z
|
MEMBER
| null |
- [x] closes #36258
Updated the deprecation warnings.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36292/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36292/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36292.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36292",
"merged_at": "2020-09-11T21:33:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36292.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36292"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36293
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36293/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36293/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36293/events
|
https://github.com/pandas-dev/pandas/issues/36293
| 699,572,911
|
MDU6SXNzdWU2OTk1NzI5MTE=
| 36,293
|
BUG: `DataFrame.drop` fails when there is a multiIndex without any level provided
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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
| 2020-09-11T17:37:29Z
| 2020-12-14T23:55:16Z
| 2020-12-14T23:55:16Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
>>> x = pd.DataFrame({"a": range(10), "b": range(10, 20), "d": ["a", "v"] * 5}, index=pd.MultiIndex(levels=[['lama', 'cow', 'falcon'],
... ['speed', 'weight', 'length']],
... codes=[[0, 0, 0, 1, 1, 1, 2, 2, 2, 1],
... [0, 1, 2, 0, 1, 2, 0, 1, 2, 1]]))
>>> x
a b d
lama speed 0 10 a
weight 1 11 v
length 2 12 a
cow speed 3 13 v
weight 4 14 a
length 5 15 v
falcon speed 6 16 a
weight 7 17 v
length 8 18 a
cow weight 9 19 v
>>> x.drop(index='cow')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/pgali/PycharmProjects/del/venv1/lib/python3.7/site-packages/pandas/core/frame.py", line 4169, in drop
errors=errors,
File "/Users/pgali/PycharmProjects/del/venv1/lib/python3.7/site-packages/pandas/core/generic.py", line 3884, in drop
obj = obj._drop_axis(labels, axis, level=level, errors=errors)
File "/Users/pgali/PycharmProjects/del/venv1/lib/python3.7/site-packages/pandas/core/generic.py", line 3933, in _drop_axis
indexer = ~axis.isin(labels)
File "/Users/pgali/PycharmProjects/del/venv1/lib/python3.7/site-packages/pandas/core/indexes/multi.py", line 3600, in isin
values = MultiIndex.from_tuples(values, names=self.names)._values
File "/Users/pgali/PycharmProjects/del/venv1/lib/python3.7/site-packages/pandas/core/indexes/multi.py", line 501, in from_tuples
arrays = list(lib.tuples_to_object_array(tuples).T)
File "pandas/_libs/lib.pyx", line 2471, in pandas._libs.lib.tuples_to_object_array
TypeError: Expected tuple, got str
```
#### Problem description
I'd expected `drop` to drop all the rows with `cow` as an index.
#### Expected Output
```python
>>> x.drop(index='cow')
a b d
lama speed 0 10 a
weight 1 11 v
length 2 12 a
falcon speed 6 16 a
weight 7 17 v
length 8 18 a
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6
python : 3.7.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.1.2
numpy : 1.17.3
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.1.0
Cython : None
pytest : None
hypothesis : 5.29.0
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36293/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36293/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36294
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36294/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36294/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36294/events
|
https://github.com/pandas-dev/pandas/issues/36294
| 699,616,251
|
MDU6SXNzdWU2OTk2MTYyNTE=
| 36,294
|
BUG:unexpected behavior of pandas 1.1.1 dt.normalize() on pre-epoch dates
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/71138455?v=4",
"events_url": "https://api.github.com/users/koopmatt/events{/privacy}",
"followers_url": "https://api.github.com/users/koopmatt/followers",
"following_url": "https://api.github.com/users/koopmatt/following{/other_user}",
"gists_url": "https://api.github.com/users/koopmatt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/koopmatt",
"id": 71138455,
"login": "koopmatt",
"node_id": "MDQ6VXNlcjcxMTM4NDU1",
"organizations_url": "https://api.github.com/users/koopmatt/orgs",
"received_events_url": "https://api.github.com/users/koopmatt/received_events",
"repos_url": "https://api.github.com/users/koopmatt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/koopmatt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/koopmatt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/koopmatt"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 2
| 2020-09-11T18:26:34Z
| 2020-09-26T01:22:28Z
| 2020-09-26T01:22:28Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
print(pd.__version__)
1.1.1
df = pd.DataFrame({'year': [1969, 2016],'month': [1, 1],'day': [1, 1],'hour': [9, 9]})
df=pd.to_datetime(df)
df
Out[10]:
0 1969-01-01 09:00:00
1 2016-01-01 09:00:00
dtype: datetime64[ns]
df.dt.normalize()
Out[11]:
0 1969-01-02
1 2016-01-01
dtype: datetime64[ns]
```
#### Problem description
I would expect pre-epoch behavior to be the same as post-epoch
#### Expected Output
```
Out[10]:
0 1969-01-01 09:00:00
1 2016-01-01 09:00:00
dtype: datetime64[ns]
df.dt.normalize()
Out[11]:
0 1969-01-01
1 2016-01-01
dtype: datetime64[ns]
```
#### Output of ``pd.show_versions()``
<details>
commit : f2ca0a2665b2d169c97de87b8e778dbed86aea07
python : 3.6.10.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.17763
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en
LOCALE : None.None
pandas : 1.1.1
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : 0.29.21
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.3
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fsspec : 0.8.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.19
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
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/36294/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36294/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36295
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36295/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36295/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36295/events
|
https://github.com/pandas-dev/pandas/pull/36295
| 699,705,555
|
MDExOlB1bGxSZXF1ZXN0NDg1NDE5OTUx
| 36,295
|
CLN: Remove trailing commas
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11150412?v=4",
"events_url": "https://api.github.com/users/cjlynch278/events{/privacy}",
"followers_url": "https://api.github.com/users/cjlynch278/followers",
"following_url": "https://api.github.com/users/cjlynch278/following{/other_user}",
"gists_url": "https://api.github.com/users/cjlynch278/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cjlynch278",
"id": 11150412,
"login": "cjlynch278",
"node_id": "MDQ6VXNlcjExMTUwNDEy",
"organizations_url": "https://api.github.com/users/cjlynch278/orgs",
"received_events_url": "https://api.github.com/users/cjlynch278/received_events",
"repos_url": "https://api.github.com/users/cjlynch278/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cjlynch278/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cjlynch278/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cjlynch278"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-09-11T20:11:48Z
| 2020-09-20T01:17:40Z
| 2020-09-20T01:17:40Z
|
CONTRIBUTOR
| null |
Working on: CLN remove unnecessary trailing commas to get ready for new version of black #35925.
Updated the following files:
pandas/tests/series/methods/test_interpolate.py
pandas/tests/series/methods/test_unstack.py
pandas/tests/series/test_cumulative.py
pandas/tests/test_algos.py
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36295/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36295/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36295.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36295",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36295.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36295"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36296
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36296/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36296/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36296/events
|
https://github.com/pandas-dev/pandas/issues/36296
| 699,773,839
|
MDU6SXNzdWU2OTk3NzM4Mzk=
| 36,296
|
BLD/CI: 3.9 support
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "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": "72e24d",
"default": false,
"description": "",
"id": 1971420228,
"name": "Python 3.9",
"node_id": "MDU6TGFiZWwxOTcxNDIwMjI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.9"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 14
| 2020-09-11T21:37:31Z
| 2020-09-16T15:06:57Z
| 2020-09-16T15:06:57Z
|
CONTRIBUTOR
| null |
- [x] CI for the 3.9 build is from source, we should update this to use numpy wheels (just became available IIUC) #36323
- [ ] pass tests & update whatsnew for 3.9 build so we can include in 1.1.3
cc @pandas-dev/pandas-core
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36296/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36296/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36297
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36297/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36297/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36297/events
|
https://github.com/pandas-dev/pandas/pull/36297
| 699,804,238
|
MDExOlB1bGxSZXF1ZXN0NDg1NTA5NzAy
| 36,297
|
BUG: fix duplicate entries in LaTeX List of Tables when using longtable environments
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/36767735?v=4",
"events_url": "https://api.github.com/users/jeschwar/events{/privacy}",
"followers_url": "https://api.github.com/users/jeschwar/followers",
"following_url": "https://api.github.com/users/jeschwar/following{/other_user}",
"gists_url": "https://api.github.com/users/jeschwar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeschwar",
"id": 36767735,
"login": "jeschwar",
"node_id": "MDQ6VXNlcjM2NzY3NzM1",
"organizations_url": "https://api.github.com/users/jeschwar/orgs",
"received_events_url": "https://api.github.com/users/jeschwar/received_events",
"repos_url": "https://api.github.com/users/jeschwar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeschwar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeschwar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeschwar"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 5
| 2020-09-11T22:15:58Z
| 2020-09-19T22:05:15Z
| 2020-09-19T22:05:12Z
|
CONTRIBUTOR
| null |
- [x] closes #34360
- [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/36297/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36297/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36297.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36297",
"merged_at": "2020-09-19T22:05:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36297.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36297"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36298
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36298/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36298/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36298/events
|
https://github.com/pandas-dev/pandas/pull/36298
| 699,827,834
|
MDExOlB1bGxSZXF1ZXN0NDg1NTMxNjg4
| 36,298
|
Py39 Support - Remove Deprecated Unicode Length Check
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "72e24d",
"default": false,
"description": "",
"id": 1971420228,
"name": "Python 3.9",
"node_id": "MDU6TGFiZWwxOTcxNDIwMjI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.9"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 7
| 2020-09-11T22:47:30Z
| 2020-09-16T12:04:32Z
| 2020-09-16T12:04:31Z
|
MEMBER
| null |
- [X] closes #36279
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36298/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36298/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36298.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36298",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36298.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36298"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36299
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36299/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36299/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36299/events
|
https://github.com/pandas-dev/pandas/pull/36299
| 699,856,309
|
MDExOlB1bGxSZXF1ZXN0NDg1NTU4MzY3
| 36,299
|
BUG: Index.union() inconsistent with non-unique Indexes
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"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"
}
| 14
| 2020-09-11T23:26:44Z
| 2021-03-04T21:57:04Z
| 2021-03-04T02:01:10Z
|
MEMBER
| null |
- [x] closes #36289
- [x] closes #31326
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The else-block was pretty buggy in case of non unique indexes (was dependent on order of indexes and if one was subset of the other). The function in the try block worked perfectly, so I figured it would be way safer to let that function compute the new index and sort it based on the input indexes. If there is a faster way to achieve the resorting, I would be happy to change the code block.
We could delete the second sort block with the RunTimeWarning too, but then we would no longer get a Warning when incomparable objects should be sorted.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36299/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36299/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36299.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36299",
"merged_at": "2021-03-04T02:01:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36299.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36299"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36300
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36300/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36300/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36300/events
|
https://github.com/pandas-dev/pandas/pull/36300
| 699,938,961
|
MDExOlB1bGxSZXF1ZXN0NDg1NjM1NzUy
| 36,300
|
[DOC]: Improve drop docs
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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
| 2020-09-12T01:35:07Z
| 2020-11-26T19:05:43Z
| 2020-11-26T19:05:43Z
|
MEMBER
| null |
- [x] xref#36293
Improved the docstring a bit in case of multi-index and no level given.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36300/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36300/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36300.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36300",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36300.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36300"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36301
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36301/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36301/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36301/events
|
https://github.com/pandas-dev/pandas/pull/36301
| 699,998,283
|
MDExOlB1bGxSZXF1ZXN0NDg1NjkxMTEy
| 36,301
|
REF: de-duplicate sort_values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-12T03:13:10Z
| 2020-09-12T20:56:09Z
| 2020-09-12T20:33:53Z
|
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/36301/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36301/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36301.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36301",
"merged_at": "2020-09-12T20:33:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36301.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36301"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/36302
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36302/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36302/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36302/events
|
https://github.com/pandas-dev/pandas/issues/36302
| 700,007,703
|
MDU6SXNzdWU3MDAwMDc3MDM=
| 36,302
|
BUG: DataFrameGroupBy.__getitem__ should warn on tuple of length 1
|
{
"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": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
open
| false
| null |
[] | null | 2
| 2020-09-12T03:29:39Z
| 2020-12-12T17:49:38Z
| null |
MEMBER
| null |
Currently warnings are only emitted when the length of a tuple is greater than 1. From [this comment](https://github.com/pandas-dev/pandas/pull/30546#discussion_r362300459) in PR where the deprecation was implemented, there was some confusion as to the behavior of `df.groupby('a')['b']` vs `df.groupby('a')[('b', )]`. The former is the SeriesGroupBy that the comment refers to where `key` is a string, the latter should still be deprecated.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36302/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36302/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36303
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36303/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36303/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36303/events
|
https://github.com/pandas-dev/pandas/pull/36303
| 700,028,361
|
MDExOlB1bGxSZXF1ZXN0NDg1NzE5MDUx
| 36,303
|
REGR: Fix IntegerArray unary ops regression
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 3
| 2020-09-12T04:06:22Z
| 2020-09-13T13:28:19Z
| 2020-09-13T12:44:16Z
|
MEMBER
| null |
- [x] closes #36063
- [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/36303/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36303/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36303.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36303",
"merged_at": "2020-09-13T12:44:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36303.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36303"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36304
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36304/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36304/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36304/events
|
https://github.com/pandas-dev/pandas/pull/36304
| 700,216,345
|
MDExOlB1bGxSZXF1ZXN0NDg1ODg2OTQz
| 36,304
|
PERF: creating string Series/Arrays from sequence with many strings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-09-12T12:17:42Z
| 2020-09-12T21:33:08Z
| 2020-09-12T21:21:16Z
|
CONTRIBUTOR
| null |
Improves performance of `pandas._libs.lib.ensure_string_array` is cases with many string elements.
Examples:
```python
>>> x = np.array([str(u) for u in range(1_000_000)], dtype=object)
>>> %timeit pd.Series(x, dtype=str)
344 ms ± 59.7 ms per loop # v1.1.0
157 ms ± 7.04 ms per loop # v1.1.1 and master
22.6 ms ± 191 µs per loop # this PR
>>> %timeit pd.Series(x, dtype="string")
357 ms ± 40.2 ms per loop # v1.1.0
148 ms ± 713 µs per loop # v1.1.1 and master
26.3 ms ± 291 µs per loop # this PR
```
#35519 is the cause of the improvement from 1.1.0 to 1.1.1.
Together with #35519 this PR means that the overhead of working with strings in pandas has gotten considerably smaller for cases when we many times instantiate new `Series`/`PandasArrays` with dtype `str`/`StringDtype`, i.e. probably quite often.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36304/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36304/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36304.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36304",
"merged_at": "2020-09-12T21:21:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36304.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36304"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36305
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36305/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36305/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36305/events
|
https://github.com/pandas-dev/pandas/pull/36305
| 700,224,850
|
MDExOlB1bGxSZXF1ZXN0NDg1ODk0MzY5
| 36,305
|
ENH: Support MultiIndex columns in parquet (#34777)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/28539512?v=4",
"events_url": "https://api.github.com/users/hweecat/events{/privacy}",
"followers_url": "https://api.github.com/users/hweecat/followers",
"following_url": "https://api.github.com/users/hweecat/following{/other_user}",
"gists_url": "https://api.github.com/users/hweecat/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hweecat",
"id": 28539512,
"login": "hweecat",
"node_id": "MDQ6VXNlcjI4NTM5NTEy",
"organizations_url": "https://api.github.com/users/hweecat/orgs",
"received_events_url": "https://api.github.com/users/hweecat/received_events",
"repos_url": "https://api.github.com/users/hweecat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hweecat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hweecat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hweecat"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 10
| 2020-09-12T12:46:15Z
| 2021-07-23T21:26:09Z
| 2020-11-19T02:09:10Z
|
CONTRIBUTOR
| null |
- [x] closes #34777
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Support MultiIndex for columns in parquet format by updating value column names check to handle MultiIndexes.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36305/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36305/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36305.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36305",
"merged_at": "2020-11-19T02:09:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36305.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36305"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36306
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36306/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36306/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36306/events
|
https://github.com/pandas-dev/pandas/issues/36306
| 700,240,181
|
MDU6SXNzdWU3MDAyNDAxODE=
| 36,306
|
BUG: DataFrameGroupBy.apply with as_index False column name
|
{
"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": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
open
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3723510?v=4",
"events_url": "https://api.github.com/users/Ethanator/events{/privacy}",
"followers_url": "https://api.github.com/users/Ethanator/followers",
"following_url": "https://api.github.com/users/Ethanator/following{/other_user}",
"gists_url": "https://api.github.com/users/Ethanator/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Ethanator",
"id": 3723510,
"login": "Ethanator",
"node_id": "MDQ6VXNlcjM3MjM1MTA=",
"organizations_url": "https://api.github.com/users/Ethanator/orgs",
"received_events_url": "https://api.github.com/users/Ethanator/received_events",
"repos_url": "https://api.github.com/users/Ethanator/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Ethanator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ethanator/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Ethanator"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/3723510?v=4",
"events_url": "https://api.github.com/users/Ethanator/events{/privacy}",
"followers_url": "https://api.github.com/users/Ethanator/followers",
"following_url": "https://api.github.com/users/Ethanator/following{/other_user}",
"gists_url": "https://api.github.com/users/Ethanator/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Ethanator",
"id": 3723510,
"login": "Ethanator",
"node_id": "MDQ6VXNlcjM3MjM1MTA=",
"organizations_url": "https://api.github.com/users/Ethanator/orgs",
"received_events_url": "https://api.github.com/users/Ethanator/received_events",
"repos_url": "https://api.github.com/users/Ethanator/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Ethanator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ethanator/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Ethanator"
}
] | null | 1
| 2020-09-12T13:37:14Z
| 2020-09-14T03:24:50Z
| null |
MEMBER
| null |
Example:
```
df = DataFrame({"A": [1, 2], "B": [3, 4]})
g = df.groupby("A", as_index=False)
result = g.apply(len)
print(result)
```
results in
```
A NaN
0 1 1
1 2 1
```
If we were to use `pandas.core.common.get_callable_name`, then we would be able to have the column name be "len" in this case, and presumably others.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36306/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36306/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36307
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36307/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36307/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36307/events
|
https://github.com/pandas-dev/pandas/issues/36307
| 700,247,248
|
MDU6SXNzdWU3MDAyNDcyNDg=
| 36,307
|
TYPING: `df.columns.levels` raises mypy error on MultiIndex for columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/28539512?v=4",
"events_url": "https://api.github.com/users/hweecat/events{/privacy}",
"followers_url": "https://api.github.com/users/hweecat/followers",
"following_url": "https://api.github.com/users/hweecat/following{/other_user}",
"gists_url": "https://api.github.com/users/hweecat/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hweecat",
"id": 28539512,
"login": "hweecat",
"node_id": "MDQ6VXNlcjI4NTM5NTEy",
"organizations_url": "https://api.github.com/users/hweecat/orgs",
"received_events_url": "https://api.github.com/users/hweecat/received_events",
"repos_url": "https://api.github.com/users/hweecat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hweecat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hweecat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hweecat"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-09-12T13:59:41Z
| 2020-09-13T13:59:11Z
| 2020-09-13T13:59:10Z
|
CONTRIBUTOR
| null |
Observed in PR #36305
When adding check on inferred type for each level in MultiIndex for columns, error message pops up in CI (Typing validation with mypy):
`pandas/io/parquet.py:59: error: "Index" has no attribute "levels"; maybe "nlevels"? [attr-defined]`
I understand that single-level Indexes do not have the "levels" attribute while MultiIndexes have the "levels" attribute. It seems that mypy static type checking may have inferred "df.columns" as Index type by default, hence flagging the error when using "df.columns.levels" in the code change.
Would it make sense to add a "levels" attribute to "Index" for consistency with MultiIndex, or are there any possible workarounds for this mypy error?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36307/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36307/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36308
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36308/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36308/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36308/events
|
https://github.com/pandas-dev/pandas/issues/36308
| 700,266,726
|
MDU6SXNzdWU3MDAyNjY3MjY=
| 36,308
|
BUG: DataFrameGroupBy.transform with axis=1 fails
|
{
"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": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
},
{
"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/3723510?v=4",
"events_url": "https://api.github.com/users/Ethanator/events{/privacy}",
"followers_url": "https://api.github.com/users/Ethanator/followers",
"following_url": "https://api.github.com/users/Ethanator/following{/other_user}",
"gists_url": "https://api.github.com/users/Ethanator/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Ethanator",
"id": 3723510,
"login": "Ethanator",
"node_id": "MDQ6VXNlcjM3MjM1MTA=",
"organizations_url": "https://api.github.com/users/Ethanator/orgs",
"received_events_url": "https://api.github.com/users/Ethanator/received_events",
"repos_url": "https://api.github.com/users/Ethanator/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Ethanator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ethanator/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Ethanator"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/3723510?v=4",
"events_url": "https://api.github.com/users/Ethanator/events{/privacy}",
"followers_url": "https://api.github.com/users/Ethanator/followers",
"following_url": "https://api.github.com/users/Ethanator/following{/other_user}",
"gists_url": "https://api.github.com/users/Ethanator/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Ethanator",
"id": 3723510,
"login": "Ethanator",
"node_id": "MDQ6VXNlcjM3MjM1MTA=",
"organizations_url": "https://api.github.com/users/Ethanator/orgs",
"received_events_url": "https://api.github.com/users/Ethanator/received_events",
"repos_url": "https://api.github.com/users/Ethanator/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Ethanator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ethanator/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Ethanator"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/11451819?v=4",
"events_url": "https://api.github.com/users/tannu-singh/events{/privacy}",
"followers_url": "https://api.github.com/users/tannu-singh/followers",
"following_url": "https://api.github.com/users/tannu-singh/following{/other_user}",
"gists_url": "https://api.github.com/users/tannu-singh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tannu-singh",
"id": 11451819,
"login": "tannu-singh",
"node_id": "MDQ6VXNlcjExNDUxODE5",
"organizations_url": "https://api.github.com/users/tannu-singh/orgs",
"received_events_url": "https://api.github.com/users/tannu-singh/received_events",
"repos_url": "https://api.github.com/users/tannu-singh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tannu-singh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tannu-singh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tannu-singh"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/49332175?v=4",
"events_url": "https://api.github.com/users/aks861999/events{/privacy}",
"followers_url": "https://api.github.com/users/aks861999/followers",
"following_url": "https://api.github.com/users/aks861999/following{/other_user}",
"gists_url": "https://api.github.com/users/aks861999/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aks861999",
"id": 49332175,
"login": "aks861999",
"node_id": "MDQ6VXNlcjQ5MzMyMTc1",
"organizations_url": "https://api.github.com/users/aks861999/orgs",
"received_events_url": "https://api.github.com/users/aks861999/received_events",
"repos_url": "https://api.github.com/users/aks861999/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aks861999/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aks861999/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aks861999"
},
{
"avatar_url": "https://avatars.githubusercontent.com/u/65992809?v=4",
"events_url": "https://api.github.com/users/adhilcodes/events{/privacy}",
"followers_url": "https://api.github.com/users/adhilcodes/followers",
"following_url": "https://api.github.com/users/adhilcodes/following{/other_user}",
"gists_url": "https://api.github.com/users/adhilcodes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adhilcodes",
"id": 65992809,
"login": "adhilcodes",
"node_id": "MDQ6VXNlcjY1OTkyODA5",
"organizations_url": "https://api.github.com/users/adhilcodes/orgs",
"received_events_url": "https://api.github.com/users/adhilcodes/received_events",
"repos_url": "https://api.github.com/users/adhilcodes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adhilcodes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adhilcodes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adhilcodes"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 8
| 2020-09-12T15:00:54Z
| 2020-11-14T16:50:19Z
| 2020-11-14T16:50:19Z
|
MEMBER
| null |
The following seems to happen on all transform groupby kernels:
```
df = DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
df.groupby([1, 1], axis=1).transform("shift")
```
results in `ValueError: Length mismatch: Expected axis has 2 elements, new values have 3 elements`.
I think the issue is in `pandas.core.groupby.generic._wrap_transformed_output`; this method does not take into account `self.axis` when wrapping the output. All that needs to happen is `result = result.T` and to use the index labels rather than the column labels for `columns` there.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36308/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36308/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36309
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36309/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36309/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36309/events
|
https://github.com/pandas-dev/pandas/pull/36309
| 700,335,581
|
MDExOlB1bGxSZXF1ZXN0NDg1OTg4NDk1
| 36,309
|
PERF: get_dtype_kinds
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-12T18:49:45Z
| 2020-09-12T20:55:51Z
| 2020-09-12T20:40:21Z
|
MEMBER
| null |
Upshot: avoid doing lots of non-performant is_foo_dtype checks.
This fixes a little more than half of the performance hit in the benchmark discussed in #34683.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36309/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36309/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36309.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36309",
"merged_at": "2020-09-12T20:40:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36309.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36309"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36310
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36310/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36310/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36310/events
|
https://github.com/pandas-dev/pandas/pull/36310
| 700,341,342
|
MDExOlB1bGxSZXF1ZXN0NDg1OTkzNjA5
| 36,310
|
REF: Back IntervalArray by array instead of Index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "009800",
"default": false,
"description": "Interval data type",
"id": 150096370,
"name": "Interval",
"node_id": "MDU6TGFiZWwxNTAwOTYzNzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 10
| 2020-09-12T19:04:34Z
| 2020-10-03T07:21:22Z
| 2020-10-02T23:34:11Z
|
MEMBER
| null |
The benefit I have in mind here is that we could back it by a single 2xN array and a) avoid the kludge needed to make `__setitem__` atomic, b) do a view to get native types for e.g uniqueness checks, c) possibly share some methods with NDarrayBackedExtensionArray.
Also just in principle having EAs not depend on Index is preferable dependency-structure-wise.
cc @jschendel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36310/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36310/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36310.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36310",
"merged_at": "2020-10-02T23:34:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36310.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36310"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36311
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36311/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36311/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36311/events
|
https://github.com/pandas-dev/pandas/pull/36311
| 700,354,843
|
MDExOlB1bGxSZXF1ZXN0NDg2MDA1NTU0
| 36,311
|
DOC: Fix DataFrame.query contradiction on use of Python keywords as identifiers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9557133?v=4",
"events_url": "https://api.github.com/users/ezebunandu/events{/privacy}",
"followers_url": "https://api.github.com/users/ezebunandu/followers",
"following_url": "https://api.github.com/users/ezebunandu/following{/other_user}",
"gists_url": "https://api.github.com/users/ezebunandu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ezebunandu",
"id": 9557133,
"login": "ezebunandu",
"node_id": "MDQ6VXNlcjk1NTcxMzM=",
"organizations_url": "https://api.github.com/users/ezebunandu/orgs",
"received_events_url": "https://api.github.com/users/ezebunandu/received_events",
"repos_url": "https://api.github.com/users/ezebunandu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ezebunandu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ezebunandu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ezebunandu"
}
|
[
{
"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": "f3afff",
"default": false,
"description": "pd.eval, query",
"id": 1631985267,
"name": "expressions",
"node_id": "MDU6TGFiZWwxNjMxOTg1MjY3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-09-12T19:46:28Z
| 2020-09-13T01:14:44Z
| 2020-09-12T21:31:59Z
|
CONTRIBUTOR
| null |
- [ ] closes #35989
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36311/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36311/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36311.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36311",
"merged_at": "2020-09-12T21:31:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36311.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36311"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36312
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36312/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36312/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36312/events
|
https://github.com/pandas-dev/pandas/pull/36312
| 700,355,436
|
MDExOlB1bGxSZXF1ZXN0NDg2MDA2MDU4
| 36,312
|
PERF: JoinUnit.is_na
|
{
"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": "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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-12T19:48:43Z
| 2020-09-12T21:29:35Z
| 2020-09-12T21:20:30Z
|
MEMBER
| null |
This along with #36309 gets #34683 to performance parity with master.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36312/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36312/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36312.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36312",
"merged_at": "2020-09-12T21:20:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36312.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36312"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36313
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36313/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36313/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36313/events
|
https://github.com/pandas-dev/pandas/pull/36313
| 700,375,693
|
MDExOlB1bGxSZXF1ZXN0NDg2MDIzNDYz
| 36,313
|
REF: de-duplicate _wrap_joined_index in MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-12T21:02:03Z
| 2020-09-13T15:03:15Z
| 2020-09-13T12:31:18Z
|
MEMBER
| null |
Follow-up to #36282
We'll also be able to clean up MultiIndex special-casing in _reindex_non_unique. I expect others but cant say for sure yet.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36313/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36313/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36313.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36313",
"merged_at": "2020-09-13T12:31:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36313.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36313"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36314
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36314/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36314/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36314/events
|
https://github.com/pandas-dev/pandas/issues/36314
| 700,377,008
|
MDU6SXNzdWU3MDAzNzcwMDg=
| 36,314
|
ENH: Improve Multiindexing API
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/65842583?v=4",
"events_url": "https://api.github.com/users/leonarduschen/events{/privacy}",
"followers_url": "https://api.github.com/users/leonarduschen/followers",
"following_url": "https://api.github.com/users/leonarduschen/following{/other_user}",
"gists_url": "https://api.github.com/users/leonarduschen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/leonarduschen",
"id": 65842583,
"login": "leonarduschen",
"node_id": "MDQ6VXNlcjY1ODQyNTgz",
"organizations_url": "https://api.github.com/users/leonarduschen/orgs",
"received_events_url": "https://api.github.com/users/leonarduschen/received_events",
"repos_url": "https://api.github.com/users/leonarduschen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/leonarduschen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leonarduschen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/leonarduschen"
}
|
[
{
"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": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1
| 2020-09-12T21:07:01Z
| 2020-09-12T22:02:20Z
| 2020-09-12T22:02:20Z
|
CONTRIBUTOR
| null |
#### Is your feature request related to a problem?
Consider the following dataframe
```
Exams Labs
I II I II
Student Course
Ada Comp 70 71 72 73
Math 71 73 75 74
Sci 72 75 75 75
Quinn Comp 73 74 75 76
Math 74 76 78 77
Sci 75 78 78 78
Violet Comp 76 77 78 79
Math 77 79 81 80
Sci 78 81 81 81
```
to get the rows in for `Math`, there are currently 2 ways to do it as described in here https://pandas.pydata.org/pandas-docs/stable/user_guide/cookbook.html#slicing
1. Using`xs` like so `df.xs('Math', level=1, axis=0)`
2. Using `loc` like so `df.loc[(slice(None), 'Math'), slice(None)]`
Method 2 seems to be very verbose. Furthermore, merely using `df.loc[(slice(None), 'Math')]` does not work here and the columns `slice(None)` has to be specified. I believe this is inconsistent with how we slice single-indexed dataframes (e.g.. `df.loc[<INDEX>]` works just fine for single-indexed `df` without having to specify the columns like `df.loc[<INDEX>, slice(None)]`
#### Describe the solution you'd like
Improve method 2 (using .loc) describe by perhaps making it similar to NumPy`s `ndarray` here https://numpy.org/doc/stable/reference/arrays.ndarray.html
So then I guess the improvement would be to make the following:
`df.loc[( ,'Math')]` equivalent to `df.loc[(slice(None), 'Math'), slice(None)]`
#### API breaking implications
None if we still allow the old API to work
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36314/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36314/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36315
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36315/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36315/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36315/events
|
https://github.com/pandas-dev/pandas/pull/36315
| 700,399,600
|
MDExOlB1bGxSZXF1ZXN0NDg2MDQzNzAx
| 36,315
|
REF: separate out helpers from iLoc._setitem_with_indexer
|
{
"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": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-09-12T22:29:30Z
| 2020-09-13T15:04:15Z
| 2020-09-13T12:28:16Z
|
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/36315/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36315/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36315.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36315",
"merged_at": "2020-09-13T12:28:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36315.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36315"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/36316
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36316/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36316/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36316/events
|
https://github.com/pandas-dev/pandas/pull/36316
| 700,407,628
|
MDExOlB1bGxSZXF1ZXN0NDg2MDUwNjU1
| 36,316
|
BUG: Don't overflow with large int scalar
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 3
| 2020-09-12T22:58:41Z
| 2020-09-13T13:33:14Z
| 2020-09-13T12:34:52Z
|
MEMBER
| null |
- [x] closes #36291
- [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/36316/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36316/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36316.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36316",
"merged_at": "2020-09-13T12:34:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36316.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36316"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.