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/39719 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39719/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39719/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39719/events | https://github.com/pandas-dev/pandas/pull/39719 | 805,354,258 | MDExOlB1bGxSZXF1ZXN0NTcwOTcwMTcz | 39,719 | [ArrayManager] Test DataFrame reductions + implement ignore_failures | {
"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": "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": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-10T09:53:00Z | 2021-02-25T08:08:18Z | 2021-02-25T00:39:26Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/39146
This adds support for ignoring failures in `ArrayManager.reduce`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39719/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39719/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39719.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39719",
"merged_at": "2021-02-25T00:39:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39719.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39719"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39720 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39720/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39720/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39720/events | https://github.com/pandas-dev/pandas/pull/39720 | 805,370,647 | MDExOlB1bGxSZXF1ZXN0NTcwOTgzMTU5 | 39,720 | DOC: Rewrite for `Styler` user guide with new features and other high-level changes. | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 17 | 2021-02-10T10:14:09Z | 2021-03-29T17:00:08Z | 2021-03-29T15:55:19Z | CONTRIBUTOR | null | - [x] closes #39593
- [x] closes #40645
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
This renames `Styling` with `Table Visualization` and aligns it more with `Chart Visualization`.
It re-organises some of the `Styler` user guide, removing outdated material, including new material with examples. | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39720/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39720/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39720.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39720",
"merged_at": "2021-03-29T15:55:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39720.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39720"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39721 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39721/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39721/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39721/events | https://github.com/pandas-dev/pandas/pull/39721 | 805,377,708 | MDExOlB1bGxSZXF1ZXN0NTcwOTg4ODMw | 39,721 | [ArrayManager] Implement .equals method | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-10T10:22:20Z | 2021-02-10T13:54:05Z | 2021-02-10T13:51:47Z | MEMBER | null | xref #39146
Moved the common part (checking of dimension and indices) to the base class `equals` method so this can be shared, and the actual BlockManager/AraryManager then only need to check the column values. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39721/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39721/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39721.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39721",
"merged_at": "2021-02-10T13:51:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39721.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39721"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39722 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39722/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39722/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39722/events | https://github.com/pandas-dev/pandas/pull/39722 | 805,503,045 | MDExOlB1bGxSZXF1ZXN0NTcxMDkyOTkw | 39,722 | REF: move reshaping of array for setitem from DataFrame into BlockManager internals | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-10T13:14:51Z | 2021-02-10T20:19:15Z | 2021-02-10T14:40:30Z | MEMBER | null | I think ideally the DataFrame does not need to be aware of how the underlying manager stores the data (as 2D, transposed or not), so moving the logic of ensuring 2D/transposed values from the DataFrame set_item-related method into `BlockManager.iset`.
This will help for the ArrayManager, so we don't have to re-reshape there. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39722/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39722/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39722.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39722",
"merged_at": "2021-02-10T14:40:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39722.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39722"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39723 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39723/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39723/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39723/events | https://github.com/pandas-dev/pandas/issues/39723 | 805,543,385 | MDU6SXNzdWU4MDU1NDMzODU= | 39,723 | QST: Passing data class to DataFrame constructor | {
"avatar_url": "https://avatars.githubusercontent.com/u/5220245?v=4",
"events_url": "https://api.github.com/users/paulalex/events{/privacy}",
"followers_url": "https://api.github.com/users/paulalex/followers",
"following_url": "https://api.github.com/users/paulalex/following{/other_user}",
"gists_url": "https://api.github.com/users/paulalex/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/paulalex",
"id": 5220245,
"login": "paulalex",
"node_id": "MDQ6VXNlcjUyMjAyNDU=",
"organizations_url": "https://api.github.com/users/paulalex/orgs",
"received_events_url": "https://api.github.com/users/paulalex/received_events",
"repos_url": "https://api.github.com/users/paulalex/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/paulalex/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paulalex/subscriptions",
"type": "User",
"url": "https://api.github.com/users/paulalex"
} | [
{
"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 | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2021-02-10T14:06:32Z | 2021-02-10T14:50:58Z | 2021-02-10T14:49:29Z | NONE | null | - [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
---
#### Question about pandas
My question is quite simple, I have some code which builds a list of objects defined in a `Dataclass` and until today I was calling `asdict()` to convert them into dictionaries as I thought this was something I needed to do.
Today I removed this and the excel generation still works as expected but I would like to know if this now supported behaviour.
```python
# previously this was a list of dictionaries, and it is now a list of custom data classes
pd.DataFrame(renewals).reindex(columns=get_report_columns())
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39723/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39723/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39724 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39724/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39724/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39724/events | https://github.com/pandas-dev/pandas/issues/39724 | 805,618,113 | MDU6SXNzdWU4MDU2MTgxMTM= | 39,724 | QST: Publish my personal modification of the official pandas cheat sheet | {
"avatar_url": "https://avatars.githubusercontent.com/u/31124624?v=4",
"events_url": "https://api.github.com/users/OliEfr/events{/privacy}",
"followers_url": "https://api.github.com/users/OliEfr/followers",
"following_url": "https://api.github.com/users/OliEfr/following{/other_user}",
"gists_url": "https://api.github.com/users/OliEfr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OliEfr",
"id": 31124624,
"login": "OliEfr",
"node_id": "MDQ6VXNlcjMxMTI0NjI0",
"organizations_url": "https://api.github.com/users/OliEfr/orgs",
"received_events_url": "https://api.github.com/users/OliEfr/received_events",
"repos_url": "https://api.github.com/users/OliEfr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OliEfr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OliEfr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OliEfr"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | null | 2 | 2021-02-10T15:29:29Z | 2021-03-29T15:24:00Z | 2021-03-29T15:24:00Z | CONTRIBUTOR | null | Hi all,
I found that the official cheat sheet could be optimized a bit.
I created my personalized version of the pandas cheat sheet and published it on my github [here](https://github.com/OliEfr/pandas_cheat_sheet).
Is this alright? I mentioned all sources and inspireations and chose the same license.
If you like the sheet, I can create a PR.
Let my know if I violate any license rights or if you feel uncomfortable with me publishing this. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39724/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39724/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39725 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39725/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39725/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39725/events | https://github.com/pandas-dev/pandas/issues/39725 | 805,618,735 | MDU6SXNzdWU4MDU2MTg3MzU= | 39,725 | BUG: SAS datetime column with null values cannot be parsed. | {
"avatar_url": "https://avatars.githubusercontent.com/u/583879?v=4",
"events_url": "https://api.github.com/users/wertha/events{/privacy}",
"followers_url": "https://api.github.com/users/wertha/followers",
"following_url": "https://api.github.com/users/wertha/following{/other_user}",
"gists_url": "https://api.github.com/users/wertha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wertha",
"id": 583879,
"login": "wertha",
"node_id": "MDQ6VXNlcjU4Mzg3OQ==",
"organizations_url": "https://api.github.com/users/wertha/orgs",
"received_events_url": "https://api.github.com/users/wertha/received_events",
"repos_url": "https://api.github.com/users/wertha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wertha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wertha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wertha"
} | [
{
"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": "SAS: read_sas",
"id": 258745163,
"name": "IO SAS",
"node_id": "MDU6TGFiZWwyNTg3NDUxNjM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-10T15:30:13Z | 2021-02-12T20:12:12Z | 2021-02-12T20:12:12Z | 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 pandas as pd
pd.read_sas('dates_null.sas7bdat')
```
#### Problem description
When a column datetime contains null values it cannot be converted to a dataframe
### Traceback
<details>
```python
Traceback (most recent call last):
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/io/sas/sas7bdat.py", line 52, in _convert_datetimes
return pd.to_datetime(sas_datetimes, unit=unit, origin="1960-01-01")
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/core/tools/datetimes.py", line 805, in to_datetime
values = convert_listlike(arg._values, format)
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/core/tools/datetimes.py", line 345, in _convert_listlike_datetimes
result, tz_parsed = tslib.array_with_unit_to_datetime(
File "pandas/_libs/tslib.pyx", line 249, in pandas._libs.tslib.array_with_unit_to_datetime
pandas._libs.tslibs.np_datetime.OutOfBoundsDatetime: cannot convert input with unit 'd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/io/sas/sasreader.py", line 152, in read_sas
return reader.read()
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/io/sas/sas7bdat.py", line 723, in read
rslt = self._chunk_to_dataframe()
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/io/sas/sas7bdat.py", line 771, in _chunk_to_dataframe
rslt[name] = _convert_datetimes(rslt[name], "d")
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/io/sas/sas7bdat.py", line 59, in _convert_datetimes
return sas_datetimes.apply(
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/core/series.py", line 4135, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas/_libs/lib.pyx", line 2467, in pandas._libs.lib.map_infer
File "/home/wertha/source/pandas/pandas/tests/io/sas/data/.test/lib/python3.9/site-packages/pandas/io/sas/sas7bdat.py", line 60, in <lambda>
lambda sas_float: datetime(1960, 1, 1) + timedelta(days=sas_float)
ValueError: cannot convert float NaN to integer
```
</details>
#### Expected Output
A dataframe with NaT when nulls are found.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 7d32926db8f7541c356066dcadabf854487738de
python : 3.9.1.final.0
python-bits : 64
OS : Linux
OS-release : 5.10.14-arch1-1
Version : #1 SMP PREEMPT Sun, 07 Feb 2021 22:42:17 +0000
machine : x86_64
processor :
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.2
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 49.2.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</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/39725/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39725/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39726 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39726/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39726/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39726/events | https://github.com/pandas-dev/pandas/pull/39726 | 805,629,052 | MDExOlB1bGxSZXF1ZXN0NTcxMTk4Nzkz | 39,726 | SAS validate null dates | {
"avatar_url": "https://avatars.githubusercontent.com/u/583879?v=4",
"events_url": "https://api.github.com/users/wertha/events{/privacy}",
"followers_url": "https://api.github.com/users/wertha/followers",
"following_url": "https://api.github.com/users/wertha/following{/other_user}",
"gists_url": "https://api.github.com/users/wertha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wertha",
"id": 583879,
"login": "wertha",
"node_id": "MDQ6VXNlcjU4Mzg3OQ==",
"organizations_url": "https://api.github.com/users/wertha/orgs",
"received_events_url": "https://api.github.com/users/wertha/received_events",
"repos_url": "https://api.github.com/users/wertha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wertha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wertha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wertha"
} | [
{
"color": "5319e7",
"default": false,
"description": "SAS: read_sas",
"id": 258745163,
"name": "IO SAS",
"node_id": "MDU6TGFiZWwyNTg3NDUxNjM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-10T15:42:23Z | 2021-02-12T20:23:02Z | 2021-02-12T20:12:13Z | CONTRIBUTOR | null | - [x] closes #39725
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39726/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39726/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39726.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39726",
"merged_at": "2021-02-12T20:12:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39726.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39726"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39727 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39727/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39727/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39727/events | https://github.com/pandas-dev/pandas/issues/39727 | 805,664,470 | MDU6SXNzdWU4MDU2NjQ0NzA= | 39,727 | BUG:OutOfBoundsDatetime on numpy timestamps, but not on datetime.datetime | {
"avatar_url": "https://avatars.githubusercontent.com/u/306834?v=4",
"events_url": "https://api.github.com/users/berland/events{/privacy}",
"followers_url": "https://api.github.com/users/berland/followers",
"following_url": "https://api.github.com/users/berland/following{/other_user}",
"gists_url": "https://api.github.com/users/berland/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/berland",
"id": 306834,
"login": "berland",
"node_id": "MDQ6VXNlcjMwNjgzNA==",
"organizations_url": "https://api.github.com/users/berland/orgs",
"received_events_url": "https://api.github.com/users/berland/received_events",
"repos_url": "https://api.github.com/users/berland/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/berland/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/berland/subscriptions",
"type": "User",
"url": "https://api.github.com/users/berland"
} | [
{
"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"
}
] | open | false | null | [] | null | 4 | 2021-02-10T16:22:59Z | 2021-11-08T16:40:20Z | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample
```python
import datetime
import numpy as np
import pandas as pd
# This works fine:
pd.DataFrame([datetime.datetime(3015,1,1,0,0,0)])
# returned dtype is object, all good.
# But the same timestamp as a numpy object fails:
pd.DataFrame(np.array(['3015-01-01T00:00:00.000'], dtype='datetime64[ms]'))
# OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 3015-01-01 00:00:00
```
#### Problem description
pd.DataFrame tries to infer dtypes, and this works for datetime.datetime objects. If they are within the datetime64[ns] limits, they are converted, while if they are outside, the dtype is kept as `object`. For numpy datetime64 objects as input, the same flexibility is not in place, and pd.DataFrame() errors hard instead during auto-conversion.
#### Expected Output
dtype: object when pd.DataFrame is called on the numpy timestamps above
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 7d32926db8f7541c356066dcadabf854487738de
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-62-generic
Version : #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.2
numpy : 1.19.5
pytz : 2019.3
dateutil : 2.8.1
pip : 21.0.1
setuptools : 44.0.0
Cython : None
pytest : 6.2.2
hypothesis : None
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : 1.3.22
tables : None
tabulate : None
xarray : 0.16.2
xlrd : 1.2.0
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39727/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39727/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39728 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39728/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39728/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39728/events | https://github.com/pandas-dev/pandas/pull/39728 | 805,674,724 | MDExOlB1bGxSZXF1ZXN0NTcxMjM3MTY3 | 39,728 | REF: separate out indexer/mask preprocessing code in algorithms.take_nd | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-10T16:35:07Z | 2021-02-10T18:02:18Z | 2021-02-10T17:58:47Z | MEMBER | null | Precursor for https://github.com/pandas-dev/pandas/pull/39692 (just moving code into a separate helper function) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39728/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39728/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39728.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39728",
"merged_at": "2021-02-10T17:58:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39728.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39728"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39729 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39729/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39729/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39729/events | https://github.com/pandas-dev/pandas/pull/39729 | 805,714,997 | MDExOlB1bGxSZXF1ZXN0NTcxMjcwNzI4 | 39,729 | TYP: MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-10T17:22:48Z | 2021-02-10T18:51:15Z | 2021-02-10T18:43:28Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39729/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39729/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39729.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39729",
"merged_at": "2021-02-10T18:43:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39729.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39729"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39730 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39730/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39730/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39730/events | https://github.com/pandas-dev/pandas/issues/39730 | 805,759,835 | MDU6SXNzdWU4MDU3NTk4MzU= | 39,730 | CI: enable drone.io | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 0 | 2021-02-10T18:25:13Z | 2021-03-20T04:21:21Z | 2021-03-20T04:21:21Z | CONTRIBUTOR | null | I have enabled https://cloud.drone.io/ to connect to pandas. We need to configure it, ideally for arm64 builds (only).
cc @xhochy | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39730/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39730/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39731 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39731/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39731/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39731/events | https://github.com/pandas-dev/pandas/pull/39731 | 805,794,165 | MDExOlB1bGxSZXF1ZXN0NTcxMzM2NzI0 | 39,731 | REF: remove take_1d alias of take_nd | {
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 8 | 2021-02-10T19:16:06Z | 2021-02-11T07:43:02Z | 2021-02-10T23:48:46Z | MEMBER | null | @jreback as discussed in https://github.com/pandas-dev/pandas/pull/39692
Since this is just an alias, this is certainly fine in theory. Although now doing it, I think there is still *some* value of the alias to signal that it is taking a 1D array which can provide useful context when *reading* code that uses this. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39731/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39731/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39731.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39731",
"merged_at": "2021-02-10T23:48:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39731.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39731"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39732 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39732/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39732/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39732/events | https://github.com/pandas-dev/pandas/issues/39732 | 805,805,346 | MDU6SXNzdWU4MDU4MDUzNDY= | 39,732 | BUG: Resulting index from groupby.apply is different depending on whether a RollingGroupby object is created | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-10T19:31:43Z | 2021-02-25T06:05:05Z | 2021-02-25T06:05:05Z | 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.
---
This probably happens because we change the `mutated` attribues:
https://github.com/pandas-dev/pandas/blob/a2f42ac2f6a06975776597070075965d22bd2692/pandas/core/window/rolling.py#L532
```
In [1]: frame = DataFrame({"A": [1] * 20 + [2] * 12 + [3] * 8, "B": np.arange(40)})
In [3]: g = frame.groupby("A")
In [4]: g.apply(lambda x: x.rolling(4).sum()).index
Out[4]:
Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
34, 35, 36, 37, 38, 39],
dtype='int64')
In [5]: r = g.rolling(window=4)
In [6]: g.apply(lambda x: x.rolling(4).sum()).index
Out[6]:
MultiIndex([(1, 0),
(1, 1),
(1, 2),
(1, 3),
(1, 4),
(1, 5),
(1, 6),
(1, 7),
(1, 8),
(1, 9),
(1, 10),
(1, 11),
(1, 12),
(1, 13),
(1, 14),
(1, 15),
(1, 16),
(1, 17),
(1, 18),
(1, 19),
(2, 20),
(2, 21),
(2, 22),
(2, 23),
(2, 24),
(2, 25),
(2, 26),
(2, 27),
(2, 28),
(2, 29),
(2, 30),
(2, 31),
(3, 32),
(3, 33),
(3, 34),
(3, 35),
(3, 36),
(3, 37),
(3, 38),
(3, 39)],
names=['A', None])
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39732/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39732/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39733 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39733/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39733/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39733/events | https://github.com/pandas-dev/pandas/issues/39733 | 805,840,136 | MDU6SXNzdWU4MDU4NDAxMzY= | 39,733 | BUG: import absolut path to style.py --> class Styler: | {
"avatar_url": "https://avatars.githubusercontent.com/u/45330984?v=4",
"events_url": "https://api.github.com/users/MarcinP94/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcinP94/followers",
"following_url": "https://api.github.com/users/MarcinP94/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcinP94/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcinP94",
"id": 45330984,
"login": "MarcinP94",
"node_id": "MDQ6VXNlcjQ1MzMwOTg0",
"organizations_url": "https://api.github.com/users/MarcinP94/orgs",
"received_events_url": "https://api.github.com/users/MarcinP94/received_events",
"repos_url": "https://api.github.com/users/MarcinP94/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcinP94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcinP94/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcinP94"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 3 | 2021-02-10T20:18:51Z | 2021-02-12T12:57:02Z | 2021-02-12T12:57:02Z | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**:
#### Code Sample,
```python
import os
class Styler:
absolute_dir = os.pwd()
loader = jinja2.PackageLoader("pandas", absolute_dir +"/io/formats/templates")
env = jinja2.Environment(loader=loader, trim_blocks=True)
template = env.get_template("html.tpl")
```
#### Problem description
It allows including html.tpl as a local static file when styling of the dataframe is needed, and it works when is needed to transform python file into exe via pyinstaller.
#### 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/39733/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39733/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39734 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39734/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39734/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39734/events | https://github.com/pandas-dev/pandas/pull/39734 | 805,868,378 | MDExOlB1bGxSZXF1ZXN0NTcxMzk4NTk3 | 39,734 | [ArrayManager] Indexing - implement iset | {
"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": "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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-10T20:58:42Z | 2021-02-15T19:06:55Z | 2021-02-15T19:06:52Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/39146/, follow-up on https://github.com/pandas-dev/pandas/pull/39722 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39734/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39734/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39734.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39734",
"merged_at": "2021-02-15T19:06:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39734.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39734"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39735 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39735/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39735/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39735/events | https://github.com/pandas-dev/pandas/issues/39735 | 805,878,172 | MDU6SXNzdWU4MDU4NzgxNzI= | 39,735 | BUG: Styler export() and use() no longer work after Styler has been rendered. | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "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": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-10T21:12:33Z | 2021-03-10T14:50:17Z | 2021-03-10T14:50:07Z | 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.
---
Addressing #39396 and #39395 means that after `Styler._compute()` or `Styler.render()` the `_todo` list is cleared.
Since `Styler.export = lambda x: Styler._todo`
and `Styler.use = lambda x: Styler._todo.extend(x)`
This means that exporting `styles` cannot be achieved if a Styler has been rendered at least once.
Possible actions:
1) Update the docs to make users aware of the new behaviour and suffer any regression issues for `export` `use`.
2) Revert the original PR, suffering the duplicate CSS in HTML generated on each render.
3) Solve both issues by clearing the `.ctx` object before render and keeping the `_todo` list, suffering the need to recompute all applied styles on each render.
Perhaps 3 is best - If performance is an issue developers should know only to every render once?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39735/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39735/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39736 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39736/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39736/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39736/events | https://github.com/pandas-dev/pandas/pull/39736 | 805,902,551 | MDExOlB1bGxSZXF1ZXN0NTcxNDI2MzE4 | 39,736 | CLN: remove ndarray cases from maybe_promote | {
"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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-10T21:49:58Z | 2021-02-10T23:10:49Z | 2021-02-10T23:09:51Z | MEMBER | null | AFAICT this is a relic of using maybe_promote where we should use infer_dtype_from + find_common_type | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39736/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39736/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39736.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39736",
"merged_at": "2021-02-10T23:09:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39736.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39736"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39737 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39737/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39737/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39737/events | https://github.com/pandas-dev/pandas/pull/39737 | 805,904,444 | MDExOlB1bGxSZXF1ZXN0NTcxNDI3OTQw | 39,737 | BUG: Timedelta input string with only symbols and no digits raises an error (GH39710) | {
"avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4",
"events_url": "https://api.github.com/users/avinashpancham/events{/privacy}",
"followers_url": "https://api.github.com/users/avinashpancham/followers",
"following_url": "https://api.github.com/users/avinashpancham/following{/other_user}",
"gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avinashpancham",
"id": 44933366,
"login": "avinashpancham",
"node_id": "MDQ6VXNlcjQ0OTMzMzY2",
"organizations_url": "https://api.github.com/users/avinashpancham/orgs",
"received_events_url": "https://api.github.com/users/avinashpancham/received_events",
"repos_url": "https://api.github.com/users/avinashpancham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avinashpancham"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-10T21:52:55Z | 2021-02-10T23:47:37Z | 2021-02-10T23:47:34Z | CONTRIBUTOR | null | - [x] closes #39710
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39737/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39737/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39737.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39737",
"merged_at": "2021-02-10T23:47:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39737.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39737"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39738 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39738/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39738/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39738/events | https://github.com/pandas-dev/pandas/issues/39738 | 805,959,638 | MDU6SXNzdWU4MDU5NTk2Mzg= | 39,738 | BUG: reduction operations failing if `min_count` is larger | {
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
} | [
{
"color": "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": "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": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] | closed | false | null | [] | {
"closed_at": "2021-04-13T15:44:36Z",
"closed_issues": 46,
"created_at": "2021-03-01T08:32:08Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2021-04-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/84",
"id": 6490488,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84/labels",
"node_id": "MDk6TWlsZXN0b25lNjQ5MDQ4OA==",
"number": 84,
"open_issues": 0,
"state": "closed",
"title": "1.2.4",
"updated_at": "2021-04-14T14:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/84"
} | 5 | 2021-02-10T23:30:46Z | 2021-03-05T01:09:48Z | 2021-03-05T01:09:48Z | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
>>> import pandas as pd
>>> df = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
>>> df
x y
0 1 4
1 2 5
2 3 6
>>> df.sum(min_count=10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/generic.py", line 11067, in sum
self, axis, skipna, level, numeric_only, min_count, **kwargs
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/generic.py", line 10787, in sum
"sum", nanops.nansum, axis, skipna, level, numeric_only, min_count, **kwargs
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/generic.py", line 10774, in _min_count_stat_function
min_count=min_count,
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/frame.py", line 8847, in _reduce
res, indexer = df._mgr.reduce(blk_func, ignore_failures=ignore_failures)
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 354, in reduce
nbs = blk.reduce(func, ignore_failures)
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 400, in reduce
nb = self.make_block(res_values)
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 286, in make_block
return make_block(values, placement=placement, ndim=self.ndim)
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 2732, in make_block
return klass(values, ndim=ndim, placement=placement)
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 143, in __init__
f"Wrong number of items passed {len(self.values)}, "
ValueError: Wrong number of items passed 1, placement implies 2
```
This actually works in `1.1.5`:
```python
>>> df
x y
0 1 4
1 2 5
2 3 6
>>> df.sum(min_count=10)
x NaN
y NaN
dtype: float64
```
#### Problem description
Reduction operations like `sum`, `prod`, etc.. are failing when `min_count` is larger in latest pandas, whereas this used to work in `1.1.5`.
#### Expected Output
```python
>>> df
x y
0 1 4
1 2 5
2 3 6
>>> df.sum(min_count=10)
x NaN
y NaN
dtype: float64
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.7.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-76-generic
Version : #86-Ubuntu SMP Fri Jan 17 17:24:28 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.2.1
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : 0.29.21
pytest : 6.2.2
hypothesis : 6.1.1
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.5
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.1
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.52.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/39738/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39738/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39739 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39739/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39739/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39739/events | https://github.com/pandas-dev/pandas/issues/39739 | 805,998,491 | MDU6SXNzdWU4MDU5OTg0OTE= | 39,739 | BUG: Regression in `assert_frame_equal` when using `check_like` | {
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 10 | 2021-02-11T00:56:01Z | 2021-04-14T20:38:37Z | 2021-04-11T13:01:50Z | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
In `1.2.1`:
```python
>>> import pandas as pd
>>> one = pd.Index([], dtype='object')
>>> two = pd.RangeIndex(start=0, stop=0, step=1)
>>> df_one = pd.DataFrame(index=one)
>>> df_two = pd.DataFrame(index=two)
>>> pd.testing.assert_frame_equal(df_one, df_two, check_like=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/_testing.py", line 1655, in assert_frame_equal
obj=f"{obj}.index",
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/_testing.py", line 773, in assert_index_equal
_check_types(left, right, obj=obj)
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/_testing.py", line 740, in _check_types
assert_class_equal(left, right, exact=exact, obj=obj)
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/_testing.py", line 868, in assert_class_equal
raise_assert_detail(obj, msg, repr_class(left), repr_class(right))
File "/nvme/0/pgali/envs/cudfdev/lib/python3.7/site-packages/pandas/_testing.py", line 1073, in raise_assert_detail
raise AssertionError(msg)
AssertionError: DataFrame.index are different
DataFrame.index classes are not equivalent
[left]: Index([], dtype='object')
[right]: RangeIndex(start=0, stop=0, step=1)
```
In `1.1.5`:
```python
>>> import pandas as pd
>>> one = pd.Index([], dtype='object')
>>> two = pd.RangeIndex(start=0, stop=0, step=1)
>>> df_one = pd.DataFrame(index=one)
>>> df_two = pd.DataFrame(index=two)
>>> pd.testing.assert_frame_equal(df_one, df_two, check_like=True)
```
#### Problem description
Upto `1.1.5`, both `df_one` and `df_two` were considered to be same dataframe when `check_like=True`, but in latest pandas this is broken.
#### Expected Output
```
>>> pd.testing.assert_frame_equal(df_one, df_two, check_like=True)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.7.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-76-generic
Version : #86-Ubuntu SMP Fri Jan 17 17:24:28 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.2.1
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : 0.29.21
pytest : 6.2.2
hypothesis : 6.1.1
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.5
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.1
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.52.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/39739/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39739/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39740 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39740/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39740/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39740/events | https://github.com/pandas-dev/pandas/pull/39740 | 806,018,773 | MDExOlB1bGxSZXF1ZXN0NTcxNTE5ODY5 | 39,740 | Changed pct_change parameters to calculate pct_change right-to-left f… | {
"avatar_url": "https://avatars.githubusercontent.com/u/45412802?v=4",
"events_url": "https://api.github.com/users/andrei-assa/events{/privacy}",
"followers_url": "https://api.github.com/users/andrei-assa/followers",
"following_url": "https://api.github.com/users/andrei-assa/following{/other_user}",
"gists_url": "https://api.github.com/users/andrei-assa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andrei-assa",
"id": 45412802,
"login": "andrei-assa",
"node_id": "MDQ6VXNlcjQ1NDEyODAy",
"organizations_url": "https://api.github.com/users/andrei-assa/orgs",
"received_events_url": "https://api.github.com/users/andrei-assa/received_events",
"repos_url": "https://api.github.com/users/andrei-assa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andrei-assa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrei-assa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andrei-assa"
} | [] | closed | false | null | [] | null | 4 | 2021-02-11T01:51:50Z | 2021-03-06T20:41:03Z | 2021-03-06T20:41:03Z | NONE | null | …or axis=1.
- [ ] closes #39672
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- For axis = 1, periods = -periods.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39740/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39740/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39740.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39740",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39740.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39740"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39741 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39741/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39741/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39741/events | https://github.com/pandas-dev/pandas/issues/39741 | 806,034,061 | MDU6SXNzdWU4MDYwMzQwNjE= | 39,741 | BUG: 'display.max_rows' = None causes large slowdown without dataframe print calls | {
"avatar_url": "https://avatars.githubusercontent.com/u/1291068?v=4",
"events_url": "https://api.github.com/users/d-otto/events{/privacy}",
"followers_url": "https://api.github.com/users/d-otto/followers",
"following_url": "https://api.github.com/users/d-otto/following{/other_user}",
"gists_url": "https://api.github.com/users/d-otto/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/d-otto",
"id": 1291068,
"login": "d-otto",
"node_id": "MDQ6VXNlcjEyOTEwNjg=",
"organizations_url": "https://api.github.com/users/d-otto/orgs",
"received_events_url": "https://api.github.com/users/d-otto/received_events",
"repos_url": "https://api.github.com/users/d-otto/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/d-otto/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/d-otto/subscriptions",
"type": "User",
"url": "https://api.github.com/users/d-otto"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2021-02-11T02:37:05Z | 2021-03-21T15:29:21Z | 2021-03-21T15:29:09Z | NONE | null | #### Code Sample
```python
import pandas as pd
import numpy as np
pd.set_option("display.max_rows", None)
df = pd.DataFrame(np.random.randint(0,100,size=(10000, 100)), columns=np.arange(0,100))
```
```python
print(df.columns)
dir(df)
```
#### Problem description
Changing the display option for max rows to `None` (unlimited) dramatically increases execution time of calls in the console that do not display rows. I observed similar results accessing attributes of non-pandas objects.
#### Expected Output
Execution time increase resulting from `display.max_rows` should only be incurred when rows are displayed.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39741/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39741/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39742 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39742/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39742/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39742/events | https://github.com/pandas-dev/pandas/pull/39742 | 806,038,508 | MDExOlB1bGxSZXF1ZXN0NTcxNTM1MjY2 | 39,742 | CI: enable arm64 build on drone.io #39730 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "c2e0c6",
"default": false,
"description": "aarch64 architecture",
"id": 2628846204,
"name": "ARM",
"node_id": "MDU6TGFiZWwyNjI4ODQ2MjA0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ARM"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 11 | 2021-02-11T02:51:45Z | 2021-03-18T16:46:14Z | 2021-03-14T04:03:01Z | MEMBER | null | - [x] closes #39730
xref #36719
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39742/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39742/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39742.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39742",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39742.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39742"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39743 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39743/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39743/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39743/events | https://github.com/pandas-dev/pandas/pull/39743 | 806,044,593 | MDExOlB1bGxSZXF1ZXN0NTcxNTM5OTgw | 39,743 | BUG: maybe_promote with dt64tz and mismatched NA | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 7 | 2021-02-11T03:13:43Z | 2021-02-12T17:54:31Z | 2021-02-12T17:52:03Z | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39743/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39743/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39743.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39743",
"merged_at": "2021-02-12T17:52:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39743.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39743"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39744 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39744/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39744/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39744/events | https://github.com/pandas-dev/pandas/pull/39744 | 806,062,597 | MDExOlB1bGxSZXF1ZXN0NTcxNTU0MTU0 | 39,744 | CI: fix reference to take_1d() | {
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
} | [
{
"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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-11T04:12:38Z | 2021-02-11T17:27:05Z | 2021-02-11T07:43:30Z | MEMBER | null | Fix for issue noted by @lithomas1 in https://github.com/pandas-dev/pandas/pull/39731#issuecomment-777179836, which is causing the Benchmarks to fail.
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39744/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39744/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39744.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39744",
"merged_at": "2021-02-11T07:43:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39744.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39744"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39745 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39745/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39745/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39745/events | https://github.com/pandas-dev/pandas/pull/39745 | 806,074,711 | MDExOlB1bGxSZXF1ZXN0NTcxNTYzOTY1 | 39,745 | CI: share pandas setup steps | {
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
} | [
{
"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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-11T04:47:39Z | 2021-02-11T13:42:49Z | 2021-02-11T13:42:45Z | MEMBER | null | Split out from https://github.com/pandas-dev/pandas/pull/39392. Just a refactor; puts redundant setup steps in a shared place.
To be honest, I don't actually understand why different GitHub Actions set up pandas in different ways, so didn't change that here.
The `uses` calls can be moved into the composite actions once https://github.com/actions/runner/issues/862 is complete, DRYing it up even more.
- [ ] ~~closes #xxxx~~
- [ ] tests ~~added /~~ passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39745/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39745/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39745.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39745",
"merged_at": "2021-02-11T13:42:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39745.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39745"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39746 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39746/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39746/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39746/events | https://github.com/pandas-dev/pandas/issues/39746 | 806,074,816 | MDU6SXNzdWU4MDYwNzQ4MTY= | 39,746 | Adding Power support to the package -Installation of Condo not available for ppc64le | {
"avatar_url": "https://avatars.githubusercontent.com/u/31274494?v=4",
"events_url": "https://api.github.com/users/asellappen/events{/privacy}",
"followers_url": "https://api.github.com/users/asellappen/followers",
"following_url": "https://api.github.com/users/asellappen/following{/other_user}",
"gists_url": "https://api.github.com/users/asellappen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/asellappen",
"id": 31274494,
"login": "asellappen",
"node_id": "MDQ6VXNlcjMxMjc0NDk0",
"organizations_url": "https://api.github.com/users/asellappen/orgs",
"received_events_url": "https://api.github.com/users/asellappen/received_events",
"repos_url": "https://api.github.com/users/asellappen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/asellappen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/asellappen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/asellappen"
} | [
{
"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": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] | open | false | null | [] | null | 6 | 2021-02-11T04:47:57Z | 2021-06-06T17:38:49Z | null | NONE | null | #### Is your feature request related to a problem?
I wish to use pandas to support ppc64le cpu arch
#### Describe the solution you'd like
need tom modify this script ci/setup_env.sh to incorporate ppc64le in script and also the below works fine for conda installation in ppc64le
#### API breaking implications
NA
#### Describe alternatives you've considered
ie . CONDA_URL for ppc64le as below ,it works well in install conda and add package on using conda install
https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-ppc64le.sh
#### Additional context
N/A
```python
if [ "${TRAVIS_CPU_ARCH}" == "ppc64le" ]; then
CONDA_URL=" https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-ppc64le.sh "
bash miniconda.sh -b -p $HOME/miniconda; | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39746/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39746/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39747 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39747/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39747/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39747/events | https://github.com/pandas-dev/pandas/pull/39747 | 806,145,079 | MDExOlB1bGxSZXF1ZXN0NTcxNjIzNDk1 | 39,747 | DOC: remove mention of MultiIndex from rolling docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/12874561?v=4",
"events_url": "https://api.github.com/users/jeet-parekh/events{/privacy}",
"followers_url": "https://api.github.com/users/jeet-parekh/followers",
"following_url": "https://api.github.com/users/jeet-parekh/following{/other_user}",
"gists_url": "https://api.github.com/users/jeet-parekh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeet-parekh",
"id": 12874561,
"login": "jeet-parekh",
"node_id": "MDQ6VXNlcjEyODc0NTYx",
"organizations_url": "https://api.github.com/users/jeet-parekh/orgs",
"received_events_url": "https://api.github.com/users/jeet-parekh/received_events",
"repos_url": "https://api.github.com/users/jeet-parekh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeet-parekh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeet-parekh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeet-parekh"
} | [
{
"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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-11T07:24:38Z | 2021-02-18T04:55:03Z | 2021-02-11T13:46:32Z | CONTRIBUTOR | null | - [x] closes #39686
Remove mention of MultiIndex from rolling docs. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39747/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39747/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39747.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39747",
"merged_at": "2021-02-11T13:46:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39747.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39747"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39748 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39748/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39748/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39748/events | https://github.com/pandas-dev/pandas/pull/39748 | 806,158,622 | MDExOlB1bGxSZXF1ZXN0NTcxNjM0OTcw | 39,748 | DOC: added more and updated links in cheat sheet | {
"avatar_url": "https://avatars.githubusercontent.com/u/31124624?v=4",
"events_url": "https://api.github.com/users/OliEfr/events{/privacy}",
"followers_url": "https://api.github.com/users/OliEfr/followers",
"following_url": "https://api.github.com/users/OliEfr/following{/other_user}",
"gists_url": "https://api.github.com/users/OliEfr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OliEfr",
"id": 31124624,
"login": "OliEfr",
"node_id": "MDQ6VXNlcjMxMTI0NjI0",
"organizations_url": "https://api.github.com/users/OliEfr/orgs",
"received_events_url": "https://api.github.com/users/OliEfr/received_events",
"repos_url": "https://api.github.com/users/OliEfr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OliEfr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OliEfr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OliEfr"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | 2021-02-11T07:52:03Z | 2021-02-11T15:37:04Z | 2021-02-11T15:30:45Z | CONTRIBUTOR | null | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/39748/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39748/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39748.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39748",
"merged_at": "2021-02-11T15:30:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39748.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39748"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39749 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39749/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39749/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39749/events | https://github.com/pandas-dev/pandas/issues/39749 | 806,225,768 | MDU6SXNzdWU4MDYyMjU3Njg= | 39,749 | QST: File "pandas\_libs\hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item | {
"avatar_url": "https://avatars.githubusercontent.com/u/38039979?v=4",
"events_url": "https://api.github.com/users/Picbull/events{/privacy}",
"followers_url": "https://api.github.com/users/Picbull/followers",
"following_url": "https://api.github.com/users/Picbull/following{/other_user}",
"gists_url": "https://api.github.com/users/Picbull/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Picbull",
"id": 38039979,
"login": "Picbull",
"node_id": "MDQ6VXNlcjM4MDM5OTc5",
"organizations_url": "https://api.github.com/users/Picbull/orgs",
"received_events_url": "https://api.github.com/users/Picbull/received_events",
"repos_url": "https://api.github.com/users/Picbull/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Picbull/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Picbull/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Picbull"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 3 | 2021-02-11T09:43:36Z | 2021-02-21T09:07:56Z | 2021-02-21T09:07:51Z | NONE | null | Hi ! I have some kind of hard time using panda to read a data base. My objective and my issue are simple, yet i'm unable to find a solution on other trending issues.
I'm trying to access the index of a column using it's name :
indicecol=df.columns.get_loc(nomF)
where nomF is the name of the column and is asked as an imput. I think the probleme is that my imput is "PK [m]" and the function doesn't like the brackets.
I have this error message :
File "pandas\_libs\hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'PK [m]'
Does anybody know how to get around this ?
Thx ! | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39749/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39749/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39750 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39750/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39750/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39750/events | https://github.com/pandas-dev/pandas/issues/39750 | 806,231,039 | MDU6SXNzdWU4MDYyMzEwMzk= | 39,750 | BUG: all-NaT TimedeltaArray division with object dtype array doesn't preserve dtype | {
"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": "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": "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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | 2021-02-11T09:51:02Z | 2021-11-06T22:58:58Z | 2021-11-06T22:58:58Z | MEMBER | null |
```
In [27]: pd.array(["1 days", "2 days"], dtype="timedelta64[ns]") / np.array([2, 2])
Out[27]:
<TimedeltaArray>
['0 days 12:00:00', '1 days 00:00:00']
Length: 2, dtype: timedelta64[ns]
In [28]: pd.array(["1 days", "2 days"], dtype="timedelta64[ns]") / np.array([2, 2], dtype=object)
Out[28]:
<TimedeltaArray>
['0 days 12:00:00', '1 days 00:00:00']
Length: 2, dtype: timedelta64[ns]
In [29]: pd.array(["NaT", "NaT"], dtype="timedelta64[ns]") / np.array([2, 2])
Out[29]:
<TimedeltaArray>
[NaT, NaT]
Length: 2, dtype: timedelta64[ns]
In [30]: pd.array(["NaT", "NaT"], dtype="timedelta64[ns]") / np.array([2, 2], dtype=object)
Out[30]: array([NaT, NaT], dtype=object)
```
The last case doesn't result in a TimedeltaArray as result.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39750/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39750/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39751 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39751/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39751/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39751/events | https://github.com/pandas-dev/pandas/pull/39751 | 806,285,943 | MDExOlB1bGxSZXF1ZXN0NTcxNzM0OTk2 | 39,751 | ENH: Implement rounding for floating dtype array #38844 | {
"avatar_url": "https://avatars.githubusercontent.com/u/12542576?v=4",
"events_url": "https://api.github.com/users/benoit9126/events{/privacy}",
"followers_url": "https://api.github.com/users/benoit9126/followers",
"following_url": "https://api.github.com/users/benoit9126/following{/other_user}",
"gists_url": "https://api.github.com/users/benoit9126/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benoit9126",
"id": 12542576,
"login": "benoit9126",
"node_id": "MDQ6VXNlcjEyNTQyNTc2",
"organizations_url": "https://api.github.com/users/benoit9126/orgs",
"received_events_url": "https://api.github.com/users/benoit9126/received_events",
"repos_url": "https://api.github.com/users/benoit9126/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benoit9126/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benoit9126/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benoit9126"
} | [
{
"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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 8 | 2021-02-11T11:04:08Z | 2021-03-08T19:54:24Z | 2021-03-08T14:32:32Z | CONTRIBUTOR | null | Code proposed in the staled PR #38866
- [x] closes #38844
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39751/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39751/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39751.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39751",
"merged_at": "2021-03-08T14:32:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39751.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39751"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39752 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39752/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39752/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39752/events | https://github.com/pandas-dev/pandas/issues/39752 | 806,292,753 | MDU6SXNzdWU4MDYyOTI3NTM= | 39,752 | BUG: ValueError when using hdf select with long select strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/26454702?v=4",
"events_url": "https://api.github.com/users/skwde/events{/privacy}",
"followers_url": "https://api.github.com/users/skwde/followers",
"following_url": "https://api.github.com/users/skwde/following{/other_user}",
"gists_url": "https://api.github.com/users/skwde/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/skwde",
"id": 26454702,
"login": "skwde",
"node_id": "MDQ6VXNlcjI2NDU0NzAy",
"organizations_url": "https://api.github.com/users/skwde/orgs",
"received_events_url": "https://api.github.com/users/skwde/received_events",
"repos_url": "https://api.github.com/users/skwde/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/skwde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/skwde/subscriptions",
"type": "User",
"url": "https://api.github.com/users/skwde"
} | [
{
"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_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] | open | false | null | [] | null | 0 | 2021-02-11T11:13:09Z | 2021-08-15T17:42:31Z | 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
import numpy as np
import pandas as pd
# build dataframe and write to hdf file
t = pd.DataFrame([i for i in range(100)],
columns=['A'],
index=pd.MultiIndex.from_arrays(
[[b for a in range(25) for b in ['a', 'b', 'c', 'd']],
range(100)],
names=('la','lb')
)).sort_index()
hdf_test = pd.HDFStore('test.hdf', mode='a', compression=9)
t.to_hdf(hdf_test,
'/test',
complevel=9,
format='table'
)
# build query strings
query1 = []
query2 = []
for idx in t.index:
query1.append(
f"(la == '{idx[0]}' & lb == '{idx[1]}')"
)
query2.append(
f"la == {idx[0]}"
)
query1 = ' | '.join(np.unique(query1))
query2 = ' | '.join(np.unique(query2))
# test queries
hdf_test.select('/test', where="(la == 'a' & lb == '0') | (la == 'a' & lb == '12')") # works
hdf_test.select('/test', where=query2) # works
hdf_test.select('/test', where=query1) # fails with ValueError: too many inputs
```
#### Problem description
The select query fails, I guess the reason is the long query string.
Note, in an earlier pandas version (1.2.1) this triggered a `MemoryError` instead of the `ValueError: too many inputs`.
#### Expected Output
dataframe according to query string. (In above case, the full dataframe `t`)
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 7d32926db8f7541c356066dcadabf854487738de
python : 3.9.1.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.2
numpy : 1.20.0
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : 2.7.2
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
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/39752/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39752/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39753 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39753/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39753/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39753/events | https://github.com/pandas-dev/pandas/pull/39753 | 806,345,959 | MDExOlB1bGxSZXF1ZXN0NTcxNzgzMDcz | 39,753 | [ArrayManager] TST: arithmetic test | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-11T12:28:59Z | 2021-02-17T09:38:14Z | 2021-02-17T09:37:19Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/39146/ | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39753/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39753/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39753.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39753",
"merged_at": "2021-02-17T09:37:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39753.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39753"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39754 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39754/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39754/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39754/events | https://github.com/pandas-dev/pandas/issues/39754 | 806,595,526 | MDU6SXNzdWU4MDY1OTU1MjY= | 39,754 | BUG: reindexing a level in MultiIndex has no effect | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 1 | 2021-02-11T17:29:04Z | 2021-02-12T14:35:34Z | 2021-02-12T14:35:33Z | 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.
---
This is about trying to reindex a MultiIndex level to add keys to avoid a `KeyError`.
This code could be more minimalist and more generic but the context in which the error arose might be helpful..
When using `groupby` unnecessary keys are eliminated..
```
idx = pd.IndexSlice
df = pd.DataFrame([
['A', 'cat', 10],
['A', 'cat', 20],
['B', 'dog', 30],
['B', 'cat', 40]
], columns = ['Label', 'Animal', 'Score'])
g = df.groupby(['Label', 'Animal']).agg('sum')
g.index
>>> MultiIndex([('A', 'cat'),
('B', 'cat'),
('B', 'dog')],
names=['Label', 'Animal'])
g.loc[idx[:, 'dog'], :] # <--- WORKS because 'dog' is an element of level 1.
```
But...
```
g = df[df['Label']=='A].groupby(['Label', 'Animal']).agg('sum')
g.index
>>> MultiIndex([('A', 'cat')],
names=['Label', 'Animal'])
g.loc[idx[:, 'dog'], :] # <--- KeyError because 'dog' is NOT an element of level 1.
```
I tried to solve this with
```
g2 = g.reindex(pd.Index(['cat', 'dog'], name='Other'), level=1)
g2.index
>>> MultiIndex([('A', 'cat')],
names=['Label', 'Animal']). # <-- Reindex did nothing.
```
The docs for `Index.reindex` don't mention the `level` argument or give any examples, the docs for `DataFrame.reindex` were better but still not actually consistent with the arguments and no multiindex examples. And I tried to find any relevant parts of the guide which deal with reindexing multi indexes but without success.
Now that Indexing with missing keys returns a `KeyError` is it more important to provide example for these issues? Or have I missed something very simple.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39754/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39754/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39755 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39755/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39755/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39755/events | https://github.com/pandas-dev/pandas/issues/39755 | 806,654,669 | MDU6SXNzdWU4MDY2NTQ2Njk= | 39,755 | BUG: casting dt64 in DataFrame.reindex | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-11T18:55:24Z | 2021-02-12T01:21:36Z | 2021-02-12T01:21:36Z | MEMBER | null | ```
import numpy as np
import pandas as pd
mi = pd.MultiIndex.from_product([list("ABCDE"), range(2)])
dti = pd.date_range("2016-01-01", periods=10)
ser = pd.Series(dti, index=mi)
df = ser.unstack()
index = df.index.append(pd.Index([1]))
columns = df.columns.append(pd.Index(["foo"]))
axes = {"index": index, "columns": columns}
fv = np.timedelta64("NaT", "ns")
res = df.reindex(fill_value=fv, **axes)
>>> res
>>> res
0 1 foo
A 1451606400000000000 1451692800000000000 NaT
B 1451779200000000000 1451865600000000000 NaT
C 1451952000000000000 1452038400000000000 NaT
D 1452124800000000000 1452211200000000000 NaT
E 1452297600000000000 1452384000000000000 NaT
1 NaT NaT NaT
```
The underlying problem here is https://github.com/numpy/numpy/issues/12550 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39755/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39755/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39756 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39756/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39756/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39756/events | https://github.com/pandas-dev/pandas/issues/39756 | 806,679,358 | MDU6SXNzdWU4MDY2NzkzNTg= | 39,756 | BUG: to_datetime throws TypeError: unhashable type: 'list' even with errors='ignore' | {
"avatar_url": "https://avatars.githubusercontent.com/u/10884874?v=4",
"events_url": "https://api.github.com/users/adamerose/events{/privacy}",
"followers_url": "https://api.github.com/users/adamerose/followers",
"following_url": "https://api.github.com/users/adamerose/following{/other_user}",
"gists_url": "https://api.github.com/users/adamerose/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adamerose",
"id": 10884874,
"login": "adamerose",
"node_id": "MDQ6VXNlcjEwODg0ODc0",
"organizations_url": "https://api.github.com/users/adamerose/orgs",
"received_events_url": "https://api.github.com/users/adamerose/received_events",
"repos_url": "https://api.github.com/users/adamerose/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adamerose/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adamerose/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adamerose"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 6 | 2021-02-11T19:32:25Z | 2021-03-14T23:43:26Z | 2021-03-14T23:43:26Z | NONE | null | I'm getting this error when I try converting certain `Series` to datetime using `pd.to_datetime`, even though I pass `errors='ignore'`
```python
_ = pd.to_datetime(pd.Series([['a']]*50), errors='ignore') # works
_ = pd.to_datetime(pd.Series([['a']]*51), errors='ignore') # error
```
```python
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python38\lib\site-packages\pandas\core\tools\datetimes.py", line 801, in to_datetime
cache_array = _maybe_cache(arg, format, cache, convert_listlike)
File "C:\Python38\lib\site-packages\pandas\core\tools\datetimes.py", line 173, in _maybe_cache
if not should_cache(arg):
File "C:\Python38\lib\site-packages\pandas\core\tools\datetimes.py", line 137, in should_cache
unique_elements = set(islice(arg, check_count))
TypeError: unhashable type: 'list'
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 1,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39756/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39756/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39757 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39757/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39757/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39757/events | https://github.com/pandas-dev/pandas/issues/39757 | 806,764,026 | MDU6SXNzdWU4MDY3NjQwMjY= | 39,757 | ValueError from operations between Series with specific names | {
"avatar_url": "https://avatars.githubusercontent.com/u/42591328?v=4",
"events_url": "https://api.github.com/users/dan1261/events{/privacy}",
"followers_url": "https://api.github.com/users/dan1261/followers",
"following_url": "https://api.github.com/users/dan1261/following{/other_user}",
"gists_url": "https://api.github.com/users/dan1261/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dan1261",
"id": 42591328,
"login": "dan1261",
"node_id": "MDQ6VXNlcjQyNTkxMzI4",
"organizations_url": "https://api.github.com/users/dan1261/orgs",
"received_events_url": "https://api.github.com/users/dan1261/received_events",
"repos_url": "https://api.github.com/users/dan1261/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dan1261/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dan1261/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dan1261"
} | [
{
"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"
},
{
"color": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 5 | 2021-02-11T21:38:59Z | 2021-11-20T15:55:55Z | 2021-11-20T15:55:55Z | CONTRIBUTOR | null | The following raises a ValueError due to comparison of the two names in the function _maybe_match_name (core/ops/common.py).
```python
>>> from pandas import Series
>>> import numpy as np
>>> series_a = Series([1,2,3], name=np.float64(1.0))
>>> series_b = Series([1,2,3], name=(np.float64(1.0), np.float64(2.0)))
>>> series_a + series_b
```
It seems to only occur when comparison a tuple of numpy dtypes to a single numpy dtype, but I didn't test every possible combination. It does not occur when using built-in floats, I imagine this is due to overloading of the == operator by the numpy dtypes when the other operand is a tuple.
There is a nearby TODO "what if they both have np.nan for their names?" I don't know how feasible it is to consider every case where equality fails, but it seems a try/except returning None would seem to resolve this issue, and be in line with the default return value if the names do not compare equal. I would be keen to implement this simple fix if it seems sensible.
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.0.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United Kingdom.1252
pandas : 1.0.3
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 47.3.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: 0.8.1
bs4 : 4.9.1
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.5.0
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : 0.51.2 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39757/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39757/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39758 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39758/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39758/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39758/events | https://github.com/pandas-dev/pandas/issues/39758 | 806,766,919 | MDU6SXNzdWU4MDY3NjY5MTk= | 39,758 | CI: remove the current coverage build, run coverage on multiple builds instead | {
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-11T21:43:11Z | 2021-03-19T14:22:49Z | 2021-03-19T14:22:49Z | MEMBER | null | Currently, we upload one coverage report from `actions-37-cov`. It takes the longest. But Codecov automatically merges multiple reports. See details https://docs.codecov.io/docs/merging-reports. So we could run coverage on multiple shorter builds.
We need to select a set of builds (create new ones if needed), add `-cov` to the name of their environment files (suggested by @jreback ), update their CI configs to upload reports to Codecov, and remove the `actions-37-cov` build if it's no longer required.
| {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39758/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39758/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39759 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39759/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39759/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39759/events | https://github.com/pandas-dev/pandas/pull/39759 | 806,766,922 | MDExOlB1bGxSZXF1ZXN0NTcyMTMxMjcy | 39,759 | BUG: casting dt64/td64 in DataFrame.reindex | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-11T21:43:11Z | 2021-02-12T01:43:43Z | 2021-02-12T01:21:37Z | MEMBER | null | - [x] closes #39755
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39759/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39759/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39759.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39759",
"merged_at": "2021-02-12T01:21:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39759.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39759"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39760 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39760/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39760/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39760/events | https://github.com/pandas-dev/pandas/pull/39760 | 806,814,601 | MDExOlB1bGxSZXF1ZXN0NTcyMTcwNjIz | 39,760 | CLN: maybe_promote doesnt need to support EA dtypes | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-11T23:06:21Z | 2021-02-12T01:39:54Z | 2021-02-12T01:22:32Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39760/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39760/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39760.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39760",
"merged_at": "2021-02-12T01:22:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39760.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39760"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39761 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39761/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39761/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39761/events | https://github.com/pandas-dev/pandas/pull/39761 | 806,817,140 | MDExOlB1bGxSZXF1ZXN0NTcyMTcyNzQz | 39,761 | BUG: Series.where not casting None to nan | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-11T23:09:03Z | 2021-02-12T15:24:22Z | 2021-02-12T01:27:36Z | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
started off just moving more tests to use SetitemCastingEquivalents, found this in TestSeriesNoneCoercion | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39761/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39761/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39761.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39761",
"merged_at": "2021-02-12T01:27:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39761.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39761"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39762 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39762/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39762/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39762/events | https://github.com/pandas-dev/pandas/pull/39762 | 806,849,655 | MDExOlB1bGxSZXF1ZXN0NTcyMTk5NDQw | 39,762 | DOC: Ban mutation in UDF methods | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-12T00:18:55Z | 2021-02-23T19:37:16Z | 2021-02-15T23:20:47Z | MEMBER | null | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Ref: #12653. I added the message to apply, aggregate, transform, and groupby's filter. Not sure if this needs a whatsnew.
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/39762/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39762/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39762.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39762",
"merged_at": "2021-02-15T23:20:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39762.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39762"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39763 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39763/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39763/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39763/events | https://github.com/pandas-dev/pandas/issues/39763 | 806,851,650 | MDU6SXNzdWU4MDY4NTE2NTA= | 39,763 | BUG: setitem with ArrayManager not preserving PeriodDtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "1d76db",
"default": false,
"description": "",
"id": 3165546917,
"name": "ArrayManager",
"node_id": "MDU6TGFiZWwzMTY1NTQ2OTE3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ArrayManager"
}
] | open | false | null | [] | null | 1 | 2021-02-12T00:23:07Z | 2021-08-15T18:49:25Z | null | MEMBER | null | cc @jorisvandenbossche this is coming up the quantile tests with --array-manager
```
index = pd.period_range("2016-01-01", periods=9, freq="D", name="A")
obj = pd.DataFrame(index).copy()
obj.iloc[:] = index._na_value
>>> obj.dtypes
A datetime64[ns]
dtype: object
```
We'd like to keep `period[D]` 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/39763/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39763/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39764 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39764/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39764/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39764/events | https://github.com/pandas-dev/pandas/issues/39764 | 806,862,493 | MDU6SXNzdWU4MDY4NjI0OTM= | 39,764 | BUG: Getting garbled characters when using pd.to_clipboard() | {
"avatar_url": "https://avatars.githubusercontent.com/u/6313008?v=4",
"events_url": "https://api.github.com/users/mbkupfer/events{/privacy}",
"followers_url": "https://api.github.com/users/mbkupfer/followers",
"following_url": "https://api.github.com/users/mbkupfer/following{/other_user}",
"gists_url": "https://api.github.com/users/mbkupfer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mbkupfer",
"id": 6313008,
"login": "mbkupfer",
"node_id": "MDQ6VXNlcjYzMTMwMDg=",
"organizations_url": "https://api.github.com/users/mbkupfer/orgs",
"received_events_url": "https://api.github.com/users/mbkupfer/received_events",
"repos_url": "https://api.github.com/users/mbkupfer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mbkupfer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mbkupfer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mbkupfer"
} | [
{
"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": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
},
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
},
{
"color": "f9c1b1",
"default": false,
"description": "Linux OS",
"id": 1233745380,
"name": "Linux",
"node_id": "MDU6TGFiZWwxMjMzNzQ1Mzgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Linux"
}
] | open | false | null | [] | null | 1 | 2021-02-12T00:48:51Z | 2021-08-15T17:45:25Z | 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
N/A
```
#### Problem description
I've been running into an issue lately where when is use `to_clipboard` the results paste into excel with a lot of garbled text. Any idea what can be going on here? I haven't found any minimal example to consistently reproduce, but it is happening a lot for me. `to_exce`l still works interestingly enough, but I do prefer the convenience of the clipboard.
#### Expected Output
Not this:

Here's another to verify that it is rather random what I get:

#### Output of ``pd.show_versions()``
<details>
Does work for me. I get the following error:
```
ImportError: Can't determine version for tables
```
I'm on pandas 1.2.2 though
</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/39764/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39764/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39765 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39765/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39765/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39765/events | https://github.com/pandas-dev/pandas/pull/39765 | 806,870,631 | MDExOlB1bGxSZXF1ZXN0NTcyMjE2MjYy | 39,765 | BUG/REF: Refactor BaseWindowIndex so groupby.apply has a consistent index output | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-12T01:09:55Z | 2021-02-25T06:05:35Z | 2021-02-25T06:05:05Z | MEMBER | null | - [x] closes #39732
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39765/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39765/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39765.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39765",
"merged_at": "2021-02-25T06:05:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39765.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39765"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39766 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39766/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39766/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39766/events | https://github.com/pandas-dev/pandas/pull/39766 | 806,874,111 | MDExOlB1bGxSZXF1ZXN0NTcyMjE5MDUx | 39,766 | BUG: pd.show_versions: json.decoder.JSONDecodeError | {
"avatar_url": "https://avatars.githubusercontent.com/u/46272939?v=4",
"events_url": "https://api.github.com/users/alexprincel/events{/privacy}",
"followers_url": "https://api.github.com/users/alexprincel/followers",
"following_url": "https://api.github.com/users/alexprincel/following{/other_user}",
"gists_url": "https://api.github.com/users/alexprincel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alexprincel",
"id": 46272939,
"login": "alexprincel",
"node_id": "MDQ6VXNlcjQ2MjcyOTM5",
"organizations_url": "https://api.github.com/users/alexprincel/orgs",
"received_events_url": "https://api.github.com/users/alexprincel/received_events",
"repos_url": "https://api.github.com/users/alexprincel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alexprincel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alexprincel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alexprincel"
} | [
{
"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": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 12 | 2021-02-12T01:18:28Z | 2021-02-22T18:31:59Z | 2021-02-22T18:18:09Z | CONTRIBUTOR | null | - [ x] closes #39701
- [ x] tests added / passed
- [ x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39766/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39766/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39766.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39766",
"merged_at": "2021-02-22T18:18:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39766.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39766"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39767 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39767/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39767/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39767/events | https://github.com/pandas-dev/pandas/pull/39767 | 806,890,537 | MDExOlB1bGxSZXF1ZXN0NTcyMjMxODk5 | 39,767 | DEPR: casting date to dt64 in maybe_promote | {
"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": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | 2021-02-12T02:07:52Z | 2021-02-16T00:20:08Z | 2021-02-15T23:52:40Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Once enforced, maybe_promote behavior will match DatetimeArray._validate_setitem_value and infer_dtype_from_scalar
sits on top of #39743 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39767/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39767/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39767.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39767",
"merged_at": "2021-02-15T23:52:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39767.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39767"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39768 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39768/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39768/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39768/events | https://github.com/pandas-dev/pandas/pull/39768 | 806,893,658 | MDExOlB1bGxSZXF1ZXN0NTcyMjM0NDA3 | 39,768 | TST: split large tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-12T02:17:37Z | 2021-02-16T00:05:54Z | 2021-02-15T23:53:51Z | 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/39768/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39768/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39768.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39768",
"merged_at": "2021-02-15T23:53:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39768.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39768"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39769 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39769/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39769/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39769/events | https://github.com/pandas-dev/pandas/pull/39769 | 806,925,632 | MDExOlB1bGxSZXF1ZXN0NTcyMjU5MjA4 | 39,769 | BUG: incorrectly accepting datetime64(nat) for dt64tz | {
"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"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | 2021-02-12T04:01:33Z | 2021-02-16T01:23:59Z | 2021-02-16T00:19:50Z | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39769/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39769/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39769.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39769",
"merged_at": "2021-02-16T00:19:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39769.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39769"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39770 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39770/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39770/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39770/events | https://github.com/pandas-dev/pandas/pull/39770 | 806,977,138 | MDExOlB1bGxSZXF1ZXN0NTcyMzAyMjg5 | 39,770 | DOC: Remove repeated column assignment in visualization doc | {
"avatar_url": "https://avatars.githubusercontent.com/u/30049606?v=4",
"events_url": "https://api.github.com/users/paw-lu/events{/privacy}",
"followers_url": "https://api.github.com/users/paw-lu/followers",
"following_url": "https://api.github.com/users/paw-lu/following{/other_user}",
"gists_url": "https://api.github.com/users/paw-lu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/paw-lu",
"id": 30049606,
"login": "paw-lu",
"node_id": "MDQ6VXNlcjMwMDQ5NjA2",
"organizations_url": "https://api.github.com/users/paw-lu/orgs",
"received_events_url": "https://api.github.com/users/paw-lu/received_events",
"repos_url": "https://api.github.com/users/paw-lu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/paw-lu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paw-lu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/paw-lu"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-12T06:12:32Z | 2021-02-12T12:04:30Z | 2021-02-12T12:04:21Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
The visualization doc had an example where a column in a DataFrame is repeatedly assigned.
```python
df["b"] = df["b"] = df["b"] + np.arange(1000)
```
The expression has been simplified.
---
Thanks for helping to maintain the library!
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39770/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39770/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39770.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39770",
"merged_at": "2021-02-12T12:04:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39770.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39770"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39771 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39771/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39771/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39771/events | https://github.com/pandas-dev/pandas/issues/39771 | 807,010,573 | MDU6SXNzdWU4MDcwMTA1NzM= | 39,771 | BUG: fix quantile for nullable integer/float | {
"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": "e11d21",
"default": false,
"description": "Blocking issue or pull request for an upcoming release",
"id": 77550281,
"name": "Blocker",
"node_id": "MDU6TGFiZWw3NzU1MDI4MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-12T07:17:24Z | 2021-05-31T17:41:02Z | 2021-05-31T17:41:02Z | MEMBER | null | This is a regression in master due to https://github.com/pandas-dev/pandas/pull/39606, so we should fix it before 1.3.
```
In [1]: pd.Series([1, 2, 3], dtype="Int64").quantile(0.75)
..
~/scipy/pandas/pandas/core/internals/blocks.py in quantile(self, qs, interpolation, axis)
1858 # shape[0] should be 1 as long as EAs are 1D
1859 assert result.shape == (1, len(qs)), result.shape
-> 1860 result = type(self.values)._from_factorized(result[0], self.values)
1861
1862 return make_block(result, placement=self.mgr_locs, ndim=2)
~/scipy/pandas/pandas/core/arrays/base.py in _from_factorized(cls, values, original)
255 ExtensionArray.factorize : Encode the extension array as an enumerated type.
256 """
--> 257 raise AbstractMethodError(cls)
258
259 # ------------------------------------------------------------------------
AbstractMethodError: This method must be defined in the concrete class type
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39771/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39771/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39772 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39772/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39772/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39772/events | https://github.com/pandas-dev/pandas/pull/39772 | 807,147,825 | MDExOlB1bGxSZXF1ZXN0NTcyNDQ0MjE1 | 39,772 | REF: move actual lookup and dispatch to array_op from frame into internals | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "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": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | open | false | null | [] | null | 18 | 2021-02-12T11:10:27Z | 2021-05-26T00:08:18Z | null | MEMBER | null | Background: I am looking at ways to optimize ops for ArrayManager, and currently the manager hasn't much control (apart from the `operate_blockwise`): it is the DataFrame in `_dispatch_frame_op` that decides which `array_op` function to use and actually calls it on the columns or dispatches it to the manager (with apply or operate_blockwise). For ArrayManager, more control would be useful (one example: deciding whether to use numexpr or not now takes a lot of time in the benchmarks for ArrayManager, because it gets done column by column, while we could do it more efficiently inside the ArrayManager).
So the idea would then be:
- DataFrame is responsible for all preprocessing: checking the `right` argument, alignment, etc (which is already done right now in `DataFrame._arith_method` -> `ops.align_method_FRAME`). This happens on the DataFrame level because it involves frame-level logic (alignment) and can be shared for BlockManager/ArrayManager
- Manager is responsible for executing the actual operation on *clean* arguments: it gets either a scalar, array (with correct length to either match to axis 0 or 1) or another Manager (of the same size).
Note that making the Manager responsible to *call* the execution of the op, doesn't mean the actual code needs to live in the internals. It can still continue to use to array_ops code in /core/ops (and also the ArrayManager will continue to do that, but with some adaptations, eg with some other arguments like passing through a pre-determined `use_numexpr`).
So for the BlockManger, the diff is only small here (it's mainly moving the case of frame/series which works column by column into BlockManager). I think it's actually an OK change for BlockManager on itself as well, but so the main goal is to allow more customization for ArrayManager in follow-up PRs.
Thoughts on the general idea?
cc @jbrockmendel @jreback | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39772/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39772/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39772.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39772",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39772.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39772"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39773 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39773/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39773/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39773/events | https://github.com/pandas-dev/pandas/issues/39773 | 807,197,098 | MDU6SXNzdWU4MDcxOTcwOTg= | 39,773 | ENH: reverse like parameter for DataFrame.filter() method | {
"avatar_url": "https://avatars.githubusercontent.com/u/40714954?v=4",
"events_url": "https://api.github.com/users/sroener/events{/privacy}",
"followers_url": "https://api.github.com/users/sroener/followers",
"following_url": "https://api.github.com/users/sroener/following{/other_user}",
"gists_url": "https://api.github.com/users/sroener/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sroener",
"id": 40714954,
"login": "sroener",
"node_id": "MDQ6VXNlcjQwNzE0OTU0",
"organizations_url": "https://api.github.com/users/sroener/orgs",
"received_events_url": "https://api.github.com/users/sroener/received_events",
"repos_url": "https://api.github.com/users/sroener/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sroener/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sroener/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sroener"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 2 | 2021-02-12T12:28:33Z | 2021-08-15T17:51:40Z | 2021-08-15T17:51:40Z | NONE | null | #### Is your feature request related to a problem?
I am able to filter columns of dataframes by using `df.filter(like="COLUMNNAME",axis=1)` and I would like to do the reverse, excluding these columns.
#### Describe the solution you'd like
I think a possible solution would be the implementation of a not_like argument. Alternatively, an operator similar to `~` in the `.loc[]` method.
#### API breaking implications
-
#### Describe alternatives you've considered
The alternative for achieving this goal is either using ´.filter()´ with an appropriate regex or using ´.loc[:,~df.columns.str.contains("COLUMNNAME")´. Both methods are feasible, but either more complicated or less readable than the proposed 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/39773/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39773/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39774 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39774/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39774/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39774/events | https://github.com/pandas-dev/pandas/pull/39774 | 807,203,574 | MDExOlB1bGxSZXF1ZXN0NTcyNDkxNDcy | 39,774 | STYLE use absolute imports in asv_bench | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 4 | 2021-02-12T12:39:10Z | 2021-02-13T09:57:59Z | 2021-02-13T09:57:48Z | MEMBER | null | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
No longer limiting `abs-imports` to just pandas. This requires telling `isort` that `benchmarks` is a local folder, else it groups it with third-party imports | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39774/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39774/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39774.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39774",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39774.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39774"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39775 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39775/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39775/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39775/events | https://github.com/pandas-dev/pandas/issues/39775 | 807,227,831 | MDU6SXNzdWU4MDcyMjc4MzE= | 39,775 | BUG: Index and MultiIndex `KeyError` cases and discussion | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] | open | false | null | [] | null | 0 | 2021-02-12T13:18:02Z | 2021-08-15T17:54:43Z | null | CONTRIBUTOR | null | Since the introduction of `KeyError` for missing keys in an `index` there have been quite a few use cases from different issues. I will try and link some of the issues if I see them.
My view is that `KeyErrors` for `Index` is fine, but `MultiIndexes` should be treated differently: you cannot always raise a `KeyError` for a single keys in a `MultiIndex` slice since a `MultiIndex` **cannot** always be reindexed.
## Index
```
indexes = [
pd.Index(['a','b','c','e','d'], name='Unique Non-Monotonic'),
pd.Index(['a','b','c','e','d'], name='Unique Monotonic').sort_values(),
pd.Index(['a','b','b','e','d'], name='Non-Unique Non-Monotonic'),
pd.Index(['a','b','b','e','d'], name='Non-Unique Monotonic').sort_values(),
]
```

<details>
<summary>Code generator</summary>
```
ret = None
def do(command):
try:
exec(f'global ret; ret={command}', globals())
except KeyError:
return 'KeyError'
else:
if isinstance(ret, (np.int64)):
return 'int64'
elif isinstance(ret, (pd.Series)):
return 'Series'
elif isinstance(ret, (pd.DataFrame)):
return 'DataFrame'
return 'OtherType'
cases = [
"'a'", # single valid key
"'!'", # single invalid key
"['a']", # single valid key as pseudo multiple valid keys
"['!']", # single invalid key as pseudo multip valid keys
"['a','e']", # multiple valid keys
"['a','!']", # at least one invalid keys
"'a':'e'", # valid key slice
"'a':'!'", # at least one invalid slice key
"'!':", # at least one invalid slice key
"'b'", # single valid non-unique key
"['b']", # single valid non-unique key as pseudo multiple keys
"'b':'d'", # slice with non-unique key
]
base = [
[f's.loc[{case}]', # use regular s.loc[]
f's.loc[ix[{case}]]'] # and with index slice as comparison s.loc[ix[{}]]
for case in cases
]
commands = [
command for sublist in base for command in sublist
]
indexes = [
pd.Index(['a','b','c','e','d'], name='Unique Non-Monotonic'),
pd.Index(['a','b','c','e','d'], name='Unique Monotonic').sort_values(),
pd.Index(['a','b','b','e','d'], name='Non-Unique Non-Monotonic'),
pd.Index(['a','b','b','e','d'], name='Non-Unique Monotonic').sort_values(),
]
results = pd.DataFrame('', index=commands, columns=['Uq Non-Mono', 'Uq Mono', 'Non-Uq Non-Mono', 'Non-Uq Mono'])
for j, index in enumerate(indexes):
s = pd.Series([1,2,3,4,5], index=index)
for i, command in enumerate(commands):
results.iloc[i, j] = do(command)
```
</details>
This seems to be pretty consistent. The only inconsistency is perhaps highlighted in red, and a minor niggle for dynamic coding might be the different return types in the case of non-unique indexes.
Obviously the solution to dealing with any case where you need to index by pre-defined levels that may have been filtered is to `reindex` with your pre-defined keys. Any this is quite easy to do in RAM.
## MultiIndex
```
indexes = [
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'z'), ('a','x'), ('a', 'z')]),
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'z'), ('a','x'), ('a', 'z')]).sortlevel()[0],
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'x'), ('a','x'), ('a', 'z')]),
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'x'), ('a','x'), ('a', 'z')]).sortlevel()[0],
]
```
MultiIndexing is different. You **cannot** always reindex for one of two reasons:
- The number of possible combinations of the index level values exceeds ram and is computationally slow.
- If you are to add in a value or set of values to a MultiIndex level the process is ambiguous and expanding all combinations will lead to above problems.
For example, consider the MultiIndex levels: (a,b), (x,y,z). There are a maximum of 6 index tuples but practically one will work with indexes of much less than the maximum combinations *(Since the combinations scale exponentially with the number of levels)*. Your MultiIndex is thus [(a,x), (a,z), (b,x), (b,y)].
I think **you need** to be able to index MultiIndexes with keys that are missing. As a rule I would suggest that slices which are an iterable do not yield KeyErrors. Here is a summary of some of the observances below for current behaviour:
```
[a, y] : KeyError
[a, [y]] : KeyError but should return empty (a in level0)
[[a], y] : KeyError but should return empty (y in level1)
[[a], [y]] : KeyError but should return empty
[a, !] : KeyError
[a, [!]] : returns empty
[[a], !] : KeyError (maybe OK since ! not in level1)
[[!], x] : returns empty (x in level1)
[[!], [!]] : returns empty
[!, !] : KeyError
```

<details>
<summary>Code generator</summary>
```
cases_level0 = [
"'a'", # single valid key on level0
"'!'", # single invalid key on level0
"['a']", # single valid key on level0 as pseudo multiple valid keys
"['!']", # single invalid key on level0 as pseudo multiple valid keys
"['a', 'b']", # multiple valid key on level0
"['a', '!']", # at least one invalid key on level0
"'a':'b'", # valid level0 index slice
"'a':'!'", # invalid level0 index slice
"'!':", # fully invalid level0 index slice
]
comments_level0 = [
'0: valid single, ',
'0: invalid single, ',
'0: valid single as multiple, ',
'0: invalid single as multiple, ',
'0: multiple valid, ',
'0: one invalid in multiple, ',
'0: valid slice, ',
'0: semi-invalid slice, ',
'0: invalid slice, ',
]
base = [
[f's.loc[{case}]', f's.loc[ix[{case}, :]]'] for case in cases_level0
]
commands = [
command for sublist in base for command in sublist
]
indexes = [
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'z'), ('a','x'), ('a', 'z')]),
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'z'), ('a','x'), ('a', 'z')]).sortlevel()[0],
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'x'), ('a','x'), ('a', 'z')]),
pd.MultiIndex.from_tuples([('b','x'), ('b', 'y'), ('b', 'x'), ('a','x'), ('a', 'z')]).sortlevel()[0],
]
results = pd.DataFrame('', index=commands, columns=['Uq Non-Mono', 'Uq Mono', 'Non-Uq Non-Mono', 'Non-Uq Mono'])
for j, index in enumerate(indexes):
s = pd.Series([1,2,3,4,5], index=index)
for i, command in enumerate(commands):
results.iloc[i,j] = do(command)
base = [
[com, com] for com in comments_level0
]
comments = [
com for sublist in base for com in sublist
]
results['Comment'] = comments
results.style
cases_level1 = [
"'x'", # single valid key on level1
"'y'", # single sometimes-valid key on level1
"'!'", # single invalid key on level1
"['x']", # single valid key on level1 as pseudo multiple valid keys
"['y']", # single sometimes-valid key on level1 as pseudo multiple valid keys
"['!']", # single invalid key on level1 as pseudo multiple valid keys
"['x', 'y']", # multiple sometimes-valid key on level1
"['x', '!']", # at least one invalid key on level1
"'x':'y'", # sometimes-valid level0 index slice
"'x':'!'", # invalid level1 index slice
"'!':", # fully invalid level1 index slice
]
comments_level1 = [
'1: valid single',
'1: semi-valid single',
'1: invalid single',
'1: valid single as multiple',
'1: semi-valid single as multiple',
'1: invalid single as multiple',
'1: multiple semi-valid',
'1: one invalid in multiple',
'1: semi-valid slice',
'1: semi-invalid slice',
'1: invalid slice',
]
from itertools import product
multi_cases = list(product(cases_level0, cases_level1))
multi_comments = list(product(comments_level0, comments_level1))
base = [
[f's.loc[{case[0]}, {case[1]}]', f's.loc[ix[{case[0]}, {case[1]}]]'] for case in multi_cases
]
commands = [
command for sublist in base for command in sublist
]
results = pd.DataFrame('', index=commands, columns=['Uq Non-Mono', 'Uq Mono', 'Non-Uq Non-Mono', 'Non-Uq Mono'])
for j, index in enumerate(indexes):
s = pd.Series([1,2,3,4,5], index=index)
for i, command in enumerate(commands):
results.iloc[i,j] = do(command)
base = [
[com, com] for com in multi_comments
]
comments = [
com for sublist in base for com in sublist
]
results['comment'] = comments
results.style\
.applymap(lambda v: 'background-color:red;', subset=ix[["s.loc['a', ['!']]", "s.loc['a', ['y']]", "s.loc[['!'], ['!']]", "s.loc[['a'], ['y']]"], :])\
.applymap(lambda v: 'background-color:LemonChiffon;', subset=ix[["s.loc['a', 'x':'y']"], :])
```
</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/39775/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39775/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39776 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39776/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39776/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39776/events | https://github.com/pandas-dev/pandas/issues/39776 | 807,229,888 | MDU6SXNzdWU4MDcyMjk4ODg= | 39,776 | API: ExtensionArray interface method to create an empty / all-NA array for a given dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] | open | false | null | [] | null | 0 | 2021-02-12T13:20:57Z | 2021-08-15T17:57:51Z | null | MEMBER | null | Specific use case comes from https://github.com/pandas-dev/pandas/pull/39612#discussion_r570932180, but in general it can sometimes be useful to be able to create an empty or all-NA array in an efficient way.
Since the ExtensionDtype/Array knows best how to do this efficiently, we can add a method to the extension array interface for this.
One question, though: I mentioned above "empty or all-NA", but this is not the same of course. An actually uninitialized array (`np.empty(n, dtype)`) can still be faster to create as an all-NA array (`np.full(n, NA, dtype)`, or variant with the appropriate NA-sentinel).
But maybe we don't care much about this distinction, and just a version to create all-NA is fine? (or another constant fill_value)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39776/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39776/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39777 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39777/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39777/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39777/events | https://github.com/pandas-dev/pandas/pull/39777 | 807,264,439 | MDExOlB1bGxSZXF1ZXN0NTcyNTQzMDQx | 39,777 | ENH: 'encoding_errors' argument for read_csv/json | {
"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": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 24 | 2021-02-12T14:06:32Z | 2021-03-09T22:55:44Z | 2021-03-09T22:03:54Z | CONTRIBUTOR | null | - [x] closes #39450
- [x] closes #39017
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Should `encoding_errors` be added to `to_csv` and should `errors` in `to_csv` show a `DeprecationWarning` (for consistent naming)? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39777/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39777/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39777.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39777",
"merged_at": "2021-03-09T22:03:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39777.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39777"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39778 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39778/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39778/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39778/events | https://github.com/pandas-dev/pandas/pull/39778 | 807,349,581 | MDExOlB1bGxSZXF1ZXN0NTcyNjE0MTgw | 39,778 | REF: de-duplicate dt64/td64 putmask/setitem shims | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-12T16:01:10Z | 2021-02-12T17:43:34Z | 2021-02-12T17:40:26Z | MEMBER | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39778/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39778/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39778.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39778",
"merged_at": "2021-02-12T17:40:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39778.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39778"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39779 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39779/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39779/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39779/events | https://github.com/pandas-dev/pandas/pull/39779 | 807,432,297 | MDExOlB1bGxSZXF1ZXN0NTcyNjg0MDky | 39,779 | STYLE, CI move validate_rst_title_capitalization check to 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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-12T17:48:32Z | 2021-02-16T09:55:16Z | 2021-02-15T22:31:47Z | MEMBER | null | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
xref #39624 in which it took ~15 minutes for @rhshadrach to be told
```
Heading capitalization formatted incorrectly. Please correctly capitalize "pytest.xfail" to "Pytest.xfail"
```
, like this such feedback will be provided much faster | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39779/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39779/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39779.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39779",
"merged_at": "2021-02-15T22:31:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39779.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39779"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39780 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39780/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39780/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39780/events | https://github.com/pandas-dev/pandas/pull/39780 | 807,463,859 | MDExOlB1bGxSZXF1ZXN0NTcyNzEwNDY4 | 39,780 | STYLE use force-grid-wrap in isort | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-12T18:42:19Z | 2021-02-16T15:43:26Z | 2021-02-16T15:41:51Z | MEMBER | null | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
As discussed in the monthly dev meeting - motivation here is to reduce the number of merge conflicts, which single-line imports seem to be a major source of.
some examples of such conflicts (which `force_grid_wrap` would avoid):
#37467 :
```python
<<<<<<< GH37278
from typing import TYPE_CHECKING, Optional
=======
from __future__ import annotations
from typing import TYPE_CHECKING
>>>>>>> master
```
#34426 :
```python
<<<<<<< 8745-from_dummies
from typing import TYPE_CHECKING, Any, Dict, Hashable, List, Optional, Type, Union, cast
=======
from typing import (
TYPE_CHECKING,
Dict,
Hashable,
List,
Optional,
Sequence,
Type,
TypeVar,
Union,
cast,
)
>>>>>>> master
```
#29944 :
```python
<<<<<<< subplot_groups
from collections import Counter, Iterable
from typing import TYPE_CHECKING, Hashable, List, Optional, Sequence, Tuple, Union
=======
from __future__ import annotations
from typing import TYPE_CHECKING, Hashable, List, Optional, Tuple
>>>>>>> master
```
----
This changes a huge number of files in one go, but all I've done is
```
git reset --hard upstream/master
# add `force_grid_wrap` option to setup.cfg
pre-commit run isort -a
git commit -m 'force grid-wrap' -a
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39780/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39780/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39780.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39780",
"merged_at": "2021-02-16T15:41:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39780.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39780"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39781 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39781/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39781/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39781/events | https://github.com/pandas-dev/pandas/pull/39781 | 807,505,189 | MDExOlB1bGxSZXF1ZXN0NTcyNzQ0Mzc5 | 39,781 | REF: dispatch maybe_promote to infer_dtype_from_scalar for td64 dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-12T19:50:50Z | 2021-02-16T23:04:38Z | 2021-02-16T22:55:18Z | MEMBER | null | sits on top of #39767 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39781/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39781/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39781.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39781",
"merged_at": "2021-02-16T22:55:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39781.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39781"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39782 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39782/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39782/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39782/events | https://github.com/pandas-dev/pandas/pull/39782 | 807,561,793 | MDExOlB1bGxSZXF1ZXN0NTcyNzg5ODI0 | 39,782 | CLN: remove redundant openpyxl type conversions | {
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
} | [
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-12T21:34:44Z | 2021-04-23T18:51:49Z | 2021-02-15T23:32:25Z | CONTRIBUTOR | null | openpyxl already converts cell values to Python types, preferring
integers where possible. For backwards-compatibility, we have to convert
integers back to float if not `convert_float`
- [ ] closes #xxxx
- [x] tests passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39782/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39782/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39782.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39782",
"merged_at": "2021-02-15T23:32:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39782.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39782"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39783 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39783/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39783/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39783/events | https://github.com/pandas-dev/pandas/pull/39783 | 807,624,913 | MDExOlB1bGxSZXF1ZXN0NTcyODQyOTE1 | 39,783 | DOC: Add reference to Text Extensions for Pandas project | {
"avatar_url": "https://avatars.githubusercontent.com/u/12436991?v=4",
"events_url": "https://api.github.com/users/frreiss/events{/privacy}",
"followers_url": "https://api.github.com/users/frreiss/followers",
"following_url": "https://api.github.com/users/frreiss/following{/other_user}",
"gists_url": "https://api.github.com/users/frreiss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/frreiss",
"id": 12436991,
"login": "frreiss",
"node_id": "MDQ6VXNlcjEyNDM2OTkx",
"organizations_url": "https://api.github.com/users/frreiss/orgs",
"received_events_url": "https://api.github.com/users/frreiss/received_events",
"repos_url": "https://api.github.com/users/frreiss/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/frreiss/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/frreiss/subscriptions",
"type": "User",
"url": "https://api.github.com/users/frreiss"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-13T00:07:59Z | 2021-02-15T22:43:49Z | 2021-02-15T22:43:18Z | CONTRIBUTOR | null | This PR adds a reference to our Text Extensions for Pandas library, which adds extension types for representing natural language processing data in Pandas DataFrames, to the "Pandas ecosystem" section of the documentation.
Main web page for our project: https://ibm.biz/text-extensions-for-pandas
Source code: https://github.com/CODAIT/text-extensions-for-pandas
API docs: https://text-extensions-for-pandas.readthedocs.io/
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39783/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39783/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39783.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39783",
"merged_at": "2021-02-15T22:43:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39783.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39783"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39784 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39784/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39784/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39784/events | https://github.com/pandas-dev/pandas/issues/39784 | 807,643,022 | MDU6SXNzdWU4MDc2NDMwMjI= | 39,784 | PERF: ewm passed with times is so slow compared to ewm pased with int | {
"avatar_url": "https://avatars.githubusercontent.com/u/78990487?v=4",
"events_url": "https://api.github.com/users/jasonzhang2s/events{/privacy}",
"followers_url": "https://api.github.com/users/jasonzhang2s/followers",
"following_url": "https://api.github.com/users/jasonzhang2s/following{/other_user}",
"gists_url": "https://api.github.com/users/jasonzhang2s/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jasonzhang2s",
"id": 78990487,
"login": "jasonzhang2s",
"node_id": "MDQ6VXNlcjc4OTkwNDg3",
"organizations_url": "https://api.github.com/users/jasonzhang2s/orgs",
"received_events_url": "https://api.github.com/users/jasonzhang2s/received_events",
"repos_url": "https://api.github.com/users/jasonzhang2s/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jasonzhang2s/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jasonzhang2s/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jasonzhang2s"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | 2021-02-13T01:14:05Z | 2021-02-26T14:46:40Z | 2021-02-26T14:46:40Z | NONE | null | - [yes ] I have checked that this issue has not already been reported.
- [yes ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (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
idx=pd.date_range('20000101','20201231',periods=50000)
df=pd.DataFrame(data=range(50000),index=idx)
%%time
df.ewm(halflife=pd.Timedelta('100d'),times=df.index).mean()
CPU times: user 1min 13s, sys: 0 ns, total: 1min 13s
Wall time: 1min 13s
%%time
df.ewm(halflife=100).mean()
CPU times: user 1.72 ms, sys: 26 µs, total: 1.75 ms
Wall time: 1.16 ms
```
#### Problem description
ewm passed with times is so slow compared to ewm pased with int
#### Expected Output
ewm passed with time should be similar speed as ewm passed with int
<details>
version 1.2.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/39784/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39784/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39785 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39785/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39785/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39785/events | https://github.com/pandas-dev/pandas/pull/39785 | 807,649,123 | MDExOlB1bGxSZXF1ZXN0NTcyODYyNjQx | 39,785 | TST: use more context managers | {
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-13T01:44:36Z | 2021-02-13T03:08:03Z | 2021-02-13T02:33:12Z | CONTRIBUTOR | null | spin off from #39047: use a few more context managers | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39785/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39785/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39785.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39785",
"merged_at": "2021-02-13T02:33:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39785.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39785"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39786 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39786/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39786/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39786/events | https://github.com/pandas-dev/pandas/pull/39786 | 807,661,964 | MDExOlB1bGxSZXF1ZXN0NTcyODcyNTg3 | 39,786 | CLN: Remove "how" return from agg | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-13T03:08:40Z | 2021-02-15T23:55:29Z | 2021-02-15T23:50:11Z | MEMBER | null | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39786/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39786/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39786.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39786",
"merged_at": "2021-02-15T23:50:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39786.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39786"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39787 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39787/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39787/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39787/events | https://github.com/pandas-dev/pandas/pull/39787 | 807,668,939 | MDExOlB1bGxSZXF1ZXN0NTcyODc3OTg3 | 39,787 | Updated description of cut and qcut | {
"avatar_url": "https://avatars.githubusercontent.com/u/8646635?v=4",
"events_url": "https://api.github.com/users/Ceay1/events{/privacy}",
"followers_url": "https://api.github.com/users/Ceay1/followers",
"following_url": "https://api.github.com/users/Ceay1/following{/other_user}",
"gists_url": "https://api.github.com/users/Ceay1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Ceay1",
"id": 8646635,
"login": "Ceay1",
"node_id": "MDQ6VXNlcjg2NDY2MzU=",
"organizations_url": "https://api.github.com/users/Ceay1/orgs",
"received_events_url": "https://api.github.com/users/Ceay1/received_events",
"repos_url": "https://api.github.com/users/Ceay1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Ceay1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ceay1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Ceay1"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] | closed | false | null | [] | null | 9 | 2021-02-13T03:57:23Z | 2021-06-02T21:09:51Z | 2021-06-02T21:09:51Z | NONE | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] A colleague of mine complained about the quality of the `cut` description. I took a chance to update the description of `cut` and `qcut`. If there are some suggestions to improve the description - please let me know.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39787/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39787/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39787.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39787",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39787.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39787"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39788 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39788/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39788/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39788/events | https://github.com/pandas-dev/pandas/pull/39788 | 807,675,147 | MDExOlB1bGxSZXF1ZXN0NTcyODgyNzY2 | 39,788 | BUG: DTA/TDA/PA/Series/Index.view with 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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-13T04:43:45Z | 2021-02-21T17:26:15Z | 2021-02-21T17:22:50Z | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This makes it feasible to share some of the SetitemCastingEquivalents 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/39788/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39788/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39788.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39788",
"merged_at": "2021-02-21T17:22:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39788.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39788"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39789 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39789/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39789/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39789/events | https://github.com/pandas-dev/pandas/pull/39789 | 807,685,801 | MDExOlB1bGxSZXF1ZXN0NTcyODkwODk2 | 39,789 | TST/REF: split/collect large tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-13T06:01:58Z | 2021-02-16T00:06:29Z | 2021-02-15T23:49:21Z | 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/39789/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39789/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39789.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39789",
"merged_at": "2021-02-15T23:49:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39789.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39789"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39790 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39790/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39790/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39790/events | https://github.com/pandas-dev/pandas/pull/39790 | 807,704,427 | MDExOlB1bGxSZXF1ZXN0NTcyOTA0ODk2 | 39,790 | ENH: Handle numpy-like arrays in assert_almost_equal | {
"avatar_url": "https://avatars.githubusercontent.com/u/23625371?v=4",
"events_url": "https://api.github.com/users/znicholls/events{/privacy}",
"followers_url": "https://api.github.com/users/znicholls/followers",
"following_url": "https://api.github.com/users/znicholls/following{/other_user}",
"gists_url": "https://api.github.com/users/znicholls/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/znicholls",
"id": 23625371,
"login": "znicholls",
"node_id": "MDQ6VXNlcjIzNjI1Mzcx",
"organizations_url": "https://api.github.com/users/znicholls/orgs",
"received_events_url": "https://api.github.com/users/znicholls/received_events",
"repos_url": "https://api.github.com/users/znicholls/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/znicholls/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/znicholls/subscriptions",
"type": "User",
"url": "https://api.github.com/users/znicholls"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 12 | 2021-02-13T08:19:17Z | 2021-06-16T13:32:26Z | 2021-06-16T13:32:26Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39790/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39790/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39790.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39790",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39790.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39790"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39791 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39791/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39791/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39791/events | https://github.com/pandas-dev/pandas/issues/39791 | 807,724,682 | MDU6SXNzdWU4MDc3MjQ2ODI= | 39,791 | datetime, timedelta, nanoseconds, missing zero padding on the right when nanoseconds are zero | {
"avatar_url": "https://avatars.githubusercontent.com/u/49970399?v=4",
"events_url": "https://api.github.com/users/bkiepke/events{/privacy}",
"followers_url": "https://api.github.com/users/bkiepke/followers",
"following_url": "https://api.github.com/users/bkiepke/following{/other_user}",
"gists_url": "https://api.github.com/users/bkiepke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bkiepke",
"id": 49970399,
"login": "bkiepke",
"node_id": "MDQ6VXNlcjQ5OTcwMzk5",
"organizations_url": "https://api.github.com/users/bkiepke/orgs",
"received_events_url": "https://api.github.com/users/bkiepke/received_events",
"repos_url": "https://api.github.com/users/bkiepke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bkiepke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bkiepke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bkiepke"
} | [
{
"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": "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": "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"
}
] | open | false | null | [] | null | 7 | 2021-02-13T10:44:09Z | 2021-08-15T17:59:24Z | null | NONE | null | I need to add a timedelta to a datetime object.
Using the following code it produces unexpected results:
```pyhton
import pandas
samplingRate = 200000000
n = pandas.to_datetime('now')
for index in range (0,3):
sampleTime = float((1 / samplingRate) * index)
td = pandas.Timedelta(sampleTime, unit='s')
print(f'index: {index} -> nanoseconds: {td.nanoseconds:>2} final timestamp: {n + td}')
```
Results are:
```
index: 0 -> nanoseconds: 0 -> final timestamp: 2021-02-13 10:28:32.985419
index: 1 -> nanoseconds: 5 -> final timestamp: 2021-02-13 10:28:32.985419005
index: 2 -> nanoseconds: 10 -> final timestamp: 2021-02-13 10:28:32.985419010
```
as can be seen nanoseconds in the line with index 0 are missing.
Expected: 2021-02-13 10:28:32.985419**000**
Unexpected: 2021-02-13 10:28:32.985419 (nanoseconds value, all 0, is missing)
The data is passed to an influxdb using telegraf which claims that it can't parse the line with index 0 because of the missing **000**
I would assume that this as a bug.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39791/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39791/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39792 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39792/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39792/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39792/events | https://github.com/pandas-dev/pandas/pull/39792 | 807,743,755 | MDExOlB1bGxSZXF1ZXN0NTcyOTMzMjA1 | 39,792 | TYP: np.ndarray does not yet accept type parameters | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-13T12:49:51Z | 2021-02-16T09:55:33Z | 2021-02-15T15:44:50Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/pull/36092/files#r519455981 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39792/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39792/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39792.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39792",
"merged_at": "2021-02-15T15:44:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39792.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39792"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39793 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39793/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39793/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39793/events | https://github.com/pandas-dev/pandas/pull/39793 | 807,756,777 | MDExOlB1bGxSZXF1ZXN0NTcyOTQyNTQ2 | 39,793 | CLN: Better method of determining read-only status of openpyxl worksheet | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | null | 1 | 2021-02-13T14:13:36Z | 2021-02-15T09:43:35Z | 2021-02-15T07:16:02Z | MEMBER | null | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39793/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39793/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39793.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39793",
"merged_at": "2021-02-15T07:16:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39793.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39793"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39794 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39794/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39794/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39794/events | https://github.com/pandas-dev/pandas/pull/39794 | 807,764,277 | MDExOlB1bGxSZXF1ZXN0NTcyOTQ3NzQ3 | 39,794 | TYP: tidy comments for # type: ignore | {
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-13T14:59:28Z | 2021-02-16T09:58:29Z | 2021-02-15T15:42:46Z | MEMBER | null | follow-up to #37556 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39794/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39794/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39794.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39794",
"merged_at": "2021-02-15T15:42:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39794.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39794"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39795 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39795/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39795/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39795/events | https://github.com/pandas-dev/pandas/pull/39795 | 807,766,000 | MDExOlB1bGxSZXF1ZXN0NTcyOTQ4OTg1 | 39,795 | fix benchmark failure with numpy 1.20+ | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | 2021-02-13T15:09:21Z | 2021-02-16T15:35:58Z | 2021-02-16T13:52:26Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/pull/38379#pullrequestreview-580260176
This will be blocking using numpy 1.20 on Github actions Checks, xref https://github.com/pandas-dev/pandas/pull/36092#issuecomment-771112784 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39795/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39795/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39795.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39795",
"merged_at": "2021-02-16T13:52:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39795.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39795"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39796 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39796/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39796/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39796/events | https://github.com/pandas-dev/pandas/pull/39796 | 807,782,228 | MDExOlB1bGxSZXF1ZXN0NTcyOTYwNDQx | 39,796 | DEP: Remove xlrd as being the default reader for xlsx | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 5 | 2021-02-13T16:41:32Z | 2021-02-16T23:21:23Z | 2021-02-16T23:08:53Z | MEMBER | null | - [x] closes #38884
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
One thing I noticed while working on this is that xlrd is in requirements-dev but not environment.yml; not sure if it should be removed from requirements-dev.
cc @jreback @jorisvandenbossche | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39796/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39796/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39796.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39796",
"merged_at": "2021-02-16T23:08:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39796.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39796"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39797 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39797/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39797/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39797/events | https://github.com/pandas-dev/pandas/pull/39797 | 807,806,105 | MDExOlB1bGxSZXF1ZXN0NTcyOTc3NjI2 | 39,797 | CLN: Styler simplify existing builtin methods | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-13T18:49:31Z | 2021-02-16T20:30:47Z | 2021-02-16T17:34:01Z | CONTRIBUTOR | null | Now that `Styler.apply` can accept `ndarray` in all cases we can reorganise the module and wrap all the UI facing functions into one:
- highlight null
- highlight max
- highlight min | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39797/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39797/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39797.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39797",
"merged_at": "2021-02-16T17:34:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39797.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39797"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39798 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39798/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39798/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39798/events | https://github.com/pandas-dev/pandas/pull/39798 | 807,812,630 | MDExOlB1bGxSZXF1ZXN0NTcyOTgyMjA2 | 39,798 | TYP: assorted annotations | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-13T19:25:47Z | 2021-02-22T15:34:09Z | 2021-02-21T17:18:15Z | MEMBER | null | Also avoid passing unnecesary arg to libreduction, and use a lower-level sanitize function in sanitize_index | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39798/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39798/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39798.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39798",
"merged_at": "2021-02-21T17:18:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39798.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39798"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39799 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39799/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39799/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39799/events | https://github.com/pandas-dev/pandas/issues/39799 | 807,827,378 | MDU6SXNzdWU4MDc4MjczNzg= | 39,799 | ENH: consider using sets and not maps for isin, unique and duplicated | {
"avatar_url": "https://avatars.githubusercontent.com/u/17513912?v=4",
"events_url": "https://api.github.com/users/realead/events{/privacy}",
"followers_url": "https://api.github.com/users/realead/followers",
"following_url": "https://api.github.com/users/realead/following{/other_user}",
"gists_url": "https://api.github.com/users/realead/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/realead",
"id": 17513912,
"login": "realead",
"node_id": "MDQ6VXNlcjE3NTEzOTEy",
"organizations_url": "https://api.github.com/users/realead/orgs",
"received_events_url": "https://api.github.com/users/realead/received_events",
"repos_url": "https://api.github.com/users/realead/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/realead/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/realead/subscriptions",
"type": "User",
"url": "https://api.github.com/users/realead"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "fc6feb",
"default": false,
"description": "duplicated, drop_duplicates",
"id": 1633019538,
"name": "duplicated",
"node_id": "MDU6TGFiZWwxNjMzMDE5NTM4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/duplicated"
},
{
"color": "fef2c0",
"default": false,
"description": "isin method",
"id": 2468482981,
"name": "isin",
"node_id": "MDU6TGFiZWwyNDY4NDgyOTgx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/isin"
}
] | open | false | null | [] | null | 2 | 2021-02-13T20:53:26Z | 2021-08-15T18:00:19Z | null | CONTRIBUTOR | null | #### Is your feature request related to a problem?
Currently, in `isin`, `unique` and `duplicated` temporary hash-maps are created, albeit sets would be enough (for `isin` and for some inputs to `unique` and `duplicated`). Thus has at least two drawbacks:
1) Quite a memory overhead: For every key there are additional 8 bytes overhead for values. This ratio will become even worse for 32bit/16bit keys, once they are be used.
2) For big datasets, the running time of the above algorithms is dominated by cache-misses. Thus having twice as many cache-misses, because also values are touched could mean a factor 2 slowdown.
#### Describe the solution you'd like
Pandas uses khash, which also provides set-implementations, which would solve the above two problems.
Given the current infrastructure it would be no big deal to add sets as well.
Another advantage would be: prior investigations have shown, that the usages of sets (as in `isin`) and of maps lead to different optimal strategies for hash-functions and collision-resolution-strategies (see e.g. https://github.com/pandas-dev/pandas/pull/36729#issuecomment-716843946)
#### Describe alternatives you've considered
Given that the most OSes nowdays don't really reserve memory for a proccess if it is not used/written to, one could claim, that the above two problems aren't problems at all (at least for bigger datasets) - because in the above algorithms no values are written to `values`.
The above claim is true, as long as there is no rehashing involved. Once a map is rehashed, the garbage values are copied to the new location, which leads OS to reserve this memory to the process. Thus, preallocating big enough maps/hashes would not trigger the usage of additional memory. However, right now it doesn't not happend for different reasons, one of them being the limitation of the size of the preallocated table to 2²⁰ elements (which is a sane approach imo).
However, using sets and not maps would be a more robust and explicit way to avoid unnecessary memory usage. | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39799/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39799/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39800 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39800/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39800/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39800/events | https://github.com/pandas-dev/pandas/pull/39800 | 807,829,588 | MDExOlB1bGxSZXF1ZXN0NTcyOTk0NDEw | 39,800 | Regression in to_excel when setting duplicate column names | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | null | [] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 3 | 2021-02-13T21:07:24Z | 2021-02-18T19:46:12Z | 2021-02-15T22:42:17Z | MEMBER | null | - [x] closes #39695
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39800/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39800/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39800.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39800",
"merged_at": "2021-02-15T22:42:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39800.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39800"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39801 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39801/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39801/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39801/events | https://github.com/pandas-dev/pandas/pull/39801 | 807,832,346 | MDExOlB1bGxSZXF1ZXN0NTcyOTk2NDUw | 39,801 | DOC: skip evaluation of code in v0.8.0 release notes | {
"avatar_url": "https://avatars.githubusercontent.com/u/86842?v=4",
"events_url": "https://api.github.com/users/afeld/events{/privacy}",
"followers_url": "https://api.github.com/users/afeld/followers",
"following_url": "https://api.github.com/users/afeld/following{/other_user}",
"gists_url": "https://api.github.com/users/afeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/afeld",
"id": 86842,
"login": "afeld",
"node_id": "MDQ6VXNlcjg2ODQy",
"organizations_url": "https://api.github.com/users/afeld/orgs",
"received_events_url": "https://api.github.com/users/afeld/received_events",
"repos_url": "https://api.github.com/users/afeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/afeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/afeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/afeld"
} | [
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 1 | 2021-02-13T21:24:56Z | 2021-02-15T22:37:49Z | 2021-02-15T22:37:46Z | MEMBER | null | As noted in https://github.com/pandas-dev/pandas/pull/39364#issuecomment-778678278. A little unclear to me why it's not failing in other pull requests, as I can reproduce the issue locally.
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39801/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39801/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39801.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39801",
"merged_at": "2021-02-15T22:37:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39801.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39801"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39802 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39802/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39802/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39802/events | https://github.com/pandas-dev/pandas/issues/39802 | 807,836,063 | MDU6SXNzdWU4MDc4MzYwNjM= | 39,802 | BUG: Pandas Import is failing under Conda Python 3.7 | {
"avatar_url": "https://avatars.githubusercontent.com/u/474655?v=4",
"events_url": "https://api.github.com/users/symbolix/events{/privacy}",
"followers_url": "https://api.github.com/users/symbolix/followers",
"following_url": "https://api.github.com/users/symbolix/following{/other_user}",
"gists_url": "https://api.github.com/users/symbolix/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/symbolix",
"id": 474655,
"login": "symbolix",
"node_id": "MDQ6VXNlcjQ3NDY1NQ==",
"organizations_url": "https://api.github.com/users/symbolix/orgs",
"received_events_url": "https://api.github.com/users/symbolix/received_events",
"repos_url": "https://api.github.com/users/symbolix/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/symbolix/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/symbolix/subscriptions",
"type": "User",
"url": "https://api.github.com/users/symbolix"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "f9c1b1",
"default": false,
"description": "Linux OS",
"id": 1233745380,
"name": "Linux",
"node_id": "MDU6TGFiZWwxMjMzNzQ1Mzgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Linux"
}
] | open | false | null | [] | null | 18 | 2021-02-13T21:49:29Z | 2021-08-15T18:10:19Z | null | NONE | null | - [x ] I have checked that this issue has not already been reported.
- [ x] I have confirmed this bug exists on the latest version of pandas.
- [ x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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
```
#### Problem description
Pandas import is failing.
#### Expected Output
Pandas to work.
#### Output of ``pd.show_versions()``
<details>
```
Traceback (most recent call last):
File "/me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/__init__.py", line 29, in <module>
File "/me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/_libs/__init__.py", line 13, in <module>
ImportError: /me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/_libs/interval.cpython-37m-x86_64-linux-gnu.so: invalid ELF header
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/__init__.py", line 37, in <module>
ImportError: C extension: /me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/_libs/interval.cpython-37m-x86_64-linux-gnu.so: invalid ELF header not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --force' to build the C extensions first.Traceback (most recent call last):
File "/me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/__init__.py", line 29, in <module>
File "/me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/_libs/__init__.py", line 13, in <module>
ImportError: /me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/_libs/interval.cpython-37m-x86_64-linux-gnu.so: invalid ELF header
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/__init__.py", line 37, in <module>
ImportError: C extension: /me/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/_libs/interval.cpython-37m-x86_64-linux-gnu.so: invalid ELF header not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --force' to build the C extensions first.
```
</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/39802/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39802/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39803 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39803/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39803/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39803/events | https://github.com/pandas-dev/pandas/pull/39803 | 807,874,827 | MDExOlB1bGxSZXF1ZXN0NTczMDI3NjUz | 39,803 | TST: fixturize indexing intervalindex tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "009800",
"default": false,
"description": "Interval data type",
"id": 150096370,
"name": "Interval",
"node_id": "MDU6TGFiZWwxNTAwOTYzNzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-14T02:43:01Z | 2021-02-15T22:38:21Z | 2021-02-15T22:37:28Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39803/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39803/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39803.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39803",
"merged_at": "2021-02-15T22:37:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39803.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39803"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39804 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39804/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39804/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39804/events | https://github.com/pandas-dev/pandas/issues/39804 | 807,921,538 | MDU6SXNzdWU4MDc5MjE1Mzg= | 39,804 | ENH: read_html support dtype param | {
"avatar_url": "https://avatars.githubusercontent.com/u/902012?v=4",
"events_url": "https://api.github.com/users/holymonson/events{/privacy}",
"followers_url": "https://api.github.com/users/holymonson/followers",
"following_url": "https://api.github.com/users/holymonson/following{/other_user}",
"gists_url": "https://api.github.com/users/holymonson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/holymonson",
"id": 902012,
"login": "holymonson",
"node_id": "MDQ6VXNlcjkwMjAxMg==",
"organizations_url": "https://api.github.com/users/holymonson/orgs",
"received_events_url": "https://api.github.com/users/holymonson/received_events",
"repos_url": "https://api.github.com/users/holymonson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/holymonson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/holymonson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/holymonson"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
},
{
"color": "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 | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2021-02-14T09:15:59Z | 2021-08-15T18:10:59Z | null | CONTRIBUTOR | null | #### Is your feature request related to a problem?
To prevent casting str to float. `read_json`, `read_csv`, `read_table` have all supported `dtype` param already , `read_html` should not be left behind.
Maybe related: #21379 #30589
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39804/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39804/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39805 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39805/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39805/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39805/events | https://github.com/pandas-dev/pandas/issues/39805 | 807,932,109 | MDU6SXNzdWU4MDc5MzIxMDk= | 39,805 | BUG: `asfreq` silently drops rows when index is not sorted | {
"avatar_url": "https://avatars.githubusercontent.com/u/3168512?v=4",
"events_url": "https://api.github.com/users/Gerenuk/events{/privacy}",
"followers_url": "https://api.github.com/users/Gerenuk/followers",
"following_url": "https://api.github.com/users/Gerenuk/following{/other_user}",
"gists_url": "https://api.github.com/users/Gerenuk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Gerenuk",
"id": 3168512,
"login": "Gerenuk",
"node_id": "MDQ6VXNlcjMxNjg1MTI=",
"organizations_url": "https://api.github.com/users/Gerenuk/orgs",
"received_events_url": "https://api.github.com/users/Gerenuk/received_events",
"repos_url": "https://api.github.com/users/Gerenuk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Gerenuk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Gerenuk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Gerenuk"
} | [
{
"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": "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 | {
"avatar_url": "https://avatars.githubusercontent.com/u/35386821?v=4",
"events_url": "https://api.github.com/users/nmay231/events{/privacy}",
"followers_url": "https://api.github.com/users/nmay231/followers",
"following_url": "https://api.github.com/users/nmay231/following{/other_user}",
"gists_url": "https://api.github.com/users/nmay231/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmay231",
"id": 35386821,
"login": "nmay231",
"node_id": "MDQ6VXNlcjM1Mzg2ODIx",
"organizations_url": "https://api.github.com/users/nmay231/orgs",
"received_events_url": "https://api.github.com/users/nmay231/received_events",
"repos_url": "https://api.github.com/users/nmay231/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmay231/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmay231/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmay231"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/35386821?v=4",
"events_url": "https://api.github.com/users/nmay231/events{/privacy}",
"followers_url": "https://api.github.com/users/nmay231/followers",
"following_url": "https://api.github.com/users/nmay231/following{/other_user}",
"gists_url": "https://api.github.com/users/nmay231/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmay231",
"id": 35386821,
"login": "nmay231",
"node_id": "MDQ6VXNlcjM1Mzg2ODIx",
"organizations_url": "https://api.github.com/users/nmay231/orgs",
"received_events_url": "https://api.github.com/users/nmay231/received_events",
"repos_url": "https://api.github.com/users/nmay231/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmay231/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmay231/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmay231"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | 2021-02-14T10:27:28Z | 2021-03-23T17:01:39Z | 2021-03-23T17:01:39Z | NONE | null | `pd.DataFrame.asfreq` seems to silently drop rows when the data is not sorted.
```python
d=pd.DataFrame(range(3), index=pd.to_datetime(["2021-01-01", "2021-03-01", "2021-02-01"])).asfreq("MS")
d
# output:
# 2021-01-01 0
# 2021-02-01 2
```
Silent data loss is very dangerous in data analysis as it's hard to detect.
Expected behavior:
* an exception, because dropping rows is not useful
* or automatic sorting (with possibly a parameter in asfreq to be explicit)
<details>
```
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.8.5.final.0
pandas : 1.2.1
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/39805/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39805/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39806 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39806/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39806/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39806/events | https://github.com/pandas-dev/pandas/pull/39806 | 807,946,230 | MDExOlB1bGxSZXF1ZXN0NTczMDgwMjM3 | 39,806 | DOC: update cheatsheet | {
"avatar_url": "https://avatars.githubusercontent.com/u/31124624?v=4",
"events_url": "https://api.github.com/users/OliEfr/events{/privacy}",
"followers_url": "https://api.github.com/users/OliEfr/followers",
"following_url": "https://api.github.com/users/OliEfr/following{/other_user}",
"gists_url": "https://api.github.com/users/OliEfr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OliEfr",
"id": 31124624,
"login": "OliEfr",
"node_id": "MDQ6VXNlcjMxMTI0NjI0",
"organizations_url": "https://api.github.com/users/OliEfr/orgs",
"received_events_url": "https://api.github.com/users/OliEfr/received_events",
"repos_url": "https://api.github.com/users/OliEfr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OliEfr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OliEfr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OliEfr"
} | [
{
"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 | 14 | 2021-02-14T11:56:43Z | 2021-08-31T21:46:02Z | 2021-03-29T15:24:01Z | CONTRIBUTOR | null | - [x] closes #39724
- [x] tests added / passed (not required)
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them (not required)
- [x] whatsnew entry (not required)
#### Major changes
1) **Replaced Heading "Data Wrangling ..." with section "General"**
- I found it useful to have the hyperlinks to pandas api reference and user guide included
- Also, all the time time when you work with pandas you need other packages (matplotlib etc.). That's why added hyperlinks for them as well
- There is some place left for other useful links!
2) **Replaces explanatory section "Tidy data" with section "Display & Visualize data"**
- Cheat sheets are for users who already have basic knowledge. So this explanation of Tidy Data is of no use here
- Displaying and visualizing data is one of the main tasks. So this section should be included in the cheat sheet
- On the previous cheat sheet there also was a section "Plotting". But it was very small at the end of the second page.
3) **Added section "Apply Funtions"** (bottom of second page)
- There are many ways to apply functions and I always find it confusing to remember them. So I added them here with a short description
- However, if you have a better suggestion for this section, it can be interchanged
4) **Refractor section "Subset Observation"**
- This section was pretty confusing in styling and layout before. E.g. there where multiple places where you can find the df.loc[] and df.iloc [] functions.
- I reordered this section
- I added df.iloc[row_ind, column_ind] and df.loc[row_ind, column_ind]
Let me know what you think about it and make suggestions.
Oli | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39806/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39806/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39806.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39806",
"merged_at": "2021-03-29T15:24:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39806.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39806"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39807 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39807/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39807/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39807/events | https://github.com/pandas-dev/pandas/pull/39807 | 807,957,946 | MDExOlB1bGxSZXF1ZXN0NTczMDg4Njc0 | 39,807 | BUG: add `col<k>` class identifier to blank index name row cells | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 3 | 2021-02-14T13:09:25Z | 2021-02-17T07:04:44Z | 2021-02-17T00:16:18Z | CONTRIBUTOR | null | - [x] closes #39716
- [x] tests passed
- [x] linting and typing checks | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39807/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39807/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39807.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39807",
"merged_at": "2021-02-17T00:16:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39807.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39807"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39808 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39808/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39808/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39808/events | https://github.com/pandas-dev/pandas/issues/39808 | 807,973,089 | MDU6SXNzdWU4MDc5NzMwODk= | 39,808 | Add back skip_blank_lines to read_excel in pandas v>1.1.4 | {
"avatar_url": "https://avatars.githubusercontent.com/u/54404810?v=4",
"events_url": "https://api.github.com/users/jankaWIS/events{/privacy}",
"followers_url": "https://api.github.com/users/jankaWIS/followers",
"following_url": "https://api.github.com/users/jankaWIS/following{/other_user}",
"gists_url": "https://api.github.com/users/jankaWIS/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jankaWIS",
"id": 54404810,
"login": "jankaWIS",
"node_id": "MDQ6VXNlcjU0NDA0ODEw",
"organizations_url": "https://api.github.com/users/jankaWIS/orgs",
"received_events_url": "https://api.github.com/users/jankaWIS/received_events",
"repos_url": "https://api.github.com/users/jankaWIS/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jankaWIS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jankaWIS/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jankaWIS"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "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": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/50434302?v=4",
"events_url": "https://api.github.com/users/ahawryluk/events{/privacy}",
"followers_url": "https://api.github.com/users/ahawryluk/followers",
"following_url": "https://api.github.com/users/ahawryluk/following{/other_user}",
"gists_url": "https://api.github.com/users/ahawryluk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ahawryluk",
"id": 50434302,
"login": "ahawryluk",
"node_id": "MDQ6VXNlcjUwNDM0MzAy",
"organizations_url": "https://api.github.com/users/ahawryluk/orgs",
"received_events_url": "https://api.github.com/users/ahawryluk/received_events",
"repos_url": "https://api.github.com/users/ahawryluk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ahawryluk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ahawryluk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ahawryluk"
}
] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 23 | 2021-02-14T14:38:16Z | 2021-06-09T03:57:22Z | 2021-06-09T03:57:22Z | NONE | null | #### Is your feature request related to a problem?
Reading Stack Overflow, there has been several posts trying to skip blank lines when reading ([post 1](https://stackoverflow.com/questions/39334543/python-pandas-read-excel-doesnt-recognize-null-cell), [post 2](https://stackoverflow.com/questions/54890013/dont-skip-blank-lines-in-pandas-read-excel), [post 3](https://stackoverflow.com/questions/59279177/read-excel-file-pd-read-excel-by-skipping-blank-rows-only), ...). The proposed solution works for pandas v<0.24 but there is no mention about this feature and trying to use it I get:
In pandas 1.1.4 and 1.2: `TypeError: read_excel() got an unexpected keyword argument 'skip_blank_lines'` and no mention in the documentation posted above.
#### Describe the solution you'd like
Pandas `read_excel` and/or `ExcelFile` should get back this argument and functionality
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39808/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39808/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39809 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39809/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39809/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39809/events | https://github.com/pandas-dev/pandas/issues/39809 | 807,994,625 | MDU6SXNzdWU4MDc5OTQ2MjU= | 39,809 | BUG: Empty result in df.groupby.agg on multiple keys has no columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] | closed | false | null | [] | null | 1 | 2021-02-14T16:32:13Z | 2021-02-14T16:51:18Z | 2021-02-14T16:51:18Z | MEMBER | null | Comparing:
```
df = DataFrame(columns=["A", "B", "C"])
print(df.groupby(["A"]).sum())
print(df.groupby(["A", "B"]).sum())
```
gives:
```
Empty DataFrame
Columns: [B, C]
Index: []
Empty DataFrame
Columns: []
Index: []
```
This is due to taking two different paths through agg - when `nkeys > 1`, using `_python_agg_general` and otherwise using `GroupByApply.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/39809/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39809/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39810 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39810/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39810/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39810/events | https://github.com/pandas-dev/pandas/pull/39810 | 807,996,561 | MDExOlB1bGxSZXF1ZXN0NTczMTE3MDkw | 39,810 | REF: put Block replace methods together | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-14T16:42:28Z | 2021-02-15T22:37:47Z | 2021-02-15T22:17:55Z | MEMBER | null | pure cut/paste | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39810/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39810/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39810.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39810",
"merged_at": "2021-02-15T22:17:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39810.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39810"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39811 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39811/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39811/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39811/events | https://github.com/pandas-dev/pandas/pull/39811 | 808,030,347 | MDExOlB1bGxSZXF1ZXN0NTczMTQyMDE0 | 39,811 | REF: Dispatch TimedeltaBlock.fillna to TimedeltaArray | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-14T19:39:04Z | 2021-02-15T22:38:42Z | 2021-02-15T22:15:23Z | 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/39811/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39811/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39811.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39811",
"merged_at": "2021-02-15T22:15:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39811.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39811"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39812 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39812/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39812/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39812/events | https://github.com/pandas-dev/pandas/pull/39812 | 808,056,543 | MDExOlB1bGxSZXF1ZXN0NTczMTYxNzgw | 39,812 | TYP: typing refactor mypy fix | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-14T21:57:39Z | 2021-02-16T18:24:35Z | 2021-02-15T17:17:44Z | CONTRIBUTOR | null | `pandas/io/formats/style.py:168: error: Incompatible types in assignment (expression has type "Union[DataFrame, Series]", variable has type "DataFrame") [assignment]`
refactor to remove the `assert` statement otherwise needed to solve the above `mypy` error. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39812/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39812/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39812.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39812",
"merged_at": "2021-02-15T17:17:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39812.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39812"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39813 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39813/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39813/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39813/events | https://github.com/pandas-dev/pandas/issues/39813 | 808,067,349 | MDU6SXNzdWU4MDgwNjczNDk= | 39,813 | ENH: Using pyright to analyze missing type declarations | {
"avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4",
"events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}",
"followers_url": "https://api.github.com/users/Dr-Irv/followers",
"following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}",
"gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Dr-Irv",
"id": 15113894,
"login": "Dr-Irv",
"node_id": "MDQ6VXNlcjE1MTEzODk0",
"organizations_url": "https://api.github.com/users/Dr-Irv/orgs",
"received_events_url": "https://api.github.com/users/Dr-Irv/received_events",
"repos_url": "https://api.github.com/users/Dr-Irv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Dr-Irv"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "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"
}
] | open | false | null | [] | null | 3 | 2021-02-14T23:00:29Z | 2021-03-09T14:52:51Z | null | CONTRIBUTOR | null | This describes a procedure for using the command line tool `pyright` (https://github.com/microsoft/pyright/blob/master/docs/command-line.md) to identify places in the pandas code that are missing type declarations. xref #28142
1. Install pyright: See https://github.com/microsoft/pyright#command-line
2. In your pandas development folder, create an empty file `py.typed` in the same folder as `pandas\__init__.py`
3. To get the complete analysis as a text file, in your shell, `cd` to the folder containing `README.md` from pandas, and type `pyright --verifytypes pandas! > pyright.out`
4. To determine the modules that need the most work, use the script shown below named `verifytypes.py` which can be run from the command line as `python verifytypes.py` and will print the top 20 modules that need fixing.
Open issues for adding types:
1. We will need to systematically bring over the typing work done by Microsoft in https://github.com/microsoft/python-type-stubs/tree/main/pandas to help enhance our type declarations.
2. Using `pyright` to determine where thing are missing will not determine if we are missing appropriate overloads. See example below.
3. Most likely, the best way to test if we have all the overloads correct is by fully typing our `tests` code, and adding `# ignore` comments when we are specifically testing for incorrect types.
<details>
<summary>verifytypes.py utility</summary>
```python
import subprocess
import json
import pandas as pd
def getpyrightout() -> bytes:
try:
pyrightout = subprocess.run(
["pyright", "--outputjson", "--verifytypes", "pandas!"],
capture_output=True,
shell=True,
)
except Exception as e:
raise e
return pyrightout.stdout
def processjson(jsonstr: bytes):
d = json.loads(jsonstr)
msgsSeries = pd.Series([k["message"] for k in d["diagnostics"]])
msgsdf = msgsSeries.str.split('"', n=2, expand=True)
msgsdf.columns = ["primary", "element", "extra"]
typemsgs = msgsdf[msgsdf.primary.str.startswith("Type")].copy()
typemsgs["module"] = typemsgs["element"].str.replace(r"\.[A-Z][a-z_A-Z\.]*$", "")
notest = typemsgs[~typemsgs.module.str.startswith("pandas.tests")]
print(
notest.groupby(["module", "primary"])
.size()
.sort_values(ascending=False)
.head(20)
)
if __name__ == "__main__":
processjson(getpyrightout())
```
</details>
<details>
<summary>Example using DataFrame.rename() where overloads are needed</summary>
This is taken from https://github.com/microsoft/python-type-stubs/blob/main/pandas/core/frame.pyi
```python
@overload
def fillna(
self,
value: Optional[Union[Scalar, Dict, Series, DataFrame]] = ...,
method: Optional[Literal["backfill", "bfill", "ffill", "pad"]] = ...,
axis: Optional[AxisType] = ...,
limit: int = ...,
downcast: Optional[Dict] = ...,
*,
inplace: Literal[True]
) -> None: ...
@overload
def fillna(
self,
value: Optional[Union[Scalar, Dict, Series, DataFrame]] = ...,
method: Optional[Literal["backfill", "bfill", "ffill", "pad"]] = ...,
axis: Optional[AxisType] = ...,
limit: int = ...,
downcast: Optional[Dict] = ...,
*,
inplace: Literal[False] = ...
) -> DataFrame: ...
@overload
def fillna(
self,
value: Optional[Union[Scalar, Dict, Series, DataFrame]] = ...,
method: Optional[Union[_str, Literal["backfill", "bfill", "ffill", "pad"]]] = ...,
axis: Optional[AxisType] = ...,
*,
limit: int = ...,
downcast: Optional[Dict] = ...,
) -> Union[None, DataFrame]: ...
@overload
def fillna(
self,
value: Optional[Union[Scalar, Dict, Series, DataFrame]] = ...,
method: Optional[Union[_str, Literal["backfill", "bfill", "ffill", "pad"]]] = ...,
axis: Optional[AxisType] = ...,
inplace: Optional[_bool] = ...,
limit: int = ...,
downcast: Optional[Dict] = ...,
) -> Union[None, DataFrame]: ...
``` | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39813/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39813/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39814 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39814/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39814/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39814/events | https://github.com/pandas-dev/pandas/pull/39814 | 808,074,373 | MDExOlB1bGxSZXF1ZXN0NTczMTc1MjI1 | 39,814 | REF: implement HybridBlock | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-14T23:39:53Z | 2021-02-16T17:45:41Z | 2021-02-16T16:59:12Z | MEMBER | null | Methods that would work with any NDArrayBackedExtensionArray, not just DTA/TDA. Written to facilitate experimenting with Blocks backed by 2D EAs. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39814/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39814/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39814.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39814",
"merged_at": "2021-02-16T16:59:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39814.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39814"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39815 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39815/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39815/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39815/events | https://github.com/pandas-dev/pandas/pull/39815 | 808,123,759 | MDExOlB1bGxSZXF1ZXN0NTczMjEzNjc3 | 39,815 | REF: share DTBlock/TDBlock _maybe_coerce_values | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-15T02:48:00Z | 2021-02-15T22:50:11Z | 2021-02-15T22:46:23Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39815/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39815/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39815.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39815",
"merged_at": "2021-02-15T22:46:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39815.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39815"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39816 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39816/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39816/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39816/events | https://github.com/pandas-dev/pandas/pull/39816 | 808,261,381 | MDExOlB1bGxSZXF1ZXN0NTczMzMyNzY4 | 39,816 | ⬆️ UPGRADE: Autoupdate pre-commit config | {
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/github-actions",
"id": 41898282,
"login": "github-actions[bot]",
"node_id": "MDM6Qm90NDE4OTgyODI=",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/github-actions%5Bbot%5D"
} | [] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2021-02-15T07:24:15Z | 2021-02-15T09:34:35Z | 2021-02-15T09:34:22Z | CONTRIBUTOR | null | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/bin
```
</details>
<details>
<summary><em>pip install pre-commit</em></summary>
```Shell
Collecting pre-commit
Downloading pre_commit-2.10.1-py2.py3-none-any.whl (185 kB)
Collecting cfgv>=2.0.0
Using cached cfgv-3.2.0-py2.py3-none-any.whl (7.3 kB)
Collecting nodeenv>=0.11.1
Using cached nodeenv-1.5.0-py2.py3-none-any.whl (21 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting virtualenv>=20.0.8
Downloading virtualenv-20.4.2-py2.py3-none-any.whl (7.2 MB)
Collecting identify>=1.0.0
Downloading identify-1.5.13-py2.py3-none-any.whl (97 kB)
Collecting pyyaml>=5.1
Downloading PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Collecting distlib<1,>=0.3.1
Using cached distlib-0.3.1-py2.py3-none-any.whl (335 kB)
Collecting filelock<4,>=3.0.0
Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting six<2,>=1.9.0
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting appdirs<2,>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Installing collected packages: six, filelock, distlib, appdirs, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
Successfully installed appdirs-1.4.4 cfgv-3.2.0 distlib-0.3.1 filelock-3.0.12 identify-1.5.13 nodeenv-1.5.0 pre-commit-2.10.1 pyyaml-5.4.1 six-1.15.0 toml-0.10.2 virtualenv-20.4.2
```
</details>
<details>
<summary><em>pre-commit autoupdate || (exit 0);</em></summary>
```Shell
Updating https://github.com/python/black ... already up to date.
Updating https://gitlab.com/pycqa/flake8 ... already up to date.
Updating https://github.com/PyCQA/isort ... [INFO] Initializing environment for https://github.com/PyCQA/isort.
already up to date.
Updating https://github.com/asottile/pyupgrade ... [INFO] Initializing environment for https://github.com/asottile/pyupgrade.
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 ... 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.
Updating https://github.com/codespell-project/codespell ... [INFO] Initializing environment for https://github.com/codespell-project/codespell.
already up to date.
Updating https://github.com/MarcoGorelli/no-string-hints ... [INFO] Initializing environment for https://github.com/MarcoGorelli/no-string-hints.
already up to date.
Updating https://github.com/MarcoGorelli/abs-imports ... [INFO] Initializing environment for https://github.com/MarcoGorelli/abs-imports.
updating v0.1.2 -> v0.2.1.
```
</details>
<details>
<summary><em>pre-commit run -a || (exit 0);</em></summary>
```Shell
[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 local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[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...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/MarcoGorelli/no-string-hints.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/MarcoGorelli/abs-imports.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
black..................................................................................................Passed
flake8.................................................................................................Passed
flake8 (cython)........................................................................................Passed
flake8 (cython template)...............................................................................Passed
isort..................................................................................................Passed
pyupgrade..............................................................................................Passed
rst ``code`` is two backticks..........................................................................Passed
rst directives end with two colons.....................................................................Passed
rst ``inline code`` next to normal text................................................................Passed
Generate pip dependency from conda.....................................................................Passed
flake8-rst.............................................................................................Passed
Check for non-standard imports.........................................................................Passed
Check for non-standard numpy.random-related imports excluding pandas/_testing.py.......................Passed
Check for non-standard imports in test suite...........................................................Passed
Check for incorrect code block or IPython directives...................................................Passed
Check for use of not concatenated strings..............................................................Passed
Check for strings with wrong placed spaces.............................................................Passed
Check for import of private attributes across modules..................................................Passed
Check for use of private functions across modules......................................................Passed
Check for use of bare pytest raises....................................................................Passed
Check for use of pytest.xfail..........................................................................Passed
Check for inconsistent use of pandas namespace in tests................................................Passed
Check for use of Union[Series, DataFrame] instead of FrameOrSeriesUnion alias..........................Passed
Check for use of foo.__class__ instead of type(foo)....................................................Passed
Check for outdated annotation syntax and missing error codes...........................................Passed
Check for use of np.bool instead of np.bool_...........................................................Passed
Check code for instances of os.remove..................................................................Passed
Check code for instances of pd.api.types...............................................................Passed
Strip unnecessary `# noqa`s............................................................................Passed
Fix End of Files.......................................................................................Passed
Trim Trailing Whitespace...............................................................................Passed
codespell..............................................................................................Passed
no-string-hints........................................................................................Passed
abs-imports............................................................................................Passed
```
</details>
</details>
## Changed files
<details>
<summary>Changed file: </summary>
- .pre-commit-config.yaml
</details>
<hr>
[:octocat: Repo](https://github.com/technote-space/create-pr-action) | [:memo: Issues](https://github.com/technote-space/create-pr-action/issues) | [:department_store: Marketplace](https://github.com/marketplace/actions/create-pr-action) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39816/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39816/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39816.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39816",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39816.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39816"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39817 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39817/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39817/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39817/events | https://github.com/pandas-dev/pandas/issues/39817 | 808,410,263 | MDU6SXNzdWU4MDg0MTAyNjM= | 39,817 | API: common dtype for bool + numeric: upcast to object or coerce to numeric? | {
"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": "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": "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 | 7 | 2021-02-15T10:33:11Z | 2021-02-16T20:18:54Z | null | MEMBER | null | We currently have an inconsistency in how we determine the common dtype for bool + numeric.
Numpy coerces booleans to numeric values when combining with numeric dtype:
```python
>> np.concatenate([np.array([True]), np.array([1])])
array([1, 1])
```
In pandas, Series does the same:
```python
>>> pd.concat([pd.Series([True], dtype=bool), pd.Series([1.0], dtype=float)])
0 1.0
0 1.0
dtype: float64
```
except if they are empty, then we ensure the result is object dtype:
```python
>>> pd.concat([pd.Series([], dtype=bool), pd.Series([], dtype=float)])
Series([], dtype: object)
```
And for DataFrame we return object dtype in all cases:
```python
>>> pd.concat([pd.DataFrame({'a': np.array([], dtype=bool)}), pd.DataFrame({'a': np.array([], dtype=float)})]).dtypes
a object
dtype: object
>>> pd.concat([pd.DataFrame({'a': np.array([True], dtype=bool)}), pd.DataFrame({'a': np.array([1.0], dtype=float)})]).dtypes
a object
dtype: object
```
For the nullable dtypes, we also have implemented this a bit inconsistently up to now:
```python
>>> pd.concat([pd.Series([True], dtype="boolean"), pd.Series([1], dtype="Int64")])
0 1
0 1
dtype: Int64
>>> pd.concat([pd.Series([True], dtype="boolean"), pd.Series([1], dtype="Float64")])
0 True
0 1.0
dtype: object
```
So here we preserve numeric dtype for Integer, but convert to object for Float. Now, the reason for this is because `IntegerDtype._get_common_dtype` handles the case of boolean dtype and then uses the numpy rules to determine the result dtype, while the FloatingDtype doesn't yet handle non-float dtypes and thus results in object dtype for anything else (also for float numpy dtype, which is obviously a bug / missing feature)
---
Basically we need to decide what the desired behaviour is for the bool + numeric dtype combination: coerce to numeric or upcast to object? (and then fix the inconsistencies according to the decided rule)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39817/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39817/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39818 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39818/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39818/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39818/events | https://github.com/pandas-dev/pandas/issues/39818 | 808,455,892 | MDU6SXNzdWU4MDg0NTU4OTI= | 39,818 | Object to String conversion Does not work in Panda | {
"avatar_url": "https://avatars.githubusercontent.com/u/42298656?v=4",
"events_url": "https://api.github.com/users/saniyaparveez/events{/privacy}",
"followers_url": "https://api.github.com/users/saniyaparveez/followers",
"following_url": "https://api.github.com/users/saniyaparveez/following{/other_user}",
"gists_url": "https://api.github.com/users/saniyaparveez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/saniyaparveez",
"id": 42298656,
"login": "saniyaparveez",
"node_id": "MDQ6VXNlcjQyMjk4NjU2",
"organizations_url": "https://api.github.com/users/saniyaparveez/orgs",
"received_events_url": "https://api.github.com/users/saniyaparveez/received_events",
"repos_url": "https://api.github.com/users/saniyaparveez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/saniyaparveez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/saniyaparveez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/saniyaparveez"
} | [
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2021-02-15T11:31:09Z | 2021-02-21T09:09:14Z | 2021-02-21T09:09:07Z | NONE | null | I have a dataset consisting of 10,00,000 rows and one column has a data type of value eg. 'FY2020-Q1' and I am trying to convert this to a String Data type because I would like to apply a filter of == but it does not work when using with **astype.**
Basically, the conversion does not work on a huge dataset but on a small dataset, it works.
`df['fyq'] = df['fyq'].astype(str) and also`
`df['fyq'] = df['fyq'].astype('string')`
I would like to filter like: `df[df.fyq== 'FY2020-Q4']`
Pandas version in use is **1.2.2**
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39818/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39818/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.