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/36919
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36919/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36919/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36919/events
|
https://github.com/pandas-dev/pandas/pull/36919
| 715,852,448
|
MDExOlB1bGxSZXF1ZXN0NDk4NjkyMDQ4
| 36,919
|
fixed capitalization on ecosystem.rst
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59916821?v=4",
"events_url": "https://api.github.com/users/data-RanDan/events{/privacy}",
"followers_url": "https://api.github.com/users/data-RanDan/followers",
"following_url": "https://api.github.com/users/data-RanDan/following{/other_user}",
"gists_url": "https://api.github.com/users/data-RanDan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/data-RanDan",
"id": 59916821,
"login": "data-RanDan",
"node_id": "MDQ6VXNlcjU5OTE2ODIx",
"organizations_url": "https://api.github.com/users/data-RanDan/orgs",
"received_events_url": "https://api.github.com/users/data-RanDan/received_events",
"repos_url": "https://api.github.com/users/data-RanDan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/data-RanDan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/data-RanDan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/data-RanDan"
}
|
[] |
closed
| false
| null |
[] | null | 5
| 2020-10-06T16:47:34Z
| 2020-10-06T17:30:15Z
| 2020-10-06T16:51:50Z
|
NONE
| null |
Fixed capitalization on doc/source/ecosystem.rst
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36919/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36919/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36919.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36919",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36919.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36919"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36920
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36920/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36920/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36920/events
|
https://github.com/pandas-dev/pandas/pull/36920
| 715,875,998
|
MDExOlB1bGxSZXF1ZXN0NDk4NzExODUz
| 36,920
|
TYP: check_untyped_defs core.computation.pytables
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-06T17:23:38Z
| 2020-10-06T19:23:53Z
| 2020-10-06T18:19:38Z
|
MEMBER
| null |
pandas\core\computation\pytables.py:46: error: Argument 1 to "__new__" of "object" has incompatible type "object"; expected "Type[object]" [arg-type]
pandas\core\computation\pytables.py:189: error: Incompatible types in assignment (expression has type "Callable[[Any, int, Union[Mapping[str, str], Iterable[str], None], bool, bool, Optional[int]], str]", variable has type "partial[bytes]") [assignment]
pandas\core\computation\pytables.py:262: error: Incompatible types in assignment (expression has type "Tuple[Any, ...]", variable has type "Optional[Tuple[Any, Any, Index]]") [assignment]
pandas\core\computation\pytables.py:351: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment]
pandas\core\computation\pytables.py:357: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment]
pandas\core\computation\pytables.py:364: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment]
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36920/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36920/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36920.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36920",
"merged_at": "2020-10-06T18:19:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36920.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36920"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36921
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36921/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36921/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36921/events
|
https://github.com/pandas-dev/pandas/pull/36921
| 715,890,864
|
MDExOlB1bGxSZXF1ZXN0NDk4NzI0MjYx
| 36,921
|
TYP: check_untyped_defs core.groupby.ops
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-06T17:47:20Z
| 2020-10-07T15:45:08Z
| 2020-10-07T14:56:43Z
|
MEMBER
| null |
pandas\core\groupby\ops.py:889: error: Need type annotation for 'sdata' [var-annotated]
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36921/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36921/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36921.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36921",
"merged_at": "2020-10-07T14:56:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36921.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36921"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36922
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36922/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36922/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36922/events
|
https://github.com/pandas-dev/pandas/issues/36922
| 715,900,416
|
MDU6SXNzdWU3MTU5MDA0MTY=
| 36,922
|
DOC: code example isn't formatted in `pandas.DataFrame.to_sql`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/29909203?v=4",
"events_url": "https://api.github.com/users/hkennyv/events{/privacy}",
"followers_url": "https://api.github.com/users/hkennyv/followers",
"following_url": "https://api.github.com/users/hkennyv/following{/other_user}",
"gists_url": "https://api.github.com/users/hkennyv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hkennyv",
"id": 29909203,
"login": "hkennyv",
"node_id": "MDQ6VXNlcjI5OTA5MjAz",
"organizations_url": "https://api.github.com/users/hkennyv/orgs",
"received_events_url": "https://api.github.com/users/hkennyv/received_events",
"repos_url": "https://api.github.com/users/hkennyv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hkennyv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hkennyv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hkennyv"
}
|
[
{
"color": "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"
}
| 0
| 2020-10-06T18:01:16Z
| 2020-10-06T23:04:34Z
| 2020-10-06T23:04:34Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
The code example in [pandas.DataFrame.to_sql](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_sql.html?highlight=to_sql#pandas.DataFrame.to_sql) isn't formatted properly.
(it's the example that inserts User 4 and User 5 into the db)
**Note**: You can check the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/).
#### Documentation problem

oh no, the code isn't formatted correctly!
#### Suggested fix for documentation
The reason is there's no blank line before the code snippet, see:
https://github.com/pandas-dev/pandas/blob/b58ee5779583b31de513b3d5c12f5c69c035e920/pandas/core/generic.py#L2692-L2695
Add a blank line above the code snippet :), i have a PR in progress
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36922/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36922/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36923
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36923/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36923/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36923/events
|
https://github.com/pandas-dev/pandas/pull/36923
| 715,901,350
|
MDExOlB1bGxSZXF1ZXN0NDk4NzMyOTQw
| 36,923
|
DOC: add newline to fix code block format in `pandas.DataFrame.to_sql`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/29909203?v=4",
"events_url": "https://api.github.com/users/hkennyv/events{/privacy}",
"followers_url": "https://api.github.com/users/hkennyv/followers",
"following_url": "https://api.github.com/users/hkennyv/following{/other_user}",
"gists_url": "https://api.github.com/users/hkennyv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hkennyv",
"id": 29909203,
"login": "hkennyv",
"node_id": "MDQ6VXNlcjI5OTA5MjAz",
"organizations_url": "https://api.github.com/users/hkennyv/orgs",
"received_events_url": "https://api.github.com/users/hkennyv/received_events",
"repos_url": "https://api.github.com/users/hkennyv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hkennyv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hkennyv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hkennyv"
}
|
[
{
"color": "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": "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": "d80222",
"default": false,
"description": "",
"id": 2402564166,
"name": "hacktoberfest-accepted",
"node_id": "MDU6TGFiZWwyNDAyNTY0MTY2",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/hacktoberfest-accepted"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-06T18:02:41Z
| 2020-10-07T02:48:19Z
| 2020-10-06T23:04:35Z
|
CONTRIBUTOR
| null |
- [x] closes #36922
- [x] tests added / passed n/a (didn't add any new tests/change code)
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
not sure if i need to add a whatsnew entry to 1.1.4 or 1.2.0...
would love to get a hacktoberfest tag if your org supports this. #36837
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36923/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36923/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36923.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36923",
"merged_at": "2020-10-06T23:04:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36923.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36923"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36924
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36924/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36924/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36924/events
|
https://github.com/pandas-dev/pandas/pull/36924
| 715,949,188
|
MDExOlB1bGxSZXF1ZXN0NDk4NzczOTEy
| 36,924
|
TYP: check_untyped_defs core.indexes.base
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-10-06T19:05:51Z
| 2020-10-10T16:05:47Z
| 2020-10-10T15:43:15Z
|
MEMBER
| null |
pandas\core\indexes\base.py:975: error: Argument 1 to "format_object_attrs" has incompatible type "Index"; expected "Sequence[Any]" [arg-type]
pandas\core\indexes\base.py:1612: error: "Index" has no attribute "levels"; maybe "nlevels"? [attr-defined]
pandas\core\indexes\base.py:1613: error: "Index" has no attribute "codes" [attr-defined]
pandas\core\indexes\base.py:3763: error: "Index" has no attribute "levels"; maybe "nlevels"? [attr-defined]
pandas\core\indexes\base.py:3779: error: "Index" has no attribute "codes" [attr-defined]
pandas\core\indexes\base.py:3787: error: "Index" has no attribute "codes" [attr-defined]
pandas\core\indexes\base.py:3790: error: "Index" has no attribute "codes" [attr-defined]
pandas\core\indexes\base.py:3793: error: "Index" has no attribute "levels"; maybe "nlevels"? [attr-defined]
pandas\core\indexes\base.py:3837: error: "Index" has no attribute "codes" [attr-defined]
pandas\core\indexes\base.py:3840: error: "Index" has no attribute "codes" [attr-defined]
pandas\core\indexes\base.py:4807: error: Too many arguments for "get_indexer_non_unique" of "Index" [call-arg]
pandas\core\indexes\base.py:5403: error: Cannot assign to a method [assignment]
pandas\core\indexes\base.py:5404: error: Cannot assign to a method [assignment]
pandas\core\indexes\base.py:5405: error: Unsupported left operand type for < ("Type[Index]") [operator]
pandas\core\indexes\base.py:5406: error: Unsupported left operand type for > ("Type[Index]") [operator]
pandas\core\indexes\base.py:5407: error: Unsupported left operand type for <= ("Type[Index]") [operator]
pandas\core\indexes\base.py:5408: error: Unsupported left operand type for >= ("Type[Index]") [operator]
pandas\core\indexes\base.py:5415: error: Unsupported left operand type for + ("Type[Index]") [operator]
pandas\core\indexes\base.py:5416: error: "Type[Index]" has no attribute "__radd__" [attr-defined]
pandas\core\indexes\base.py:5417: error: Unsupported left operand type for - ("Type[Index]") [operator]
pandas\core\indexes\base.py:5418: error: "Type[Index]" has no attribute "__rsub__" [attr-defined]
pandas\core\indexes\base.py:5419: error: "Type[Index]" has no attribute "__rpow__" [attr-defined]
pandas\core\indexes\base.py:5420: error: Unsupported left operand type for ** ("Type[Index]") [operator]
pandas\core\indexes\base.py:5422: error: Unsupported left operand type for / ("Type[Index]") [operator]
pandas\core\indexes\base.py:5423: error: "Type[Index]" has no attribute "__rtruediv__" [attr-defined]
pandas\core\indexes\base.py:5425: error: Unsupported left operand type for % ("Type[Index]") [operator]
pandas\core\indexes\base.py:5426: error: "Type[Index]" has no attribute "__rmod__" [attr-defined]
pandas\core\indexes\base.py:5427: error: Unsupported left operand type for // ("Type[Index]") [operator]
pandas\core\indexes\base.py:5428: error: "Type[Index]" has no attribute "__rfloordiv__" [attr-defined]
pandas\core\indexes\base.py:5429: error: Unsupported left operand type for divmod ("Type[Index]") [operator]
pandas\core\indexes\base.py:5430: error: "Type[Index]" has no attribute "__rdivmod__" [attr-defined]
pandas\core\indexes\base.py:5431: error: Unsupported left operand type for * ("Type[Index]") [operator]
pandas\core\indexes\base.py:5432: error: "Type[Index]" has no attribute "__rmul__" [attr-defined]
pandas\core\indexes\base.py:5449: error: Unsupported operand type for unary - ("Type[Index]") [operator]
pandas\core\indexes\base.py:5450: error: Unsupported operand type for unary + ("Type[Index]") [operator]
pandas\core\indexes\base.py:5451: error: "Type[Index]" has no attribute "__abs__" [attr-defined]
pandas\core\indexes\base.py:5452: error: "Type[Index]" has no attribute "__inv__" [attr-defined]
pandas\core\indexes\base.py:5564: error: "Type[Index]" has no attribute "all" [attr-defined]
pandas\core\indexes\base.py:5567: error: "Type[Index]" has no attribute "any" [attr-defined]
pandas\core\indexes\base.py:5576: error: "Type[Index]" has no attribute "all" [attr-defined]
pandas\core\indexes\base.py:5577: error: "Type[Index]" has no attribute "any" [attr-defined]
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36924/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36924/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36924.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36924",
"merged_at": "2020-10-10T15:43:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36924.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36924"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36925
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36925/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36925/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36925/events
|
https://github.com/pandas-dev/pandas/pull/36925
| 715,951,465
|
MDExOlB1bGxSZXF1ZXN0NDk4Nzc1ODg2
| 36,925
|
CLN: Clean groupby tests
|
{
"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": "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"
}
| 1
| 2020-10-06T19:09:07Z
| 2020-10-10T23:31:40Z
| 2020-10-10T22:53:36Z
|
MEMBER
| null |
Found a few unused parts while moving tests for another 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/36925/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36925/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36925.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36925",
"merged_at": "2020-10-10T22:53:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36925.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36925"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36926
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36926/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36926/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36926/events
|
https://github.com/pandas-dev/pandas/issues/36926
| 715,964,632
|
MDU6SXNzdWU3MTU5NjQ2MzI=
| 36,926
|
BUG:dataframe to_sql using cx_Oracle
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/86552?v=4",
"events_url": "https://api.github.com/users/CrabbyPete/events{/privacy}",
"followers_url": "https://api.github.com/users/CrabbyPete/followers",
"following_url": "https://api.github.com/users/CrabbyPete/following{/other_user}",
"gists_url": "https://api.github.com/users/CrabbyPete/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CrabbyPete",
"id": 86552,
"login": "CrabbyPete",
"node_id": "MDQ6VXNlcjg2NTUy",
"organizations_url": "https://api.github.com/users/CrabbyPete/orgs",
"received_events_url": "https://api.github.com/users/CrabbyPete/received_events",
"repos_url": "https://api.github.com/users/CrabbyPete/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CrabbyPete/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CrabbyPete/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CrabbyPete"
}
|
[
{
"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": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] |
open
| false
| null |
[] | null | 0
| 2020-10-06T19:29:36Z
| 2021-06-06T17:52:21Z
| null |
NONE
| null |
- [x ] I have checked that this issue has not already been reported.
- [ x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
df.to_sql(name=table_name,
con=engine,
if_exists='append',
index=False,
chunksize=1000,
dtype=dtype
)
```
#### Problem description
If I run this code and the column names are greater than 30 I get:
(cx_Oracle.DatabaseError) ORA-01008: not all variables bound
It creates the table correctly, but the insert fails. In sqlalchemy, my engine is defined as:
engine = create_engine(url, echo=False, max_identifier_length=128)
If I shorten the long column names, it works perfectly.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
'1.0.5'
</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/36926/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36926/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36927
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36927/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36927/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36927/events
|
https://github.com/pandas-dev/pandas/pull/36927
| 715,987,726
|
MDExOlB1bGxSZXF1ZXN0NDk4ODA2NDI5
| 36,927
|
BUG: Fix duplicates in intersection of multiindexes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-08T12:11:38Z",
"closed_issues": 81,
"created_at": "2020-10-29T13:43:23Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-12-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/79",
"id": 6047124,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79/labels",
"node_id": "MDk6TWlsZXN0b25lNjA0NzEyNA==",
"number": 79,
"open_issues": 0,
"state": "closed",
"title": "1.1.5",
"updated_at": "2020-12-08T12:11:38Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/79"
}
| 18
| 2020-10-06T20:08:06Z
| 2020-12-02T12:21:57Z
| 2020-11-29T17:21:53Z
|
MEMBER
| null |
- [x] closes #36915
- [x] xref #31326 (closes the intersection part)
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Seems like this was not introduced on purpose. Probably introduced in #31312
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36927/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36927/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36927.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36927",
"merged_at": "2020-11-29T17:21:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36927.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36927"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36928
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36928/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36928/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36928/events
|
https://github.com/pandas-dev/pandas/issues/36928
| 716,049,627
|
MDU6SXNzdWU3MTYwNDk2Mjc=
| 36,928
|
BUG: `dict_keys` cannot be used as `pd.read_csv`'s `names` parameter
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/52673001?v=4",
"events_url": "https://api.github.com/users/abmyii/events{/privacy}",
"followers_url": "https://api.github.com/users/abmyii/followers",
"following_url": "https://api.github.com/users/abmyii/following{/other_user}",
"gists_url": "https://api.github.com/users/abmyii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/abmyii",
"id": 52673001,
"login": "abmyii",
"node_id": "MDQ6VXNlcjUyNjczMDAx",
"organizations_url": "https://api.github.com/users/abmyii/orgs",
"received_events_url": "https://api.github.com/users/abmyii/received_events",
"repos_url": "https://api.github.com/users/abmyii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/abmyii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abmyii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/abmyii"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "5319e7",
"default": false,
"description": "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-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 2
| 2020-10-06T21:59:28Z
| 2020-10-10T17:45:01Z
| 2020-10-10T17:45:01Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
`test.csv`:
```csv
a,b
1,2
```
```python
import pandas as pd
data = {'a': 10, 'b': 20}
pd.read_csv('test.csv', names=data.keys())
```
Error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/pandas/io/parsers.py", line 691, in read_csv
return _read(filepath_or_buffer, kwds)
File "/usr/local/lib/python3.8/dist-packages/pandas/io/parsers.py", line 451, in _read
_validate_names(kwds.get("names", None))
File "/usr/local/lib/python3.8/dist-packages/pandas/io/parsers.py", line 424, in _validate_names
raise ValueError("Names should be an ordered collection.")
ValueError: Names should be an ordered collection.
```
#### Problem description
When a `dict_keys` object is passed, the keys aren't used as names. This is because `dict_keys` isn't list_like (https://github.com/pandas-dev/pandas/blob/4e553464f97a83dd2d827d559b74e17603695ca7/pandas/io/parsers.py#L423) or indexable, so the issue is understandable, but it would be nice to be able to pass `dict_keys` without issue.
#### Expected Output
Passing the dict keys to names shouldn't fail.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 4e553464f97a83dd2d827d559b74e17603695ca7
python : 3.8.3.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-118-generic
Version : #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.2.0.dev0+632.g4e553464f
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.1.1
setuptools : 46.1.3
Cython : None
pytest : None
hypothesis : None
sphinx : 1.6.7
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 0.999999999
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : None
pandas_datareader: None
bs4 : 4.6.0
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 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/36928/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36928/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36929
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36929/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36929/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36929/events
|
https://github.com/pandas-dev/pandas/pull/36929
| 716,093,059
|
MDExOlB1bGxSZXF1ZXN0NDk4ODk0NDI5
| 36,929
|
TYP: define Index.any, Index.all non-dynamically
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-10-06T23:45:24Z
| 2020-10-08T15:26:28Z
| 2020-10-08T11:52:58Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #31160, cc @simonjayhawkins
This unearths 2.5 issues:
1) Index.any/all says that we pass *args/**kwargs to np.any/all, but we don't
1b) the RangeIndex methods don't have args/kwargs at all
2) the subclasses that disable any/all don't totally make sense. In particular it seems like Float64Index should support it and CategoricalIndex should support it iff `self.categories` supports it
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36929/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36929/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36929.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36929",
"merged_at": "2020-10-08T11:52:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36929.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36929"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36930
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36930/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36930/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36930/events
|
https://github.com/pandas-dev/pandas/pull/36930
| 716,095,549
|
MDExOlB1bGxSZXF1ZXN0NDk4ODk2NDYy
| 36,930
|
TYP/REF: define comparison methods non-dynamically
|
{
"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": "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"
}
| 2
| 2020-10-06T23:52:37Z
| 2020-10-07T15:16:20Z
| 2020-10-07T15:10:11Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #31160, cc @simonjayhawkins @WillAyd
This implements OpsMixin which is more mypy-friendly than the status quo, and uses it in Series, Index, and DatetimeLikeArrayMixin. There are a handful more places where it can be used in an upcoming pass.
Will do the same for arithmetic/boolean ops if there is consensus that this is worth pursuing.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36930/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36930/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36930.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36930",
"merged_at": "2020-10-07T15:10:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36930.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36930"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36931
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36931/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36931/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36931/events
|
https://github.com/pandas-dev/pandas/pull/36931
| 716,113,658
|
MDExOlB1bGxSZXF1ZXN0NDk4OTExNTAy
| 36,931
|
TYP: define RangeIndex methods non-dynamically
|
{
"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"
}
| 1
| 2020-10-07T00:46:21Z
| 2020-10-08T15:13:50Z
| 2020-10-08T14:34:03Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36931/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36931/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36931.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36931",
"merged_at": "2020-10-08T14:34:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36931.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36931"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36932
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36932/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36932/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36932/events
|
https://github.com/pandas-dev/pandas/pull/36932
| 716,177,102
|
MDExOlB1bGxSZXF1ZXN0NDk4OTYyNTkz
| 36,932
|
REF/TYP: arrays.datetimelike
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-10-07T04:04:38Z
| 2020-10-10T22:45:23Z
| 2020-10-10T22:25:10Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@simonjayhawkins this is still giving me two mypy complaints locally:
```
pandas/core/arrays/datetimelike.py:549: error: Too many arguments for "object" [call-arg]
pandas/core/arrays/datetimelike.py:556: error: Too many arguments for "object" [call-arg]
```
These lines are both calls to `self._scalar_type(foo)`
_scalar_type is annotated as `Type[DatetimeLikeScalar]`, which is a TypeVar for Period/Timestamp/Timedelta. Is there a non-ignoring solution here?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36932/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36932/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36932.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36932",
"merged_at": "2020-10-10T22:25:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36932.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36932"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36933
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36933/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36933/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36933/events
|
https://github.com/pandas-dev/pandas/pull/36933
| 716,193,076
|
MDExOlB1bGxSZXF1ZXN0NDk4OTc1OTk3
| 36,933
|
TST/CLN: roll_sum/mean/var/skew/kurt: simplification for non-monotonic indices
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 19
| 2020-10-07T04:49:54Z
| 2020-10-25T22:09:55Z
| 2020-10-25T22:09:38Z
|
CONTRIBUTOR
| null |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The removed for-loop doesn't seem to be necessary (I hope this code is tested by an existing test).
I feel like I'm missing an obvious reason why these for-loops are needed: looking at the code I don't think we need them and the tests also pass.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36933/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36933/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36933.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36933",
"merged_at": "2020-10-25T22:09:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36933.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36933"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36934
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36934/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36934/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36934/events
|
https://github.com/pandas-dev/pandas/pull/36934
| 716,193,651
|
MDExOlB1bGxSZXF1ZXN0NDk4OTc2NDcz
| 36,934
|
TST: RollingGroupby.count with closed specified
|
{
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-07T04:51:34Z
| 2020-10-09T20:05:17Z
| 2020-10-09T20:02:09Z
|
MEMBER
| null |
- [x] closes #35869
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Closed by #31302
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36934/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36934/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36934.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36934",
"merged_at": "2020-10-09T20:02:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36934.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36934"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36935
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36935/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36935/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36935/events
|
https://github.com/pandas-dev/pandas/pull/36935
| 716,210,302
|
MDExOlB1bGxSZXF1ZXN0NDk4OTkwMzY4
| 36,935
|
TYP: clean unreachable code and duplicate test #27396
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"default": false,
"description": "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"
}
| 1
| 2020-10-07T05:32:49Z
| 2020-10-10T17:44:04Z
| 2020-10-10T17:44:01Z
|
MEMBER
| null |
xref #27396
```
pandas/tests/frame/test_to_csv.py:363: error: Right operand of 'or' is never evaluated [unreachable]
pandas/tests/frame/test_to_csv.py:389: error: Right operand of 'or' is never evaluated [unreachable]
pandas/tests/frame/test_to_csv.py:417: error: Right operand of 'or' is never evaluated [unreachable]
pandas/tests/frame/test_to_csv.py:443: error: Right operand of 'or' is never evaluated [unreachable]
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36935/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36935/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36935.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36935",
"merged_at": "2020-10-10T17:44:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36935.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36935"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36936
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36936/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36936/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36936/events
|
https://github.com/pandas-dev/pandas/issues/36936
| 716,241,380
|
MDU6SXNzdWU3MTYyNDEzODA=
| 36,936
|
BUG: loc with empty multiindex raises exception
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37420559?v=4",
"events_url": "https://api.github.com/users/egorvavilov/events{/privacy}",
"followers_url": "https://api.github.com/users/egorvavilov/followers",
"following_url": "https://api.github.com/users/egorvavilov/following{/other_user}",
"gists_url": "https://api.github.com/users/egorvavilov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/egorvavilov",
"id": 37420559,
"login": "egorvavilov",
"node_id": "MDQ6VXNlcjM3NDIwNTU5",
"organizations_url": "https://api.github.com/users/egorvavilov/orgs",
"received_events_url": "https://api.github.com/users/egorvavilov/received_events",
"repos_url": "https://api.github.com/users/egorvavilov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/egorvavilov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/egorvavilov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/egorvavilov"
}
|
[
{
"color": "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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30443978?v=4",
"events_url": "https://api.github.com/users/kasim95/events{/privacy}",
"followers_url": "https://api.github.com/users/kasim95/followers",
"following_url": "https://api.github.com/users/kasim95/following{/other_user}",
"gists_url": "https://api.github.com/users/kasim95/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kasim95",
"id": 30443978,
"login": "kasim95",
"node_id": "MDQ6VXNlcjMwNDQzOTc4",
"organizations_url": "https://api.github.com/users/kasim95/orgs",
"received_events_url": "https://api.github.com/users/kasim95/received_events",
"repos_url": "https://api.github.com/users/kasim95/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kasim95/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kasim95/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kasim95"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/30443978?v=4",
"events_url": "https://api.github.com/users/kasim95/events{/privacy}",
"followers_url": "https://api.github.com/users/kasim95/followers",
"following_url": "https://api.github.com/users/kasim95/following{/other_user}",
"gists_url": "https://api.github.com/users/kasim95/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kasim95",
"id": 30443978,
"login": "kasim95",
"node_id": "MDQ6VXNlcjMwNDQzOTc4",
"organizations_url": "https://api.github.com/users/kasim95/orgs",
"received_events_url": "https://api.github.com/users/kasim95/received_events",
"repos_url": "https://api.github.com/users/kasim95/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kasim95/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kasim95/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kasim95"
}
] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 4
| 2020-10-07T06:32:33Z
| 2020-12-28T16:41:47Z
| 2020-12-28T16:41:47Z
|
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.
---
Hi, last line of snippet throws an exception ``ValueError: operands could not be broadcast together with shapes (0,) (2,) (0,)``
```python
import pandas as pd
arrays = [['val1', 'val1', 'val2'], ['val1', 'val1', 'val2']]
index = pd.MultiIndex.from_arrays(arrays, names=('idx1', 'idx2'))
df = pd.DataFrame([1, 2, 3], index=index, columns=['value'])
df.loc[df[df['value'] == 0].index, :] = 4
```
#### Problem description
``.loc`` raises error in case dataframe has duplicates in index. ``df[df['value'] == 0].index`` produces ``MultiIndex([], names=['idx1', 'idx2'])`` and it seems to be absolutely valid to put it into ``.loc`` method.
#### Expected Output
I expect ``.loc`` operation to make no changes to original ``df`` cause multiindex in ``.loc`` is empty.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.17763
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.3
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 46.0.0
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.3.0
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 7.14.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : 3.0.4
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pyxlsb : 1.0.6
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.17
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : None
</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/36936/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36936/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36937
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36937/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36937/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36937/events
|
https://github.com/pandas-dev/pandas/pull/36937
| 716,305,073
|
MDExOlB1bGxSZXF1ZXN0NDk5MDY3NTM5
| 36,937
|
BUG: GH36928 Allow dict_keys to be used as column names by read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/52673001?v=4",
"events_url": "https://api.github.com/users/abmyii/events{/privacy}",
"followers_url": "https://api.github.com/users/abmyii/followers",
"following_url": "https://api.github.com/users/abmyii/following{/other_user}",
"gists_url": "https://api.github.com/users/abmyii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/abmyii",
"id": 52673001,
"login": "abmyii",
"node_id": "MDQ6VXNlcjUyNjczMDAx",
"organizations_url": "https://api.github.com/users/abmyii/orgs",
"received_events_url": "https://api.github.com/users/abmyii/received_events",
"repos_url": "https://api.github.com/users/abmyii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/abmyii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abmyii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/abmyii"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "5319e7",
"default": false,
"description": "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-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 12
| 2020-10-07T08:14:21Z
| 2020-10-12T14:08:39Z
| 2020-10-10T17:45:01Z
|
CONTRIBUTOR
| null |
- [x] closes #36928
- [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/36937/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36937/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36937.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36937",
"merged_at": "2020-10-10T17:45:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36937.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36937"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36938
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36938/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36938/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36938/events
|
https://github.com/pandas-dev/pandas/pull/36938
| 716,329,651
|
MDExOlB1bGxSZXF1ZXN0NDk5MDg3MjY0
| 36,938
|
DOC: Update dependency for to_markdown documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19736629?v=4",
"events_url": "https://api.github.com/users/eyaltrabelsi/events{/privacy}",
"followers_url": "https://api.github.com/users/eyaltrabelsi/followers",
"following_url": "https://api.github.com/users/eyaltrabelsi/following{/other_user}",
"gists_url": "https://api.github.com/users/eyaltrabelsi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eyaltrabelsi",
"id": 19736629,
"login": "eyaltrabelsi",
"node_id": "MDQ6VXNlcjE5NzM2NjI5",
"organizations_url": "https://api.github.com/users/eyaltrabelsi/orgs",
"received_events_url": "https://api.github.com/users/eyaltrabelsi/received_events",
"repos_url": "https://api.github.com/users/eyaltrabelsi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eyaltrabelsi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyaltrabelsi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eyaltrabelsi"
}
|
[
{
"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": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-10-07T08:49:02Z
| 2020-10-17T10:21:31Z
| 2020-10-17T10:21:30Z
|
CONTRIBUTOR
| null |
Adding to the documentation that tabulate is required for to_markdown to be executed
- [x] 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/36938/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36938/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36938.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36938",
"merged_at": "2020-10-17T10:21:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36938.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36938"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36939
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36939/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36939/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36939/events
|
https://github.com/pandas-dev/pandas/issues/36939
| 716,476,730
|
MDU6SXNzdWU3MTY0NzY3MzA=
| 36,939
|
BUG: Get_period_alias(offset_str) function behaves inconsistent
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20990315?v=4",
"events_url": "https://api.github.com/users/Djeramon/events{/privacy}",
"followers_url": "https://api.github.com/users/Djeramon/followers",
"following_url": "https://api.github.com/users/Djeramon/following{/other_user}",
"gists_url": "https://api.github.com/users/Djeramon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Djeramon",
"id": 20990315,
"login": "Djeramon",
"node_id": "MDQ6VXNlcjIwOTkwMzE1",
"organizations_url": "https://api.github.com/users/Djeramon/orgs",
"received_events_url": "https://api.github.com/users/Djeramon/received_events",
"repos_url": "https://api.github.com/users/Djeramon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Djeramon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Djeramon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Djeramon"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
open
| false
| null |
[] | null | 0
| 2020-10-07T12:16:52Z
| 2021-08-13T04:08:23Z
| null |
NONE
| null |
`Get_period_alias(offset_str)` function behaves inconsistent
---
```python
import pandas as pd
print(pd.tseries.frequencies.get_period_alias('AS-JAN')) # works fine
print(pd.tseries.frequencies.get_period_alias('AS-FEB')) # works fine
# ...
print(pd.tseries.frequencies.get_period_alias('W-MON')) # offset not removed
print(pd.tseries.frequencies.get_period_alias('W-TUE')) # offset not removed
# ...
print(pd.tseries.frequencies.get_period_alias('A-JAN')) # offset not removed
print(pd.tseries.frequencies.get_period_alias('A-FEB')) # offset not removed
# ...
```
#### Problem description
The `Get_period_alias(offset_str)` behaves inconsistent for different frequencies. See code sample for examples. The offset information (JAN, FEB, MON, TUE, ... ) should be removed. The issue should be easy to resolve by modifying the following lines:
https://github.com/pandas-dev/pandas/blob/1f6710035a5295b2d3171ab811ae7ffca2344389/pandas/tseries/frequencies.py#L81-L87
#### Output:
```
A
A
W-MON
W-TUE
A-JAN
A-FEB
```
#### Expected Output
```
A
A
W
W
A
A
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.7.0.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.17763
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.3
numpy : 1.16.3
pytz : 2018.5
dateutil : 2.7.3
pip : 19.1.1
setuptools : 50.3.0
Cython : 0.28.5
pytest : 4.0.1
hypothesis : None
sphinx : 2.2.1
blosc : None
feather : None
xlsxwriter : 1.1.0
lxml.etree : 4.2.5
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 6.5.0
pandas_datareader: None
bs4 : 4.6.3
bottleneck : 1.2.1
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 2.2.3
numexpr : 2.6.8
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.1.0
sqlalchemy : 1.3.13
tables : 3.4.4
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.39.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/36939/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36939/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36940
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36940/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36940/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36940/events
|
https://github.com/pandas-dev/pandas/issues/36940
| 716,491,585
|
MDU6SXNzdWU3MTY0OTE1ODU=
| 36,940
|
REGR: DateOffset attributes update fails with no errors.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/35444811?v=4",
"events_url": "https://api.github.com/users/lgelmi/events{/privacy}",
"followers_url": "https://api.github.com/users/lgelmi/followers",
"following_url": "https://api.github.com/users/lgelmi/following{/other_user}",
"gists_url": "https://api.github.com/users/lgelmi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lgelmi",
"id": 35444811,
"login": "lgelmi",
"node_id": "MDQ6VXNlcjM1NDQ0ODEx",
"organizations_url": "https://api.github.com/users/lgelmi/orgs",
"received_events_url": "https://api.github.com/users/lgelmi/received_events",
"repos_url": "https://api.github.com/users/lgelmi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lgelmi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lgelmi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lgelmi"
}
|
[
{
"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-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 4
| 2020-10-07T12:38:06Z
| 2020-10-08T21:10:10Z
| 2020-10-08T21:10:10Z
|
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
```python
import pandas
base = pandas.Timestamp("2020-01-01")
offset = pandas.DateOffset(years=1)
print(base + offset)
>>> 2021-01-01 00:00:00
print(offset)
>>> <DateOffset: years=1>
offset.years = 5
print(base + offset)
>>> 2021-01-01 00:00:00
print(offset)
>>> <DateOffset: years=5>
```
#### Problem description
I need to dynamically change some of the DateOffset attributes and just setting them seems like the most intuitive thing to do.
And it seems to work: no error is raised and the attribute value is updated.
When actually using it, though, the original value is used.
#### Expected Output
This is obviously due to the way the DateOffset is implemented, as a wrapper for cpython timedelta and dateutils relativedelta.
The ideal outcome for this would be having the object update itself, but I can understand why the class is "static".
The way it is, it may be better to inhibit attribute assignation instead of failing silently.
Event better would be having some method to generate a new DateOffset with just a couple of fields changed.
Depending on the change I may even be able to make the PR myself, once the desired behavior is clarified. :D
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-47-generic
Version : #51~18.04.1-Ubuntu SMP Sat Sep 5 14:35:50 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.2
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.2.0.post20200714
Cython : None
pytest : 6.1.1
hypothesis : None
sphinx : 3.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 1.1
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/36940/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36940/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36941
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36941/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36941/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36941/events
|
https://github.com/pandas-dev/pandas/issues/36941
| 716,610,508
|
MDU6SXNzdWU3MTY2MTA1MDg=
| 36,941
|
BUG: series.eq(other) does not equal series == other when the series contain pd.NA
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13164166?v=4",
"events_url": "https://api.github.com/users/connesy/events{/privacy}",
"followers_url": "https://api.github.com/users/connesy/followers",
"following_url": "https://api.github.com/users/connesy/following{/other_user}",
"gists_url": "https://api.github.com/users/connesy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/connesy",
"id": 13164166,
"login": "connesy",
"node_id": "MDQ6VXNlcjEzMTY0MTY2",
"organizations_url": "https://api.github.com/users/connesy/orgs",
"received_events_url": "https://api.github.com/users/connesy/received_events",
"repos_url": "https://api.github.com/users/connesy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/connesy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/connesy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/connesy"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
open
| false
| null |
[] | null | 6
| 2020-10-07T15:00:35Z
| 2020-10-16T18:43:13Z
| null |
CONTRIBUTOR
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
# Using pd.NA:
>>> import pandas as pd
>>> df = pd.DataFrame(data=[[1, 1], [2, 2], [3, 3], [pd.NA, pd.NA]], columns=['a','b'])
>>> df.a == df.b
0 True
1 True
2 True
3 False
dtype: bool
>>> df.a.eq(df.b)
0 False
1 False
2 False
3 False
dtype: bool
# Using np.nan instead of pd.NA:
>>> import numpy as np
>>> df_np = pd.DataFrame(data=[[1, 1], [2, 2], [3, 3], [np.nan, np.nan]], columns=['a','b'])
>>> df_np.a.eq(df_np.b)
0 True
1 True
2 True
3 False
dtype: bool
```
#### Problem description
From the [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.eq.html#pandas.Series.eq) of `Series.eq`: "Equivalent to `series == other`", I would expect `df.a == df.b` to yield the same result as `df.a.eq(df.b)`, but it doesn't when the series contain `pd.NA`.
#### Expected Output
`df.a.eq(df.b)` gives the same result as `df.a == df.b` even when the series contain `pd.NA`.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-48-generic
Version : #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.1
setuptools : 49.2.1.post20200802
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.3.1
lxml.etree : 4.5.1
html5lib : None
pymysql : 0.10.0
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.15.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.3.0
numexpr : None
odfpy : None
openpyxl : 3.0.4
pandas_gbq : None
pyarrow : 1.0.0
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.3.18
tables : None
tabulate : 0.8.7
xarray : 0.15.1
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/36941/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36941/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36942
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36942/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36942/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36942/events
|
https://github.com/pandas-dev/pandas/pull/36942
| 716,628,641
|
MDExOlB1bGxSZXF1ZXN0NDk5MzMyMTYx
| 36,942
|
TST: astyp via loc to int64
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19833489?v=4",
"events_url": "https://api.github.com/users/hardikpnsp/events{/privacy}",
"followers_url": "https://api.github.com/users/hardikpnsp/followers",
"following_url": "https://api.github.com/users/hardikpnsp/following{/other_user}",
"gists_url": "https://api.github.com/users/hardikpnsp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hardikpnsp",
"id": 19833489,
"login": "hardikpnsp",
"node_id": "MDQ6VXNlcjE5ODMzNDg5",
"organizations_url": "https://api.github.com/users/hardikpnsp/orgs",
"received_events_url": "https://api.github.com/users/hardikpnsp/received_events",
"repos_url": "https://api.github.com/users/hardikpnsp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hardikpnsp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hardikpnsp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hardikpnsp"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-07T15:22:10Z
| 2020-10-27T16:11:15Z
| 2020-10-27T15:13:54Z
|
CONTRIBUTOR
| null |
- [x] closes #31861
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Adds a test for a special case of `astype` via `loc` to extension type Int64 when data has np.nan or pd.NA.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36942/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36942/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36942.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36942",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36942.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36942"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36943
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36943/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36943/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36943/events
|
https://github.com/pandas-dev/pandas/pull/36943
| 716,674,199
|
MDExOlB1bGxSZXF1ZXN0NDk5MzY5OTc5
| 36,943
|
REF/TYP: define methods non-dynamically for SparseArray
|
{
"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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-07T16:21:39Z
| 2020-10-10T18:10:33Z
| 2020-10-10T17:39:29Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36943/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36943/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36943.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36943",
"merged_at": "2020-10-10T17:39:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36943.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36943"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36944
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36944/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36944/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36944/events
|
https://github.com/pandas-dev/pandas/issues/36944
| 716,676,102
|
MDU6SXNzdWU3MTY2NzYxMDI=
| 36,944
|
ENH: add string method remove prefix and suffix, python 3.9
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34067903?v=4",
"events_url": "https://api.github.com/users/erfannariman/events{/privacy}",
"followers_url": "https://api.github.com/users/erfannariman/followers",
"following_url": "https://api.github.com/users/erfannariman/following{/other_user}",
"gists_url": "https://api.github.com/users/erfannariman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erfannariman",
"id": 34067903,
"login": "erfannariman",
"node_id": "MDQ6VXNlcjM0MDY3OTAz",
"organizations_url": "https://api.github.com/users/erfannariman/orgs",
"received_events_url": "https://api.github.com/users/erfannariman/received_events",
"repos_url": "https://api.github.com/users/erfannariman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erfannariman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erfannariman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erfannariman"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
}
| 10
| 2020-10-07T16:24:25Z
| 2021-09-06T19:45:57Z
| 2021-09-06T19:45:57Z
|
CONTRIBUTOR
| null |
Opening this issue for discussion:
Since python 3.9 is out, and we have the new [string methods](https://www.python.org/dev/peps/pep-0616/) `removeprefix` and `removesuffix`, it would be nice to add them to the pandas string methods as well
```python
In [2]: import pandas as pd
In [3]: df = pd.DataFrame({'A': ['str_string1', 'str_string2', 'str_string3']})
In [4]: print(df)
A
0 str_string1
1 str_string2
2 str_string3
In [5]: df['A'].str.removeprefix('str_')
Out[5]:
0 string1
1 string2
2 string3
Name: A, dtype: object
```
An argument not to add this is that it's pretty easily to achieve with `str.split`:
```python
df['A'].str.split('_').str[-1]
```
|
{
"+1": 6,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 6,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36944/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36944/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36945
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36945/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36945/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36945/events
|
https://github.com/pandas-dev/pandas/pull/36945
| 716,679,123
|
MDExOlB1bGxSZXF1ZXN0NDk5Mzc0MDMy
| 36,945
|
use-python-language-in-pip-to-conda
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-10-07T16:28:49Z
| 2020-10-09T11:07:01Z
| 2020-10-09T11:06:58Z
|
MEMBER
| null |
xref #36531
This is to avoid problems where a dev's own system's Python points to Python2
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36945/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36945/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36945.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36945",
"merged_at": "2020-10-09T11:06:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36945.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36945"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36946
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36946/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36946/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36946/events
|
https://github.com/pandas-dev/pandas/pull/36946
| 716,708,345
|
MDExOlB1bGxSZXF1ZXN0NDk5Mzk3NTc2
| 36,946
|
REGR: Make DateOffset immutable
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 3
| 2020-10-07T17:11:21Z
| 2020-10-08T22:22:49Z
| 2020-10-08T21:10:10Z
|
MEMBER
| null |
- [x] closes #36940
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I'm assuming this is a regression and not behavior we want?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36946/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36946/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36946.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36946",
"merged_at": "2020-10-08T21:10:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36946.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36946"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36947
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36947/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36947/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36947/events
|
https://github.com/pandas-dev/pandas/issues/36947
| 716,709,690
|
MDU6SXNzdWU3MTY3MDk2OTA=
| 36,947
|
QST: Use object property as key?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10177001?v=4",
"events_url": "https://api.github.com/users/DorianCzichotzki/events{/privacy}",
"followers_url": "https://api.github.com/users/DorianCzichotzki/followers",
"following_url": "https://api.github.com/users/DorianCzichotzki/following{/other_user}",
"gists_url": "https://api.github.com/users/DorianCzichotzki/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DorianCzichotzki",
"id": 10177001,
"login": "DorianCzichotzki",
"node_id": "MDQ6VXNlcjEwMTc3MDAx",
"organizations_url": "https://api.github.com/users/DorianCzichotzki/orgs",
"received_events_url": "https://api.github.com/users/DorianCzichotzki/received_events",
"repos_url": "https://api.github.com/users/DorianCzichotzki/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DorianCzichotzki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DorianCzichotzki/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DorianCzichotzki"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-10-07T17:13:32Z
| 2020-10-08T14:16:47Z
| 2020-10-08T14:16:47Z
|
NONE
| null |
Is there a way to use a property of an object as the key when providing the object to a DataFrame?
I think the code makes clearer what I am looking for.
```python
class Key:
def __init__(self, name: str):
self.name = name
# Something like that
def __pandas_key__(self):
return self.name
df = DataFrame({"col": [1,2,3,4]})
key = Key("col")
df[key] # is [1,2,3,4]
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36947/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36947/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36948
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36948/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36948/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36948/events
|
https://github.com/pandas-dev/pandas/issues/36948
| 716,732,044
|
MDU6SXNzdWU3MTY3MzIwNDQ=
| 36,948
|
REGR: Dataframe.agg no longer accepts positional arguments as of v1.1.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1377457?v=4",
"events_url": "https://api.github.com/users/pganssle/events{/privacy}",
"followers_url": "https://api.github.com/users/pganssle/followers",
"following_url": "https://api.github.com/users/pganssle/following{/other_user}",
"gists_url": "https://api.github.com/users/pganssle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pganssle",
"id": 1377457,
"login": "pganssle",
"node_id": "MDQ6VXNlcjEzNzc0NTc=",
"organizations_url": "https://api.github.com/users/pganssle/orgs",
"received_events_url": "https://api.github.com/users/pganssle/received_events",
"repos_url": "https://api.github.com/users/pganssle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pganssle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pganssle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pganssle"
}
|
[
{
"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-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 0
| 2020-10-07T17:49:13Z
| 2020-10-09T13:32:56Z
| 2020-10-09T13:32:56Z
|
CONTRIBUTOR
| null |
Currently, passing any positional arguments to the `*args` parameter of `DataFrame.agg` fails with a `TypeError`, but the documented behavior is that positional and keyword arguments are passed on to the function that you are aggregating with. A minimal reproducer:
```python
import pandas as pd
def f(x, a):
return x.sum() + a
df = pd.DataFrame([1, 2])
print(df.agg(f, 0, 3))
```
This is a regression introduced in v1.1.0, which was introduced in 433c9007781080658553fbef1a4d0c2813b404c0 (GH-34377), and it was mainly because the previous code only incidentally worked. Prior to the "offending" commit, [all `TypeErrors` were caught](https://github.com/pandas-dev/pandas/commit/433c9007781080658553fbef1a4d0c2813b404c0#diff-1e79abbbdd150d4771b91ea60a4e1cc7R7336-R7341) and `.agg` would fall back to `apply`. This was incidentally (as far as I can tell) catching the `TypeError` raised from the fact that the `self._aggregate` call passed `axis` as a keyword argument, so:
```python
self._aggregate(func, axis=axis, *args, **kwargs)
...
def aggregate(self, func, axis, *args, **kwargs):
...
```
This means that `aggregate` takes `func` and the first positional argument from `*args` as `func` and `axis`, then takes `axis=1` to be `axis`, raising `TypeError` because `axis` is specified twice.
I believe the solution here is to pass `axis` to `self._aggregate` by position.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36948/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36948/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36949
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36949/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36949/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36949/events
|
https://github.com/pandas-dev/pandas/pull/36949
| 716,734,101
|
MDExOlB1bGxSZXF1ZXN0NDk5NDE4OTgz
| 36,949
|
DEPR: ObjectBlock.is_bool
|
{
"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": "b60205",
"default": false,
"description": "Temporarily-closed PR the author plans to return to",
"id": 1991290519,
"name": "Mothballed",
"node_id": "MDU6TGFiZWwxOTkxMjkwNTE5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Mothballed"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-10-07T17:52:35Z
| 2020-10-07T22:06:00Z
| 2020-10-07T22:05:56Z
|
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/36949/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36949/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36949.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36949",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36949.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36949"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36950
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36950/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36950/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36950/events
|
https://github.com/pandas-dev/pandas/pull/36950
| 716,734,654
|
MDExOlB1bGxSZXF1ZXN0NDk5NDE5NDU1
| 36,950
|
REGR: Allow positional arguments in DataFrame.agg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1377457?v=4",
"events_url": "https://api.github.com/users/pganssle/events{/privacy}",
"followers_url": "https://api.github.com/users/pganssle/followers",
"following_url": "https://api.github.com/users/pganssle/following{/other_user}",
"gists_url": "https://api.github.com/users/pganssle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pganssle",
"id": 1377457,
"login": "pganssle",
"node_id": "MDQ6VXNlcjEzNzc0NTc=",
"organizations_url": "https://api.github.com/users/pganssle/orgs",
"received_events_url": "https://api.github.com/users/pganssle/received_events",
"repos_url": "https://api.github.com/users/pganssle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pganssle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pganssle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pganssle"
}
|
[
{
"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-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 5
| 2020-10-07T17:53:27Z
| 2020-10-09T13:33:42Z
| 2020-10-09T13:32:56Z
|
CONTRIBUTOR
| null |
Although `DataFrame.agg` is documented as accepting `func, axis, *args, **kwargs` with `*args` and `**kwargs` passed to `func`, passing positional arguments raises a TypeError.
The reason for this is that the internal call to `self._aggregate` uses a keyword argument (axis) before passing *args and `**kwargs`, and as such the first positional argument is always interpreted as a second specification of `axis`, which raises TypeError.
Prior to commit 433c9007781080658553fbef1a4d0c2813b404c0, TypeErrors were being suppressed, falling back to `self.apply`, which in v1.1.0 turned into an error.
This fixes issue GH-36948.
- [x] closes #36948
- [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/36950/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36950/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36950.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36950",
"merged_at": "2020-10-09T13:32:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36950.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36950"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36951
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36951/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36951/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36951/events
|
https://github.com/pandas-dev/pandas/issues/36951
| 716,735,346
|
MDU6SXNzdWU3MTY3MzUzNDY=
| 36,951
|
REGR: resample apply fails with KeyError/AttributeError for function that works on DataFrame but fails on Series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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": "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-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 4
| 2020-10-07T17:54:35Z
| 2020-10-21T15:12:56Z
| 2020-10-20T01:30:23Z
|
MEMBER
| null |
A resample `apply` accessing a column of the subsetted dataframe fails (bubbling up the error from first trying the function on a single column, i.e. a Series):
```
In [25]: df = pd.DataFrame({"col": range(10)}, index=pd.date_range("2012-01-01", periods=10, freq="20min"))
In [26]: df.resample("H").apply(lambda group: len(group['col'].unique()))
...
KeyError: 'col'
In [27]: df.resample("H").apply(lambda group: len(group.col.unique()))
...
AttributeError: 'Series' object has no attribute 'col'
```
This seems a regression, or was there a deliberate change in `apply` to only apply it on the columns and no longer on the full DataFrame ?
cc @jbrockmendel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36951/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36951/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36952
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36952/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36952/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36952/events
|
https://github.com/pandas-dev/pandas/pull/36952
| 716,735,838
|
MDExOlB1bGxSZXF1ZXN0NDk5NDIwNDQx
| 36,952
|
CLN: dont special-case should_store, CategoricalBlock
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "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-10-07T17:55:18Z
| 2020-10-08T21:22:21Z
| 2020-10-08T21:13:42Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Moving towards avoiding special-casing pandas-internal EA subclasses.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36952/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36952/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36952.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36952",
"merged_at": "2020-10-08T21:13:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36952.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36952"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36953
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36953/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36953/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36953/events
|
https://github.com/pandas-dev/pandas/issues/36953
| 716,741,508
|
MDU6SXNzdWU3MTY3NDE1MDg=
| 36,953
|
REGR: slicing an irregular DatetimeIndex with NaT fails with AssertionError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 9
| 2020-10-07T18:04:29Z
| 2020-10-26T14:51:58Z
| 2020-10-26T14:51:58Z
|
MEMBER
| null |
This seems to be triggered in a very specific case, i.e. an irregular time series and a missing value as last element in the index:
```
increment = pd.Series(pd.to_timedelta([30.0, 30.1, 29.9, 30.0], unit='s')).cumsum()
increment[-1] = None
index = pd.Timestamp("2012-01-01 09:00") + increment
df = pd.Series(range(len(index)), index=index).to_frame()
In [11]: df["2012-01-01":"2012-01-05"]
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-11-ded270432cfc> in <module>
----> 1 df["2012-01-01":"2012-01-05"]
~/miniconda3/envs/pandas11/lib/python3.8/site-packages/pandas/core/frame.py in __getitem__(self, key)
2883 # either we have a slice or we have a string that can be converted
2884 # to a slice for partial-string date indexing
-> 2885 return self._slice(indexer, axis=0)
2886
2887 # Do we have a (boolean) DataFrame?
~/miniconda3/envs/pandas11/lib/python3.8/site-packages/pandas/core/generic.py in _slice(self, slobj, axis)
3552 Slicing with this method is *always* positional.
3553 """
-> 3554 assert isinstance(slobj, slice), type(slobj)
3555 axis = self._get_block_manager_axis(axis)
3556 result = self._constructor(self._mgr.get_slice(slobj, axis=axis))
AssertionError: <class 'numpy.ndarray'>
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36953/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36953/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36954
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36954/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36954/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36954/events
|
https://github.com/pandas-dev/pandas/pull/36954
| 716,749,154
|
MDExOlB1bGxSZXF1ZXN0NDk5NDMxODEz
| 36,954
|
TYP/REF: use _cmp_method in EAs
|
{
"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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-07T18:14:48Z
| 2020-10-07T22:37:11Z
| 2020-10-07T22:23:29Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36954/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36954/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36954.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36954",
"merged_at": "2020-10-07T22:23:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36954.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36954"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36955
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36955/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36955/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36955/events
|
https://github.com/pandas-dev/pandas/pull/36955
| 716,762,676
|
MDExOlB1bGxSZXF1ZXN0NDk5NDQzMTM3
| 36,955
|
Implement DataFrame.__array_ufunc__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 16
| 2020-10-07T18:36:37Z
| 2020-11-30T14:38:18Z
| 2020-11-25T20:52:40Z
|
CONTRIBUTOR
| null |
For some cases, this will preserve extension types of arrays by calling
the ufunc blockwise.
```python
In [1]: import pandas as pd; import numpy as np
In [2]: df = pd.DataFrame({"A": pd.array([0, 1], dtype="Sparse")})
In [3]: np.sin(df).dtypes
Out[3]:
A Sparse[float64, nan]
dtype: object
```
Implementation-wise, this was done by moving `Series.__array_ufunc__` to `NDFrame` and making it generic for Series / DataFrame. The DataFrame implementation goes through `BlockManager.apply(ufunc)`.
We don't currently handle the multi-input case well for dataframes (aside from ufuncs that are implemented as dunder ops like `np.add`). For these, we fall back to the old implementation of converting to an ndarray and wrapping the result. This loses extension types.
We also don't currently handle multi-output ufuncs (like `np.modf`). This would require a `BlockManager.apply` that returns a `Tuple[BlockManager]`, `nout` per input block. Maybe someday, but that's low priority.
closes https://github.com/pandas-dev/pandas/issues/23743
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36955/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36955/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36955.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36955",
"merged_at": "2020-11-25T20:52:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36955.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36955"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36956
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36956/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36956/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36956/events
|
https://github.com/pandas-dev/pandas/issues/36956
| 716,765,466
|
MDU6SXNzdWU3MTY3NjU0NjY=
| 36,956
|
Add optional ./ci/code_checks.sh pre-commit
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 1
| 2020-10-07T18:41:22Z
| 2021-07-16T11:22:56Z
| 2021-07-16T11:22:55Z
|
MEMBER
| null |
xref https://github.com/pandas-dev/pandas/pull/36722#issuecomment-704655928
> Is there a way to have an option in code_checks.sh that actually runs the appropriate pre-commit hook? that way we have a single source of truth, and you can actually still run them (of course have to avoid running these on the CI from the script as well)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36956/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36956/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36957
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36957/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36957/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36957/events
|
https://github.com/pandas-dev/pandas/issues/36957
| 716,802,955
|
MDU6SXNzdWU3MTY4MDI5NTU=
| 36,957
|
API: series.values EA or ndarray[object]?
|
{
"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": "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 | 4
| 2020-10-07T19:43:52Z
| 2020-10-16T19:04:24Z
| null |
MEMBER
| null |
ATM `Series[categorical].values` gives a Categorical and `Series[sparse].values` gives a SparseArray. Interval, Period, and DatetimeTZ get cast to ndarray[object]. 3rd party EAs return the EA.
We should choose one or the other. I have no real preference which.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36957/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36957/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36958
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36958/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36958/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36958/events
|
https://github.com/pandas-dev/pandas/pull/36958
| 716,843,217
|
MDExOlB1bGxSZXF1ZXN0NDk5NTEwMTEy
| 36,958
|
DOC: Add GCS as supported filesystem for read_parquet
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8672171?v=4",
"events_url": "https://api.github.com/users/joshtemple/events{/privacy}",
"followers_url": "https://api.github.com/users/joshtemple/followers",
"following_url": "https://api.github.com/users/joshtemple/following{/other_user}",
"gists_url": "https://api.github.com/users/joshtemple/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joshtemple",
"id": 8672171,
"login": "joshtemple",
"node_id": "MDQ6VXNlcjg2NzIxNzE=",
"organizations_url": "https://api.github.com/users/joshtemple/orgs",
"received_events_url": "https://api.github.com/users/joshtemple/received_events",
"repos_url": "https://api.github.com/users/joshtemple/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joshtemple/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshtemple/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joshtemple"
}
|
[
{
"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"
}
| 3
| 2020-10-07T20:51:41Z
| 2020-10-10T22:56:41Z
| 2020-10-10T22:56:37Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36958/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36958/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36958.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36958",
"merged_at": "2020-10-10T22:56:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36958.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36958"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36959
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36959/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36959/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36959/events
|
https://github.com/pandas-dev/pandas/pull/36959
| 716,846,774
|
MDExOlB1bGxSZXF1ZXN0NDk5NTEzMDE3
| 36,959
|
TYP: core.missing, ops.docstrings, internals.ops, internals.managers, io.html
|
{
"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"
}
| 1
| 2020-10-07T20:57:55Z
| 2020-10-08T15:21:06Z
| 2020-10-08T08:56:45Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36959/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36959/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36959.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36959",
"merged_at": "2020-10-08T08:56:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36959.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36959"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36960
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36960/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36960/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36960/events
|
https://github.com/pandas-dev/pandas/pull/36960
| 716,890,880
|
MDExOlB1bGxSZXF1ZXN0NDk5NTQ5NzEy
| 36,960
|
ENH: typo in citing page
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34067903?v=4",
"events_url": "https://api.github.com/users/erfannariman/events{/privacy}",
"followers_url": "https://api.github.com/users/erfannariman/followers",
"following_url": "https://api.github.com/users/erfannariman/following{/other_user}",
"gists_url": "https://api.github.com/users/erfannariman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erfannariman",
"id": 34067903,
"login": "erfannariman",
"node_id": "MDQ6VXNlcjM0MDY3OTAz",
"organizations_url": "https://api.github.com/users/erfannariman/orgs",
"received_events_url": "https://api.github.com/users/erfannariman/received_events",
"repos_url": "https://api.github.com/users/erfannariman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erfannariman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erfannariman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erfannariman"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-10-07T22:25:21Z
| 2020-10-07T23:34:11Z
| 2020-10-07T23:24:16Z
|
CONTRIBUTOR
| null |
Small typo in `citing.md`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36960/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36960/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36960.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36960",
"merged_at": "2020-10-07T23:24:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36960.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36960"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36961
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36961/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36961/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36961/events
|
https://github.com/pandas-dev/pandas/pull/36961
| 716,901,580
|
MDExOlB1bGxSZXF1ZXN0NDk5NTU4ODI3
| 36,961
|
TYP: use OpsMixin for DecimalArray
|
{
"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": "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"
}
| 3
| 2020-10-07T22:51:43Z
| 2020-10-10T18:11:11Z
| 2020-10-10T17:31:16Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36961/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36961/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36961.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36961",
"merged_at": "2020-10-10T17:31:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36961.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36961"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36962
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36962/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36962/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36962/events
|
https://github.com/pandas-dev/pandas/pull/36962
| 716,912,794
|
MDExOlB1bGxSZXF1ZXN0NDk5NTY4MTM3
| 36,962
|
BUG/API: tighter checks on DTI/TDI.equals
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-10-07T23:21:20Z
| 2020-10-08T21:27:59Z
| 2020-10-08T21:15:41Z
|
MEMBER
| null |
- [x] closes #33531
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Also fixes `TimedeltaIndex(Categorical(tdi))` (which DatetimeIndex already gets right)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36962/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36962/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36962.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36962",
"merged_at": "2020-10-08T21:15:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36962.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36962"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36963
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36963/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36963/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36963/events
|
https://github.com/pandas-dev/pandas/issues/36963
| 716,915,135
|
MDU6SXNzdWU3MTY5MTUxMzU=
| 36,963
|
BUG: Still getting blank when using `pandas.Series.to_string(index=False)`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3878895?v=4",
"events_url": "https://api.github.com/users/simontorres/events{/privacy}",
"followers_url": "https://api.github.com/users/simontorres/followers",
"following_url": "https://api.github.com/users/simontorres/following{/other_user}",
"gists_url": "https://api.github.com/users/simontorres/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simontorres",
"id": 3878895,
"login": "simontorres",
"node_id": "MDQ6VXNlcjM4Nzg4OTU=",
"organizations_url": "https://api.github.com/users/simontorres/orgs",
"received_events_url": "https://api.github.com/users/simontorres/received_events",
"repos_url": "https://api.github.com/users/simontorres/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simontorres/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simontorres/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simontorres"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-10-07T23:27:51Z
| 2020-10-08T01:14:27Z
| 2020-10-08T00:08:06Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas
print("pandas.__version__ == {:s}".format(pandas.__version__))
columns = ['name', 'age']
values = [
['name_one', '31'],
['name_two', '32']]
data_frame = pandas.DataFrame(values, columns=columns)
# filter
filtered = data_frame[(data_frame['name'] == 'name_one') & (data_frame['age'] == '31')]
# single value comes with a blank at the beginning when running 0.24.0
print("==={:s}===".format(filtered.name.to_string(index=False)))
```
#### Problem description
This was already reported by me on #24980 and supposedly fixed by PR #36094 but I keep getting the same result with pandas `1.1.3`.
Using the sample code above the output is `=== name_one===`
I might be missing something but I can't see what.
#### Expected Output
Using the sampe code provided I expect it to return `===name_one===`
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.6.12.final.0
python-bits : 64
OS : Linux
OS-release : 4.9.0-1.el7.elrepo.x86_64
Version : #1 SMP Sun Dec 11 15:43:54 EST 2016
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : 0.29.21
pytest : 6.0.2
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.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 : 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/36963/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36963/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36964
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36964/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36964/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36964/events
|
https://github.com/pandas-dev/pandas/pull/36964
| 716,926,240
|
MDExOlB1bGxSZXF1ZXN0NDk5NTc5MjEx
| 36,964
|
REF/TYP: use OpsMixin for logical 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": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-08T00:00:58Z
| 2020-10-08T15:21:59Z
| 2020-10-08T11:14:05Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36964/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36964/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36964.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36964",
"merged_at": "2020-10-08T11:14:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36964.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36964"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36965
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36965/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36965/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36965/events
|
https://github.com/pandas-dev/pandas/pull/36965
| 716,949,947
|
MDExOlB1bGxSZXF1ZXN0NDk5NTk4Njky
| 36,965
|
CLN: share to_native_types
|
{
"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"
}
| 3
| 2020-10-08T01:16:28Z
| 2020-10-10T18:09:42Z
| 2020-10-10T17:31:49Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36965/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36965/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36965.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36965",
"merged_at": "2020-10-10T17:31:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36965.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36965"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36966
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36966/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36966/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36966/events
|
https://github.com/pandas-dev/pandas/pull/36966
| 716,960,916
|
MDExOlB1bGxSZXF1ZXN0NDk5NjA3MzY3
| 36,966
|
CLN: remove unnecessary BoolBlock.replace
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-08T01:54:45Z
| 2020-10-08T21:23:19Z
| 2020-10-08T21:12:52Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
The fastpath it implements is equivalent to the can_hold_element fastpath in Block.replace
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36966/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36966/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36966.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36966",
"merged_at": "2020-10-08T21:12:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36966.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36966"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36967
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36967/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36967/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36967/events
|
https://github.com/pandas-dev/pandas/pull/36967
| 716,994,410
|
MDExOlB1bGxSZXF1ZXN0NDk5NjM0NjE5
| 36,967
|
TYP: consistent return types blocks
|
{
"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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-08T03:39:26Z
| 2020-10-08T21:21:14Z
| 2020-10-08T21:12:31Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36967/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36967/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36967.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36967",
"merged_at": "2020-10-08T21:12:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36967.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36967"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36968
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36968/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36968/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36968/events
|
https://github.com/pandas-dev/pandas/pull/36968
| 717,015,034
|
MDExOlB1bGxSZXF1ZXN0NDk5NjUxNjcz
| 36,968
|
REF: de-duplicate skipna logic
|
{
"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-10-08T04:41:24Z
| 2020-10-08T05:19:13Z
| 2020-10-08T05:19:13Z
|
MEMBER
| null |
De-duplicate logic in handling skipna
inside methods any() and all().
- [ ] 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/36968/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36968/timeline
| null | 1
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36968.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36968",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36968.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36968"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36969
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36969/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36969/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36969/events
|
https://github.com/pandas-dev/pandas/pull/36969
| 717,016,815
|
MDExOlB1bGxSZXF1ZXN0NDk5NjUzMTUz
| 36,969
|
DOC: make rename docs consistent
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2754821?v=4",
"events_url": "https://api.github.com/users/erictleung/events{/privacy}",
"followers_url": "https://api.github.com/users/erictleung/followers",
"following_url": "https://api.github.com/users/erictleung/following{/other_user}",
"gists_url": "https://api.github.com/users/erictleung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erictleung",
"id": 2754821,
"login": "erictleung",
"node_id": "MDQ6VXNlcjI3NTQ4MjE=",
"organizations_url": "https://api.github.com/users/erictleung/orgs",
"received_events_url": "https://api.github.com/users/erictleung/received_events",
"repos_url": "https://api.github.com/users/erictleung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erictleung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erictleung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erictleung"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-08T04:46:42Z
| 2020-10-08T22:08:33Z
| 2020-10-08T22:08:27Z
|
CONTRIBUTOR
| null |
Other doc text describing code end in a colon.
- [ ] 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/36969/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36969/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36969.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36969",
"merged_at": "2020-10-08T22:08:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36969.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36969"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36970
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36970/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36970/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36970/events
|
https://github.com/pandas-dev/pandas/issues/36970
| 717,047,285
|
MDU6SXNzdWU3MTcwNDcyODU=
| 36,970
|
DOC: improve description of the examplewhich dataframe has two rows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18483226?v=4",
"events_url": "https://api.github.com/users/yonashub/events{/privacy}",
"followers_url": "https://api.github.com/users/yonashub/followers",
"following_url": "https://api.github.com/users/yonashub/following{/other_user}",
"gists_url": "https://api.github.com/users/yonashub/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yonashub",
"id": 18483226,
"login": "yonashub",
"node_id": "MDQ6VXNlcjE4NDgzMjI2",
"organizations_url": "https://api.github.com/users/yonashub/orgs",
"received_events_url": "https://api.github.com/users/yonashub/received_events",
"repos_url": "https://api.github.com/users/yonashub/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yonashub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yonashub/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yonashub"
}
|
[
{
"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 | 0
| 2020-10-08T05:59:57Z
| 2020-10-11T19:38:46Z
| 2020-10-11T19:38:46Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
[this should provide the location of the documentation, e.g. "pandas.read_csv" or the URL of the documentation, e.g. "https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.mode.html"]
**Note**: You can check the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/).
#### Documentation problem
[this should provide a description of what documentation you believe needs to be fixed/improved]
... but the DataFrame has two rows. it is not clear which dataframe it refers to.
#### Suggested fix for documentation
[this should explain the suggested fix and **why** it's better than the existing documentation]
... but the resulting DataFrame has two rows.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36970/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36970/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36971
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36971/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36971/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36971/events
|
https://github.com/pandas-dev/pandas/pull/36971
| 717,056,383
|
MDExOlB1bGxSZXF1ZXN0NDk5Njg2NTM5
| 36,971
|
DOC: improve description of the example which dataframe has two rows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18483226?v=4",
"events_url": "https://api.github.com/users/yonashub/events{/privacy}",
"followers_url": "https://api.github.com/users/yonashub/followers",
"following_url": "https://api.github.com/users/yonashub/following{/other_user}",
"gists_url": "https://api.github.com/users/yonashub/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yonashub",
"id": 18483226,
"login": "yonashub",
"node_id": "MDQ6VXNlcjE4NDgzMjI2",
"organizations_url": "https://api.github.com/users/yonashub/orgs",
"received_events_url": "https://api.github.com/users/yonashub/received_events",
"repos_url": "https://api.github.com/users/yonashub/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yonashub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yonashub/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yonashub"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 2
| 2020-10-08T06:17:46Z
| 2020-10-11T19:39:17Z
| 2020-10-11T19:38:46Z
|
CONTRIBUTOR
| null |
improve description of the example which dataframe has two rows
- [ ] closes #36970
- [ ] 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/36971/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36971/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36971.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36971",
"merged_at": "2020-10-11T19:38:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36971.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36971"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36972
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36972/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36972/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36972/events
|
https://github.com/pandas-dev/pandas/issues/36972
| 717,097,038
|
MDU6SXNzdWU3MTcwOTcwMzg=
| 36,972
|
BUG: warning when using colors 'CN'
|
{
"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": "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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
|
{
"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-10-08T07:28:24Z
| 2020-10-10T22:33:15Z
| 2020-10-10T22:33:15Z
|
MEMBER
| 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.
- [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 matplotlib.pyplot as plt
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randn(10, 3), columns=["a", "b", "c"])
df.plot(color='C0')
plt.show()
```
#### Problem description
On master branch when executing the code above the following warning is raised.
```
workspaces/pandas/pandas/plotting/_matplotlib/style.py:64: MatplotlibDeprecationWarning: Support for uppercase single-letter colors is deprecated since Matplotlib 3.1 and will be removed in 3.3; please use lowercase instead.
[conv.to_rgba(c) for c in colors]
```
#### Expected Output
Expected no warnings.
Related issue: https://github.com/pandas-dev/pandas/issues/15516. The feature with "CN"-like colors was introduced in https://github.com/pandas-dev/pandas/pull/15873.
I figured out that the problem lies in the line
```
maybe_color_cycle = _maybe_valid_colors(list(colors))
```
So, if colors is "C0", then it is split into ["C", "0"].
I will fix it.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.3.final.0
python-bits : 32
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : English_United States.1251
pandas : 1.0.5
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 19.2.3
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.5.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36972/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36972/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36973
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36973/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36973/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36973/events
|
https://github.com/pandas-dev/pandas/issues/36973
| 717,119,377
|
MDU6SXNzdWU3MTcxMTkzNzc=
| 36,973
|
BUG: merge with MultiIndex including a CategoricalIndex returns wrong result when values are ordered specifically
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1679183?v=4",
"events_url": "https://api.github.com/users/ant1j/events{/privacy}",
"followers_url": "https://api.github.com/users/ant1j/followers",
"following_url": "https://api.github.com/users/ant1j/following{/other_user}",
"gists_url": "https://api.github.com/users/ant1j/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ant1j",
"id": 1679183,
"login": "ant1j",
"node_id": "MDQ6VXNlcjE2NzkxODM=",
"organizations_url": "https://api.github.com/users/ant1j/orgs",
"received_events_url": "https://api.github.com/users/ant1j/received_events",
"repos_url": "https://api.github.com/users/ant1j/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ant1j/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ant1j/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ant1j"
}
|
[
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22553685?v=4",
"events_url": "https://api.github.com/users/tim-tran/events{/privacy}",
"followers_url": "https://api.github.com/users/tim-tran/followers",
"following_url": "https://api.github.com/users/tim-tran/following{/other_user}",
"gists_url": "https://api.github.com/users/tim-tran/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tim-tran",
"id": 22553685,
"login": "tim-tran",
"node_id": "MDQ6VXNlcjIyNTUzNjg1",
"organizations_url": "https://api.github.com/users/tim-tran/orgs",
"received_events_url": "https://api.github.com/users/tim-tran/received_events",
"repos_url": "https://api.github.com/users/tim-tran/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tim-tran/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tim-tran/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tim-tran"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/22553685?v=4",
"events_url": "https://api.github.com/users/tim-tran/events{/privacy}",
"followers_url": "https://api.github.com/users/tim-tran/followers",
"following_url": "https://api.github.com/users/tim-tran/following{/other_user}",
"gists_url": "https://api.github.com/users/tim-tran/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tim-tran",
"id": 22553685,
"login": "tim-tran",
"node_id": "MDQ6VXNlcjIyNTUzNjg1",
"organizations_url": "https://api.github.com/users/tim-tran/orgs",
"received_events_url": "https://api.github.com/users/tim-tran/received_events",
"repos_url": "https://api.github.com/users/tim-tran/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tim-tran/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tim-tran/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tim-tran"
}
] |
{
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
}
| 2
| 2020-10-08T08:03:50Z
| 2021-09-07T14:11:56Z
| 2021-09-07T14:11:56Z
|
NONE
| null |
#### Code Sample
```python
import pandas as pd
import numpy as np
c1 = ['A', 'C', 'C', 'D' ]
c2 = ['P2', 'P2', 'P1', 'P2']
df1 = pd.DataFrame({
'id': c1[1:],
'p': c2[1:],
'a': np.arange(len(c1[1:])),
})
df2 = pd.DataFrame({
'id': c1[:-1],
'p': c2[:-1],
'd1': np.arange(10, 10+len(c1[:-1])),
})
# ordered=True doesn't change the result
pcat = pd.api.types.CategoricalDtype(categories=['P2', 'P1'], ordered=False)
df1['p'] = df1['p'].astype(pcat)
df2['p'] = df2['p'].astype(pcat)
df1 = df1.set_index(['id', 'p'])
df2 = df2.set_index(['id', 'p'])
result = pd.merge(df1, df2, how='left', left_index=True, right_index=True)
print(df1)
print(df2)
# ('C', 'P1') is in both dataframes and should therefore be merged accordingly
print(result)
```
output:
```
a
id p
C P2 0
P1 1
D P2 2
d1
id p
A P2 10
C P2 11
P1 12
a d1
id p
C P2 0 11.0
P1 1 NaN ## <- Should be 12.0
D P2 2 NaN
```
#### Problem description
The merge should not return NaN for the ('C', 'P1') value available in df2 for the left merge.
This happens only:
- when `p` is Categorical: leaving the column as object/string gives the right result
- when category values are ordered as such (decreasing lexicographic order), **but** the `ordered` argument does not change the result
- when the `id` values are as such: changing the 'C' in 'E' or anything "above" gives the right result (!)
#### Expected Output
```
a d1
id p
C P2 0 11.0
P1 1 12.0
D P2 2 NaN
```
#### First level of investigations
Using a debugger and following the code execution:
- when the error occurs: in Index.join(), it goes here to: https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexes/base.py#L3537
```python
elif not self.is_unique or not other.is_unique:
if self.is_monotonic and other.is_monotonic:
return self._join_monotonic( ### <- HERE
other, how=how, return_indexers=return_indexers
)
```
It seems it uses the wrong branch/case.
- when the error does not occurs (e.g. swapping the values in the CategoricalDType declaration): https://github.com/pandas-dev/pandas/blob/master/pandas/core/indexes/base.py#L3578
```python
if return_indexers:
if join_index is self:
lindexer = None
else:
lindexer = self.get_indexer(join_index)
if join_index is other:
rindexer = None
else:
rindexer = other.get_indexer(join_index) ### <- HERE
return join_index, lindexer, rindexer
else:
return join_index
```
This is how far I can get.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 2a7d3326dee660824a8433ffd01065f8ac37f7d6
python : 3.8.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : fr_FR.cp1252
pandas : 1.1.2
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36973/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36973/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36974
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36974/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36974/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36974/events
|
https://github.com/pandas-dev/pandas/issues/36974
| 717,125,672
|
MDU6SXNzdWU3MTcxMjU2NzI=
| 36,974
|
BUG: InvalidIndexError when doing fillna with index that is repeated in df but not in fillna argument
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7209800?v=4",
"events_url": "https://api.github.com/users/pablobd/events{/privacy}",
"followers_url": "https://api.github.com/users/pablobd/followers",
"following_url": "https://api.github.com/users/pablobd/following{/other_user}",
"gists_url": "https://api.github.com/users/pablobd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pablobd",
"id": 7209800,
"login": "pablobd",
"node_id": "MDQ6VXNlcjcyMDk4MDA=",
"organizations_url": "https://api.github.com/users/pablobd/orgs",
"received_events_url": "https://api.github.com/users/pablobd/received_events",
"repos_url": "https://api.github.com/users/pablobd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pablobd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pablobd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pablobd"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] |
open
| false
| null |
[] | null | 2
| 2020-10-08T08:13:58Z
| 2020-10-09T13:55:24Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
I get an InvalidIndexError on pandas 1.0.3 when doing fillna to a DataFrame with repeated indexes and using a DataFrame with the same index but without repetitions. I've also tested this use case in pandas 1.1.3 (latest as today)
#### Code Sample, a copy-pastable example
```python
df = pd.DataFrame({"a": 100*(list(range(10))+[None,None,None,None])}).sample(1000, random_state=12).set_index(pd.Series(list(range(100)) * 10, name = "my_index"))
df_fillna = pd.DataFrame({"a": list(range(100))}, index=list(range(100)))
df.fillna(df_fillna)
```
I expect to get a DF with each NaN with index i (there could be more than one) replaced with the unique value in df_fillna with index i but I get an InvalidIndexError.
#### Problem description
The output is an InvalidIndexError.
#### Expected Output
I would expect to replace each NaN with index i (there could be more than one) with the unique value in df_fillna with index i. So, the same as I get when doing this:
```python
df = pd.DataFrame({"a": 100*(list(range(10))+[None,None,None,None])}).sample(1000, random_state=12).set_index(pd.Series(list(range(100)) * 10, name = "my_index"))
df_fillna = pd.DataFrame({"a": list(range(100))*10}, index=list(range(100))*10)
df.fillna(df_fillna)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.0
pytz : 2019.3
dateutil : 2.8.1
pip : 20.2.3
setuptools : 39.1.0
Cython : 0.29.21
pytest : 6.0.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : 0.9.3
psycopg2 : 2.8.2 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 6.0.2
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : 1.2.16
tables : None
tabulate : 0.8.3
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : 0.51.2
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36974/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36974/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36975
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36975/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36975/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36975/events
|
https://github.com/pandas-dev/pandas/issues/36975
| 717,199,189
|
MDU6SXNzdWU3MTcxOTkxODk=
| 36,975
|
BUG: mask() and where() do not work pandas.core.arrays.boolean.BooleanDtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5946712?v=4",
"events_url": "https://api.github.com/users/DriesSchaumont/events{/privacy}",
"followers_url": "https://api.github.com/users/DriesSchaumont/followers",
"following_url": "https://api.github.com/users/DriesSchaumont/following{/other_user}",
"gists_url": "https://api.github.com/users/DriesSchaumont/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DriesSchaumont",
"id": 5946712,
"login": "DriesSchaumont",
"node_id": "MDQ6VXNlcjU5NDY3MTI=",
"organizations_url": "https://api.github.com/users/DriesSchaumont/orgs",
"received_events_url": "https://api.github.com/users/DriesSchaumont/received_events",
"repos_url": "https://api.github.com/users/DriesSchaumont/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DriesSchaumont/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DriesSchaumont/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DriesSchaumont"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-10-08T09:58:38Z
| 2020-10-09T09:39:54Z
| 2020-10-08T13:31:22Z
|
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
This does not work:
```python
>>> import pandas as pd
>>> index = pd.MultiIndex.from_arrays([['a', 'a', 'b'], ['c', 'd', 'e']], names=['level1', 'level2'])
>>> test = pd.DataFrame([[1, 2],[3, 4],[5, 6]], index=index, dtype=pd.UInt32Dtype())
>>> column_sums = test.sum(level='level1')
>>> to_remove = column_sums < 100
>>> test.mask(to_remove, inplace=True, level='level1', axis=0, other=pd.NA)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "./site-packages/pandas/core/generic.py", line 9034, in mask
return self.where(
File "./site-packages/pandas/core/generic.py", line 9004, in where
return self._where(
File "./site-packages/pandas/core/generic.py", line 8854, in _where
new_data = self._mgr.putmask(
File "./site-packages/pandas/core/internals/managers.py", line 547, in putmask
return self.apply(
File "./site-packages/pandas/core/internals/managers.py", line 406, in apply
applied = getattr(b, f)(**kwargs)
File "./site-packages/pandas/core/internals/blocks.py", line 1606, in putmask
mask = _extract_bool_array(mask)
File "./site-packages/pandas/core/internals/blocks.py", line 2869, in _extract_bool_array
assert mask.dtype == bool, mask.dtype
AssertionError: object
```
This does work:
```python
>>> import pandas as pd
>>> index = pd.MultiIndex.from_arrays([['a', 'a', 'b'], ['c', 'd', 'e']], names=['level1', 'level2'])
>>> test = pd.DataFrame([[1, 2],[3, 4],[5, 6]], index=index, dtype=pd.UInt32Dtype())
>>> column_sums = test.sum(level='level1')
>>> to_remove = (column_sums < 100).astype(bool)
>>> test.mask(to_remove, inplace=True, level='level1', axis=0, other=pd.NA)
>>> test.info()
<class 'pandas.core.frame.DataFrame'>
MultiIndex: 3 entries, ('a', 'c') to ('b', 'e')
Data columns (total 2 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 0 0 non-null UInt32
1 1 0 non-null UInt32
dtypes: UInt32(2)
memory usage: 346.0+ bytes
```
#### Problem description
Using mask() or where() with the BooleanDtype as condition raises an AssertionError.
#### Expected Output
mask() and where() should work with both the bool and the pandas.core.arrays.boolean.BooleanDtype dtype.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-42-generic
Version : #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 44.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 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/36975/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36975/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36976
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36976/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36976/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36976/events
|
https://github.com/pandas-dev/pandas/issues/36976
| 717,231,702
|
MDU6SXNzdWU3MTcyMzE3MDI=
| 36,976
|
BUG:300
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30919880?v=4",
"events_url": "https://api.github.com/users/GB-kushagra/events{/privacy}",
"followers_url": "https://api.github.com/users/GB-kushagra/followers",
"following_url": "https://api.github.com/users/GB-kushagra/following{/other_user}",
"gists_url": "https://api.github.com/users/GB-kushagra/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GB-kushagra",
"id": 30919880,
"login": "GB-kushagra",
"node_id": "MDQ6VXNlcjMwOTE5ODgw",
"organizations_url": "https://api.github.com/users/GB-kushagra/orgs",
"received_events_url": "https://api.github.com/users/GB-kushagra/received_events",
"repos_url": "https://api.github.com/users/GB-kushagra/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GB-kushagra/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GB-kushagra/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GB-kushagra"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-10-08T10:45:44Z
| 2020-10-08T13:34:09Z
| 2020-10-08T13:34:08Z
|
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
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36976/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36976/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36977
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36977/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36977/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36977/events
|
https://github.com/pandas-dev/pandas/issues/36977
| 717,241,738
|
MDU6SXNzdWU3MTcyNDE3Mzg=
| 36,977
|
rename function with agg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49912455?v=4",
"events_url": "https://api.github.com/users/Jacques2101/events{/privacy}",
"followers_url": "https://api.github.com/users/Jacques2101/followers",
"following_url": "https://api.github.com/users/Jacques2101/following{/other_user}",
"gists_url": "https://api.github.com/users/Jacques2101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Jacques2101",
"id": 49912455,
"login": "Jacques2101",
"node_id": "MDQ6VXNlcjQ5OTEyNDU1",
"organizations_url": "https://api.github.com/users/Jacques2101/orgs",
"received_events_url": "https://api.github.com/users/Jacques2101/received_events",
"repos_url": "https://api.github.com/users/Jacques2101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Jacques2101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jacques2101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Jacques2101"
}
|
[
{
"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 | 8
| 2020-10-08T11:01:20Z
| 2020-10-08T18:10:47Z
| 2020-10-08T15:30:38Z
|
NONE
| null |
I just update to 1.1.3 and it seems that there is a problem (bug?) to rename function after an aggregate call. All the functions call are named <lambda> so I can't use rename as previously.
How can I do to rename my function ?
I cannot do anymore
```
.rename(columns={'<lambda_0>': 'function 0',
'<lambda_1>': 'function 1',....
```
(this is of course an example of functions names)
```python
import pandas as pd
pdf = pd.DataFrame([[4, 9]] * 3, columns=['A', 'B'])
pdf.agg(["sum", lambda df: df.sum(), lambda df: df.sum()])
```
#### Output
A B
sum 12 27
<lambda> 12 27
<lambda> 12 27
#### Expected Output
A B
sum 12 27
<lambda_0> 12 27
<lambda_1> 12 27
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 50.3.0.post20201006
Cython : None
pytest : None
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: 0.9.0
bs4 : 4.9.1
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.0
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : 0.16.1
xlrd : 1.2.0
xlwt : None
numba : None
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36977/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36977/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36978
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36978/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36978/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36978/events
|
https://github.com/pandas-dev/pandas/pull/36978
| 717,243,198
|
MDExOlB1bGxSZXF1ZXN0NDk5ODM4NjYx
| 36,978
|
CI Upgrade isort in pre-commit
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41241424?v=4",
"events_url": "https://api.github.com/users/Tazminia/events{/privacy}",
"followers_url": "https://api.github.com/users/Tazminia/followers",
"following_url": "https://api.github.com/users/Tazminia/following{/other_user}",
"gists_url": "https://api.github.com/users/Tazminia/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Tazminia",
"id": 41241424,
"login": "Tazminia",
"node_id": "MDQ6VXNlcjQxMjQxNDI0",
"organizations_url": "https://api.github.com/users/Tazminia/orgs",
"received_events_url": "https://api.github.com/users/Tazminia/received_events",
"repos_url": "https://api.github.com/users/Tazminia/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Tazminia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tazminia/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Tazminia"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 6
| 2020-10-08T11:03:24Z
| 2020-10-08T17:43:10Z
| 2020-10-08T17:42:46Z
|
CONTRIBUTOR
| null |
- xref #36879
```console
(base) root@ada0229371a4:/home/pandas-tazminia# pre-commit autoupdate && pre-commit run --all
Updating https://github.com/python/black ... [INFO] Initializing environment for https://github.com/python/black.
already up to date.
Updating https://gitlab.com/pycqa/flake8 ... [INFO] Initializing environment for https://gitlab.com/pycqa/flake8.
already up to date.
Updating https://github.com/PyCQA/isort ... [INFO] Initializing environment for https://github.com/PyCQA/isort.
updating 5.2.2 -> 5.6.0.
Updating https://github.com/asottile/pyupgrade ... [INFO] Initializing environment for https://github.com/asottile/pyupgrade.
already up to date.
Updating https://github.com/pre-commit/pygrep-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks.
already up to date.
Updating https://github.com/asottile/yesqa ... [INFO] Initializing environment for https://github.com/asottile/yesqa.
already up to date.
Updating https://github.com/pre-commit/pre-commit-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
already up to date.
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8:flake8-comprehensions>=3.1.0.
[INFO] Installing environment for https://github.com/python/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/yesqa.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
black....................................................................Passed
flake8...................................................................Passed
flake8-pyx...............................................................Passed
flake8-pxd...............................................................Passed
isort....................................................................Passed
pyupgrade................................................................Passed
rst ``code`` is two backticks............................................Passed
Generate pip dependency from conda.......................................Passed
Strip unnecessary `# noqa`s..............................................Passed
Fix End of Files.........................................................Passed
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36978/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36978/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36978.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36978",
"merged_at": "2020-10-08T17:42:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36978.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36978"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36979
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36979/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36979/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36979/events
|
https://github.com/pandas-dev/pandas/pull/36979
| 717,262,076
|
MDExOlB1bGxSZXF1ZXN0NDk5ODU0MjY0
| 36,979
|
CLN: re-wrap docstrings in pandas\compat\numpy\function.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 9
| 2020-10-08T11:31:06Z
| 2020-10-10T19:43:44Z
| 2020-10-10T17:32:46Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36979/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36979/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36979.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36979",
"merged_at": "2020-10-10T17:32:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36979.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36979"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/36980
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36980/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36980/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36980/events
|
https://github.com/pandas-dev/pandas/issues/36980
| 717,303,778
|
MDU6SXNzdWU3MTczMDM3Nzg=
| 36,980
|
BUG: Pandas closes user-provided file handles that it doesn't own.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2989900?v=4",
"events_url": "https://api.github.com/users/tpllaha/events{/privacy}",
"followers_url": "https://api.github.com/users/tpllaha/followers",
"following_url": "https://api.github.com/users/tpllaha/following{/other_user}",
"gists_url": "https://api.github.com/users/tpllaha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tpllaha",
"id": 2989900,
"login": "tpllaha",
"node_id": "MDQ6VXNlcjI5ODk5MDA=",
"organizations_url": "https://api.github.com/users/tpllaha/orgs",
"received_events_url": "https://api.github.com/users/tpllaha/received_events",
"repos_url": "https://api.github.com/users/tpllaha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tpllaha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tpllaha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tpllaha"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-10-08T12:33:43Z
| 2020-11-04T04:09:17Z
| 2020-11-04T04:09:17Z
|
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.
---
`read_csv` closes user-provided file handles in specific cases. In particular, if we pass a `BytesIO` or a file opened in binary mode, **and** pass an `encoding` kwarg. If the `encoding` kwarg is not passed, pandas does not close the file handle (as expected).
Much earlier (in 2016) a related [issue](https://github.com/pandas-dev/pandas/issues/14418) has been reported and fixed. The test cases that were mentioned there still pass today, but only in case the file handle is opened in binary mode & the `encoding` kwarg is passed. (version `1.1.2` & python `3.8.5`)
#### Code Sample, a copy-pastable example
```python
import sys
import pandas
from io import BytesIO, StringIO
print(f'Python version: {sys.version}')
print(f'pandas version: {pandas.__version__}')
string_io = StringIO('a,b\n1,2')
bytes_io_1 = BytesIO(b'a,b\n1,2')
bytes_io_2 = BytesIO(b'a,b\n1,2')
pandas.read_csv(string_io)
print(f'Was StringIO closed? - {string_io.closed}')
pandas.read_csv(bytes_io_1)
print(f'Was BytesIO closed when encoding is NOT passed? - {bytes_io_1.closed}')
pandas.read_csv(bytes_io_2, encoding='utf-8')
print(f'Was BytesIO closed when encoding is passed? - {bytes_io_2.closed}')
```
prints:
```
Python version: 3.8.5 (v3.8.5:580fbb018f, Jul 20 2020, 12:11:27)
[Clang 6.0 (clang-600.0.57)]
pandas version: 1.1.2
Was StringIO closed? - False
Was BytesIO closed when encoding is NOT passed? - False
Was BytesIO closed when encoding is passed? - True
^
```
#### Problem description
Expectation is that pandas should never close user-provided handles. If pandas didn't open the file, then it doesn't own it & therefore shouldn't close it.
#### Expected Output
I would expect the script above to output:
```
Python version: 3.8.5 (v3.8.5:580fbb018f, Jul 20 2020, 12:11:27)
[Clang 6.0 (clang-600.0.57)]
pandas version: 1.1.2
Was StringIO closed? - False
Was BytesIO closed when encoding is NOT passed? - False
Was BytesIO closed when encoding is passed? - False
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.5.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 : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.17.2
pytz : 2020.1
dateutil : 2.7.3
pip : 20.2.3
setuptools : 40.7.1
Cython : 0.29.7
pytest : 4.6.5
hypothesis : 4.55.2
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.2
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : 0.3.5
scipy : 1.5.2
sqlalchemy : 1.3.10
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/36980/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36980/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36981
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36981/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36981/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36981/events
|
https://github.com/pandas-dev/pandas/pull/36981
| 717,309,849
|
MDExOlB1bGxSZXF1ZXN0NDk5ODkzNzU0
| 36,981
|
BUG: fix matplotlib warning on CN color
|
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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"
}
| 10
| 2020-10-08T12:42:03Z
| 2020-10-20T11:37:15Z
| 2020-10-10T22:33:16Z
|
MEMBER
| null |
- [ ] closes #36972
- [ ] 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/36981/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36981/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36981.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36981",
"merged_at": "2020-10-10T22:33:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36981.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36981"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36982
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36982/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36982/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36982/events
|
https://github.com/pandas-dev/pandas/pull/36982
| 717,418,085
|
MDExOlB1bGxSZXF1ZXN0NDk5OTgzOTIx
| 36,982
|
FIX: fix cleanup warnings for errorbar timeseries
|
{
"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": "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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"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"
}
| 12
| 2020-10-08T14:52:03Z
| 2020-10-10T18:11:39Z
| 2020-10-10T17:33:48Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Currently in ``pandas/tests/plotting/tests_frame.py`` there are several warnings emitted.
```
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_mpl2_color_cycle_str
/workspaces/pandas/pandas/plotting/_matplotlib/style.py:64: MatplotlibDeprecationWarning: Support for uppercase single-letter colors is deprecated since Matplotlib 3.1 and will be removed in 3.3; please use lowercase instead.
[conv.to_rgba(c) for c in colors]
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_errorbar_plot
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_errorbar_plot
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_errorbar_plot
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_errorbar_timeseries
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_errorbar_timeseries
pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_errorbar_timeseries
/workspaces/pandas/pandas/plotting/_matplotlib/__init__.py:61: UserWarning: To output multiple subplots, the figure containing the passed axes is being cleared
plot_obj.generate()
-- Docs: https://docs.pytest.org/en/stable/warnings.html
```
This PR handles warnings in ``test_errorbar_timeseries``.
If this approach is considered reasonable by the reviewers, then I will do the same for ``test_errorbar_plot`` as well as other similar warnings among the plotting-related tests.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36982/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36982/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36982.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36982",
"merged_at": "2020-10-10T17:33:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36982.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36982"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36983
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36983/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36983/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36983/events
|
https://github.com/pandas-dev/pandas/issues/36983
| 717,447,783
|
MDU6SXNzdWU3MTc0NDc3ODM=
| 36,983
|
BUG: Index of an empty Series cannot be compared to a Timestamp anymore
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33315687?v=4",
"events_url": "https://api.github.com/users/gabicca/events{/privacy}",
"followers_url": "https://api.github.com/users/gabicca/followers",
"following_url": "https://api.github.com/users/gabicca/following{/other_user}",
"gists_url": "https://api.github.com/users/gabicca/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gabicca",
"id": 33315687,
"login": "gabicca",
"node_id": "MDQ6VXNlcjMzMzE1Njg3",
"organizations_url": "https://api.github.com/users/gabicca/orgs",
"received_events_url": "https://api.github.com/users/gabicca/received_events",
"repos_url": "https://api.github.com/users/gabicca/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gabicca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gabicca/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gabicca"
}
|
[] |
closed
| false
| null |
[] | null | 8
| 2020-10-08T15:27:56Z
| 2020-10-10T21:26:12Z
| 2020-10-10T21:15:42Z
|
CONTRIBUTOR
| null |
- [Y] I have checked that this issue has not already been reported.
- [Y] 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
def test_series_timestamp_comparison():
my_series = pd.Series([], dtype=np.float64)
date = pd.Timestamp('2015-07-15 00:00:00')
res = my_series.index < date
assert res.dtype == bool
assert len(res) == 0
```
#### Problem description
In pandas 1.1.2 the above test passes, while in 1.1.3 it throws an error on line 5:
Error in 1.1.3:
TypeError: '<' not supported between instances of 'numpy.ndarray' and 'Timestamp'
As far as I can tell, this started to occur because of a change in pandas.core.indexes.base._make_comparison_op,
which change was added by this PR: https://github.com/pandas-dev/pandas/pull/36440
My question is if the new behaviour is legit for the above comparison, is it expected?
In 1.1.2 this comparison didn't fail, because it would end up in
```
else:
with np.errstate(all="ignore"):
result = op(self._values, np.asarray(other))
```
which was changed to:
```
elif is_interval_dtype(self.dtype):
with np.errstate(all="ignore"):
result = op(self._values, np.asarray(other))
```
and the else part started to use ops.comparison_op which now fails in the above example (since is_interval_dtype(self.dtype) is false for the above case).
A bit more background: the above comparison is used when subselecting data in the series without knowing whether the input series has data in it or not. So e.g.:
```
my_series[my_series.index < date] = 0.4
```
Apologies if this question has been raised, I couldn't find anything similar in Open Issues.
#### Output of ``pd.show_versions()``
<details>
python : 3.7.4.final.0
pandas : 1.1.3
numpy : 1.19.2
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36983/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36983/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36984
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36984/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36984/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36984/events
|
https://github.com/pandas-dev/pandas/issues/36984
| 717,539,292
|
MDU6SXNzdWU3MTc1MzkyOTI=
| 36,984
|
BUG: replacing a string with None causes an unexpected forward fill
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8465611?v=4",
"events_url": "https://api.github.com/users/PedroGFonseca/events{/privacy}",
"followers_url": "https://api.github.com/users/PedroGFonseca/followers",
"following_url": "https://api.github.com/users/PedroGFonseca/following{/other_user}",
"gists_url": "https://api.github.com/users/PedroGFonseca/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PedroGFonseca",
"id": 8465611,
"login": "PedroGFonseca",
"node_id": "MDQ6VXNlcjg0NjU2MTE=",
"organizations_url": "https://api.github.com/users/PedroGFonseca/orgs",
"received_events_url": "https://api.github.com/users/PedroGFonseca/received_events",
"repos_url": "https://api.github.com/users/PedroGFonseca/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PedroGFonseca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PedroGFonseca/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PedroGFonseca"
}
|
[
{
"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": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] |
open
| false
| null |
[] | null | 4
| 2020-10-08T17:41:41Z
| 2021-08-13T04:23:35Z
| null |
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
df = pd.DataFrame(np.zeros((3, 3)))
df.iloc[2, 2] = ''
df = df.replace('', None)
print(df.iloc[2, 2] == '') # prints False
print(df.iloc[2, 2] == df.iloc[1, 2]) # prints True
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
#### Expected Output
Replacing a string with a None should introduce a None, not forward fill the previous result.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.6.5.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.3
numpy : 1.19.2
pytz : 2018.9
dateutil : 2.8.1
pip : 20.2
setuptools : 49.2.0
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : 1.8.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.16
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/36984/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36984/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36985
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36985/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36985/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36985/events
|
https://github.com/pandas-dev/pandas/pull/36985
| 717,580,478
|
MDExOlB1bGxSZXF1ZXN0NTAwMTE4MDgw
| 36,985
|
CLN: move maybe_casted_values from pandas/core/frame.py to pandas/core/dtype/cast.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 5
| 2020-10-08T18:49:26Z
| 2020-10-11T04:01:00Z
| 2020-10-10T22:33:41Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #36876, #27370 (stale 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/36985/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36985/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36985.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36985",
"merged_at": "2020-10-10T22:33:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36985.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36985"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36986
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36986/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36986/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36986/events
|
https://github.com/pandas-dev/pandas/issues/36986
| 717,582,655
|
MDU6SXNzdWU3MTc1ODI2NTU=
| 36,986
|
BUG: ExtensionArray `test_unstack` assumes missing values are nan
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2191259?v=4",
"events_url": "https://api.github.com/users/jrm5100/events{/privacy}",
"followers_url": "https://api.github.com/users/jrm5100/followers",
"following_url": "https://api.github.com/users/jrm5100/following{/other_user}",
"gists_url": "https://api.github.com/users/jrm5100/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jrm5100",
"id": 2191259,
"login": "jrm5100",
"node_id": "MDQ6VXNlcjIxOTEyNTk=",
"organizations_url": "https://api.github.com/users/jrm5100/orgs",
"received_events_url": "https://api.github.com/users/jrm5100/received_events",
"repos_url": "https://api.github.com/users/jrm5100/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jrm5100/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jrm5100/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jrm5100"
}
|
[
{
"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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-08T18:53:08Z
| 2020-10-08T22:01:44Z
| 2020-10-08T22:01:44Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
Running pytest with this fixture:
```python
import random
import pytest
from pandas_genomics import GenotypeDtype, GenotypeArray, Variant
random.seed(1855)
@pytest.fixture
def data():
"""Length-100 array for this type.
* data[0] and data[1] should both be non missing
* data[0] and data[1] should not be equal
"""
alleles = ['A', 'T', 'G']
variant = Variant(variant_id='rs12345', chromosome='chr1', coordinate=123456, alleles=alleles)
genotypes = [variant.make_genotype('A', 'T'), variant.make_genotype('T', 'T')]
for i in range(98):
genotypes.append(variant.make_genotype(random.choice(alleles), random.choice(alleles)))
return GenotypeArray(values=genotypes)
class TestReshaping(base.BaseReshapingTests):
pass
```
#### Problem description
I'm working on an ExtensionArray as part of a package called [pandas-genomics](https://github.com/HallLab/pandas-genomics).
I've almost got all of the ExtensionArray tests passing. It isn't possible to pass `test_unstack` without altering the test itself. For example, the `series-index1` test case fails this assertion:
```python
expected = ser.astype(object).unstack(level=level)
result = result.astype(object)
self.assert_frame_equal(result, expected)
```
In this case, `result` is
```
A B
a A/T <Missing>
b T/T T/T
```
and `expected` is
```
A B
a A/T NaN
b T/T T/T
```
`<Missing>` is the na_value for my ExtensionDtype.
I've confirmed that this is resolved by using fill_value to supply the na_value
```python
expected = ser.astype(object).unstack(level=level, fill_value=data.dtype.na_value)
```
#### Expected Output
Test passes
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.7.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.3
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 19.2.3
setuptools : 41.2.0
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36986/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36986/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36987
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36987/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36987/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36987/events
|
https://github.com/pandas-dev/pandas/pull/36987
| 717,586,761
|
MDExOlB1bGxSZXF1ZXN0NTAwMTIzMzky
| 36,987
|
Fix test_unstack
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2191259?v=4",
"events_url": "https://api.github.com/users/jrm5100/events{/privacy}",
"followers_url": "https://api.github.com/users/jrm5100/followers",
"following_url": "https://api.github.com/users/jrm5100/following{/other_user}",
"gists_url": "https://api.github.com/users/jrm5100/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jrm5100",
"id": 2191259,
"login": "jrm5100",
"node_id": "MDQ6VXNlcjIxOTEyNTk=",
"organizations_url": "https://api.github.com/users/jrm5100/orgs",
"received_events_url": "https://api.github.com/users/jrm5100/received_events",
"repos_url": "https://api.github.com/users/jrm5100/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jrm5100/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jrm5100/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jrm5100"
}
|
[
{
"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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 5
| 2020-10-08T18:58:09Z
| 2020-10-09T15:46:31Z
| 2020-10-08T22:01:44Z
|
CONTRIBUTOR
| null |
The test was failing if the ExtensionDtype had an na_value that wasn't equivalent to nan
- [x] closes #36986
- [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/36987/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36987/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36987.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36987",
"merged_at": "2020-10-08T22:01:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36987.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36987"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36988
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36988/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36988/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36988/events
|
https://github.com/pandas-dev/pandas/pull/36988
| 717,592,791
|
MDExOlB1bGxSZXF1ZXN0NTAwMTI4NDQ4
| 36,988
|
DOC: Added indexing views to roadmap
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "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": "1d76db",
"default": false,
"description": "A proposal for the roadmap.",
"id": 1653939309,
"name": "Roadmap",
"node_id": "MDU6TGFiZWwxNjUzOTM5MzA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Roadmap"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-10-08T19:08:16Z
| 2020-10-19T21:25:20Z
| 2020-10-19T21:24:26Z
|
CONTRIBUTOR
| null |
This adds the indexing copy vs. view proposal to the roadmap (#36195).
Given the length of the proposal, I've included a summary in the main `roadmap.rst`, with a link to the full proposal in a second document. Here's the summary:
The major change from the Google doc shared earlier is the recommendation for "Error on Write" over "Copy on Write". I think the proposal should recommend one over the other, and I think "error on write" is probably the way to go, but I'm fairly uncertain on this point.
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/36988/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36988/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36988.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36988",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36988.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36988"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36989
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36989/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36989/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36989/events
|
https://github.com/pandas-dev/pandas/pull/36989
| 717,597,629
|
MDExOlB1bGxSZXF1ZXN0NTAwMTMyNDQy
| 36,989
|
TYP: generic, series, frame
|
{
"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"
}
| 0
| 2020-10-08T19:16:38Z
| 2020-10-10T16:24:50Z
| 2020-10-10T16:23:27Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @simonjayhawkins
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36989/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36989/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36989.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36989",
"merged_at": "2020-10-10T16:23:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36989.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36989"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36990
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36990/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36990/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36990/events
|
https://github.com/pandas-dev/pandas/pull/36990
| 717,641,249
|
MDExOlB1bGxSZXF1ZXN0NTAwMTY5Mzcy
| 36,990
|
TYP: sas, stata, style
|
{
"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"
}
| 2
| 2020-10-08T20:28:13Z
| 2020-10-10T18:08:02Z
| 2020-10-10T17:48:33Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36990/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36990/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36990.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36990",
"merged_at": "2020-10-10T17:48:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36990.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36990"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36991
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36991/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36991/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36991/events
|
https://github.com/pandas-dev/pandas/issues/36991
| 717,643,339
|
MDU6SXNzdWU3MTc2NDMzMzk=
| 36,991
|
BUG: MultiIndex loses category after .stack()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/72578587?v=4",
"events_url": "https://api.github.com/users/maroth96/events{/privacy}",
"followers_url": "https://api.github.com/users/maroth96/followers",
"following_url": "https://api.github.com/users/maroth96/following{/other_user}",
"gists_url": "https://api.github.com/users/maroth96/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maroth96",
"id": 72578587,
"login": "maroth96",
"node_id": "MDQ6VXNlcjcyNTc4NTg3",
"organizations_url": "https://api.github.com/users/maroth96/orgs",
"received_events_url": "https://api.github.com/users/maroth96/received_events",
"repos_url": "https://api.github.com/users/maroth96/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maroth96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maroth96/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maroth96"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 3
| 2020-10-08T20:31:37Z
| 2021-03-10T13:55:50Z
| 2021-03-10T13:55:50Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```
import pandas as pd
columns = pd.MultiIndex.from_tuples(
[('x', 1, 3), ('x', 2, 3), ('y', 1, 3), ('y', 2, 3)], names=['a', 'b', 'c'])
columns = columns.set_levels(
[columns.levels[i].astype('category') for i in range(0, 2)], level=[0, 1])
df = pd.DataFrame([[1, 2, 3, 4]], columns=columns)
dtypes = df.columns.to_frame().dtypes
assert isinstance(dtypes.a, pd.CategoricalDtype)
assert isinstance(dtypes.b, pd.CategoricalDtype)
df2 = df.stack(['a', 'b'])
dtypes2 = df2.index.to_frame().dtypes
assert isinstance(dtypes2.a, pd.CategoricalDtype)
assert isinstance(dtypes2.b, pd.CategoricalDtype) # broken
```
#### Problem description
Categorical types within a MultiIndex should be preserved after calling .stack().
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.7.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.3.0
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
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/36991/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36991/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/36992
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36992/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36992/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36992/events
|
https://github.com/pandas-dev/pandas/pull/36992
| 717,667,992
|
MDExOlB1bGxSZXF1ZXN0NTAwMTkxNjYw
| 36,992
|
Backport PR #36946 on branch 1.1.x (REGR: Make DateOffset immutable)
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 0
| 2020-10-08T21:11:31Z
| 2020-10-09T11:20:34Z
| 2020-10-09T11:20:34Z
|
NONE
| null |
Backport PR #36946: REGR: Make DateOffset immutable
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36992/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36992/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36992.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36992",
"merged_at": "2020-10-09T11:20:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36992.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36992"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36993
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36993/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36993/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36993/events
|
https://github.com/pandas-dev/pandas/pull/36993
| 717,682,772
|
MDExOlB1bGxSZXF1ZXN0NTAwMjA0Mjgw
| 36,993
|
CI: xfail intermittently-failing tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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"
}
| 1
| 2020-10-08T21:38:27Z
| 2020-10-08T23:44:22Z
| 2020-10-08T23:44:11Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Usually I avoid `strict=False` like the plague, but these are a PITA recently.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36993/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36993/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36993.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36993",
"merged_at": "2020-10-08T23:44:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36993.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36993"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36994
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36994/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36994/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36994/events
|
https://github.com/pandas-dev/pandas/pull/36994
| 717,721,032
|
MDExOlB1bGxSZXF1ZXN0NTAwMjM1NDY5
| 36,994
|
TYP/REF: use OpsMixin for arithmetic 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"
}
| 0
| 2020-10-08T22:45:38Z
| 2020-10-10T20:04:36Z
| 2020-10-10T17:41:39Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
We'll be able to use this in DataFrame too following #36843
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36994/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36994/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36994.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36994",
"merged_at": "2020-10-10T17:41:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36994.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36994"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36995
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36995/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36995/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36995/events
|
https://github.com/pandas-dev/pandas/pull/36995
| 717,721,967
|
MDExOlB1bGxSZXF1ZXN0NTAwMjM2Mjg1
| 36,995
|
TYP: IntervalIndex.SetopCheck
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "009800",
"default": false,
"description": "Interval data type",
"id": 150096370,
"name": "Interval",
"node_id": "MDU6TGFiZWwxNTAwOTYzNzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-08T22:47:56Z
| 2020-10-10T18:07:29Z
| 2020-10-10T17:43:05Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Moves us closer to #33455
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36995/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36995/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36995.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36995",
"merged_at": "2020-10-10T17:43:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36995.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36995"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36996
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36996/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36996/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36996/events
|
https://github.com/pandas-dev/pandas/pull/36996
| 717,724,432
|
MDExOlB1bGxSZXF1ZXN0NTAwMjM4Mzk1
| 36,996
|
TYP: untyped decorators
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-10-08T22:54:13Z
| 2021-11-20T23:21:18Z
| 2020-10-09T01:03:32Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
xref #33455, when i use the stub @simonjayhawkins suggested there and put `disallow_untyped_decorators = True` into setup.cfg, this PR gets us down to 27 errors, including
6 from pytest.mark.parametrize
3 from numba.jit
3 from AxisProperty
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36996/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36996/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36996.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36996",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/36996.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36996"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36997
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36997/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36997/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36997/events
|
https://github.com/pandas-dev/pandas/pull/36997
| 717,770,495
|
MDExOlB1bGxSZXF1ZXN0NTAwMjc3MTY1
| 36,997
|
REF/BUG/TYP: read_csv shouldn't close user-provided file handles
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"color": "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"
}
| 11
| 2020-10-09T01:04:08Z
| 2020-11-04T04:13:30Z
| 2020-11-04T04:09:17Z
|
CONTRIBUTOR
| null |
- [x] closes #36980
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
REF/BUG: de-duplicate all file handling in `TextReader` by calling `get_handle` in `CParserWrapper`. ~~When `TextReader` gets a string it uses memory mapping (it is given a file object in all other cases).~~
REF/TYP: The second commit adds a new return value to `get_handle` (whether the buffer is wrapped inside a TextIOWrapper: in that case we cannot close it, we need to detach it (and flush it if we wrote to it)). I made `get_handle` return a typed dataclass `HandleArgs` and made sure that all created handles are in `HandleArgs.created_handles` there is no need to close `HandleArgs.handle` (unless it is created by `get_filename_or_buffer`).
I used asserts for mypy when I'm 100% certain about the type, otherwise I added mypy ignore statements.
In the future it might be good to merge `get_handle` and `get_filename_or_buffer`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36997/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36997/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36997.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36997",
"merged_at": "2020-11-04T04:09:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36997.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36997"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36998
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36998/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36998/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36998/events
|
https://github.com/pandas-dev/pandas/pull/36998
| 717,799,930
|
MDExOlB1bGxSZXF1ZXN0NTAwMzAxNTE1
| 36,998
|
BUG: DataFrame.diff with dt64 and NaTs
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-10-09T02:20:07Z
| 2020-10-10T18:09:04Z
| 2020-10-10T17:40:57Z
|
MEMBER
| null |
- [x] closes #32441
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
There's a related bug in algos.diff, but the elegant solution goes through the cython code, so im doing that in a separate branch.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36998/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36998/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36998.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36998",
"merged_at": "2020-10-10T17:40:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36998.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36998"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36999
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/36999/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36999/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/36999/events
|
https://github.com/pandas-dev/pandas/pull/36999
| 717,809,769
|
MDExOlB1bGxSZXF1ZXN0NTAwMzA5NDAx
| 36,999
|
CLN: Move _aggregate and _aggregate_multiple_funcs to core.aggregation
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"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"
}
| 1
| 2020-10-09T02:52:36Z
| 2020-10-11T13:22:02Z
| 2020-10-09T14:39:39Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Renamed functions by removing underscores and renamed `self` argument to `obj`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/36999/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/36999/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/36999.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/36999",
"merged_at": "2020-10-09T14:39:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/36999.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/36999"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37000
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37000/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37000/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37000/events
|
https://github.com/pandas-dev/pandas/issues/37000
| 717,929,524
|
MDU6SXNzdWU3MTc5Mjk1MjQ=
| 37,000
|
BUG: Pandas Dataframe is converting float variable to integer
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39759685?v=4",
"events_url": "https://api.github.com/users/AslanDevbrat/events{/privacy}",
"followers_url": "https://api.github.com/users/AslanDevbrat/followers",
"following_url": "https://api.github.com/users/AslanDevbrat/following{/other_user}",
"gists_url": "https://api.github.com/users/AslanDevbrat/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AslanDevbrat",
"id": 39759685,
"login": "AslanDevbrat",
"node_id": "MDQ6VXNlcjM5NzU5Njg1",
"organizations_url": "https://api.github.com/users/AslanDevbrat/orgs",
"received_events_url": "https://api.github.com/users/AslanDevbrat/received_events",
"repos_url": "https://api.github.com/users/AslanDevbrat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AslanDevbrat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AslanDevbrat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AslanDevbrat"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-10-09T07:40:53Z
| 2020-10-09T11:39:24Z
| 2020-10-09T11:39:23Z
|
NONE
| null |
- [ Done ] I have checked that this issue has not already been reported.
- [ Done ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
df_mle.at[words_of_bigram[0], words_of_bigram[1]] = (df_bigram.at[i,'BigramCount']/frequencies.at['Frequency',words_of_bigram[0]])
```
#### Problem description
When I assigned the answer of the division which is a decimal value ( like 0.5) then value stored in the df_mle variable is an integer (like 0).
#### Expected Output
print(df_mle.at[words_of_bigram[0], words_of_bigram[1]])
>>> 0.5
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37000/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37000/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37001
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37001/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37001/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37001/events
|
https://github.com/pandas-dev/pandas/issues/37001
| 718,062,767
|
MDU6SXNzdWU3MTgwNjI3Njc=
| 37,001
|
VIS: Allow xlabel and ylabel in DataFrame.plot.scatter plot and hexbin plot
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1574403?v=4",
"events_url": "https://api.github.com/users/treuherz/events{/privacy}",
"followers_url": "https://api.github.com/users/treuherz/followers",
"following_url": "https://api.github.com/users/treuherz/following{/other_user}",
"gists_url": "https://api.github.com/users/treuherz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/treuherz",
"id": 1574403,
"login": "treuherz",
"node_id": "MDQ6VXNlcjE1NzQ0MDM=",
"organizations_url": "https://api.github.com/users/treuherz/orgs",
"received_events_url": "https://api.github.com/users/treuherz/received_events",
"repos_url": "https://api.github.com/users/treuherz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/treuherz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/treuherz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/treuherz"
}
|
[
{
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1574403?v=4",
"events_url": "https://api.github.com/users/treuherz/events{/privacy}",
"followers_url": "https://api.github.com/users/treuherz/followers",
"following_url": "https://api.github.com/users/treuherz/following{/other_user}",
"gists_url": "https://api.github.com/users/treuherz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/treuherz",
"id": 1574403,
"login": "treuherz",
"node_id": "MDQ6VXNlcjE1NzQ0MDM=",
"organizations_url": "https://api.github.com/users/treuherz/orgs",
"received_events_url": "https://api.github.com/users/treuherz/received_events",
"repos_url": "https://api.github.com/users/treuherz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/treuherz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/treuherz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/treuherz"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/1574403?v=4",
"events_url": "https://api.github.com/users/treuherz/events{/privacy}",
"followers_url": "https://api.github.com/users/treuherz/followers",
"following_url": "https://api.github.com/users/treuherz/following{/other_user}",
"gists_url": "https://api.github.com/users/treuherz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/treuherz",
"id": 1574403,
"login": "treuherz",
"node_id": "MDQ6VXNlcjE1NzQ0MDM=",
"organizations_url": "https://api.github.com/users/treuherz/orgs",
"received_events_url": "https://api.github.com/users/treuherz/received_events",
"repos_url": "https://api.github.com/users/treuherz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/treuherz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/treuherz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/treuherz"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-10-09T11:14:05Z
| 2020-10-14T17:54:11Z
| 2020-10-14T17:54:11Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample
```python
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
ax = (pd.DataFrame(np.random.randn(100, 2), columns=['A','B'])
.plot.scatter(
x='A',
y='B',
xlabel='my x label',
ylabel='my y label',
)
)
```
#### Problem description
In #34223 (released in 1.1.0), the ability to set `xlabel` and `ylabel` in `DataFrame.plot()` was added. This works fine when calling `plot()` directly or `df.plot.line()`. When calling `df.plot.scatter()` with these args, you still get the index labels as the axis labels, instead of the strings you pass in.
These args are not documented to be incompatible or unavailable on this function, and no error is printed.

#### Expected Output
The plot's axis labels should be the strings provided, "my x label" and "my y label".
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.1.3
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 50.3.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37001/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37001/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37002
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37002/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37002/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37002/events
|
https://github.com/pandas-dev/pandas/pull/37002
| 718,071,835
|
MDExOlB1bGxSZXF1ZXN0NTAwNTI3MzU5
| 37,002
|
Backport PR #36911: BUG: RollingGroupby not respecting sort=False
|
{
"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": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 1
| 2020-10-09T11:29:48Z
| 2020-10-09T12:19:52Z
| 2020-10-09T12:19:46Z
|
MEMBER
| null |
Backport PR #36911
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37002/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37002/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37002.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37002",
"merged_at": "2020-10-09T12:19:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37002.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37002"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37003
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37003/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37003/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37003/events
|
https://github.com/pandas-dev/pandas/pull/37003
| 718,085,734
|
MDExOlB1bGxSZXF1ZXN0NTAwNTM5MDYw
| 37,003
|
Backport PR #36753 on branch 1.1.x: BUG: Segfault with string Index when using Rolling after Groupby
|
{
"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": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 0
| 2020-10-09T11:54:20Z
| 2020-10-09T13:12:16Z
| 2020-10-09T13:12:10Z
|
MEMBER
| null |
Backport PR #36753 on branch 1.1.x
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37003/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37003/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37003.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37003",
"merged_at": "2020-10-09T13:12:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37003.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37003"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37004
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37004/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37004/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37004/events
|
https://github.com/pandas-dev/pandas/pull/37004
| 718,091,143
|
MDExOlB1bGxSZXF1ZXN0NTAwNTQzNTcw
| 37,004
|
CI: isort fixup on 1.1.x
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 2
| 2020-10-09T12:03:56Z
| 2020-10-09T14:36:31Z
| 2020-10-09T14:36:25Z
|
MEMBER
| null |
isort-5.6.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/37004/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37004/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37004.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37004",
"merged_at": "2020-10-09T14:36:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37004.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37004"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37005
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37005/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37005/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37005/events
|
https://github.com/pandas-dev/pandas/pull/37005
| 718,151,574
|
MDExOlB1bGxSZXF1ZXN0NTAwNTk0MTk2
| 37,005
|
Backport PR #36950 on branch 1.1.x (REGR: Allow positional arguments in DataFrame.agg)
|
{
"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": "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-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 0
| 2020-10-09T13:35:24Z
| 2020-10-09T14:35:07Z
| 2020-10-09T14:35:07Z
|
NONE
| null |
Backport PR #36950: REGR: Allow positional arguments in DataFrame.agg
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37005/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37005/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37005.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37005",
"merged_at": "2020-10-09T14:35:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37005.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37005"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37006
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37006/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37006/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37006/events
|
https://github.com/pandas-dev/pandas/pull/37006
| 718,263,798
|
MDExOlB1bGxSZXF1ZXN0NTAwNjg4NjMw
| 37,006
|
BLD: remove blockslider #34014
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[] |
closed
| false
| null |
[] | null | 4
| 2020-10-09T16:07:22Z
| 2021-01-17T02:37:31Z
| 2021-01-17T02:37:31Z
|
MEMBER
| null |
Part of #34014
xref:
https://github.com/ivirshup/pandas/commit/2c17e72a9deffd8e0d8999b88a2e31c0a58c746c
#34997
Impact on groupby
```
before after ratio
[97877442] [a82d3773]
<master^2> <libreduction-cython>
+ 5.07±0.06ms 43.8±1ms 8.65 groupby.Apply.time_scalar_function_single_col
+ 15.5±0.2ms 108±0.6ms 6.97 groupby.Apply.time_scalar_function_multi_col
+ 453±3ms 508±1ms 1.12 groupby.Apply.time_copy_overhead_single_col
+ 1.44±0.03s 1.61±0.01s 1.12 groupby.Apply.time_copy_function_multi_col
- 26.0±0.7ms 23.4±0.2ms 0.90 groupby.Nth.time_frame_nth_any('float64')
```
Impact on index_cached_properties
```
before after ratio
[97877442] [a82d3773]
<master^2> <libreduction-cython>
+ 401±10ns 862±400ns 2.15 index_cached_properties.IndexCache.time_inferred_type('Int64Index')
+ 397±10ns 649±200ns 1.64 index_cached_properties.IndexCache.time_is_unique('Int64Index')
+ 1.01±0.03μs 1.31±0.2μs 1.30 index_cached_properties.IndexCache.time_values('DatetimeIndex')
+ 3.51±0.2μs 4.55±0.8μs 1.29 index_cached_properties.IndexCache.time_shape('CategoricalIndex')
+ 1.97±0.2μs 2.30±0.2μs 1.17 index_cached_properties.IndexCache.time_inferred_type('MultiIndex')
+ 1.75±0.04μs 2.02±0.2μs 1.15 index_cached_properties.IndexCache.time_shape('DatetimeIndex')
- 1.99±0.3μs 1.58±0.2μs 0.79 index_cached_properties.IndexCache.time_values('UInt64Index')
- 2.33±0.6μs 1.77±0.5μs 0.76 index_cached_properties.IndexCache.time_inferred_type('Float64Index')
```
No significant changes on frame_methods
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37006/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37006/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37006.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37006",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37006.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37006"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37007
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37007/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37007/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37007/events
|
https://github.com/pandas-dev/pandas/pull/37007
| 718,265,460
|
MDExOlB1bGxSZXF1ZXN0NTAwNjkwMDE1
| 37,007
|
DEPR: treating bool-containing ObjectBlock as bool
|
{
"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": "b60205",
"default": false,
"description": "Temporarily-closed PR the author plans to return to",
"id": 1991290519,
"name": "Mothballed",
"node_id": "MDU6TGFiZWwxOTkxMjkwNTE5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Mothballed"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-10-09T16:10:04Z
| 2021-11-20T23:22:47Z
| 2020-10-09T16:29:33Z
|
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/37007/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37007/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37007.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37007",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/37007.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37007"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37008
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37008/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37008/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37008/events
|
https://github.com/pandas-dev/pandas/pull/37008
| 718,278,869
|
MDExOlB1bGxSZXF1ZXN0NTAwNzAxMTEw
| 37,008
|
Add pandas-genomics to the ecosystem list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2191259?v=4",
"events_url": "https://api.github.com/users/jrm5100/events{/privacy}",
"followers_url": "https://api.github.com/users/jrm5100/followers",
"following_url": "https://api.github.com/users/jrm5100/following{/other_user}",
"gists_url": "https://api.github.com/users/jrm5100/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jrm5100",
"id": 2191259,
"login": "jrm5100",
"node_id": "MDQ6VXNlcjIxOTEyNTk=",
"organizations_url": "https://api.github.com/users/jrm5100/orgs",
"received_events_url": "https://api.github.com/users/jrm5100/received_events",
"repos_url": "https://api.github.com/users/jrm5100/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jrm5100/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jrm5100/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jrm5100"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-09T16:31:31Z
| 2020-10-10T17:45:46Z
| 2020-10-10T17:45:43Z
|
CONTRIBUTOR
| null |
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Added [as suggested here](https://github.com/pandas-dev/pandas/pull/36987#pullrequestreview-505157583).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37008/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37008/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37008.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37008",
"merged_at": "2020-10-10T17:45:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37008.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37008"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37009
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37009/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37009/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37009/events
|
https://github.com/pandas-dev/pandas/pull/37009
| 718,283,605
|
MDExOlB1bGxSZXF1ZXN0NTAwNzA0OTc3
| 37,009
|
CLN: standardize values coercion in Blocks
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-09T16:39:36Z
| 2020-10-09T21:25:54Z
| 2020-10-09T21:13:01Z
|
MEMBER
| null |
- [x] closes #19492
- [ ] 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/37009/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37009/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37009.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37009",
"merged_at": "2020-10-09T21:13:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37009.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37009"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37010
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37010/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37010/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37010/events
|
https://github.com/pandas-dev/pandas/pull/37010
| 718,366,659
|
MDExOlB1bGxSZXF1ZXN0NTAwNzczNjU3
| 37,010
|
REF/TYP: consistent return type for Block.replace
|
{
"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"
}
| 1
| 2020-10-09T19:13:07Z
| 2020-10-10T18:08:15Z
| 2020-10-10T17:42:31Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
move some convert logic out of _replace_coerce to avoid an otherwise-duplicated method
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37010/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37010/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37010.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37010",
"merged_at": "2020-10-10T17:42:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37010.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37010"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37011
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37011/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37011/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37011/events
|
https://github.com/pandas-dev/pandas/issues/37011
| 718,376,470
|
MDU6SXNzdWU3MTgzNzY0NzA=
| 37,011
|
BUG: Incorrect data when modifying a dataframe column with +=
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47069922?v=4",
"events_url": "https://api.github.com/users/alexifm/events{/privacy}",
"followers_url": "https://api.github.com/users/alexifm/followers",
"following_url": "https://api.github.com/users/alexifm/following{/other_user}",
"gists_url": "https://api.github.com/users/alexifm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alexifm",
"id": 47069922,
"login": "alexifm",
"node_id": "MDQ6VXNlcjQ3MDY5OTIy",
"organizations_url": "https://api.github.com/users/alexifm/orgs",
"received_events_url": "https://api.github.com/users/alexifm/received_events",
"repos_url": "https://api.github.com/users/alexifm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alexifm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexifm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alexifm"
}
|
[
{
"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": "70e5ca",
"default": false,
"description": "",
"id": 2085877452,
"name": "Copy / view semantics",
"node_id": "MDU6TGFiZWwyMDg1ODc3NDUy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Copy%20/%20view%20semantics"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-10-09T19:32:16Z
| 2020-10-09T21:33:01Z
| 2020-10-09T21:32: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.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
Get the column as a series and modify inplace with `+=`:
```python
In [1]: import pandas as pd
...: df = pd.DataFrame({"col": [1 ,2 ,3, 4]})
...: s = df["col"]
...: s += 1
...: print(s)
...: print(df["col"])
...: print(df[["col"]])
0 2
1 3
2 4
3 5
Name: col, dtype: int64
0 2
1 3
2 4
3 5
Name: col, dtype: int64
col
0 1
1 2
2 3
3 4
```
Modify the column directly with `+=`:
```python
In [2]: import pandas as pd
...: df = pd.DataFrame({"col": [1 ,2 ,3, 4]})
...: df["col"] += 1
...: print(df["col"])
...: print(df[["col"]])
0 2
1 3
2 4
3 5
Name: col, dtype: int64
col
0 2
1 3
2 4
3 5
```
#### Problem description
The data in the column should be consistent whether accessed as `df["col"]` or `df[["col"]]`.
#### Expected Output
Either `+=` modifies the values in the dataframe column or it doesn't but `df["col"]` and `df[["col"]]` should show the same values.
#### Output of ``pd.show_versions()``
```python
In [13]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit : db08276bc116c438d3fdee492026f8223584c477
python : 3.8.5.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.3
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 47.1.0
Cython : 0.29.21
pytest : 5.4.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.2
html5lib : None
pymysql : 0.10.1
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.14.0
pandas_datareader: None
bs4 : None
bottleneck : 1.3.2
fsspec : 0.8.3
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.19
tables : 3.6.1
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : None
```
For master branch:
```python
In [1]: import pandas as pd; pd.show_versions()
INSTALLED VERSIONS
------------------
commit : 9787744272c13a1dcbbcdfc7daaae8cc73ac78a3
python : 3.8.5.final.0
...
pandas : 1.2.0.dev0+684.g978774427
...
```
</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/37011/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37011/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37012
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37012/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37012/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37012/events
|
https://github.com/pandas-dev/pandas/issues/37012
| 718,385,548
|
MDU6SXNzdWU3MTgzODU1NDg=
| 37,012
|
DOC: pandas.Index.astype says it raises ValueError instead of TypeError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1222785?v=4",
"events_url": "https://api.github.com/users/coelhudo/events{/privacy}",
"followers_url": "https://api.github.com/users/coelhudo/followers",
"following_url": "https://api.github.com/users/coelhudo/following{/other_user}",
"gists_url": "https://api.github.com/users/coelhudo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/coelhudo",
"id": 1222785,
"login": "coelhudo",
"node_id": "MDQ6VXNlcjEyMjI3ODU=",
"organizations_url": "https://api.github.com/users/coelhudo/orgs",
"received_events_url": "https://api.github.com/users/coelhudo/received_events",
"repos_url": "https://api.github.com/users/coelhudo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/coelhudo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/coelhudo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/coelhudo"
}
|
[
{
"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 | 0
| 2020-10-09T19:51:01Z
| 2020-10-10T07:40:52Z
| 2020-10-10T07:40:52Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
The documentation is located at https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.astype.html
#### Documentation problem
The documentation says " When conversion is impossible, a ValueError exception is raised." However, checking the code it can be seen that a TypeError is raised instead of ValueError.
#### Suggested fix for documentation
Just change ValueError to TypeError in the docstring.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37012/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37012/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/37013
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37013/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37013/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37013/events
|
https://github.com/pandas-dev/pandas/pull/37013
| 718,408,214
|
MDExOlB1bGxSZXF1ZXN0NTAwODA4Mzky
| 37,013
|
DOC: pandas.Index.astype says it raises ValueError instead of TypeError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1222785?v=4",
"events_url": "https://api.github.com/users/coelhudo/events{/privacy}",
"followers_url": "https://api.github.com/users/coelhudo/followers",
"following_url": "https://api.github.com/users/coelhudo/following{/other_user}",
"gists_url": "https://api.github.com/users/coelhudo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/coelhudo",
"id": 1222785,
"login": "coelhudo",
"node_id": "MDQ6VXNlcjEyMjI3ODU=",
"organizations_url": "https://api.github.com/users/coelhudo/orgs",
"received_events_url": "https://api.github.com/users/coelhudo/received_events",
"repos_url": "https://api.github.com/users/coelhudo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/coelhudo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/coelhudo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/coelhudo"
}
|
[
{
"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"
}
| 0
| 2020-10-09T20:36:34Z
| 2020-10-10T07:41:00Z
| 2020-10-10T07:40:53Z
|
CONTRIBUTOR
| null |
- [X] closes #37012
- [X] passes pytest
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37013/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37013/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37013.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37013",
"merged_at": "2020-10-10T07:40:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37013.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37013"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37014
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37014/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37014/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37014/events
|
https://github.com/pandas-dev/pandas/pull/37014
| 718,412,951
|
MDExOlB1bGxSZXF1ZXN0NTAwODEyNDQ2
| 37,014
|
DOC: Clean merging.rst
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "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-10-09T20:45:44Z
| 2020-10-10T22:46:54Z
| 2020-10-10T22:24:29Z
|
MEMBER
| null |
Closes #36777
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37014/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37014/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37014.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37014",
"merged_at": "2020-10-10T22:24:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37014.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37014"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37015
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37015/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37015/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37015/events
|
https://github.com/pandas-dev/pandas/pull/37015
| 718,417,877
|
MDExOlB1bGxSZXF1ZXN0NTAwODE2NjA2
| 37,015
|
Call finalize in Series.str
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "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": "56efc9",
"default": false,
"description": "_metadata, .attrs",
"id": 1539579994,
"name": "metadata",
"node_id": "MDU6TGFiZWwxNTM5NTc5OTk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/metadata"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-09T20:56:04Z
| 2020-10-11T20:09:39Z
| 2020-10-10T22:25:59Z
|
CONTRIBUTOR
| null |
xref #28283
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37015/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37015/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37015.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37015",
"merged_at": "2020-10-10T22:25:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37015.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37015"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37016
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37016/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37016/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37016/events
|
https://github.com/pandas-dev/pandas/pull/37016
| 718,463,532
|
MDExOlB1bGxSZXF1ZXN0NTAwODU1MDk0
| 37,016
|
ERR: Better error message for MultiIndex.astype
|
{
"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"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-10-09T22:48:18Z
| 2020-10-10T02:36:19Z
| 2020-10-10T02:30:05Z
|
MEMBER
| null |
Error message could be nicer I think
```python
TypeError: Setting <class 'pandas.core.indexes.multi.MultiIndex'> dtype to anything other than object is not supported
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37016/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37016/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37016.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37016",
"merged_at": "2020-10-10T02:30:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37016.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37016"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37017
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37017/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37017/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37017/events
|
https://github.com/pandas-dev/pandas/pull/37017
| 718,502,356
|
MDExOlB1bGxSZXF1ZXN0NTAwODg3NDAz
| 37,017
|
REF/TYP: define NDFrame numeric methods non-dynamically
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 4
| 2020-10-10T01:42:41Z
| 2020-10-10T16:31:15Z
| 2020-10-10T16:28:38Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @simonjayhawkins along with #36989 this gets most of the generic.py mypy complaints (notwithstanding complaints about `cls.foo = foo` that can be addressed by changing to `setattr(cls, "foo", foo)`.
it'd be nice to have a less-verbose way of pinning the docstrings. i haven't had any luck so far at making that 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/37017/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37017/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37017.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37017",
"merged_at": "2020-10-10T16:28:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37017.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37017"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37018
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/37018/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37018/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/37018/events
|
https://github.com/pandas-dev/pandas/pull/37018
| 718,511,769
|
MDExOlB1bGxSZXF1ZXN0NTAwODk0NjA0
| 37,018
|
CLN: require td64 in TimeDeltaBlock
|
{
"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": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-10-10T02:36:55Z
| 2020-10-10T16:35:10Z
| 2020-10-10T16:33:48Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
only one place where the check currently fails, fixed in core.missing
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/37018/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/37018/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/37018.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/37018",
"merged_at": "2020-10-10T16:33:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/37018.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/37018"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.