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/31315
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31315/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31315/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31315/events
|
https://github.com/pandas-dev/pandas/pull/31315
| 555,148,134
|
MDExOlB1bGxSZXF1ZXN0MzY3MTYxNjcz
| 31,315
|
REF: tighten what we accept in TimedeltaIndex._simple_new
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-25T22:37:05Z
| 2020-02-09T15:40:34Z
| 2020-02-09T15:01:20Z
|
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/31315/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31315/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31315.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31315",
"merged_at": "2020-02-09T15:01:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31315.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31315"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31316
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31316/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31316/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31316/events
|
https://github.com/pandas-dev/pandas/pull/31316
| 555,153,007
|
MDExOlB1bGxSZXF1ZXN0MzY3MTY1MDg4
| 31,316
|
CLN: internals.managers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-25T23:27:06Z
| 2020-01-26T00:32:50Z
| 2020-01-26T00:14:20Z
|
MEMBER
| null |
Mostly annotations, use fastpath for SingleBlockManager constructor where possible.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31316/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31316/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31316.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31316",
"merged_at": "2020-01-26T00:14:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31316.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31316"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31317
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31317/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31317/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31317/events
|
https://github.com/pandas-dev/pandas/pull/31317
| 555,158,351
|
MDExOlB1bGxSZXF1ZXN0MzY3MTY4NjQ1
| 31,317
|
Move DataFrame.info() to live with similar functions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6829540?v=4",
"events_url": "https://api.github.com/users/jpeacock29/events{/privacy}",
"followers_url": "https://api.github.com/users/jpeacock29/followers",
"following_url": "https://api.github.com/users/jpeacock29/following{/other_user}",
"gists_url": "https://api.github.com/users/jpeacock29/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jpeacock29",
"id": 6829540,
"login": "jpeacock29",
"node_id": "MDQ6VXNlcjY4Mjk1NDA=",
"organizations_url": "https://api.github.com/users/jpeacock29/orgs",
"received_events_url": "https://api.github.com/users/jpeacock29/received_events",
"repos_url": "https://api.github.com/users/jpeacock29/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jpeacock29/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jpeacock29/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jpeacock29"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-26T00:23:12Z
| 2020-01-29T04:39:19Z
| 2020-01-26T01:15:23Z
|
CONTRIBUTOR
| null |
#31233
- [x ] closes #31233
(Not sure these are relevant for a doc change?)
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31317/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31317/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31317.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31317",
"merged_at": "2020-01-26T01:15:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31317.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31317"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31318
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31318/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31318/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31318/events
|
https://github.com/pandas-dev/pandas/pull/31318
| 555,164,155
|
MDExOlB1bGxSZXF1ZXN0MzY3MTcyNzA0
| 31,318
|
REF: make PeriodIndex.get_value wrap PeriodIndex.get_loc
|
{
"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": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-01-26T01:34:53Z
| 2020-03-12T13:31:07Z
| 2020-01-28T02:22:56Z
|
MEMBER
| null |
AFAICT the only behavior this changes is in how datetime objects are treated. After this they are more consistent.
```
dti = pd.date_range("2016-01-01", periods=3, freq="MS")
pi = dti.to_period("H")
ser = pd.Series(range(7, 10), index=pi)
key = dti[0]
```
master
```
>>> pi.get_loc(key)
0
>>> pi.get_value(ser, key)
KeyError: Timestamp('2016-01-01 00:00:00', freq='MS')
>>> ser.loc[key]
7
>>> ser[key]
KeyError: Timestamp('2016-01-01 00:00:00', freq='MS')
```
Under this PR, the get_value and `__getitem__` calls both return 7.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31318/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31318/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31318.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31318",
"merged_at": "2020-01-28T02:22:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31318.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31318"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31319
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31319/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31319/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31319/events
|
https://github.com/pandas-dev/pandas/pull/31319
| 555,164,427
|
MDExOlB1bGxSZXF1ZXN0MzY3MTcyOTA0
| 31,319
|
BUG Series rolling count ignores min periods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5236149?v=4",
"events_url": "https://api.github.com/users/fujiaxiang/events{/privacy}",
"followers_url": "https://api.github.com/users/fujiaxiang/followers",
"following_url": "https://api.github.com/users/fujiaxiang/following{/other_user}",
"gists_url": "https://api.github.com/users/fujiaxiang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fujiaxiang",
"id": 5236149,
"login": "fujiaxiang",
"node_id": "MDQ6VXNlcjUyMzYxNDk=",
"organizations_url": "https://api.github.com/users/fujiaxiang/orgs",
"received_events_url": "https://api.github.com/users/fujiaxiang/received_events",
"repos_url": "https://api.github.com/users/fujiaxiang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fujiaxiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fujiaxiang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fujiaxiang"
}
|
[] |
closed
| false
| null |
[] | null | 3
| 2020-01-26T01:38:28Z
| 2020-01-26T04:45:08Z
| 2020-01-26T02:34:56Z
|
MEMBER
| null |
This PR targets 1.0.x branch and is a manual backport for #30923
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31319/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31319/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31319.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31319",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31319.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31319"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31320
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31320/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31320/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31320/events
|
https://github.com/pandas-dev/pandas/pull/31320
| 555,169,315
|
MDExOlB1bGxSZXF1ZXN0MzY3MTc2Mzcy
| 31,320
|
Backport PR: Series rolling count ignores min_periods
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5236149?v=4",
"events_url": "https://api.github.com/users/fujiaxiang/events{/privacy}",
"followers_url": "https://api.github.com/users/fujiaxiang/followers",
"following_url": "https://api.github.com/users/fujiaxiang/following{/other_user}",
"gists_url": "https://api.github.com/users/fujiaxiang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fujiaxiang",
"id": 5236149,
"login": "fujiaxiang",
"node_id": "MDQ6VXNlcjUyMzYxNDk=",
"organizations_url": "https://api.github.com/users/fujiaxiang/orgs",
"received_events_url": "https://api.github.com/users/fujiaxiang/received_events",
"repos_url": "https://api.github.com/users/fujiaxiang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fujiaxiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fujiaxiang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fujiaxiang"
}
|
[
{
"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": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 1
| 2020-01-26T02:46:14Z
| 2020-01-26T04:44:44Z
| 2020-01-26T04:17:59Z
|
MEMBER
| null |
This is a backport for #30923
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31320/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31320/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31320.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31320",
"merged_at": "2020-01-26T04:17:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31320.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31320"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31321
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31321/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31321/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31321/events
|
https://github.com/pandas-dev/pandas/pull/31321
| 555,174,734
|
MDExOlB1bGxSZXF1ZXN0MzY3MTc5OTUy
| 31,321
|
CLN: dont return anything from _validate_indexer; 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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-26T04:07:50Z
| 2020-01-31T04:15:16Z
| 2020-01-31T03:41:02Z
|
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/31321/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31321/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31321.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31321",
"merged_at": "2020-01-31T03:41:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31321.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31321"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31322
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31322/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31322/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31322/events
|
https://github.com/pandas-dev/pandas/pull/31322
| 555,174,776
|
MDExOlB1bGxSZXF1ZXN0MzY3MTc5OTgw
| 31,322
|
Update testing.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/35603706?v=4",
"events_url": "https://api.github.com/users/spchandgude/events{/privacy}",
"followers_url": "https://api.github.com/users/spchandgude/followers",
"following_url": "https://api.github.com/users/spchandgude/following{/other_user}",
"gists_url": "https://api.github.com/users/spchandgude/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/spchandgude",
"id": 35603706,
"login": "spchandgude",
"node_id": "MDQ6VXNlcjM1NjAzNzA2",
"organizations_url": "https://api.github.com/users/spchandgude/orgs",
"received_events_url": "https://api.github.com/users/spchandgude/received_events",
"repos_url": "https://api.github.com/users/spchandgude/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/spchandgude/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/spchandgude/subscriptions",
"type": "User",
"url": "https://api.github.com/users/spchandgude"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-01-26T04:08:47Z
| 2020-01-26T05:36:44Z
| 2020-01-26T05:36:44Z
|
NONE
| null |
Comment added
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31322/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31322/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31322.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31322",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31322.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31322"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31323
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31323/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31323/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31323/events
|
https://github.com/pandas-dev/pandas/pull/31323
| 555,204,374
|
MDExOlB1bGxSZXF1ZXN0MzY3MjAwODAz
| 31,323
|
CI: Fix jedi upgrades causes deprecation warning
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "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": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 4
| 2020-01-26T09:45:14Z
| 2020-01-27T15:49:41Z
| 2020-01-27T12:28:10Z
|
MEMBER
| null |
- [ ] closes #31324
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31323/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31323/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31323.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31323",
"merged_at": "2020-01-27T12:28:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31323.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31323"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31324
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31324/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31324/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31324/events
|
https://github.com/pandas-dev/pandas/issues/31324
| 555,204,560
|
MDU6SXNzdWU1NTUyMDQ1NjA=
| 31,324
|
CI: seems jedi caused ci to fail in certain versions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "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": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-26T09:47:19Z
| 2020-01-27T12:28:10Z
| 2020-01-27T12:28:10Z
|
MEMBER
| null |
```
self = <pandas.tests.indexes.test_base.TestIndex object at 0x7f666b28c990>
ip = <IPython.core.interactiveshell.InteractiveShell object at 0x7f666b28ccd0>
@async_mark()
async def test_tab_complete_warning(self, ip):
# ***/issues/16409
pytest.importorskip("IPython", minversion="6.0.0")
from IPython.core.completer import provisionalcompleter
code = "import pandas as pd; idx = pd.Index([1, 2])"
await ip.run_code(code)
with tm.assert_produces_warning(None):
with provisionalcompleter("ignore"):
> list(ip.Completer.completions("idx.", 4))
pandas/tests/indexes/test_base.py:2418:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <contextlib._GeneratorContextManager object at 0x7f666b2a0a50>
type = None, value = None, traceback = None
def __exit__(self, type, value, traceback):
if type is None:
try:
> next(self.gen)
E AssertionError: Caused unexpected warning(s): [('DeprecationWarning', DeprecationWarning('Deprecated since version 0.16.0. Use get_signatures()[...].params'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/cache.py', 111)]
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31324/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31324/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31325
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31325/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31325/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31325/events
|
https://github.com/pandas-dev/pandas/issues/31325
| 555,206,312
|
MDU6SXNzdWU1NTUyMDYzMTI=
| 31,325
|
BUG: MultiIndex intersection with sort=False does not preserve order
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16199817?v=4",
"events_url": "https://api.github.com/users/jeffzi/events{/privacy}",
"followers_url": "https://api.github.com/users/jeffzi/followers",
"following_url": "https://api.github.com/users/jeffzi/following{/other_user}",
"gists_url": "https://api.github.com/users/jeffzi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeffzi",
"id": 16199817,
"login": "jeffzi",
"node_id": "MDQ6VXNlcjE2MTk5ODE3",
"organizations_url": "https://api.github.com/users/jeffzi/orgs",
"received_events_url": "https://api.github.com/users/jeffzi/received_events",
"repos_url": "https://api.github.com/users/jeffzi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeffzi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeffzi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeffzi"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-26T10:05:17Z
| 2020-02-12T16:04:23Z
| 2020-02-12T16:04:23Z
|
CONTRIBUTOR
| null |
```python
import pandas as pd
arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'],
['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two']]
tuples = list(zip(*arrays))
idx = pd.MultiIndex.from_tuples(tuples, names=['first', 'second'])
left = idx[2::-1]
print(left)
#> MultiIndex([('baz', 'one'),
#> ('bar', 'two'),
#> ('bar', 'one')],
#> names=['first', 'second'])
right = idx[:5]
print(right)
#> MultiIndex([('bar', 'one'),
#> ('bar', 'two'),
#> ('baz', 'one'),
#> ('baz', 'two'),
#> ('foo', 'one')],
#> names=['first', 'second'])
# expected same order as left
intersect = left.intersection(right, sort=False)
print(intersect)
#> MultiIndex([('bar', 'two'),
#> ('baz', 'one'),
#> ('bar', 'one')],
#> names=['first', 'second'])
```
<sup>Created on 2020-01-25 by the [reprexpy package](https://github.com/crew102/reprexpy)</sup>
#### Problem description
The intersection of 2 `MultiIndex` with `sort=False` does not preserve the order, whereas other logical operators on Index and MultiIndex preserve order when `sort=False`.
#### Expected Output
The intersection of 2 `MultiIndex` with `sort=False` should return the common elements in the order of the left side.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : ca3bfcc54676b04ac5150c913328d26920bb2591
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 19.2.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.0rc0+212.gca3bfcc54
numpy : 1.17.5
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.1
setuptools : 45.1.0.post20200119
Cython : 0.29.14
pytest : 5.3.4
hypothesis : 5.3.0
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.4.2
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : 0.3.2
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.1
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
pytest : 5.3.4
pyxlsb : None
s3fs : 0.4.0
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : 0.8.6
xarray : 0.14.1
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.47.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/31325/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31325/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31326
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31326/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31326/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31326/events
|
https://github.com/pandas-dev/pandas/issues/31326
| 555,249,857
|
MDU6SXNzdWU1NTUyNDk4NTc=
| 31,326
|
BUG: inconsistent behaviors for Index.union() and Index.intersection() with duplicates
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16199817?v=4",
"events_url": "https://api.github.com/users/jeffzi/events{/privacy}",
"followers_url": "https://api.github.com/users/jeffzi/followers",
"following_url": "https://api.github.com/users/jeffzi/following{/other_user}",
"gists_url": "https://api.github.com/users/jeffzi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeffzi",
"id": 16199817,
"login": "jeffzi",
"node_id": "MDQ6VXNlcjE2MTk5ODE3",
"organizations_url": "https://api.github.com/users/jeffzi/orgs",
"received_events_url": "https://api.github.com/users/jeffzi/received_events",
"repos_url": "https://api.github.com/users/jeffzi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeffzi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeffzi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeffzi"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 5
| 2020-01-26T16:09:21Z
| 2021-03-04T02:01:10Z
| 2021-03-04T02:01:10Z
|
CONTRIBUTOR
| null |
While working on #31312, I noticed that the behavior of `Index.union()` and `Index.intersection()` is inconsistent when there are duplicates in one of the Index.
```python
import pandas as pd
import traceback
a = pd.Index([1, 2, 2, 3])
b = pd.Index([3, 3, 4])
def test_setops(left, right):
for op in ["intersection", "union"]:
for sort in [None, False]:
result = getattr(left, op)(right, sort=sort)
print(f"sort = {sort}, {op}: {result} -> has duplicates: {result.has_duplicates}")
test_setops(a, b)
#> sort = None, intersection: Int64Index([3, 3], dtype='int64') -> has duplicates: True
#> sort = False, intersection: Int64Index([3, 3], dtype='int64') -> has duplicates: True
#> sort = None, union: Int64Index([1, 2, 2, 3, 3, 4], dtype='int64') -> has duplicates: True
#> sort = False, union: Int64Index([1, 2, 2, 3, 4], dtype='int64') -> has duplicates: True
arrays = [['a', 'b', 'b', 'c'],
['1', '2', '2', '1']]
a_mi = pd.MultiIndex.from_arrays(arrays, names=['first', 'second'])
arrays = [['c', 'c', 'd'],
['1', '1', '2']]
b_mi = pd.MultiIndex.from_arrays(arrays, names=['first', 'second'])
test_setops(a_mi, b_mi)
#> sort = None, intersection: MultiIndex([('c', '1')],
#> names=['first', 'second']) -> has duplicates: False
#> sort = False, intersection: MultiIndex([('c', '1')],
#> names=['first', 'second']) -> has duplicates: False
#> sort = None, union: MultiIndex([('a', '1'),
#> ('b', '2'),
#> ('c', '1'),
#> ('d', '2')],
#> names=['first', 'second']) -> has duplicates: False
#> sort = False, union: MultiIndex([('a', '1'),
#> ('b', '2'),
#> ('c', '1'),
#> ('d', '2')],
#> names=['first', 'second']) -> has duplicates: False
```
<sup>Created on 2020-01-26 by the [reprexpy package](https://github.com/crew102/reprexpy)</sup>
#### Problem description
1. The behavior of `intersection()` and `union()` when duplicates are present is not consistent between `Index` and `MultiIndex`. Those operations return duplicates with `Index` but not with `MultiIndex`. The documentation doesn't clearly state what to expect.
2. When duplicates are present, the size of the result of `Index.union()` depends on sort is None or False.
3. If duplicates are present on only one side, `Index.intersection()` always return duplicates.
Here are more succinct examples for 2. and 3.
```python
import pandas as pd
a = pd.Index([1, 2, 2, 3])
b = pd.Index([3, 3, 4])
# expected [1, 2, 2, 3, 3, 3, 4]
a.union(b, sort=None)
#> Int64Index([1, 2, 2, 3, 3, 4], dtype='int64')
a.union(b, sort=False)
#> Int64Index([1, 2, 2, 3, 4], dtype='int64')
# expected [3]
a.intersection(b, sort=None)
#> Int64Index([3, 3], dtype='int64')
a.intersection(b, sort=False)
#> Int64Index([3, 3], dtype='int64')
# expected [3, 3]
b.intersection(a, sort=None)
#> Int64Index([3, 3], dtype='int64')
b.intersection(a, sort=False)
#> Int64Index([3, 3], dtype='int64')
```
<sup>Created on 2020-01-26 by the [reprexpy package](https://github.com/crew102/reprexpy)</sup>
#### Expected Output
For consistency and clarity, I think it would be better to enforce unicity in the index returned by logical operations. `Index.union()` and `Index.interesection()` are the only ones allowing duplicates.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : ca3bfcc54676b04ac5150c913328d26920bb2591
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 19.2.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.0rc0+212.gca3bfcc54
numpy : 1.17.5
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.1
setuptools : 45.1.0.post20200119
Cython : 0.29.14
pytest : 5.3.4
hypothesis : 5.3.0
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.4.2
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : 0.3.2
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.1
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
pytest : 5.3.4
pyxlsb : None
s3fs : 0.4.0
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : 0.8.6
xarray : 0.14.1
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.47.0
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31326/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31326/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31327
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31327/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31327/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31327/events
|
https://github.com/pandas-dev/pandas/issues/31327
| 555,251,801
|
MDU6SXNzdWU1NTUyNTE4MDE=
| 31,327
|
Consider moving tests/ outside the pandas module
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/461983?v=4",
"events_url": "https://api.github.com/users/joaoe/events{/privacy}",
"followers_url": "https://api.github.com/users/joaoe/followers",
"following_url": "https://api.github.com/users/joaoe/following{/other_user}",
"gists_url": "https://api.github.com/users/joaoe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joaoe",
"id": 461983,
"login": "joaoe",
"node_id": "MDQ6VXNlcjQ2MTk4Mw==",
"organizations_url": "https://api.github.com/users/joaoe/orgs",
"received_events_url": "https://api.github.com/users/joaoe/received_events",
"repos_url": "https://api.github.com/users/joaoe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joaoe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joaoe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joaoe"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-01-26T16:23:22Z
| 2020-01-26T19:03:04Z
| 2020-01-26T18:13:55Z
|
NONE
| null |
#### Problem description
Hi.
After a `pip install pandas` the `lib/site-packages/pands/tests/` includes a lot of testing code which is definitely not relevant for me and many other end users of pandas.
This bloats the installation and makes installation slower.
I'm working on packaging a python environment to distribute with a preinstalled set of modules and application and there are too many popular 3rd-party modules which include unneeded test code, like `numpy`, `IPython` `jupyterlab`, etc, which needs to be striped to keep the package size down. I'll be reporting issues to these projects as well.
#### Suggestion
Therefore, my suggestion is to keep the `pandas` module streamlined, and move the tests out. Perhaps create a `pandas-unittests` module if people are interested in it, or just expect users to checkout the code. Another possibility would be to skip packaging the `tests` folder and `conftest.py` when creating packages to upload to `pypi.org`.
Since you are now almost releasing 1.0 it might be a bit short notice to include this is such a big release. But for the next major release, it could work.
Thank you very much for your attention.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31327/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31327/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31328
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31328/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31328/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31328/events
|
https://github.com/pandas-dev/pandas/pull/31328
| 555,253,084
|
MDExOlB1bGxSZXF1ZXN0MzY3MjM1OTk0
| 31,328
|
Ensure conversion to "native" types for integer EA
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/46084304?v=4",
"events_url": "https://api.github.com/users/rushabh-v/events{/privacy}",
"followers_url": "https://api.github.com/users/rushabh-v/followers",
"following_url": "https://api.github.com/users/rushabh-v/following{/other_user}",
"gists_url": "https://api.github.com/users/rushabh-v/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rushabh-v",
"id": 46084304,
"login": "rushabh-v",
"node_id": "MDQ6VXNlcjQ2MDg0MzA0",
"organizations_url": "https://api.github.com/users/rushabh-v/orgs",
"received_events_url": "https://api.github.com/users/rushabh-v/received_events",
"repos_url": "https://api.github.com/users/rushabh-v/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rushabh-v/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rushabh-v/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rushabh-v"
}
|
[
{
"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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "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 |
[] |
{
"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"
}
| 15
| 2020-01-26T16:31:34Z
| 2020-10-24T03:01:56Z
| 2020-10-24T03:01:56Z
|
CONTRIBUTOR
| null |
- [x] closes #29738
- [x] tests added / passed
- [x] passes `black pandas`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31328/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31328/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31328.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31328",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31328.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31328"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31329
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31329/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31329/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31329/events
|
https://github.com/pandas-dev/pandas/pull/31329
| 555,269,128
|
MDExOlB1bGxSZXF1ZXN0MzY3MjQ3NzU5
| 31,329
|
BUG: ser.at match ser.loc with Float64Index
|
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-26T18:39:44Z
| 2020-01-31T04:16:09Z
| 2020-01-31T03:03:03Z
|
MEMBER
| null |
xref #31163.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31329/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31329/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31329.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31329",
"merged_at": "2020-01-31T03:03:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31329.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31329"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31330
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31330/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31330/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31330/events
|
https://github.com/pandas-dev/pandas/issues/31330
| 555,272,143
|
MDU6SXNzdWU1NTUyNzIxNDM=
| 31,330
|
Rows order when using slice(None) on MultiIndex Dataframe.loc
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49879400?v=4",
"events_url": "https://api.github.com/users/nrebena/events{/privacy}",
"followers_url": "https://api.github.com/users/nrebena/followers",
"following_url": "https://api.github.com/users/nrebena/following{/other_user}",
"gists_url": "https://api.github.com/users/nrebena/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nrebena",
"id": 49879400,
"login": "nrebena",
"node_id": "MDQ6VXNlcjQ5ODc5NDAw",
"organizations_url": "https://api.github.com/users/nrebena/orgs",
"received_events_url": "https://api.github.com/users/nrebena/received_events",
"repos_url": "https://api.github.com/users/nrebena/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nrebena/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nrebena/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nrebena"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-01-26T19:03:28Z
| 2020-11-25T20:51:29Z
| 2020-11-25T20:51:29Z
|
CONTRIBUTOR
| null |
#### Code Sample
```python
df = pd.DataFrame(
np.arange(12).reshape((4, 3)),
index=[["a", "a", "b", "b"], [1, 2, 1, 2]],
columns=[["Ohio", "Ohio", "Colorado"], ["Green", "Red", "Green"]],
)
df.loc[(slice(None), [2,1]), :]
# actual output, same as df, order of slice(None) level take absolut precedence
Ohio Colorado
Green Red Green
a 1 0 1 2
2 3 4 5
b 1 6 7 8
2 9 10 11
```
#### Problem description
When working on issue #22797, I came across this situation about ordering the result of loc. Should the level not explicitely requested be used when ordering the result, and how.
This may be mostly cosmetic, are one should not rely on how the resulted row are ordered, and may be a non issue. If so, feel free to close it.
#### Expected Output
```
# Second level is prioritary on first level
Ohio Colorado
Green Red Green
a 2 3 4 5
b 2 9 10 11
a 1 0 1 2
b 1 6 7 8
# ---- or ----
# Keep order of first level, then second level
Ohio Colorado
Green Red Green
a 2 3 4 5
1 0 1 2
b 2 9 10 11
1 6 7 8
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31330/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31330/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31331
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31331/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31331/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31331/events
|
https://github.com/pandas-dev/pandas/pull/31331
| 555,287,616
|
MDExOlB1bGxSZXF1ZXN0MzY3MjYxMDUx
| 31,331
|
BUG: Increased support for subclassed types.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22417720?v=4",
"events_url": "https://api.github.com/users/EmilianoJordan/events{/privacy}",
"followers_url": "https://api.github.com/users/EmilianoJordan/followers",
"following_url": "https://api.github.com/users/EmilianoJordan/following{/other_user}",
"gists_url": "https://api.github.com/users/EmilianoJordan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/EmilianoJordan",
"id": 22417720,
"login": "EmilianoJordan",
"node_id": "MDQ6VXNlcjIyNDE3NzIw",
"organizations_url": "https://api.github.com/users/EmilianoJordan/orgs",
"received_events_url": "https://api.github.com/users/EmilianoJordan/received_events",
"repos_url": "https://api.github.com/users/EmilianoJordan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/EmilianoJordan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EmilianoJordan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/EmilianoJordan"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-26T21:03:41Z
| 2020-05-10T15:02:08Z
| 2020-05-10T15:02:05Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31331/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31331/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31331.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31331",
"merged_at": "2020-05-10T15:02:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31331.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31331"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31332
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31332/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31332/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31332/events
|
https://github.com/pandas-dev/pandas/issues/31332
| 555,303,107
|
MDU6SXNzdWU1NTUzMDMxMDc=
| 31,332
|
Adding keep parameter to merge method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/54766615?v=4",
"events_url": "https://api.github.com/users/dcsaba89/events{/privacy}",
"followers_url": "https://api.github.com/users/dcsaba89/followers",
"following_url": "https://api.github.com/users/dcsaba89/following{/other_user}",
"gists_url": "https://api.github.com/users/dcsaba89/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dcsaba89",
"id": 54766615,
"login": "dcsaba89",
"node_id": "MDQ6VXNlcjU0NzY2NjE1",
"organizations_url": "https://api.github.com/users/dcsaba89/orgs",
"received_events_url": "https://api.github.com/users/dcsaba89/received_events",
"repos_url": "https://api.github.com/users/dcsaba89/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dcsaba89/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dcsaba89/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dcsaba89"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] | null | 6
| 2020-01-26T23:17:32Z
| 2021-07-27T05:25:45Z
| 2021-07-27T05:25:45Z
|
NONE
| null |
Consider the following example:
import pandas as pd
x = pd.DataFrame({'A': [1, 2, 3], 'X': [11, 12, 13]})
y = pd.DataFrame({'A': [1, 1, 2, 2, 3, 3], 'Y': [111, 111, 222, 222, 333, 333]})
We want to extend x with column 'Y' from y, based on 'A'.
x1 = pd.merge(x, y, how='left', on='A')
When we check the result, we see new rows coming from y when a key in 'A' occurs multiple times in y.
It would be great to do is this way:
x1 = pd.merge(x, y, how='left', on='A', keep='first')
However, unfortunately, merge does not have this keep parameter.
So, we have to figure out a workaround:
Before we could merge x and y, duplicates based on 'A' from y must be removed.
x1 = pd.merge(x, y.drop_duplicates(subset='A', keep='first'), on='A')
This issue generates lots of suffering for many people, who are confused because merging results in increasing number of rows.
https://stackoverflow.com/questions/37095161/number-of-rows-changes-even-after-pandas-merge-with-left-option
By implementing a feature of adding 'keep' parameter to merge, we can easily avoid increasing number of rows in our initial dataframe.
Additional notes:
As drop_duplicates has this keep parameter, it is easy to make it backward compatible by adding 'keep' (True by default) parameter to merge. In this case it should have the same result as earlier,
pd.merge(x, y, how='left', on='A', keep=True) == pd.merge(x, y, how='left', on='A')
Based on my ideas, keep='first' (example: pd.merge(x, y, how='left', on='A', keep='first')) would result the same as pd.merge(x, y.drop_duplicates(subset='A', keep='first'), on='A') currently, (where subset parameter of drop_duplicates is the same as on parameter of merge.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31332/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31332/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31333
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31333/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31333/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31333/events
|
https://github.com/pandas-dev/pandas/pull/31333
| 555,348,720
|
MDExOlB1bGxSZXF1ZXN0MzY3MzA2MDQz
| 31,333
|
DEPR: indexing Series with single-entry list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-27T04:20:55Z
| 2020-02-10T20:55:40Z
| 2020-02-09T17:08:54Z
|
MEMBER
| null |
- [x] closes #31299
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Could use a better warning message, suggestions welcome.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31333/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31333/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31333.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31333",
"merged_at": "2020-02-09T17:08:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31333.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31333"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31334
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31334/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31334/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31334/events
|
https://github.com/pandas-dev/pandas/pull/31334
| 555,349,454
|
MDExOlB1bGxSZXF1ZXN0MzY3MzA2NjE0
| 31,334
|
DEPR: row-based indexing in DataFrame.__getitem__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "b60205",
"default": false,
"description": "Temporarily-closed PR the author plans to return to",
"id": 1991290519,
"name": "Mothballed",
"node_id": "MDU6TGFiZWwxOTkxMjkwNTE5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Mothballed"
}
] |
closed
| false
| null |
[] | null | 7
| 2020-01-27T04:24:57Z
| 2021-11-20T23:23:15Z
| 2020-02-08T21:46:23Z
|
MEMBER
| null |
Discussed recently in #9595. The two tests this edits are the only two that go down this path AFAICT.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31334/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31334/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31334.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31334",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31334.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31334"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31335
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31335/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31335/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31335/events
|
https://github.com/pandas-dev/pandas/pull/31335
| 555,352,592
|
MDExOlB1bGxSZXF1ZXN0MzY3MzA5MTI3
| 31,335
|
REF: share code for set-like ops in DTI/TDI/PI
|
{
"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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-27T04:41:04Z
| 2020-02-09T17:30:46Z
| 2020-02-09T16:51:59Z
|
MEMBER
| null |
The DatetimeIndexOpsMixin._concat_same_type this has can probably become the ExtensionIndex._concat_same_type default. I expect IntervalIndex can be updated to look the same pretty easily, not so sure about CategoricalIndex based on a quick look.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31335/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31335/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31335.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31335",
"merged_at": "2020-02-09T16:51:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31335.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31335"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31336
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31336/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31336/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31336/events
|
https://github.com/pandas-dev/pandas/issues/31336
| 555,353,303
|
MDU6SXNzdWU1NTUzNTMzMDM=
| 31,336
|
json normalize max level not working
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6182313?v=4",
"events_url": "https://api.github.com/users/jphilippou27/events{/privacy}",
"followers_url": "https://api.github.com/users/jphilippou27/followers",
"following_url": "https://api.github.com/users/jphilippou27/following{/other_user}",
"gists_url": "https://api.github.com/users/jphilippou27/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jphilippou27",
"id": 6182313,
"login": "jphilippou27",
"node_id": "MDQ6VXNlcjYxODIzMTM=",
"organizations_url": "https://api.github.com/users/jphilippou27/orgs",
"received_events_url": "https://api.github.com/users/jphilippou27/received_events",
"repos_url": "https://api.github.com/users/jphilippou27/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jphilippou27/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jphilippou27/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jphilippou27"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-01-27T04:44:32Z
| 2020-06-11T23:07:38Z
| 2020-01-27T05:23:49Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
from pandas.io.json import json_normalize
data = [{'id': 1,
'name': "Cole Volk",
'fitness': {'height': 130, 'weight': 60}},
{'name': "Mose Reg",
'fitness': {'height': 130, 'weight': 60}},
{'id': 2, 'name': 'Faye Raker',
'fitness': {'height': 130, 'weight': 60}}]
json_normalize(data, max_level=0)
```
#### Problem description
The code above is from the pandas docs. I'm running python 3.6.4 and pandas==0.22.0
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
For documentation-related issues, you can check the latest versions of the docs on `master` here:
https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
</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/31336/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31336/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31337
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31337/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31337/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31337/events
|
https://github.com/pandas-dev/pandas/pull/31337
| 555,423,074
|
MDExOlB1bGxSZXF1ZXN0MzY3MzY3MzM0
| 31,337
|
CLN: some minor cleanups
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-27T08:24:18Z
| 2020-01-27T21:05:08Z
| 2020-01-27T15:40:29Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31337/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31337/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31337.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31337",
"merged_at": "2020-01-27T15:40:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31337.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31337"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31338
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31338/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31338/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31338/events
|
https://github.com/pandas-dev/pandas/issues/31338
| 555,493,178
|
MDU6SXNzdWU1NTU0OTMxNzg=
| 31,338
|
BUG: Timestamp UTC offset incorrect for dateutil tz in ambiguous DST time
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 12
| 2020-01-27T10:47:32Z
| 2020-02-26T12:35:04Z
| 2020-02-26T12:35:04Z
|
MEMBER
| null |
#### Code Sample, a copy-pastable example if possible
If we make a Timestamp in an ambiguous DST period while specifying via the offset (or by supplying `Timestamp.value` directly) that the time is before DST switch, the representation then shows that this is after DST switch. This is backed up by calling `Timestamp.tz.utcoffset(Timestamp)`.
```python
IN:
t1 = pd.Timestamp(1382837400000000000, tz='dateutil/Europe/London')
t1
OUT:
Timestamp('2013-10-27 01:30:00+0100', tz='dateutil/GB-Eire')
IN:
t2 = pd.Timestamp(1382837400000000000, tz='Europe/London')
t2
OUT:
Timestamp('2013-10-27 01:30:00+0000', tz='Europe/London')
```
#### Problem description
The reason for this bug looks to be buried deep in the interaction of `pandas` and `dateutil`.
So this is what I've been able to dig up. When we try to determine whether we are in DST or not, we rely on `timezone.utcoffset` of the underlying timezone package. What gets executed in `dateutil` is this:
```python
def utcoffset(self, dt):
...
return self._find_ttinfo(dt).delta
def _find_ttinfo(self, dt):
idx = self._resolve_ambiguous_time(dt)
...
def _resolve_ambiguous_time(self, dt):
idx = self._find_last_transition(dt)
# If we have no transitions, return the index
_fold = self._fold(dt)
if idx is None or idx == 0:
return idx
# If it's ambiguous and we're in a fold, shift to a different index.
idx_offset = int(not _fold and self.is_ambiguous(dt, idx))
return idx - idx_offset
```
`dateutil` is expecting an ordinary `datetime.timedelta` object here, so this is what it does:
1. Use `_find_last_transition` to get the index of the last DST transition before `dt`. This is done by computing `timedelta.total_seconds` since epoch time. Our `pandas.Timedelta.total_seconds` is smart, and returns different `total_seconds` for before and after `DST`, since we basically return `Timedelta.value` which is the same as `Timestamp.value` when counting since epoch time (because of how `_Timestamp.__sub__` in `c_timestamp.pyx` is implemented).
This is what we do (doesn't care about `dt.replace(tzinfo=None)`):
```python
def total_seconds(self):
"""
Total duration of timedelta in seconds (to microsecond precision).
"""
# GH 31043
# Microseconds precision to avoid confusing tzinfo.utcoffset
return (self.value - self.value % 1000) / 1e9
```
This is what `datetime.timedelta` does (loses DST awareness after `dt.replace(tzinfo=None)`):
```python
def total_seconds(self):
"""Total seconds in the duration."""
return ((self.days * 86400 + self.seconds) * 10**6 +
self.microseconds) / 10**6
```
2. The remainder of `_resolve_ambiguous_time` corrects for ambiguous times, since `datetime.timedelta.total_seconds` after `dt.replace(tzinfo=None)` isn't DST-aware. It checks if we are in an ambiguous period and if this is the first time this time has occured: this is what `self._fold` is for. [fold](https://www.python.org/dev/peps/pep-0495/#the-fold-attribute) is 0 for the first time, and 1 for the second time. If it's the first time, `dateutil` shifts the relevant transition index back by 1, since it thinks that `total_seconds` always returns the number of seconds calculated using the second time.
I'd like to discuss how we are going to approach this. From what I see, there isn't much we can do on our end. ~Making `total_seconds` non-DST-aware by default is bad, because that would be making our implementation less precise unless the user passes a parameter.~ Scratch that. The problem isn't so much the `total_seconds` implementation as it is the `Timestamp.__sub__` implementation which preserves `value` when we subtract epoch time.
Another approach is to go to `dateutil` with this and implement a check there to avoid running the correction if they are dealing with a `pandas.Timedelta`. Might be tricky to do without introducing a dependency on pandas, though.
First came across this while solving #24329 in #30995
#### Expected Output
```python
IN:
t1
OUT:
Timestamp('2013-10-27 01:30:00+0000', tz='dateutil/GB-Eire')
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : ru_RU.UTF-8
LOCALE : None.None
pandas : 0.26.0.dev0+1947.gca3bfcc54.dirty
numpy : 1.17.5
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 44.0.0.post20200106
Cython : 0.29.14
pytest : 5.3.4
hypothesis : 5.2.0
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.4.2
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.1
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.4
pyxlsb : None
s3fs : 0.4.0
scipy : 1.3.1
sqlalchemy : 1.3.12
tables : 3.6.1
tabulate : 0.8.6
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.47.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/31338/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31338/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31339
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31339/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31339/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31339/events
|
https://github.com/pandas-dev/pandas/issues/31339
| 555,499,512
|
MDU6SXNzdWU1NTU0OTk1MTI=
| 31,339
|
Sometimes one day of when reading date fields
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/54582910?v=4",
"events_url": "https://api.github.com/users/matthiasleopold/events{/privacy}",
"followers_url": "https://api.github.com/users/matthiasleopold/followers",
"following_url": "https://api.github.com/users/matthiasleopold/following{/other_user}",
"gists_url": "https://api.github.com/users/matthiasleopold/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matthiasleopold",
"id": 54582910,
"login": "matthiasleopold",
"node_id": "MDQ6VXNlcjU0NTgyOTEw",
"organizations_url": "https://api.github.com/users/matthiasleopold/orgs",
"received_events_url": "https://api.github.com/users/matthiasleopold/received_events",
"repos_url": "https://api.github.com/users/matthiasleopold/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matthiasleopold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matthiasleopold/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matthiasleopold"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-01-27T11:00:16Z
| 2020-01-27T11:51:38Z
| 2020-01-27T11:51:37Z
|
NONE
| null |
#### Code Sample
```python
import datetime
import pandas
df = pandas.read_excel('28422_LZ.xlsx', sheet_name='Laufzettel')
stamp = df[df.columns[3]][16].timestamp()
print('first date =', datetime.datetime.utcfromtimestamp(stamp).strftime('%Y-%m-%d'), '(one day of)')
df = pandas.read_excel('test.xlsx', sheet_name='Tabelle1')
stamp = df[df.columns[0]][0
[28422_LZ.xlsx](https://github.com/pandas-dev/pandas/files/4116748/28422_LZ.xlsx)
[test.xlsx](https://github.com/pandas-dev/pandas/files/4116749/test.xlsx)
].timestamp()
print('seconde date =', datetime.datetime.utcfromtimestamp(stamp).strftime('%Y-%m-%d'), '(correct)')
```
#### Problem description
I read two date fields from two excel sheets. First date is one day off, second date is okay. I cannot see any reason for the difference in behavior. First date ('recalculated time') should be 2015-09-18.
#### Expected Output
```
first date = 2015-09-18 (!!!)
seconde date = 1978-03-16 (correct)
```
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.0-6-amd64
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 0.25.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 18.1
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
None
[28422_LZ.xlsx](https://github.com/pandas-dev/pandas/files/4116717/28422_LZ.xlsx)
[test.xlsx](https://github.com/pandas-dev/pandas/files/4116718/test.xlsx)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31339/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31339/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31340
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31340/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31340/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31340/events
|
https://github.com/pandas-dev/pandas/issues/31340
| 555,513,697
|
MDU6SXNzdWU1NTU1MTM2OTc=
| 31,340
|
Bug: loc assignment results in wrong dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60345497?v=4",
"events_url": "https://api.github.com/users/krasnikov138/events{/privacy}",
"followers_url": "https://api.github.com/users/krasnikov138/followers",
"following_url": "https://api.github.com/users/krasnikov138/following{/other_user}",
"gists_url": "https://api.github.com/users/krasnikov138/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/krasnikov138",
"id": 60345497,
"login": "krasnikov138",
"node_id": "MDQ6VXNlcjYwMzQ1NDk3",
"organizations_url": "https://api.github.com/users/krasnikov138/orgs",
"received_events_url": "https://api.github.com/users/krasnikov138/received_events",
"repos_url": "https://api.github.com/users/krasnikov138/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/krasnikov138/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/krasnikov138/subscriptions",
"type": "User",
"url": "https://api.github.com/users/krasnikov138"
}
|
[
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-01-27T11:28:01Z
| 2020-02-01T23:20:37Z
| 2020-02-01T23:20:37Z
|
NONE
| null |
Let's see output of this code snippet
```python
df = pd.DataFrame({'id': ['A'], 'a': [1.2], 'b': [0.0], 'c': [-2.5]})
cols = ['a', 'b', 'c']
df.loc[:, cols] = df.loc[:, cols].astype('float32')
print(df.dtypes)
```
#### Problem description
In this code we expect columns `'a', 'b', 'c'` will have types `float32`. But in fact the result is:
```
>>> print(df.dtypes)
id object
a float32
b int64
c float32
dtype: object
```
Bug occurs when the value in column is close to integer. In other words, for `df = pd.DataFrame({'id': ['A'], 'a': [1.2], 'b': [1.0], 'c': [-2.5]})` behavior will be the same. However, if df has 2 rows or more the result is right:
```
>>> df = pd.DataFrame({'id': ['A', 'B'], 'a': [1.2, 0.55], 'b': [0.0, 0.0], 'c': [-2.5, 12.56]})
>>> df.loc[:, cols] = df.loc[:, cols].astype('float32')
>>> df.dtypes
id object
a float32
b float32
c float32
dtype: object
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.5.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.6-200.fc28.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.3
numpy : 1.17.4
pytz : 2018.4
dateutil : 2.7.5
pip : 19.2.3
setuptools : 41.6.0
Cython : 0.28.2
pytest : 3.5.1
hypothesis : None
sphinx : 1.7.4
blosc : None
feather : None
xlsxwriter : 1.0.4
lxml.etree : 4.2.1
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.7.5 (dt dec pq3 ext lo64)
jinja2 : 2.10
IPython : 6.4.0
pandas_datareader: None
bs4 : 4.6.3
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.2.1
matplotlib : 3.0.1
numexpr : 2.6.5
odfpy : None
openpyxl : 2.5.3
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.1.0
sqlalchemy : 1.2.14
tables : 3.4.3
xarray : None
xlrd : 1.1.0
xlwt : 1.3.0
xlsxwriter : 1.0.4
</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/31340/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31340/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31341
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31341/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31341/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31341/events
|
https://github.com/pandas-dev/pandas/pull/31341
| 555,542,579
|
MDExOlB1bGxSZXF1ZXN0MzY3NDY0OTgz
| 31,341
|
Backport PR #31323 on branch 1.0.x (CI: Fix jedi upgrades causes deprecation warning)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-27T12:28:59Z
| 2020-01-27T14:22:05Z
| 2020-01-27T14:22:04Z
|
NONE
| null |
Backport PR #31323: CI: Fix jedi upgrades causes deprecation warning
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31341/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31341/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31341.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31341",
"merged_at": "2020-01-27T14:22:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31341.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31341"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31342
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31342/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31342/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31342/events
|
https://github.com/pandas-dev/pandas/issues/31342
| 555,598,649
|
MDU6SXNzdWU1NTU1OTg2NDk=
| 31,342
|
CI Failing on IPython tab complete test
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-01-27T14:09:39Z
| 2020-01-27T14:14:49Z
| 2020-01-27T14:14:49Z
|
CONTRIBUTOR
| null |
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=26868&view=logs&j=a3a13ea8-7cf0-5bdb-71bb-6ac8830ae35c&t=add65f64-6c25-5783-8fd6-d9aa1b63d9d4
```
##[error]2 test(s) failed, 61943 test(s) collected.
Skipping uploading of coverage data.
=================================== FAILURES ===================================
______________ TestCategoricalWarnings.test_tab_complete_warning _______________
[gw1] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python
self = <contextlib._GeneratorContextManager object at 0x7fec44a81210>
type = None, value = None, traceback = None
def __exit__(self, type, value, traceback):
if type is None:
try:
> next(self.gen)
E AssertionError: Caused unexpected warning(s): [('DeprecationWarning', DeprecationWarning('Deprecated since version 0.16.0. Use get_signatures()[...].params'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/cache.py', 111)]
../../../miniconda3/envs/pandas-dev/lib/python3.7/contextlib.py:119: AssertionError
_____________________ TestIndex.test_tab_complete_warning ______________________
[gw0] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.indexes.test_base.TestIndex object at 0x7f6d1ff31850>
ip = <IPython.core.interactiveshell.InteractiveShell object at 0x7f6d1ff31b90>
@async_mark()
async def test_tab_complete_warning(self, ip):
# ***/issues/16409
pytest.importorskip("IPython", minversion="6.0.0")
from IPython.core.completer import provisionalcompleter
code = "import pandas as pd; idx = pd.Index([1, 2])"
await ip.run_code(code)
with tm.assert_produces_warning(None):
with provisionalcompleter("ignore"):
> list(ip.Completer.completions("idx.", 4))
pandas/tests/indexes/test_base.py:2418:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <contextlib._GeneratorContextManager object at 0x7f6d1ebc7a50>
type = None, value = None, traceback = None
def __exit__(self, type, value, traceback):
if type is None:
try:
> next(self.gen)
E AssertionError: Caused unexpected warning(s): [('DeprecationWarning', DeprecationWarning('Deprecated since version 0.16.0. Use get_signatures()[...].params'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/cache.py', 111)]
../../../miniconda3/envs/pandas-dev/lib/python3.7/contextlib.py:119: AssertionError
```
taking a look now.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31342/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31342/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31343
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31343/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31343/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31343/events
|
https://github.com/pandas-dev/pandas/pull/31343
| 555,632,626
|
MDExOlB1bGxSZXF1ZXN0MzY3NTM5MTQ4
| 31,343
|
TST/CLN: remove setup_method from test_dtypes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T15:01:11Z
| 2020-02-05T23:12:11Z
| 2020-02-02T22:55:11Z
|
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/31343/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31343/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31343.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31343",
"merged_at": "2020-02-02T22:55:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31343.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31343"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31344
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31344/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31344/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31344/events
|
https://github.com/pandas-dev/pandas/issues/31344
| 555,647,836
|
MDU6SXNzdWU1NTU2NDc4MzY=
| 31,344
|
Why [] operation on float index doesn't work the same way as int index?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41546976?v=4",
"events_url": "https://api.github.com/users/GYHHAHA/events{/privacy}",
"followers_url": "https://api.github.com/users/GYHHAHA/followers",
"following_url": "https://api.github.com/users/GYHHAHA/following{/other_user}",
"gists_url": "https://api.github.com/users/GYHHAHA/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GYHHAHA",
"id": 41546976,
"login": "GYHHAHA",
"node_id": "MDQ6VXNlcjQxNTQ2OTc2",
"organizations_url": "https://api.github.com/users/GYHHAHA/orgs",
"received_events_url": "https://api.github.com/users/GYHHAHA/received_events",
"repos_url": "https://api.github.com/users/GYHHAHA/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GYHHAHA/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GYHHAHA/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GYHHAHA"
}
|
[
{
"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 |
[] | null | 2
| 2020-01-27T15:24:28Z
| 2021-07-27T05:27:35Z
| 2021-07-27T05:27:35Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> s1 = pd.Series(list('abcde'),index=[5,7,9,11,13])
>>> s2 = pd.Series(list('abcde'),index=[5.5,7.5,9.5,11.5,13.5])
>>> print(s1[2:])
>>> print(s2[2:])
9 c
11 d
13 e
dtype: object
5.5 a
7.5 b
9.5 c
11.5 d
13.5 e
dtype: object
```
#### Problem description
I'm a little confused with the [] operation on numerical index.
It seems that when [] applied to the int index, it is compared with the exact position, whereas the [] operation on float is compared with the index's value.
Thanks!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31344/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31344/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31345
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31345/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31345/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31345/events
|
https://github.com/pandas-dev/pandas/issues/31345
| 555,650,519
|
MDU6SXNzdWU1NTU2NTA1MTk=
| 31,345
|
ENH: `Styler.highlight_null` to accept `subset` argument
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26521816?v=4",
"events_url": "https://api.github.com/users/immaxchen/events{/privacy}",
"followers_url": "https://api.github.com/users/immaxchen/followers",
"following_url": "https://api.github.com/users/immaxchen/following{/other_user}",
"gists_url": "https://api.github.com/users/immaxchen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/immaxchen",
"id": 26521816,
"login": "immaxchen",
"node_id": "MDQ6VXNlcjI2NTIxODE2",
"organizations_url": "https://api.github.com/users/immaxchen/orgs",
"received_events_url": "https://api.github.com/users/immaxchen/received_events",
"repos_url": "https://api.github.com/users/immaxchen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/immaxchen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/immaxchen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/immaxchen"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-01-27T15:28:22Z
| 2020-03-10T20:30:08Z
| 2020-03-10T20:30:08Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({"A": [0, None], "B": [0, None]})
df.style.highlight_null(null_color="red", subset=["A"])
```
out:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-c4119d081571> in <module>
----> 1 df.style.highlight_null(null_color="red", subset=["A"])
TypeError: highlight_null() got an unexpected keyword argument 'subset'
```
#### Problem description
Most of the `Styler` built-in methods support `subset` argument, except `highlight_null`.
I think it would be nice if we make it consistent with `highlight_min` and `highlight_max` etc.
This also improves the api completeness for missing values styling and formatting. [(as discussed here)](https://github.com/pandas-dev/pandas/pull/29118#discussion_r340733887)
#### Expected Output

#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-862.14.4.el7.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 44.0.0.post20200106
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.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 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/31345/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31345/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31346
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31346/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31346/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31346/events
|
https://github.com/pandas-dev/pandas/pull/31346
| 555,651,500
|
MDExOlB1bGxSZXF1ZXN0MzY3NTU0ODAz
| 31,346
|
TYP: core.arrays.boolean
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T15:29:55Z
| 2020-01-31T14:58:25Z
| 2020-01-31T11:34:28Z
|
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/31346/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31346/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31346.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31346",
"merged_at": "2020-01-31T11:34:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31346.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31346"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31347
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31347/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31347/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31347/events
|
https://github.com/pandas-dev/pandas/pull/31347
| 555,654,365
|
MDExOlB1bGxSZXF1ZXN0MzY3NTU3MTE4
| 31,347
|
TYP: core.arrays.integer
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T15:34:19Z
| 2020-01-31T15:01:00Z
| 2020-01-31T11:37:48Z
|
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/31347/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31347/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31347.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31347",
"merged_at": "2020-01-31T11:37:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31347.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31347"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31348
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31348/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31348/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31348/events
|
https://github.com/pandas-dev/pandas/pull/31348
| 555,657,819
|
MDExOlB1bGxSZXF1ZXN0MzY3NTU5OTIz
| 31,348
|
TYP: core.arrays.numpy_
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-27T15:39:56Z
| 2020-01-31T15:02:46Z
| 2020-01-31T11:40:13Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31348/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31348/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31348.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31348",
"merged_at": "2020-01-31T11:40:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31348.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31348"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31349
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31349/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31349/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31349/events
|
https://github.com/pandas-dev/pandas/pull/31349
| 555,659,950
|
MDExOlB1bGxSZXF1ZXN0MzY3NTYxNjE4
| 31,349
|
TYP: pandas/core/arrays/sparse/dtype.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-27T15:43:14Z
| 2020-01-31T14:59:15Z
| 2020-01-31T11:41:39Z
|
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/31349/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31349/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31349.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31349",
"merged_at": "2020-01-31T11:41:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31349.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31349"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31350
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31350/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31350/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31350/events
|
https://github.com/pandas-dev/pandas/pull/31350
| 555,662,054
|
MDExOlB1bGxSZXF1ZXN0MzY3NTYzMjkw
| 31,350
|
ENH: `Styler.highlight_null` can accepts `subset` argument
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26521816?v=4",
"events_url": "https://api.github.com/users/immaxchen/events{/privacy}",
"followers_url": "https://api.github.com/users/immaxchen/followers",
"following_url": "https://api.github.com/users/immaxchen/following{/other_user}",
"gists_url": "https://api.github.com/users/immaxchen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/immaxchen",
"id": 26521816,
"login": "immaxchen",
"node_id": "MDQ6VXNlcjI2NTIxODE2",
"organizations_url": "https://api.github.com/users/immaxchen/orgs",
"received_events_url": "https://api.github.com/users/immaxchen/received_events",
"repos_url": "https://api.github.com/users/immaxchen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/immaxchen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/immaxchen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/immaxchen"
}
|
[
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-01-27T15:46:34Z
| 2020-03-10T20:30:16Z
| 2020-03-10T20:30:08Z
|
CONTRIBUTOR
| null |
As proposed in #31345 and as a follow-up PR for [#29118](https://github.com/pandas-dev/pandas/pull/29118#discussion_r340733887)
- [x] closes #31345
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31350/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31350/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31350.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31350",
"merged_at": "2020-03-10T20:30:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31350.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31350"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31351
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31351/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31351/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31351/events
|
https://github.com/pandas-dev/pandas/issues/31351
| 555,665,157
|
MDU6SXNzdWU1NTU2NjUxNTc=
| 31,351
|
read_sql routes sql query as table name snowflake-sqlalchemy
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6440476?v=4",
"events_url": "https://api.github.com/users/norton120/events{/privacy}",
"followers_url": "https://api.github.com/users/norton120/followers",
"following_url": "https://api.github.com/users/norton120/following{/other_user}",
"gists_url": "https://api.github.com/users/norton120/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/norton120",
"id": 6440476,
"login": "norton120",
"node_id": "MDQ6VXNlcjY0NDA0NzY=",
"organizations_url": "https://api.github.com/users/norton120/orgs",
"received_events_url": "https://api.github.com/users/norton120/received_events",
"repos_url": "https://api.github.com/users/norton120/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/norton120/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/norton120/subscriptions",
"type": "User",
"url": "https://api.github.com/users/norton120"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] |
open
| false
| null |
[] | null | 1
| 2020-01-27T15:51:27Z
| 2020-05-16T04:11:56Z
| null |
NONE
| null |
#### Code Sample
with [snowflake-sqlalchemy ](https://github.com/snowflakedb/snowflake-sqlalchemy) installed:
```python
from sqlalchemy import create_engine
import pandas as pd
CONN_STRING='snowflake://user:password@account/database'
engine=create_engine(CONN_STRING)
conn=engine.connect()
sql= 'SELECT COUNT(*) FROM "DATABASE_NAME"."SCHEMA_NAME"."TABLE_NAME"'
##this errors (stack below)
r=pd.read_sql(sql)
## this does not
r=pd.read_sql_query(sql)
```
stack:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/pandas/io/sql.py", line 420, in read_sql
pandas_sql.meta.reflect(only=[sql])
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4261, in reflect
"in %r%s: (%s)" % (bind.engine, s, ", ".join(missing))
sqlalchemy.exc.InvalidRequestError: Could not reflect: requested table(s) not available in Engine(snowflake://ethan:***@yxxxxxx.us-east-1/REDACTED_DB_NAME): (SELECT COUNT(*) FROM "REDACTED_DB_NAME"."REDACTED_DB_SCHEMA"."REDACTED_DB_TABLE")
```
#### Problem description
`read_sql` attempts to read sql queries as tables when running against snowflake. Calling `read_sql_query` is a workaround.
looks like [this line](https://github.com/pandas-dev/pandas/blob/5c37a0b9caaed81ff3999d05b16be1303d184d77/pandas/io/sql.py#L415):
```
try:
_is_table_name = pandas_sql.has_table(sql)
except Exception:
# using generic exception to catch errors from sql drivers (GH24988)
_is_table_name = False
```
is incorrectly determining statements to be table names.
#### Expected Output
pd dataframe result of query.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.76-linuxkit
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.0
pip : 19.3.1
setuptools : 44.0.0
Cython : None
pytest : 5.3.0
hypothesis : None
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.12
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 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/31351/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31351/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31352
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31352/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31352/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31352/events
|
https://github.com/pandas-dev/pandas/pull/31352
| 555,666,874
|
MDExOlB1bGxSZXF1ZXN0MzY3NTY3MjU3
| 31,352
|
TYP: pandas/core/dtypes/base.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-27T15:54:05Z
| 2020-02-12T20:57:42Z
| 2020-02-12T15:58:57Z
|
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/31352/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31352/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31352.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31352",
"merged_at": "2020-02-12T15:58:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31352.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31352"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31353
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31353/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31353/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31353/events
|
https://github.com/pandas-dev/pandas/pull/31353
| 555,674,190
|
MDExOlB1bGxSZXF1ZXN0MzY3NTczMzU3
| 31,353
|
CLN: remove construct_from_string from various
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T16:05:15Z
| 2020-01-28T08:54:32Z
| 2020-01-28T03:02:45Z
|
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/31353/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31353/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31353.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31353",
"merged_at": "2020-01-28T03:02:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31353.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31353"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31354
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31354/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31354/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31354/events
|
https://github.com/pandas-dev/pandas/issues/31354
| 555,682,974
|
MDU6SXNzdWU1NTU2ODI5NzQ=
| 31,354
|
BUG: Timedelta components rounded by float imprecision
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1377457?v=4",
"events_url": "https://api.github.com/users/pganssle/events{/privacy}",
"followers_url": "https://api.github.com/users/pganssle/followers",
"following_url": "https://api.github.com/users/pganssle/following{/other_user}",
"gists_url": "https://api.github.com/users/pganssle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pganssle",
"id": 1377457,
"login": "pganssle",
"node_id": "MDQ6VXNlcjEzNzc0NTc=",
"organizations_url": "https://api.github.com/users/pganssle/orgs",
"received_events_url": "https://api.github.com/users/pganssle/received_events",
"repos_url": "https://api.github.com/users/pganssle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pganssle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pganssle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pganssle"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-01-27T16:19:06Z
| 2020-02-02T21:08:57Z
| 2020-02-02T21:08:57Z
|
CONTRIBUTOR
| null |
#### Problem description
It appears that there is some premature rounding happening in the `Timedelta` constructor that makes it so the unit-adjusted sums of the `days`, `seconds`, `microseconds` and `nanoseconds` attributes do not sum to the total number of nanoseconds. A fundamental assumption of the `datetime.timedelta` type (and breaking this assumption breaks Liskov substitutability) is that the total time difference at the precision of microseconds can be represented by summing up the unit-adjusted `days`, `seconds` and `microseconds` attributes, and it's how `datetime.total_seconds()` works.
I believe that this is the root cause of issue #31043, which was "fixed" with what is essentially a workaround in PR #31155, as I mentioned in [this comment](https://github.com/pandas-dev/pandas/pull/31155#discussion_r370721655).
At the moment the most obvious effect is that bug #31043 only is fixed for recent versions of `dateutil`, but presumably it will show up in other places where standard `datetime` arithmetic is being used on `pandas` timestamps.
#### Code Sample, a copy-pastable example if possible
```python
def to_ns(td):
ns = td.days * 86400
ns += td.seconds
ns *= 1000000
ns += td.microseconds
ns *= 1000
ns += td.nanoseconds
return ns
td = timedelta(1552211999999999872, unit="ns")
print(td.value) # 1552211999999999872
print(to_ns(td)) # 1552212000000000872
```
#### Actual output:
```
1552211999999999872
1552212000000000872
```
#### Expected output
```
1552211999999999872
1552211999999999872
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31354/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31354/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31355
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31355/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31355/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31355/events
|
https://github.com/pandas-dev/pandas/issues/31355
| 555,686,660
|
MDU6SXNzdWU1NTU2ODY2NjA=
| 31,355
|
BUG: Calling cartesian_product with large combinatorial space overflows int64 gives misleading errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1426041?v=4",
"events_url": "https://api.github.com/users/mobiusklein/events{/privacy}",
"followers_url": "https://api.github.com/users/mobiusklein/followers",
"following_url": "https://api.github.com/users/mobiusklein/following{/other_user}",
"gists_url": "https://api.github.com/users/mobiusklein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mobiusklein",
"id": 1426041,
"login": "mobiusklein",
"node_id": "MDQ6VXNlcjE0MjYwNDE=",
"organizations_url": "https://api.github.com/users/mobiusklein/orgs",
"received_events_url": "https://api.github.com/users/mobiusklein/received_events",
"repos_url": "https://api.github.com/users/mobiusklein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mobiusklein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mobiusklein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mobiusklein"
}
|
[
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11210290?v=4",
"events_url": "https://api.github.com/users/TAJD/events{/privacy}",
"followers_url": "https://api.github.com/users/TAJD/followers",
"following_url": "https://api.github.com/users/TAJD/following{/other_user}",
"gists_url": "https://api.github.com/users/TAJD/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TAJD",
"id": 11210290,
"login": "TAJD",
"node_id": "MDQ6VXNlcjExMjEwMjkw",
"organizations_url": "https://api.github.com/users/TAJD/orgs",
"received_events_url": "https://api.github.com/users/TAJD/received_events",
"repos_url": "https://api.github.com/users/TAJD/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TAJD/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TAJD/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TAJD"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/11210290?v=4",
"events_url": "https://api.github.com/users/TAJD/events{/privacy}",
"followers_url": "https://api.github.com/users/TAJD/followers",
"following_url": "https://api.github.com/users/TAJD/following{/other_user}",
"gists_url": "https://api.github.com/users/TAJD/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TAJD",
"id": 11210290,
"login": "TAJD",
"node_id": "MDQ6VXNlcjExMjEwMjkw",
"organizations_url": "https://api.github.com/users/TAJD/orgs",
"received_events_url": "https://api.github.com/users/TAJD/received_events",
"repos_url": "https://api.github.com/users/TAJD/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TAJD/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TAJD/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TAJD"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 1
| 2020-01-27T16:25:20Z
| 2020-09-13T20:22:37Z
| 2020-09-13T20:22:37Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import numpy as np
from pandas.core.reshape.util import cartesian_product
dims = [np.arange(0, 22, dtype=np.int16) for i in range(12)] + [(np.arange(15128, dtype=np.int16)), ]
cartesian_product(dims)
# ValueError: negative dimensions are not allowed
```
#### Problem description
This issue is similar to #9096, when performing a `groupby` over many columns with a large key space and invoking a reduction over one column, the solution is computed correctly but an error occurs when constructing the result's index with `MultiIndex.from_product`. The error occurs in `cartesian_product`, where very large signed integer arithmetic overflows.
https://github.com/pandas-dev/pandas/blob/0c50950f2a7e32887eff6be5979f09772091e1de/pandas/core/reshape/util.py#L42-L54
The overflow at this point can be averted by using `np.uintp` instead of `np.intp` as the dtype for `fromiter`.
Current code `cumprodX`:
```
array([ 22, 484, 10648,
234256, 5153632, 113379904,
2494357888, 54875873536, 1207269217792,
26559922791424, 584318301411328, 12855002631049216,
-8443705008292528128], dtype=int64)
```
With `uintp` `cumprodX`:
```
array([ 22, 484, 10648,
234256, 5153632, 113379904,
2494357888, 54875873536, 1207269217792,
26559922791424, 584318301411328, 12855002631049216,
10003039065417023488], dtype=uint64)
```
Unfortunately, the calculation of `b` is converted to a `float64` automatically due to the real division at line 49, though this can be corrected by using floor division.
Current code `b`:
```
array([4.54683594e+17, 2.06674361e+16, 9.39428913e+14, 4.27013142e+13,
1.94096883e+12, 8.82258558e+10, 4.01026617e+09, 1.82284826e+08,
8.28567391e+06, 3.76621542e+05, 1.71191610e+04, 7.78143681e+02,
1.00000000e+00])
```
With floordiv `b`:
```
array([454683593882591976, 20667436085572362, 939428912980561,
42701314226389, 1940968828472, 88225855839,
4010266174, 182284826, 8285673,
376621, 17119, 778,
1], dtype=uint64)
```
Even worse, while the value of `b[i]` in `np.repeat` is a very large unsigned integer, passing it into `np.repeat` seems to still fail due to a sign error:
```python
np.repeat(np.array(range(22), dtype=np.int16), 454683593882591976)
ValueError Traceback (most recent call last)
<ipython-input-83-c5f3bb52f270> in <module>
----> 1 np.repeat(np.array(range(22), dtype=np.int16), 454683593882591976)
<__array_function__ internals> in repeat(*args, **kwargs)
...\lib\site-packages\numpy\core\fromnumeric.py in repeat(a, repeats, axis)
479
480 """
--> 481 return _wrapfunc(a, 'repeat', repeats, axis=axis)
482
483
...\lib\site-packages\numpy\core\fromnumeric.py in _wrapfunc(obj, method, *args, **kwds)
59
60 try:
---> 61 return bound(*args, **kwds)
62 except TypeError:
63 # A TypeError occurs if the object does have such a method in its
ValueError: negative dimensions are not allowed
```
Curiously enough, if you vary the array argument to `np.repeat`, while holding `b[i]` constant, the error changes:
```python
np.repeat(np.array(range(22), dtype=np.int16), 454683593882591976)
# ValueError: negative dimensions are not allowed
np.repeat(np.array(range(20), dtype=np.int16), 454683593882591976)
# ValueError: array is too big; `arr.size * arr.dtype.itemsize` is larger than the maximum possible size.
np.repeat(np.array(range(2), dtype=np.int16), 454683593882591976)
# MemoryError: Unable to allocate array with shape (909367187765183952,) and data type int16
```
The issue is of course, I'm asking to create an array more than two times larger than the maximum value of `Py_ssize_t`, which would be impossible to index, even if I had the memory to allocate.
There does not appear to be an ultimate solution within `pandas`, but the code leading into `numpy.repeat` still misbehaves.
#### Expected Output
The expected output would be the exceptionally large cross-product of all of the dimensions described by the raw keys above, or to receive an error indicating the key space is too large.
Since creating an array larger than is physically possible is out of the question, some sort of error checking or warning in the documentation would be helpful.
Would something like this be safe though?
```python
lenX = np.fromiter((len(x) for x in X), dtype=np.intp)
cumprodX = np.cumproduct(lenX)
a = np.roll(cumprodX, 1)
if np.any(cumprodX < 0):
raise ValueError("Product space too large to allocate arrays!")
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.7.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : None.None
pandas : 0.25.3
numpy : 1.17.3
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 45.0.0.post20200113
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.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : None
tables : 3.6.1
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 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/31355/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31355/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31356
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31356/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31356/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31356/events
|
https://github.com/pandas-dev/pandas/issues/31356
| 555,715,099
|
MDU6SXNzdWU1NTU3MTUwOTk=
| 31,356
|
AssertionError creating array with StringDtype instead of StringDtype(), can we have a friendlier error message?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/500246?v=4",
"events_url": "https://api.github.com/users/gerritholl/events{/privacy}",
"followers_url": "https://api.github.com/users/gerritholl/followers",
"following_url": "https://api.github.com/users/gerritholl/following{/other_user}",
"gists_url": "https://api.github.com/users/gerritholl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gerritholl",
"id": 500246,
"login": "gerritholl",
"node_id": "MDQ6VXNlcjUwMDI0Ng==",
"organizations_url": "https://api.github.com/users/gerritholl/orgs",
"received_events_url": "https://api.github.com/users/gerritholl/received_events",
"repos_url": "https://api.github.com/users/gerritholl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gerritholl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gerritholl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gerritholl"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
open
| false
| null |
[] | null | 1
| 2020-01-27T17:13:59Z
| 2021-07-27T05:28:59Z
| null |
NONE
| null |
The following fails with an `AssertionError` on pandas 1.0.0rc0:
```python
pd.Series(["a", "b"], dtype=pd.StringDtype)
```
I wrote this by mistake — this works:
```python
pd.Series(["a", "b"], dtype=pd.StringDtype())
```
When running the former, I get a traceback with an AssertionError:
```
Traceback (most recent call last):
File "/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/core/construction.py", line 534, in _try_cast
if is_integer_dtype(dtype):
File "/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/core/dtypes/common.py", line 827, in is_integer_dtype
return _is_dtype_type(arr_or_dtype, classes_and_not_datetimelike(np.integer))
File "/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/core/dtypes/common.py", line 1732, in _is_dtype_type
return condition(np.dtype(arr_or_dtype).type)
TypeError: data type not understood
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "mwe18.py", line 2, in <module>
pd.Series(["a", "b"], dtype=pd.StringDtype)
File "/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/core/series.py", line 304, in __init__
data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True)
File "/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/core/construction.py", line 438, in sanitize_array
subarr = _try_cast(data, dtype, copy, raise_cast_failure)
File "/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/core/construction.py", line 562, in _try_cast
subarr = array_type(arr, dtype=dtype, copy=copy)
File "/media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/pandas/core/arrays/string_.py", line 180, in _from_sequence
assert dtype == "string"
AssertionError
```
Coming from numpy, I find it unconventional that the type ending in `dtype` is not itself a valid dtype, but rather a constructor for such a dtype. Therefore, I would consider that a friendlier error message could be in order (or maybe it should even work).
I'm running pandas 1.0.0rc0 on Python 3.7.6.
The full environment:
<details>
# packages in environment at /media/nas/x21324/miniconda3/envs/py37e:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 0_gnu conda-forge
affine 2.3.0 py_0 conda-forge
aggdraw 1.3.11 py37hc56bac0_0 conda-forge
alabaster 0.7.12 py_0 conda-forge
appdirs 1.4.3 pypi_0 pypi
arrow-cpp 0.15.1 py37had5782a_4 conda-forge
asciitree 0.3.3 py_2 conda-forge
attrs 19.3.0 py_0 conda-forge
awscli 1.17.8 py37_0 conda-forge
babel 2.8.0 py_0 conda-forge
backcall 0.1.0 py_0 conda-forge
beautifulsoup4 4.8.2 py37_0 conda-forge
behave 1.2.6 py37_1000 conda-forge
bitstring 3.1.6 pypi_0 pypi
bleach 3.1.0 py_0 conda-forge
blosc 1.17.0 he1b5a44_1 conda-forge
bokeh 1.4.0 py37_0 conda-forge
boost-cpp 1.70.0 h8e57a91_2 conda-forge
boto3 1.11.8 py_0 conda-forge
botocore 1.14.8 py_0 conda-forge
brotli 1.0.7 he1b5a44_1000 conda-forge
bzip2 1.0.8 h516909a_2 conda-forge
c-ares 1.15.0 h516909a_1001 conda-forge
ca-certificates 2019.11.28 hecc5488_0 conda-forge
cairo 1.16.0 hfb77d84_1002 conda-forge
cartopy 0.17.0 py37hc5b2455_1008 conda-forge
certifi 2019.11.28 py37_0 conda-forge
cffi 1.13.2 py37h8022711_0 conda-forge
cfgrib 0.9.7.3 py_0 conda-forge
cfitsio 3.470 hb60a0a2_2 conda-forge
cftime 1.0.4.2 py37hc1659b7_0 conda-forge
chardet 3.0.4 py37_1003 conda-forge
click 7.0 py_0 conda-forge
click-plugins 1.1.1 py_0 conda-forge
cligj 0.5.0 py_0 conda-forge
cloudpickle 1.2.2 py_1 conda-forge
codecov 2.0.15 py_1 conda-forge
colorama 0.4.1 py_0 conda-forge
colorcet 2.0.1 py_0 conda-forge
configobj 5.0.6 py_0 conda-forge
coverage 5.0.3 py37h516909a_0 conda-forge
coveralls 1.10.0 py_0 conda-forge
cryptography 2.8 py37h72c5cf5_1 conda-forge
curl 7.65.3 hf8cf82a_0 conda-forge
cycler 0.10.0 py_2 conda-forge
cython 0.29.14 py37he1b5a44_0 conda-forge
cytoolz 0.10.1 py37h516909a_0 conda-forge
dask 2.9.2 py_0 conda-forge
dask-core 2.9.2 py_0 conda-forge
datashader 0.8.0 py_0 conda-forge
datashape 0.5.4 py_1 conda-forge
dbus 1.13.6 he372182_0 conda-forge
decorator 4.4.1 py_0 conda-forge
defusedxml 0.6.0 py_0 conda-forge
distributed 2.9.3 py_0 conda-forge
docopt 0.6.2 py_1 conda-forge
docutils 0.15.2 py37_0 conda-forge
double-conversion 3.1.5 he1b5a44_2 conda-forge
eccodes 2.14.1 hc4140ea_3 conda-forge
entrypoints 0.3 py37_1000 conda-forge
expat 2.2.5 he1b5a44_1004 conda-forge
fasteners 0.14.1 py_3 conda-forge
fcitools 0.1.0.post0.dev5+ga19d0d1 pypi_0 pypi
fiona 1.8.13 py37h900e953_0 conda-forge
flake8 3.7.9 py37_0 conda-forge
fogpy 1.2.0+dev21.g2b0d49d.get.validation.output.for.fog.mask pypi_0 pypi
fogtools 0.0.post0.dev13+g735723f.dirty dev_0 <develop>
fontconfig 2.13.1 h86ecdb6_1001 conda-forge
freetype 2.10.0 he983fc9_1 conda-forge
freetype-py 2.1.0.post1 py_0 conda-forge
freexl 1.0.5 h14c3975_1002 conda-forge
fsspec 0.6.2 py_0 conda-forge
g2clib 1.6.0 hf3f1b0b_9 conda-forge
gdal 3.0.2 py37hbb6b9fb_3 conda-forge
geopandas 0.6.2 py_0 conda-forge
geos 3.7.2 he1b5a44_2 conda-forge
geotiff 1.5.1 hbd99317_7 conda-forge
geoviews 1.6.5 py_0 conda-forge
geoviews-core 1.6.5 py_0 conda-forge
gettext 0.19.8.1 hc5be6a0_1002 conda-forge
gflags 2.2.2 he1b5a44_1002 conda-forge
giflib 5.1.7 h516909a_1 conda-forge
glib 2.58.3 py37h6f030ca_1002 conda-forge
glog 0.4.0 he1b5a44_1 conda-forge
goesr 0.5.2 pypi_0 pypi
grpc-cpp 1.25.0 h5321d42_1 conda-forge
gst-plugins-base 1.14.5 h0935bb2_0 conda-forge
gstreamer 1.14.5 h36ae1b5_0 conda-forge
h5netcdf 0.7.4 py_0 conda-forge
h5py 2.10.0 nompi_py37h513d04c_101 conda-forge
hdf4 4.2.13 hf30be14_1003 conda-forge
hdf5 1.10.5 nompi_h3c11f04_1104 conda-forge
hdfeos2 2.20 h64bfcee_1000 conda-forge
hdfeos5 5.1.16 h8b6279f_5 conda-forge
heapdict 1.0.1 py_0 conda-forge
holoviews 1.12.7 py_0 conda-forge
icu 64.2 he1b5a44_1 conda-forge
idna 2.8 py37_1000 conda-forge
imageio 2.6.1 py37_0 conda-forge
imagesize 1.2.0 py_0 conda-forge
importlib_metadata 1.4.0 py37_0 conda-forge
ipdb 0.12.3 py_0 conda-forge
ipykernel 5.1.3 py37h5ca1d4c_0 conda-forge
ipython 7.11.1 py37h5ca1d4c_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.5.1 py_0 conda-forge
jasper 1.900.1 h07fcdf6_1006 conda-forge
jedi 0.15.2 py37_0 conda-forge
jinja2 2.10.3 py_0 conda-forge
jmespath 0.9.4 py_0 conda-forge
jpeg 9c h14c3975_1001 conda-forge
json-c 0.13.1 h14c3975_1001 conda-forge
jsonschema 3.2.0 py37_0 conda-forge
jupyter 1.0.0 py_2 conda-forge
jupyter_client 5.3.4 py37_1 conda-forge
jupyter_console 6.0.0 py_0 conda-forge
jupyter_core 4.6.1 py37_0 conda-forge
kealib 1.4.10 h58c409b_1005 conda-forge
kiwisolver 1.1.0 py37hc9558a2_0 conda-forge
krb5 1.16.4 h2fd8d38_0 conda-forge
ld_impl_linux-64 2.33.1 h53a641e_7 conda-forge
libaec 1.0.4 hf484d3e_0 conda-forge
libblas 3.8.0 14_openblas conda-forge
libcblas 3.8.0 14_openblas conda-forge
libclang 9.0.1 default_hde54327_0 conda-forge
libcurl 7.65.3 hda55be3_0 conda-forge
libdap4 3.20.4 hd3bb157_0 conda-forge
libedit 3.1.20170329 hf8c457e_1001 conda-forge
libevent 2.1.10 h72c5cf5_0 conda-forge
libffi 3.2.1 he1b5a44_1006 conda-forge
libgcc-ng 9.2.0 h24d8f2e_2 conda-forge
libgdal 3.0.2 h5534617_3 conda-forge
libgfortran-ng 7.3.0 hdf63c60_4 conda-forge
libgomp 9.2.0 h24d8f2e_2 conda-forge
libiconv 1.15 h516909a_1005 conda-forge
libkml 1.3.0 h4fcabce_1010 conda-forge
liblapack 3.8.0 14_openblas conda-forge
libllvm8 8.0.1 hc9558a2_0 conda-forge
libllvm9 9.0.1 hc9558a2_0 conda-forge
libnetcdf 4.7.1 nompi_h94020b1_102 conda-forge
libopenblas 0.3.7 h5ec1e0e_6 conda-forge
libpng 1.6.37 hed695b0_0 conda-forge
libpq 11.5 hd9ab2ff_2 conda-forge
libprotobuf 3.10.1 h8b12597_0 conda-forge
libsodium 1.0.17 h516909a_0 conda-forge
libspatialindex 1.9.3 he1b5a44_1 conda-forge
libspatialite 4.3.0a h4f6d029_1032 conda-forge
libssh2 1.8.2 h22169c7_2 conda-forge
libstdcxx-ng 9.2.0 hdf63c60_2 conda-forge
libtiff 0.4.2 pypi_0 pypi
libuuid 2.32.1 h14c3975_1000 conda-forge
libwebp 1.0.2 hf4e8a37_4 conda-forge
libxcb 1.13 h14c3975_1002 conda-forge
libxkbcommon 0.9.1 hebb1f50_0 conda-forge
libxml2 2.9.10 hee79883_0 conda-forge
libxslt 1.1.33 h31b3aaa_0 conda-forge
line_profiler 3.0.2 py37hc9558a2_0 conda-forge
llvmlite 0.31.0 py37h8b12597_0 conda-forge
locket 0.2.0 py_2 conda-forge
lxml 4.4.2 py37h7ec2d77_0 conda-forge
lz4-c 1.8.3 he1b5a44_1001 conda-forge
lzo 2.10 h14c3975_1000 conda-forge
markupsafe 1.1.1 py37h516909a_0 conda-forge
matplotlib 3.1.2 py37_1 conda-forge
matplotlib-base 3.1.2 py37h250f245_1 conda-forge
mccabe 0.6.1 py_1 conda-forge
mechanicalsoup 0.12.0 py_0 conda-forge
mistune 0.8.4 py37h516909a_1000 conda-forge
mock 3.0.5 py37_0 conda-forge
monotonic 1.5 py_0 conda-forge
more-itertools 8.1.0 py_0 conda-forge
msgpack-python 0.6.2 py37hc9558a2_0 conda-forge
multipledispatch 0.6.0 py_0 conda-forge
munch 2.5.0 py_0 conda-forge
nbconvert 5.6.1 py37_0 conda-forge
nbformat 5.0.4 py_0 conda-forge
ncurses 6.1 hf484d3e_1002 conda-forge
netcdf4 1.5.3 nompi_py37hfee4bf2_101 conda-forge
networkx 2.4 py_0 conda-forge
notebook 6.0.3 py37_0 conda-forge
nspr 4.24 he1b5a44_0 conda-forge
nss 3.47 he751ad9_0 conda-forge
numba 0.47.0 py37hb3f55d8_0 conda-forge
numcodecs 0.6.4 py37he1b5a44_0 conda-forge
numexpr 2.7.1 py37hb3f55d8_0 conda-forge
numpy 1.17.5 py37h95a1406_0 conda-forge
olefile 0.46 py_0 conda-forge
opencv-python 4.1.0.25 pypi_0 pypi
openjpeg 2.3.1 h981e76c_3 conda-forge
openssl 1.1.1d h516909a_0 conda-forge
owslib 0.19.0 py_2 conda-forge
packaging 20.0 py_0 conda-forge
pandas 1.0.0rc0 pypi_0 pypi
pandoc 2.9.1.1 0 conda-forge
pandocfilters 1.4.2 py_1 conda-forge
param 1.9.2 py_0 conda-forge
parquet-cpp 1.5.1 2 conda-forge
parse 1.14.0 py_0 conda-forge
parse_type 0.5.2 py37_0 conda-forge
parso 0.5.2 py_0 conda-forge
partd 1.1.0 py_0 conda-forge
pcre 8.43 he1b5a44_0 conda-forge
pexpect 4.8.0 py37_0 conda-forge
pickleshare 0.7.5 py37_1000 conda-forge
pillow 7.0.0 py37hefe7db6_0 conda-forge
pip 20.0.1 py37_0 conda-forge
pixman 0.38.0 h516909a_1003 conda-forge
pluggy 0.13.0 py37_0 conda-forge
poppler 0.67.0 h14e79db_8 conda-forge
poppler-data 0.4.9 1 conda-forge
postgresql 11.5 hc63931a_2 conda-forge
progressbar2 3.47.0 py_0 conda-forge
proj 6.2.1 hc80f0dc_0 conda-forge
prometheus_client 0.7.1 py_0 conda-forge
prompt_toolkit 2.0.10 py_0 conda-forge
psutil 5.6.7 py37h516909a_0 conda-forge
pthread-stubs 0.4 h14c3975_1001 conda-forge
ptyprocess 0.6.0 py_1001 conda-forge
py 1.8.1 py_0 conda-forge
pyarrow 0.15.1 py37h8b68381_1 conda-forge
pyasn1 0.4.8 py_0 conda-forge
pycoast 1.3.2 py_0 conda-forge
pycodestyle 2.5.0 py_0 conda-forge
pycparser 2.19 py37_1 conda-forge
pyct 0.4.6 py_0 conda-forge
pyct-core 0.4.6 py_0 conda-forge
pydap 3.2.2 py37_1000 conda-forge
pydecorate 0.2.1 py_0 conda-forge
pyepsg 0.4.0 py_0 conda-forge
pyflakes 2.1.1 py_0 conda-forge
pygments 2.5.2 py_0 conda-forge
pygrib 2.0.4 py37h55c65ac_0 conda-forge
pyhdf 0.10.2 py37h3a4e923_0 conda-forge
pykdtree 1.3.1 py37hc1659b7_1002 conda-forge
pynio 1.5.5 py37h2e5bc1a_7 conda-forge
pyopengl 3.1.5 py_0 conda-forge
pyopenssl 19.1.0 py37_0 conda-forge
pyorbital 1.5.0 pypi_0 pypi
pyparsing 2.4.6 py_0 conda-forge
pyproj 2.4.2.post1 py37h12732c1_0 conda-forge
pyqt 5.12.3 py37hcca6a23_1 conda-forge
pyqt5 5.13.1 pypi_0 pypi
pyqt5-sip 4.19.18 pypi_0 pypi
pyqtgraph 0.11.0rc0 py_0 conda-forge
pyqtwebengine 5.12.1 pypi_0 pypi
pyresample 1.14.0 py37hb3f55d8_2 conda-forge
pyrsistent 0.15.7 py37h516909a_0 conda-forge
pyscaffold 3.2.2 py_0 conda-forge
pyshp 2.1.0 py_0 conda-forge
pysocks 1.7.1 py37_0 conda-forge
pyspectral 0.8.9 pypi_0 pypi
pytables 3.6.1 py37h9f153d1_1 conda-forge
pytest 5.3.4 py37_0 conda-forge
pytest-cov 2.8.1 py_0 conda-forge
pytest-mock 2.0.0 py37_0 conda-forge
pytest-runner 5.2 py_0 conda-forge
python 3.7.6 h357f687_2 conda-forge
python-dateutil 2.8.1 py_0 conda-forge
python-geotiepoints 1.1.8 pypi_0 pypi
python-utils 2.3.0 py_1 conda-forge
pytz 2019.3 py_0 conda-forge
pyviz_comms 0.7.3 py_0 conda-forge
pywavelets 1.1.1 py37hc1659b7_0 conda-forge
pyyaml 5.2 py37h516909a_0 conda-forge
pyzmq 18.1.1 py37h1768529_0 conda-forge
qt 5.12.5 hd8c4c69_1 conda-forge
qtconsole 4.6.0 py_0 conda-forge
quamash 0.6.1 pypi_0 pypi
rasterio 1.1.1 py37h900e953_0 conda-forge
re2 2020.01.01 he1b5a44_0 conda-forge
readline 8.0 hf8c457e_0 conda-forge
requests 2.22.0 py37_1 conda-forge
rsa 3.4.2 py_1 conda-forge
rtree 0.9.3 py37h7b0cdae_0 conda-forge
s3fs 0.4.0 py_0 conda-forge
s3transfer 0.3.2 py37_0 conda-forge
satpy 0.19.2.dev31+gf537a14d pypi_0 pypi
scikit-image 0.16.2 py37hb3f55d8_0 conda-forge
scipy 1.4.1 py37h921218d_0 conda-forge
send2trash 1.5.0 py_0 conda-forge
setuptools 45.1.0 py37_0 conda-forge
shapely 1.6.4 py37hec07ddf_1006 conda-forge
six 1.14.0 py37_0 conda-forge
snakeviz 2.0.1 py_0 conda-forge
snappy 1.1.7 he1b5a44_1003 conda-forge
snowballstemmer 2.0.0 py_0 conda-forge
snuggs 1.4.7 py_0 conda-forge
sortedcontainers 2.1.0 py_0 conda-forge
soupsieve 1.9.4 py37_0 conda-forge
sphinx 2.3.1 py_0 conda-forge
sphinxcontrib-applehelp 1.0.1 py_0 conda-forge
sphinxcontrib-devhelp 1.0.1 py_0 conda-forge
sphinxcontrib-htmlhelp 1.0.2 py_0 conda-forge
sphinxcontrib-jsmath 1.0.1 py_0 conda-forge
sphinxcontrib-qthelp 1.0.2 py_0 conda-forge
sphinxcontrib-serializinghtml 1.1.3 py_0 conda-forge
sqlalchemy 1.3.13 py37h516909a_0 conda-forge
sqlite 3.30.1 hcee41ef_0 conda-forge
tbb 2018.0.5 h2d50403_0 conda-forge
tblib 1.6.0 py_0 conda-forge
terminado 0.8.3 py37_0 conda-forge
testpath 0.4.4 py_0 conda-forge
thrift-cpp 0.12.0 hf3afdfd_1004 conda-forge
tiledb 1.7.0 hcde45ca_2 conda-forge
tk 8.6.10 hed695b0_0 conda-forge
toolz 0.10.0 py_0 conda-forge
tornado 6.0.3 py37h516909a_0 conda-forge
traitlets 4.3.3 py37_0 conda-forge
trollbufr 0.11.0 pypi_0 pypi
trollimage 1.9.0 pypi_0 pypi
trollsift 0.3.2 pypi_0 pypi
tzcode 2019a h516909a_1002 conda-forge
uriparser 0.9.3 he1b5a44_1 conda-forge
urllib3 1.25.7 py37_0 conda-forge
uwsift 1.0.6 pypi_0 pypi
vispy 0.6.4 py37hf5ce8a7_0 conda-forge
wcwidth 0.1.8 py_0 conda-forge
webencodings 0.5.1 py_1 conda-forge
webob 1.8.6 py_0 conda-forge
wheel 0.33.6 py37_0 conda-forge
widgetsnbextension 3.5.1 py37_0 conda-forge
xarray 0.14.1 py_0 conda-forge
xerces-c 3.2.2 h8412b87_1004 conda-forge
xorg-kbproto 1.0.7 h14c3975_1002 conda-forge
xorg-libice 1.0.10 h516909a_0 conda-forge
xorg-libsm 1.2.3 h84519dc_1000 conda-forge
xorg-libx11 1.6.9 h516909a_0 conda-forge
xorg-libxau 1.0.9 h14c3975_0 conda-forge
xorg-libxdmcp 1.1.3 h516909a_0 conda-forge
xorg-libxext 1.3.4 h516909a_0 conda-forge
xorg-libxrender 0.9.10 h516909a_1002 conda-forge
xorg-renderproto 0.11.1 h14c3975_1002 conda-forge
xorg-xextproto 7.3.0 h14c3975_1002 conda-forge
xorg-xproto 7.0.31 h14c3975_1007 conda-forge
xz 5.2.4 h14c3975_1001 conda-forge
yaml 0.2.2 h516909a_1 conda-forge
zarr 2.4.0 py_0 conda-forge
zeromq 4.3.2 he1b5a44_2 conda-forge
zict 1.0.0 py_0 conda-forge
zipp 2.0.0 py_2 conda-forge
zlib 1.2.11 h516909a_1006 conda-forge
zstd 1.4.4 h3b9ef0a_1 conda-forge
</details>
```python
# Your code 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/31356/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31356/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31357
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31357/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31357/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31357/events
|
https://github.com/pandas-dev/pandas/issues/31357
| 555,729,423
|
MDU6SXNzdWU1NTU3Mjk0MjM=
| 31,357
|
Using matplotlib scatter legends?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/449558?v=4",
"events_url": "https://api.github.com/users/amueller/events{/privacy}",
"followers_url": "https://api.github.com/users/amueller/followers",
"following_url": "https://api.github.com/users/amueller/following{/other_user}",
"gists_url": "https://api.github.com/users/amueller/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/amueller",
"id": 449558,
"login": "amueller",
"node_id": "MDQ6VXNlcjQ0OTU1OA==",
"organizations_url": "https://api.github.com/users/amueller/orgs",
"received_events_url": "https://api.github.com/users/amueller/received_events",
"repos_url": "https://api.github.com/users/amueller/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/amueller/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amueller/subscriptions",
"type": "User",
"url": "https://api.github.com/users/amueller"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 3
| 2020-01-27T17:41:20Z
| 2021-01-27T15:47:43Z
| 2021-01-27T15:47:43Z
|
NONE
| null |
Matplotlib now allows doing legends for categorical data in scatter:
https://matplotlib.org/gallery/lines_bars_and_markers/scatter_with_legend.html
Is that something that pandas could/should use?
I feel like there's a tricky issue in deciding whether the color variable is categorical but basically matplotlib allows us now to treat the case and I'm not sure if treating all cases as continuous makes the most sense.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31357/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31357/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31358
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31358/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31358/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31358/events
|
https://github.com/pandas-dev/pandas/pull/31358
| 555,750,304
|
MDExOlB1bGxSZXF1ZXN0MzY3NjM1NjQz
| 31,358
|
BUG/REG: multiindex nested tuples with duplicates
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 3
| 2020-01-27T18:21:58Z
| 2020-01-30T09:58:54Z
| 2020-01-28T01:59:32Z
|
MEMBER
| null |
- [x] closes #30892
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
there is an underlying problem with MultiIndex.get_loc that needs to get worked out, but that's going to take a while. This fixes the reported regression.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31358/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31358/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31358.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31358",
"merged_at": "2020-01-28T01:59:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31358.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31358"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31359
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31359/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31359/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31359/events
|
https://github.com/pandas-dev/pandas/pull/31359
| 555,785,949
|
MDExOlB1bGxSZXF1ZXN0MzY3NjY0OTM5
| 31,359
|
BUG: regression when applying groupby aggregation on categorical columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 35
| 2020-01-27T19:32:45Z
| 2020-03-27T13:32:46Z
| 2020-01-29T20:20:53Z
|
MEMBER
| null |
- [ ] closes #31256
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31359/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31359/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31359.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31359",
"merged_at": "2020-01-29T20:20:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31359.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31359"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31360
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31360/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31360/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31360/events
|
https://github.com/pandas-dev/pandas/pull/31360
| 555,796,223
|
MDExOlB1bGxSZXF1ZXN0MzY3NjczMzIw
| 31,360
|
Backport PR #31148: DOC: replace long table of contents on home page with main links
|
{
"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"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-27T19:53:16Z
| 2020-01-27T20:35:22Z
| 2020-01-27T20:35:18Z
|
MEMBER
| null |
#31148
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31360/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31360/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31360.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31360",
"merged_at": "2020-01-27T20:35:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31360.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31360"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31361
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31361/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31361/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31361/events
|
https://github.com/pandas-dev/pandas/pull/31361
| 555,801,569
|
MDExOlB1bGxSZXF1ZXN0MzY3Njc3Njc3
| 31,361
|
Avoid Index DeprecationWarning in Series getitem
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "f2f074",
"default": false,
"description": "Warnings that appear or should be added to pandas",
"id": 1628184320,
"name": "Warnings",
"node_id": "MDU6TGFiZWwxNjI4MTg0MzIw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Warnings"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 6
| 2020-01-27T20:04:03Z
| 2020-01-28T20:55:45Z
| 2020-01-28T20:55:41Z
|
CONTRIBUTOR
| null |
xref https://github.com/pandas-dev/pandas/issues/30867
cc @jorisvandenbossche. The alternative is to use a warnings filter inside SingleBlockManger.get_slice to filter the warning, but I think avoiding the warning in the first place is a bit nicer.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31361/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31361/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31361.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31361",
"merged_at": "2020-01-28T20:55:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31361.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31361"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31362
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31362/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31362/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31362/events
|
https://github.com/pandas-dev/pandas/pull/31362
| 555,801,928
|
MDExOlB1bGxSZXF1ZXN0MzY3Njc3OTcy
| 31,362
|
Backport PR #30784: API: DataFrame.take always returns a copy
|
{
"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": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 1
| 2020-01-27T20:04:55Z
| 2020-01-28T06:00:10Z
| 2020-01-28T01:51:13Z
|
MEMBER
| null |
Backport #30784
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31362/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31362/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31362.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31362",
"merged_at": "2020-01-28T01:51:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31362.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31362"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31363
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31363/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31363/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31363/events
|
https://github.com/pandas-dev/pandas/pull/31363
| 555,807,145
|
MDExOlB1bGxSZXF1ZXN0MzY3NjgyMjc1
| 31,363
|
TYP: update setup.cfg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T20:15:45Z
| 2020-01-28T09:00:14Z
| 2020-01-28T03:01:12Z
|
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/31363/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31363/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31363.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31363",
"merged_at": "2020-01-28T03:01:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31363.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31363"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31364
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31364/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31364/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31364/events
|
https://github.com/pandas-dev/pandas/issues/31364
| 555,808,558
|
MDU6SXNzdWU1NTU4MDg1NTg=
| 31,364
|
to_numeric with errors = "coerce" is adding digits at the end
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/43192990?v=4",
"events_url": "https://api.github.com/users/jjotterson/events{/privacy}",
"followers_url": "https://api.github.com/users/jjotterson/followers",
"following_url": "https://api.github.com/users/jjotterson/following{/other_user}",
"gists_url": "https://api.github.com/users/jjotterson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jjotterson",
"id": 43192990,
"login": "jjotterson",
"node_id": "MDQ6VXNlcjQzMTkyOTkw",
"organizations_url": "https://api.github.com/users/jjotterson/orgs",
"received_events_url": "https://api.github.com/users/jjotterson/received_events",
"repos_url": "https://api.github.com/users/jjotterson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jjotterson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jjotterson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jjotterson"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-01-27T20:18:27Z
| 2020-09-08T15:30:36Z
| 2020-09-08T15:30:36Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# Your code here
#problem: pandas to_numeric might give some errors when using coerce
# it is adding digits at the end.
import pandas as pd
#minimal example
data = [{'value': '.'}, {'value': '.'}, {'value': '.'}, {'value': '.'}, {'value': '243.164'}, {'value': '245.968'}, {'value': '249.585'}, {'value': '259.745'}, {'value': '265.742'}, {'value': '272.567'}]
df = pd.DataFrame(data,columns=['value'])
df.value = pd.to_numeric(df.value,errors='coerce')
#looks as if all is good:
df.value
#but
df.value[4]
#this can be random:
data2 = [{'value': '.'}, {'value': '.'}, {'value': '.'}, {'value': '.'}, {'value': '243.164'}, {'value': '245.968'}, {'value': '249.585'}, {'value': '259.745'}, {'value': '265.742'}, {'value': '272.567'}, {'value': '279.196'}, {'value': '280.366'}, {'value': '275.034'}, {'value': '271.351'}, {'value': '272.889'}, {'value': '270.627'}, {'value': '280.828'}, {'value': '290.383'}, {'value': '308.153'}, {'value': '319.945'}, {'value': '336.0'}, {'value': '344.09'}, {'value': '351.385'}, {'value': '356.178'}, {'value': '359.82'}, {'value': '361.03'}, {'value': '367.701'}, {'value': '380.812'}, {'value': '387.98'}, {'value': '391.749'}, {'value': '391.171'}, {'value': '385.97'}, {'value': '385.345'}, {'value': '386.121'}, {'value': '390.996'}, {'value': '399.734'}, {'value': '413.073'}, {'value': '421.532'}, {'value':
'430.221'}, {'value': '437.092'}, {'value': '439.746'}, {'value': '446.01'}, {'value': '451.191'}, {'value': '460.463'}, {'value': '469.779'}, {'value': '472.025'}, {'value': '479.49'}, {'value': '474.864'}, {'value': '467.54'}, {'value': '471.978'}]
#now 4, 36, and 47 are wrong, with different endings.
df2 = pd.DataFrame(data2,columns=['value'])
df2.value = pd.to_numeric(df2.value,errors='coerce')
df2.value[[4,36,47]].to_list()
```
#### Problem description
Current behavior: pandas to_numeric, when using errors='coerce' seem to randomly add
decimals at the end of the number.
#### Expected Output
no decimals should be added at the end.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : None.None
pandas : 0.25.3
numpy : 1.16.4
pytz : 2019.1
dateutil : 2.8.0
pip : 19.1.1
setuptools : 41.0.1
Cython : 0.29.12
pytest : 5.0.1
hypothesis : None
sphinx : 2.1.2
blosc : None
feather : None
xlsxwriter : 1.1.8
lxml.etree : 4.3.4
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.6.1
pandas_datareader: 0.7.4
bs4 : 4.7.1
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.3.4
matplotlib : 3.1.2
numexpr : 2.6.9
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
s3fs : None
scipy : 1.2.1
sqlalchemy : 1.3.5
tables : 3.5.2
xarray : 0.12.3
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.1.8
</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/31364/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31364/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31365
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31365/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31365/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31365/events
|
https://github.com/pandas-dev/pandas/pull/31365
| 555,812,622
|
MDExOlB1bGxSZXF1ZXN0MzY3Njg2Nzc0
| 31,365
|
TYP: pandas/core/computation/expr.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T20:26:12Z
| 2020-01-31T09:24:50Z
| 2020-01-31T04:21: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/31365/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31365/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31365.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31365",
"merged_at": "2020-01-31T04:21:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31365.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31365"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31366
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31366/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31366/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31366/events
|
https://github.com/pandas-dev/pandas/pull/31366
| 555,817,192
|
MDExOlB1bGxSZXF1ZXN0MzY3NjkwNjA0
| 31,366
|
TYP: check_untyped_defs core.computation.ops
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T20:34:54Z
| 2020-01-28T08:59:14Z
| 2020-01-28T02:59:50Z
|
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/31366/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31366/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31366.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31366",
"merged_at": "2020-01-28T02:59:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31366.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31366"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31367
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31367/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31367/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31367/events
|
https://github.com/pandas-dev/pandas/pull/31367
| 555,831,043
|
MDExOlB1bGxSZXF1ZXN0MzY3NzAxOTg2
| 31,367
|
TYP: check_untyped_defs core.reshape.reshape
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-27T21:02:47Z
| 2020-01-31T09:25:59Z
| 2020-01-31T04:18:02Z
|
MEMBER
| null |
pandas\core\reshape\reshape.py:378: error: "Index" has no attribute "levels"; maybe "nlevels"?
pandas\core\reshape\reshape.py:381: error: "Index" has no attribute "codes"
pandas\core\reshape\reshape.py:383: error: "Index" has no attribute "codes"
pandas\core\reshape\reshape.py:436: error: Incompatible types in assignment (expression has type "_Unstacker", variable has type "partial[_Unstacker]")
pandas\core\reshape\reshape.py:444: error: "partial[_Unstacker]" has no attribute "get_result"
pandas\core\reshape\reshape.py:1000: error: Incompatible types in assignment (expression has type "None", variable has type "Index")
pandas\core\reshape\reshape.py:1009: error: Incompatible types in assignment (expression has type "float", variable has type "int")
pandas\core\reshape\reshape.py:1013: error: Need type annotation for 'sp_indices'
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31367/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31367/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31367.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31367",
"merged_at": "2020-01-31T04:18:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31367.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31367"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31368
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31368/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31368/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31368/events
|
https://github.com/pandas-dev/pandas/issues/31368
| 555,837,443
|
MDU6SXNzdWU1NTU4Mzc0NDM=
| 31,368
|
Index name assignment resolution logic changes depending on whether DataFrame has any rows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11558041?v=4",
"events_url": "https://api.github.com/users/tlaytongoogle/events{/privacy}",
"followers_url": "https://api.github.com/users/tlaytongoogle/followers",
"following_url": "https://api.github.com/users/tlaytongoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/tlaytongoogle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tlaytongoogle",
"id": 11558041,
"login": "tlaytongoogle",
"node_id": "MDQ6VXNlcjExNTU4MDQx",
"organizations_url": "https://api.github.com/users/tlaytongoogle/orgs",
"received_events_url": "https://api.github.com/users/tlaytongoogle/received_events",
"repos_url": "https://api.github.com/users/tlaytongoogle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tlaytongoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tlaytongoogle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tlaytongoogle"
}
|
[
{
"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": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 2
| 2020-01-27T21:15:57Z
| 2020-09-08T13:45:09Z
| 2020-09-08T13:45:09Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
def get_name_of_assigned_index(df_size, series_size):
df = pd.DataFrame({}, index=pd.RangeIndex(df_size, name='df_index'))
series = pd.Series(1.23, index=pd.RangeIndex(series_size, name='series_index'))
df['series'] = series
return df.index.name
```
#### Problem description
`get_name_of_assigned_index(n, m)` returns `'df_index'` *unless* `n = 0`, in which case it returns `'series_index'`.
I don't know which of these is necessarily the better behavior, but the resulting index name ought to be consistent regardless of how many - or few - rows are in the DataFrame. Subsequent operations may rely on expectations about that name, so this behavior, wherein the name changes as an unintuitive consequence of a rowless frame, could cause bugs.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.3.5-smp-821.23.0.0
machine: x86_64
processor:
byteorder: little
LC_ALL: en_US.UTF-8
LANG: None
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: None
setuptools: unknown
Cython: None
numpy: 1.16.4
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 2.0.0
sphinx: None
patsy: 0.4.1
dateutil: 2.8.1
pytz: 2019.3
blosc: None
bottleneck: None
tables: 3.5.2
numexpr: 2.6.10dev0
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.3
s3fs: None
fastparquet: None
pandas_gbq: 0+unknown
pandas_datareader: None
gcsfs: 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/31368/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31368/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31369
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31369/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31369/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31369/events
|
https://github.com/pandas-dev/pandas/issues/31369
| 555,843,695
|
MDU6SXNzdWU1NTU4NDM2OTU=
| 31,369
|
Center align the text and icons in documentation index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "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
| 2020-01-27T21:27:49Z
| 2020-01-28T16:18:19Z
| 2020-01-28T16:18:19Z
|
CONTRIBUTOR
| null |
At https://dev.pandas.io/docs/index.html, the alignment is slightly off. Especially notable for User Guide and API reference

cc @jorisvandenbossche
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31369/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31369/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31370
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31370/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31370/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31370/events
|
https://github.com/pandas-dev/pandas/issues/31370
| 555,851,303
|
MDU6SXNzdWU1NTU4NTEzMDM=
| 31,370
|
REF: IntervalIndex dispatch more methods to IntervalArray
|
{
"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": "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 |
[] | null | 0
| 2020-01-27T21:43:20Z
| 2020-09-22T00:57:19Z
| 2020-09-22T00:57:19Z
|
MEMBER
| null |
I think we can de-duplicate some more code by a) noticing that IntervalArray._check_closed_matches is performing the same task as DatetimeLikeArrayMixin._check_compatible_with and b) dispatching to IntervalArray methods more.
`_concat_same_dtype` could become (this could even go as the default in ExtensionIndex)
```
def _concat_same_dtype(self, to_concat, name):
arr = type(self._data)._concat_same_type(to_concat)
return type(self)._simple_new(arr, name=name)
```
`insert` could look like (also could go into ExtensionIndex):
```
def insert(self, loc, item):
new_arr = type(self._data)._from_sequence([item])
to_concat = [self[:loc]._data, new_arr, self.loc[loc:]._data]
res_values = type(self._data)._concat_same_type(to_concat)
return type(self)._simple_new(res_values, name=self.name)
```
Tried this and it chokes on item=NaT.
The integer-loc case for `delete` could look like:
```
def delete(self, loc):
if is_integer(loc):
to_concat = [self[:loc]._data, self[loc+1:]._data]
arr = type(self._data)._concat_same_type(to_concat)
return type(self)._simple_new(arr, name=self.name)
```
Probably others. Thoughts, cc @jschendel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31370/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31370/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31371
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31371/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31371/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31371/events
|
https://github.com/pandas-dev/pandas/pull/31371
| 555,883,836
|
MDExOlB1bGxSZXF1ZXN0MzY3NzQ1ODI2
| 31,371
|
CLN: tighten what we pass to Index._shallow_copy
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-27T22:57:56Z
| 2020-01-28T04:20:23Z
| 2020-01-28T03:01:57Z
|
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/31371/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31371/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31371.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31371",
"merged_at": "2020-01-28T03:01:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31371.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31371"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31372
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31372/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31372/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31372/events
|
https://github.com/pandas-dev/pandas/issues/31372
| 555,885,905
|
MDU6SXNzdWU1NTU4ODU5MDU=
| 31,372
|
Allow non-inplace option for `ndframe.update()`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34656862?v=4",
"events_url": "https://api.github.com/users/giuliobeseghi/events{/privacy}",
"followers_url": "https://api.github.com/users/giuliobeseghi/followers",
"following_url": "https://api.github.com/users/giuliobeseghi/following{/other_user}",
"gists_url": "https://api.github.com/users/giuliobeseghi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giuliobeseghi",
"id": 34656862,
"login": "giuliobeseghi",
"node_id": "MDQ6VXNlcjM0NjU2ODYy",
"organizations_url": "https://api.github.com/users/giuliobeseghi/orgs",
"received_events_url": "https://api.github.com/users/giuliobeseghi/received_events",
"repos_url": "https://api.github.com/users/giuliobeseghi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giuliobeseghi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giuliobeseghi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giuliobeseghi"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-01-27T23:03:27Z
| 2020-01-28T09:41:30Z
| 2020-01-28T09:40:46Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
s = pd.Series([1, 2, 3, 4, 5])
t = pd.Series([10, 11, 12], index=range(3, 6))
print(s.update(t).reindex([1, 2, 3, 4, 5]))
```
#### Problem description
Obviously the previous doesn't work. `s.update(t)` is executed inplace, and doesn't return anything. I see no reasons why one shouldn't be able to call `update` and get a new object (for example to allow method chaining).
The easiest way of implementing this is by allowing a parameter that makes the function return the updated object:
```python
print(s.update(t, inplace=False).reindex([1, 2, 3, 4, 5]))
```
**I know there is already a plan about deprecating `inplace`, but I'm not sure it involves `update`. I guess that `update` was designed to be similar to the same method of a dict object.**
**Update**
Closed as it was solved in https://github.com/pandas-dev/pandas/issues/10730
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31372/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31372/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31373
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31373/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31373/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31373/events
|
https://github.com/pandas-dev/pandas/pull/31373
| 555,927,133
|
MDExOlB1bGxSZXF1ZXN0MzY3NzgxMzQw
| 31,373
|
CLN: require extracting .values before expressions calls
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-28T01:12:04Z
| 2020-01-28T02:25:36Z
| 2020-01-28T02:22:14Z
|
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/31373/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31373/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31373.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31373",
"merged_at": "2020-01-28T02:22:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31373.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31373"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31374
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31374/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31374/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31374/events
|
https://github.com/pandas-dev/pandas/pull/31374
| 555,937,863
|
MDExOlB1bGxSZXF1ZXN0MzY3Nzg5OTI4
| 31,374
|
Backport PR #31290 on branch 1.0.x (BUG: Handle IntegerArray in pd.cut)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T01:52:51Z
| 2020-01-28T02:57:41Z
| 2020-01-28T02:57:41Z
|
NONE
| null |
Backport PR #31290: BUG: Handle IntegerArray in pd.cut
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31374/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31374/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31374.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31374",
"merged_at": "2020-01-28T02:57:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31374.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31374"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31375
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31375/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31375/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31375/events
|
https://github.com/pandas-dev/pandas/pull/31375
| 555,938,236
|
MDExOlB1bGxSZXF1ZXN0MzY3NzkwMjI2
| 31,375
|
Backport PR #30860 on branch 1.0.x (REF: gradually move ExtensionIndex delegation to use inherit_names)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T01:54:25Z
| 2020-01-28T02:57:56Z
| 2020-01-28T02:57:55Z
|
NONE
| null |
Backport PR #30860: REF: gradually move ExtensionIndex delegation to use inherit_names
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31375/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31375/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31375.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31375",
"merged_at": "2020-01-28T02:57:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31375.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31375"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31376
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31376/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31376/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31376/events
|
https://github.com/pandas-dev/pandas/pull/31376
| 555,943,698
|
MDExOlB1bGxSZXF1ZXN0MzY3Nzk0NDky
| 31,376
|
"Backport PR #31358 on branch 1.0.x"
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 3
| 2020-01-28T02:15:36Z
| 2020-01-28T19:32:43Z
| 2020-01-28T18:51:25Z
|
MEMBER
| null |
xref #31358
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31376/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31376/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31376.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31376",
"merged_at": "2020-01-28T18:51:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31376.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31376"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31377
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31377/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31377/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31377/events
|
https://github.com/pandas-dev/pandas/pull/31377
| 555,949,022
|
MDExOlB1bGxSZXF1ZXN0MzY3Nzk4NTY4
| 31,377
|
DEPR: Deprecate core
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-01-28T02:36:38Z
| 2020-01-31T03:08:52Z
| 2020-01-31T03:08:52Z
|
MEMBER
| null |
- [x] closes #27522
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I haven't actually performed the refactor(pandas.core -> pandas._core) yet so tests are failing because of the warnings.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31377/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31377/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31377.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31377",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31377.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31377"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31378
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31378/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31378/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31378/events
|
https://github.com/pandas-dev/pandas/pull/31378
| 555,968,333
|
MDExOlB1bGxSZXF1ZXN0MzY3ODEzODk3
| 31,378
|
Backport PR #31238: REGR: Prevent indexes that aren't directly backedby numpy from entering libreduction code paths
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5332445?v=4",
"events_url": "https://api.github.com/users/jschendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jschendel/followers",
"following_url": "https://api.github.com/users/jschendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jschendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jschendel",
"id": 5332445,
"login": "jschendel",
"node_id": "MDQ6VXNlcjUzMzI0NDU=",
"organizations_url": "https://api.github.com/users/jschendel/orgs",
"received_events_url": "https://api.github.com/users/jschendel/received_events",
"repos_url": "https://api.github.com/users/jschendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jschendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jschendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jschendel"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 1
| 2020-01-28T03:59:09Z
| 2020-02-24T18:13:51Z
| 2020-01-28T12:17:47Z
|
MEMBER
| null |
Backport #31238
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31378/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31378/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31378.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31378",
"merged_at": "2020-01-28T12:17:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31378.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31378"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31379
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31379/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31379/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31379/events
|
https://github.com/pandas-dev/pandas/issues/31379
| 556,024,652
|
MDU6SXNzdWU1NTYwMjQ2NTI=
| 31,379
|
Pandas: cannot set a Timestamp with a non-timestamp
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/55073596?v=4",
"events_url": "https://api.github.com/users/devarshigoswami/events{/privacy}",
"followers_url": "https://api.github.com/users/devarshigoswami/followers",
"following_url": "https://api.github.com/users/devarshigoswami/following{/other_user}",
"gists_url": "https://api.github.com/users/devarshigoswami/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devarshigoswami",
"id": 55073596,
"login": "devarshigoswami",
"node_id": "MDQ6VXNlcjU1MDczNTk2",
"organizations_url": "https://api.github.com/users/devarshigoswami/orgs",
"received_events_url": "https://api.github.com/users/devarshigoswami/received_events",
"repos_url": "https://api.github.com/users/devarshigoswami/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devarshigoswami/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devarshigoswami/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devarshigoswami"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-01-28T07:11:51Z
| 2020-01-29T05:11:35Z
| 2020-01-29T05:11:35Z
|
NONE
| null |
I have a data-frame of the following order: https://imgur.com/a/fp2hKZe on which i ran the following code
```python
for i in r.index[1:]:
if (r.at[i, 'lbl'] == r.at[i-1, 'lbl']) & (r.at[i, 'lbl'] == 'f'):
r.at[i, 'date'] = r.at[i, 'date'] - r.at[i-1, 'date']
elif r.at[i, 'lbl'] == 'f':
r.at[i, 'date'] = r.at[i, 'date'] - r.at[i-1, 'date']
```
#### Problem description
When i run the same code for a much smaller data-set, it gives proper output
```python
data = pd.DataFrame(data=[[101,'f',datetime.date(2017,12,28)],
[101, 'f', datetime.date(2019,8,27)],
[101,'m',datetime.date(2013,4,12)],
[101,'m',datetime.date(2015,6,25)],
[101, 'f', datetime.date(2016,8,16)],
[102,'m', datetime.date(2019,8,15)],
[102,'m',datetime.date(2019,6,25)]],
columns=["TC", "lbl", "date"])
```
```python
for i in data.index[1:]:
if (data.at[i, 'lbl'] == data.at[i-1, 'lbl']) & (data.at[i, 'lbl'] == 'f'):
data.at[i, 'date'] = data.at[i, 'date'] - data.at[i-1, 'date']
elif data.at[i, 'lbl'] == 'f':
data.at[i, 'date'] = data.at[i, 'date'] - data.at[i-1, 'date']
```
But when i change the data-set, i get The **ValueError**
#### Expected Output
| TC | lbl | date
-- | -- | -- | --
0 | 101 | f | 2017-12-28
1 | 101 | f | 607 days, 0:00:00
2 | 101 | m | 2013-04-12
3 | 101 | m | 2015-06-25
4 | 101 | f | 418 days, 0:00:00
5 | 102 | m | 2019-08-15
6 | 102 | m | 2019-06-25
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 5.0.0-32-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_IN
LOCALE : en_IN.ISO8859-1
pandas : 0.25.1
numpy : 1.17.2
pytz : 2019.3
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.2.1
hypothesis : None
sphinx : 2.2.0
blosc : None
feather : None
xlsxwriter : 1.2.1
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.9
tables : 3.5.2
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.1
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31379/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31379/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31380
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31380/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31380/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31380/events
|
https://github.com/pandas-dev/pandas/pull/31380
| 556,026,501
|
MDExOlB1bGxSZXF1ZXN0MzY3ODYxOTU3
| 31,380
|
BUG: Timedelta components no longer rounded with high precision integers
|
{
"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": "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": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-28T07:16:54Z
| 2020-02-03T14:06:59Z
| 2020-02-02T21:08:57Z
|
MEMBER
| null |
- [x] closes #31354
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31380/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31380/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31380.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31380",
"merged_at": "2020-02-02T21:08:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31380.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31380"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31381
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31381/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31381/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31381/events
|
https://github.com/pandas-dev/pandas/issues/31381
| 556,034,646
|
MDU6SXNzdWU1NTYwMzQ2NDY=
| 31,381
|
loc on Series returning scalar when result size is 1
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3776619?v=4",
"events_url": "https://api.github.com/users/omri374/events{/privacy}",
"followers_url": "https://api.github.com/users/omri374/followers",
"following_url": "https://api.github.com/users/omri374/following{/other_user}",
"gists_url": "https://api.github.com/users/omri374/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/omri374",
"id": 3776619,
"login": "omri374",
"node_id": "MDQ6VXNlcjM3NzY2MTk=",
"organizations_url": "https://api.github.com/users/omri374/orgs",
"received_events_url": "https://api.github.com/users/omri374/received_events",
"repos_url": "https://api.github.com/users/omri374/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/omri374/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/omri374/subscriptions",
"type": "User",
"url": "https://api.github.com/users/omri374"
}
|
[
{
"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": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 3
| 2020-01-28T07:38:23Z
| 2020-01-28T11:56:49Z
| 2020-01-28T11:56:23Z
|
NONE
| null |
#### Code Sample
```python
# Create a DataFrame with index and one Series
df = pd.DataFrame({"id":[1,2,3,3],"val":["abcde","bbcde","cbcde","dbcde"]})
df.set_index("id",inplace=True)
```
Calling `.loc` when the result length is 2 returns a Series (as expected):
```
type(df['val'].loc[3])
```
Output:
```
pandas.core.series.Series
```
Calling `.loc` when the result length is 1 returns a `str`:
```python
# use .loc when the result length is 1:
type(df['val'].loc[1])
```
Output:
```
str
```
#### Problem description
The fact that the same code returns different types causes inconsistencies. If I run `len` on the result, I would get 2 for `id=3` and 5 for `id=1` or `id=2`, since the string length is 5:
```python
len(df['val'].loc[3])
```
Output:
```
2
```
When calling `loc[1]`:
```python
len(df['val'].loc[1])
```
Output:
```
5
```
#### Expected Output
`.loc` should return a Series regardless of the size. Otherwise this causes bugs when trying to evaluate the length of the output.
```python
# Expected output:
type(df['val'].loc[1])
```
Output:
```
pandas.core.series.Series
```
```python
len(df['val'].loc[1])
```
Output:
```
1
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.3
numpy : 1.17.4
pytz : 2019.1
dateutil : 2.8.0
pip : 19.3.1
setuptools : 42.0.2.post20191203
Cython : None
pytest : 5.3.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.10.2
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.2
sqlalchemy : 1.3.12
tables : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 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/31381/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31381/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31382
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31382/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31382/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31382/events
|
https://github.com/pandas-dev/pandas/pull/31382
| 556,063,547
|
MDExOlB1bGxSZXF1ZXN0MzY3ODkyMTMw
| 31,382
|
DOC: reduce long error tracebacks in 1.0 whatsnew + some clean-up
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T08:49:35Z
| 2020-01-28T13:07:49Z
| 2020-01-28T12:48:07Z
|
MEMBER
| null |
Made some of the ipython blocks into literal code blocks to avoid showing long error tracebacks (that only distract from the core text). Plus did a few other small formatting clean-ups, and combined 2 pyarrow related entries.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31382/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31382/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31382.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31382",
"merged_at": "2020-01-28T12:48:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31382.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31382"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31383
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31383/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31383/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31383/events
|
https://github.com/pandas-dev/pandas/pull/31383
| 556,088,926
|
MDExOlB1bGxSZXF1ZXN0MzY3OTEyODcx
| 31,383
|
Raise error in read_csv when arguments header and prefix both are not None
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/46084304?v=4",
"events_url": "https://api.github.com/users/rushabh-v/events{/privacy}",
"followers_url": "https://api.github.com/users/rushabh-v/followers",
"following_url": "https://api.github.com/users/rushabh-v/following{/other_user}",
"gists_url": "https://api.github.com/users/rushabh-v/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rushabh-v",
"id": 46084304,
"login": "rushabh-v",
"node_id": "MDQ6VXNlcjQ2MDg0MzA0",
"organizations_url": "https://api.github.com/users/rushabh-v/orgs",
"received_events_url": "https://api.github.com/users/rushabh-v/received_events",
"repos_url": "https://api.github.com/users/rushabh-v/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rushabh-v/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rushabh-v/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rushabh-v"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 11
| 2020-01-28T09:40:27Z
| 2020-02-03T16:13:05Z
| 2020-02-03T15:52:28Z
|
CONTRIBUTOR
| null |
- [x] closes #27394
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31383/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31383/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31383.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31383",
"merged_at": "2020-02-03T15:52:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31383.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31383"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31384
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31384/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31384/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31384/events
|
https://github.com/pandas-dev/pandas/pull/31384
| 556,104,631
|
MDExOlB1bGxSZXF1ZXN0MzY3OTI1ODM0
| 31,384
|
TYP: pandas/core/dtypes/dtypes.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-01-28T10:09:36Z
| 2020-04-27T09:01:00Z
| 2020-04-05T10:27:57Z
|
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/31384/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31384/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31384.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31384",
"merged_at": "2020-04-05T10:27:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31384.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31384"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31385
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31385/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31385/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31385/events
|
https://github.com/pandas-dev/pandas/issues/31385
| 556,104,646
|
MDU6SXNzdWU1NTYxMDQ2NDY=
| 31,385
|
pd.read_sas with chunksize option raises IndexError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/42027984?v=4",
"events_url": "https://api.github.com/users/jicky94/events{/privacy}",
"followers_url": "https://api.github.com/users/jicky94/followers",
"following_url": "https://api.github.com/users/jicky94/following{/other_user}",
"gists_url": "https://api.github.com/users/jicky94/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jicky94",
"id": 42027984,
"login": "jicky94",
"node_id": "MDQ6VXNlcjQyMDI3OTg0",
"organizations_url": "https://api.github.com/users/jicky94/orgs",
"received_events_url": "https://api.github.com/users/jicky94/received_events",
"repos_url": "https://api.github.com/users/jicky94/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jicky94/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jicky94/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jicky94"
}
|
[
{
"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"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-01-28T10:09:38Z
| 2020-02-03T13:21:52Z
| 2020-02-03T13:21:52Z
|
NONE
| null |
Good morning,
Using Python 3.6.
My problem seems to be close to issue [#14734](https://github.com/pandas-dev/pandas/issues/14734) but with a different error type though. However, please forgive my lack of competence, but I am not able to understand 1. if my issue is really similar and 2. if the issue that seemed to surround some sas files has been solved or if there might still be some probleùs with some sas files (that i cannot provide for reasons detailed just below).
I have read the rules about posting but i cannot attach a sample of my data or reproduce the entire error message as the data i am working on is located on a server without access to internet. I apologize for this inconvenience. I’ll try to reproduce most of what is requested however below.
I am working with very big sas files (data on each job, hence millions of lines) and got memory error when i was trying to simple read them (they open fine in R or stata strangely). Therefore i searched and find the pandas.read_sas option to work with chunks of the data. My code is now the following:
```python
import pandas as pd
df_chunk = pd.read_sas(r'file.sas7bdat', chunksize=500)
for chunk in df_chunk:
chunk_list.append(chunk)
```
At this point i get the following error (I am reproducing it here manually as i cannot copy paste):
```python
line 660, in _chunk_to_dataframe
if self.column_formats[j] in const.sas_date_formats:
IndexError: list index out of range
```
I am aware the exposition of my issue is truncated and probably incomplete but many thanks for any help you could provide,
Axelle
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31385/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31385/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31386
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31386/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31386/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31386/events
|
https://github.com/pandas-dev/pandas/pull/31386
| 556,115,162
|
MDExOlB1bGxSZXF1ZXN0MzY3OTM0NzUx
| 31,386
|
TYP: pandas/core/arrays/string_.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-28T10:27:52Z
| 2020-01-31T15:00:18Z
| 2020-01-31T11:46:54Z
|
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/31386/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31386/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31386.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31386",
"merged_at": "2020-01-31T11:46:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31386.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31386"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31387
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31387/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31387/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31387/events
|
https://github.com/pandas-dev/pandas/pull/31387
| 556,134,589
|
MDExOlB1bGxSZXF1ZXN0MzY3OTUwOTcw
| 31,387
|
CLN: more consistent error message for construct_from_string wrong type
|
{
"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": "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": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-28T11:03:21Z
| 2020-01-31T09:23:43Z
| 2020-01-31T05:23:52Z
|
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/31387/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31387/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31387.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31387",
"merged_at": "2020-01-31T05:23:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31387.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31387"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31388
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31388/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31388/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31388/events
|
https://github.com/pandas-dev/pandas/pull/31388
| 556,144,674
|
MDExOlB1bGxSZXF1ZXN0MzY3OTU5NDMy
| 31,388
|
ENH: truncate output of Groupby.groups
|
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-01-28T11:22:57Z
| 2020-02-25T17:12:40Z
| 2020-01-31T04:06:39Z
|
MEMBER
| null |
Resurrection of #24853. Have resolved conflicts and updated according to the last review it received. The original PR fixed some unrelated minor typos, so I've kept them in (and added a fix for another absolutely minor typo I'd noticed)
- [x] closes #1135
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31388/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31388/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31388.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31388",
"merged_at": "2020-01-31T04:06:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31388.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31388"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31389
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31389/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31389/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31389/events
|
https://github.com/pandas-dev/pandas/issues/31389
| 556,182,883
|
MDU6SXNzdWU1NTYxODI4ODM=
| 31,389
|
Handle ExtensionArrays in cut
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "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"
},
{
"color": "9aace2",
"default": false,
"description": "cut, qcut",
"id": 1639305834,
"name": "cut",
"node_id": "MDU6TGFiZWwxNjM5MzA1ODM0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/cut"
}
] |
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
| 2020-01-28T12:40:10Z
| 2020-05-13T02:53:32Z
| null |
CONTRIBUTOR
| null |
Followup to https://github.com/pandas-dev/pandas/pull/31290. Currently `pd.cut` doesn't play nicely with all extension arrays. To support them, I think we'll need one addition to the interface.
We need an array of integers to pass to searchsorted in https://github.com/pandas-dev/pandas/blob/4edcc5541ff3f6470f5e3c083cb83136119e6f0c/pandas/core/reshape/tile.py#L394. I think the only requirement is that the integer-encoded values need to have the same ordering as the original values. (I forget the math term for this type of mapping).
It doesn't matter what value is used for missing values, as long as it's distinct.
We can't quite use `factorize(arr)[0]` since it doesn't have the ordering requirement.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31389/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31389/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31390
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31390/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31390/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31390/events
|
https://github.com/pandas-dev/pandas/pull/31390
| 556,187,531
|
MDExOlB1bGxSZXF1ZXN0MzY3OTk1MTg0
| 31,390
|
Backport PR #31382 on branch 1.0.x (DOC: reduce long error tracebacks in 1.0 whatsnew + some clean-up)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T12:49:01Z
| 2020-01-28T13:33:41Z
| 2020-01-28T13:33:41Z
|
NONE
| null |
Backport PR #31382: DOC: reduce long error tracebacks in 1.0 whatsnew + some clean-up
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31390/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31390/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31390.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31390",
"merged_at": "2020-01-28T13:33:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31390.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31390"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31391
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31391/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31391/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31391/events
|
https://github.com/pandas-dev/pandas/issues/31391
| 556,211,541
|
MDU6SXNzdWU1NTYyMTE1NDE=
| 31,391
|
SAS class comment mentions inexistant path
|
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-01-28T13:31:44Z
| 2020-01-29T08:15:00Z
| 2020-01-29T08:15:00Z
|
MEMBER
| null |
`pandas/asv_bench/benchmarks/io/sas.py` :
> class SAS:
>
> params = ["sas7bdat", "xport"]
> param_names = ["format"]
>
> def setup(self, format):
> # Read files that are located in 'pandas/io/tests/sas/data'
However, the files are in 'pandas/tests/io/sas/data'.
EDIT:
unrelated typo: there's lots of places in the codebase that use "rather then" instead of "rather than". As this is also a minor typo that doesn't affect any code, I think it'd be OK to address both in the same pull request
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31391/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31391/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31392
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31392/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31392/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31392/events
|
https://github.com/pandas-dev/pandas/pull/31392
| 556,270,816
|
MDExOlB1bGxSZXF1ZXN0MzY4MDY0Njg3
| 31,392
|
DOC: Fix image alignment
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T15:06:31Z
| 2020-01-28T16:18:20Z
| 2020-01-28T16:18:20Z
|
CONTRIBUTOR
| null |
Closes #31369

|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31392/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31392/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31392.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31392",
"merged_at": "2020-01-28T16:18:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31392.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31392"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31393
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31393/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31393/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31393/events
|
https://github.com/pandas-dev/pandas/pull/31393
| 556,285,908
|
MDExOlB1bGxSZXF1ZXN0MzY4MDc3MjMx
| 31,393
|
Backport PR #29393 on branch 1.0.x (BUG: GH25495 incorrect dtype when using .loc to set Categorical value for column in 1-row DataFrame)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T15:29:56Z
| 2020-01-28T16:00:40Z
| 2020-01-28T16:00:40Z
|
NONE
| null |
Backport PR #29393: BUG: GH25495 incorrect dtype when using .loc to set Categorical value for column in 1-row DataFrame
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31393/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31393/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31393.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31393",
"merged_at": "2020-01-28T16:00:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31393.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31393"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31394
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31394/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31394/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31394/events
|
https://github.com/pandas-dev/pandas/pull/31394
| 556,318,096
|
MDExOlB1bGxSZXF1ZXN0MzY4MTA0Mzgx
| 31,394
|
Backport PR #31392 on branch 1.0.x (DOC: Fix image alignment)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T16:18:32Z
| 2020-01-28T17:56:58Z
| 2020-01-28T17:56:57Z
|
NONE
| null |
Backport PR #31392: DOC: Fix image alignment
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31394/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31394/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31394.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31394",
"merged_at": "2020-01-28T17:56:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31394.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31394"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31395
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31395/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31395/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31395/events
|
https://github.com/pandas-dev/pandas/pull/31395
| 556,351,903
|
MDExOlB1bGxSZXF1ZXN0MzY4MTMyMzQ0
| 31,395
|
GH31391 - Fixed typos and fixed inexistant path in a SAS class comment
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2225536?v=4",
"events_url": "https://api.github.com/users/jeandersonbc/events{/privacy}",
"followers_url": "https://api.github.com/users/jeandersonbc/followers",
"following_url": "https://api.github.com/users/jeandersonbc/following{/other_user}",
"gists_url": "https://api.github.com/users/jeandersonbc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jeandersonbc",
"id": 2225536,
"login": "jeandersonbc",
"node_id": "MDQ6VXNlcjIyMjU1MzY=",
"organizations_url": "https://api.github.com/users/jeandersonbc/orgs",
"received_events_url": "https://api.github.com/users/jeandersonbc/received_events",
"repos_url": "https://api.github.com/users/jeandersonbc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jeandersonbc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeandersonbc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jeandersonbc"
}
|
[] |
closed
| false
| null |
[] | null | 5
| 2020-01-28T17:15:03Z
| 2020-01-29T01:48:35Z
| 2020-01-29T01:48:26Z
|
CONTRIBUTOR
| null |
Simple change: just fixed some typos and incorrect path as reported in #31391
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31395/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31395/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31395.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31395",
"merged_at": "2020-01-29T01:48:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31395.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31395"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31396
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31396/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31396/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31396/events
|
https://github.com/pandas-dev/pandas/issues/31396
| 556,353,957
|
MDU6SXNzdWU1NTYzNTM5NTc=
| 31,396
|
TypeError when using 'comment=...' in read_csv from a file
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1651334?v=4",
"events_url": "https://api.github.com/users/cddf/events{/privacy}",
"followers_url": "https://api.github.com/users/cddf/followers",
"following_url": "https://api.github.com/users/cddf/following{/other_user}",
"gists_url": "https://api.github.com/users/cddf/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cddf",
"id": 1651334,
"login": "cddf",
"node_id": "MDQ6VXNlcjE2NTEzMzQ=",
"organizations_url": "https://api.github.com/users/cddf/orgs",
"received_events_url": "https://api.github.com/users/cddf/received_events",
"repos_url": "https://api.github.com/users/cddf/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cddf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cddf/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cddf"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-28T17:18:33Z
| 2020-03-03T03:02:23Z
| 2020-03-03T03:02:23Z
|
NONE
| null |
#### Code Sample
Given a data file `data.csv` with a line that is commented out:
```csv
+1.280000e+002,-4.078996e+001
+2.560000e+002,-5.155923e+001
# +3.840000e+002,-7.221378e+001
+5.120000e+002,-7.918677e+001
+6.400000e+002,-7.919656e+001
```
```python
import pandas as pd
pd.read_csv('data.csv', sep=None, index_col=0, header=None, engine="python", comment='#')
```
#### Problem description
It raises a `TypeError` when using the `comment` parameter:
<details>
<summary>TypeError</summary>
```python
TypeError Traceback (most recent call last)
<ipython-input-17-c89b3c3e691f> in <module>
----> 1 pd.read_csv('data.csv', sep=None, comment='#')
~/.local/share/virtualenvs/openqlab/lib/python3.8/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names,
index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfoote
r, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirs
t, cache_dates, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encodin
g, dialect, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision)
683 )
684
--> 685 return _read(filepath_or_buffer, kwds)
686
687 parser_f.__name__ = name
~/.local/share/virtualenvs/openqlab/lib/python3.8/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds)
455
456 # Create the parser.
--> 457 parser = TextFileReader(fp_or_buf, **kwds)
458
459 if chunksize or iterator:
~/.local/share/virtualenvs/openqlab/lib/python3.8/site-packages/pandas/io/parsers.py in __init__(self, f, engine, **kwds)
893 self.options["has_index_names"] = kwds["has_index_names"]
894
--> 895 self._make_engine(self.engine)
896
897 def close(self):
~/.local/share/virtualenvs/openqlab/lib/python3.8/site-packages/pandas/io/parsers.py in _make_engine(self, engine)
1145 ' "python-fwf")'.format(engine=engine)
1146 )
-> 1147 self._engine = klass(self.f, **self.options)
1148
1149 def _failover_to_python(self):
~/.local/share/virtualenvs/openqlab/lib/python3.8/site-packages/pandas/io/parsers.py in __init__(self, f, **kwds)
2297 # Set self.data to something that can read lines.
2298 if hasattr(f, "readline"):
-> 2299 self._make_reader(f)
2300 else:
2301 self.data = f
~/.local/share/virtualenvs/openqlab/lib/python3.8/site-packages/pandas/io/parsers.py in _make_reader(self, f)
2427 self.pos += 1
2428 self.line_pos += 1
-> 2429 sniffed = csv.Sniffer().sniff(line)
2430 dia.delimiter = sniffed.delimiter
2431 if self.encoding is not None:
/usr/lib64/python3.8/csv.py in sniff(self, sample, delimiters)
179
180 quotechar, doublequote, delimiter, skipinitialspace = \
--> 181 self._guess_quote_and_delimiter(sample, delimiters)
182 if not delimiter:
183 delimiter, skipinitialspace = self._guess_delimiter(sample,
/usr/lib64/python3.8/csv.py in _guess_quote_and_delimiter(self, data, delimiters)
220 r'(?:^|\n)(?P<quote>["\']).*?(?P=quote)(?:$|\n)'): # ".*?" (no delim, no space)
221 regexp = re.compile(restr, re.DOTALL | re.MULTILINE)
--> 222 matches = regexp.findall(data)
223 if matches:
224 break
TypeError: expected string or bytes-like object
```
</details>
Without the comment in the data file and without the parameter `comment='#'` everything works as expected.
**It seems that `sep=None` ist the problem here.**
When using `sep=','` it works. But in our case, the import is part of a general importer that should accept a variety of different files. Thus, we must use `sep=None`.
#### Expected Output
I would expect the following output:
```python
Out[18]:
1
0
128.0 -40.78996
256.0 -51.55923
512.0 -79.18677
640.0 -79.19656
[4 rows x 1 columns]
```
#### Output of ``pd.show_versions()``
<details>
<summary>Details</summary>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.13-201.fc31.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 0.25.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 42.0.2
Cython : None
pytest : 5.3.2
hypothesis : None
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 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/31396/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31396/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31397
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31397/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31397/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31397/events
|
https://github.com/pandas-dev/pandas/pull/31397
| 556,371,984
|
MDExOlB1bGxSZXF1ZXN0MzY4MTQ5MDI3
| 31,397
|
TYP: Annotate
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-28T17:53:50Z
| 2020-01-31T04:10:15Z
| 2020-01-31T03:34:57Z
|
MEMBER
| null |
AFAICT having the more specific annotations for the Index subclasses _data attribute is a blocker for a bunch of other annotations.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31397/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31397/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31397.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31397",
"merged_at": "2020-01-31T03:34:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31397.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31397"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31398
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31398/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31398/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31398/events
|
https://github.com/pandas-dev/pandas/issues/31398
| 556,385,260
|
MDU6SXNzdWU1NTYzODUyNjA=
| 31,398
|
NTile function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5209757?v=4",
"events_url": "https://api.github.com/users/xmnlab/events{/privacy}",
"followers_url": "https://api.github.com/users/xmnlab/followers",
"following_url": "https://api.github.com/users/xmnlab/following{/other_user}",
"gists_url": "https://api.github.com/users/xmnlab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xmnlab",
"id": 5209757,
"login": "xmnlab",
"node_id": "MDQ6VXNlcjUyMDk3NTc=",
"organizations_url": "https://api.github.com/users/xmnlab/orgs",
"received_events_url": "https://api.github.com/users/xmnlab/received_events",
"repos_url": "https://api.github.com/users/xmnlab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xmnlab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xmnlab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xmnlab"
}
|
[
{
"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": "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 |
[] | null | 5
| 2020-01-28T18:21:05Z
| 2020-03-06T23:10:47Z
| 2020-03-06T23:09:22Z
|
NONE
| null |
#### Problem description
I've investigated on pandas a `ntile` operation alternative. I just found `qcut` but it seems there is a difference between them (at least I could have the same results I expected).
for more details about `NTile`[3] :
> NTILE() function allows you to divide ordered rows in the partition into a specified number of ranked groups as equal size as possible. These ranked groups are called buckets.
> The NTILE() function assigns each group a bucket number starting from 1. For each row in a group, the NTILE() function assigns a bucket number representing the group to which the row belongs.
I have locally a python version of this function, is this something I could open a PR to pandas? if yes, I would be very happy to work on this PR.
any feedback and/or guidance would be very appreciated.
some references about ntile:
[1] https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions101.htm
[2] https://www.sqlservertutorial.net/sql-server-window-functions/sql-server-ntile-function/
[3]https://www.postgresqltutorial.com/postgresql-ntile-function/
thanks!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31398/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31398/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31399
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31399/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31399/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31399/events
|
https://github.com/pandas-dev/pandas/pull/31399
| 556,418,133
|
MDExOlB1bGxSZXF1ZXN0MzY4MTg3MDky
| 31,399
|
PERF: avoid is_bool_indexer check where possible
|
{
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 8
| 2020-01-28T19:27:47Z
| 2020-02-04T16:16:12Z
| 2020-02-04T08:05:27Z
|
MEMBER
| null |
xref #30349, not a lot of ground to pick up here, but we can avoid a few calls
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31399/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31399/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31399.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31399",
"merged_at": "2020-02-04T08:05:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31399.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31399"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31400
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31400/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31400/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31400/events
|
https://github.com/pandas-dev/pandas/issues/31400
| 556,419,536
|
MDU6SXNzdWU1NTY0MTk1MzY=
| 31,400
|
read_csv error for a long entry
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10983944?v=4",
"events_url": "https://api.github.com/users/dauss75/events{/privacy}",
"followers_url": "https://api.github.com/users/dauss75/followers",
"following_url": "https://api.github.com/users/dauss75/following{/other_user}",
"gists_url": "https://api.github.com/users/dauss75/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dauss75",
"id": 10983944,
"login": "dauss75",
"node_id": "MDQ6VXNlcjEwOTgzOTQ0",
"organizations_url": "https://api.github.com/users/dauss75/orgs",
"received_events_url": "https://api.github.com/users/dauss75/received_events",
"repos_url": "https://api.github.com/users/dauss75/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dauss75/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dauss75/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dauss75"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-01-28T19:30:31Z
| 2020-01-28T21:10:47Z
| 2020-01-28T21:10:47Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
df = pd.read_csv(fileName, delimiter='\t', comment='#', skip_blank_lines=True)
```
#### Problem description
After reading a csv file, all the entries after a particular column in only one row shows as 'na', not the real value. This is due to the character length (469 including spaces) in that particular column entry as removing some characters do load the data properly. Is there any way to load the file properly? I don't mind truncating each entry not to cause this issue.
Thanks,
Segun
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31400/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31400/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31401
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31401/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31401/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31401/events
|
https://github.com/pandas-dev/pandas/pull/31401
| 556,419,718
|
MDExOlB1bGxSZXF1ZXN0MzY4MTg4NDAw
| 31,401
|
BUG: preserve object dtype for Index set ops
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-28T19:30:54Z
| 2020-02-02T23:09:41Z
| 2020-02-02T22:56:52Z
|
MEMBER
| null |
I'd be fine with coercing if we did it consistently, but ATM we behave differently for monotonic-increasing vs otherwise.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31401/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31401/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31401.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31401",
"merged_at": "2020-02-02T22:56:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31401.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31401"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31402
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31402/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31402/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31402/events
|
https://github.com/pandas-dev/pandas/pull/31402
| 556,439,019
|
MDExOlB1bGxSZXF1ZXN0MzY4MjA0NTY1
| 31,402
|
CLN: remove maybe_box
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-01-28T20:06:28Z
| 2020-01-31T04:13:19Z
| 2020-01-31T03:33:46Z
|
MEMBER
| null |
Recently removed the last usaged from TDI/DTI.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31402/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31402/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31402.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31402",
"merged_at": "2020-01-31T03:33:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31402.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31402"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31403
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31403/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31403/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31403/events
|
https://github.com/pandas-dev/pandas/pull/31403
| 556,463,434
|
MDExOlB1bGxSZXF1ZXN0MzY4MjI1MDkz
| 31,403
|
Backport PR #31361 on branch 1.0.x (Avoid Index DeprecationWarning in Series getitem)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "f2f074",
"default": false,
"description": "Warnings that appear or should be added to pandas",
"id": 1628184320,
"name": "Warnings",
"node_id": "MDU6TGFiZWwxNjI4MTg0MzIw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Warnings"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T20:55:53Z
| 2020-01-28T22:17:23Z
| 2020-01-28T22:17:23Z
|
NONE
| null |
Backport PR #31361: Avoid Index DeprecationWarning in Series getitem
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31403/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31403/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31403.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31403",
"merged_at": "2020-01-28T22:17:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31403.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31403"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31404
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31404/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31404/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31404/events
|
https://github.com/pandas-dev/pandas/pull/31404
| 556,470,381
|
MDExOlB1bGxSZXF1ZXN0MzY4MjMwODc4
| 31,404
|
Add pandas blog to feed
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "23ef97",
"default": false,
"description": "pandas website",
"id": 1508144531,
"name": "Web",
"node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-01-28T21:10:39Z
| 2020-01-29T17:34:38Z
| 2020-01-29T17:34:35Z
|
CONTRIBUTOR
| null |
I don't think this needs to be backported.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31404/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31404/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31404.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31404",
"merged_at": "2020-01-29T17:34:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31404.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31404"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31405
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31405/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31405/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31405/events
|
https://github.com/pandas-dev/pandas/pull/31405
| 556,472,400
|
MDExOlB1bGxSZXF1ZXN0MzY4MjMyNjE5
| 31,405
|
Backport PR #31136 on branch 1.0.x (COMPAT: Return NotImplemented for subclassing)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-28T21:14:23Z
| 2020-01-28T22:17:03Z
| 2020-01-28T22:17:03Z
|
NONE
| null |
Backport PR #31136: COMPAT: Return NotImplemented for subclassing
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31405/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31405/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31405.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31405",
"merged_at": "2020-01-28T22:17:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31405.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31405"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31406
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31406/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31406/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31406/events
|
https://github.com/pandas-dev/pandas/pull/31406
| 556,491,471
|
MDExOlB1bGxSZXF1ZXN0MzY4MjQ4NjYw
| 31,406
|
REF: consolidate DTI/TDI/PI get_value in ExtensionIndex, associated cleanups
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-01-28T21:50:47Z
| 2020-02-02T23:12:40Z
| 2020-02-02T22:52:06Z
|
MEMBER
| null |
@jschendel does the holds_integer change for IntervalIndex make sense?
@jreback is this a correct usage of self.holds_integer() as meaning "we only fall back to positional indexing if not self.holds_integer()"
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31406/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31406/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31406.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31406",
"merged_at": "2020-02-02T22:52:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31406.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31406"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31407
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31407/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31407/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31407/events
|
https://github.com/pandas-dev/pandas/issues/31407
| 556,528,317
|
MDU6SXNzdWU1NTY1MjgzMTc=
| 31,407
|
CI: revert the warning change once IPython updates
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "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": "89e285",
"default": false,
"description": "Requires external dependency before progressing",
"id": 2347998438,
"name": "Blocked",
"node_id": "MDU6TGFiZWwyMzQ3OTk4NDM4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocked"
}
] |
open
| false
| null |
[] | null | 3
| 2020-01-28T22:49:21Z
| 2021-02-02T17:55:58Z
| null |
MEMBER
| null |
A couple days ago, there was a CI broken caused by the latest jedi release, and back then, made a patch to catch the warning. Ideally, after ipython updates and fixes the deprecated code, then the warning should be removed, and we should be able to revert the change in #31323
FYI, I created an issue on IPython: https://github.com/ipython/ipython/issues/12102
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31407/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31407/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31408
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31408/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31408/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31408/events
|
https://github.com/pandas-dev/pandas/pull/31408
| 556,558,702
|
MDExOlB1bGxSZXF1ZXN0MzY4MzA3NTQy
| 31,408
|
REF: docstrings that dont need to go into shared_docs
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-01-28T23:54:55Z
| 2020-01-31T15:50:08Z
| 2020-01-31T14:47:28Z
|
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/31408/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31408/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31408.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31408",
"merged_at": "2020-01-31T14:47:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31408.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31408"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31409
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31409/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31409/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31409/events
|
https://github.com/pandas-dev/pandas/pull/31409
| 556,596,673
|
MDExOlB1bGxSZXF1ZXN0MzY4MzM4MDMy
| 31,409
|
PERF/CLN: float-to-int casting
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-01-29T02:13:52Z
| 2020-02-02T23:16:45Z
| 2020-02-02T22:50:48Z
|
MEMBER
| null |
using float.is_integer is apparently much faster than casting and checking equality, especially for values between int32max and int64max (anecdotal based on small sample size)
```
cast1 = com.cast_scalar_indexer_master
cast2 = com.cast_scalar_indexer_PR
def cast3(key):
# Effectively what we have in _maybe_cast_indexer in master
if lib.is_float(key):
try:
ckey = int(key)
if ckey == key:
key = ckey
except (OverflowError, ValueError, TypeError):
pass
return key
key1 = np.float64(17179869184.0)
key2 = float(key1) * 2**30
key3 = np.float64(np.iinfo(np.int64).max)
In [87]: for func in [cast1, cast2, cast3]:
...: for key in [key1, key2, key3]:
...: %timeit func(key)
...:
647 ns ± 3.71 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
559 ns ± 27.7 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
1.98 µs ± 19.7 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
360 ns ± 4.1 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
353 ns ± 3.11 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
377 ns ± 6.54 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
568 ns ± 3.92 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
445 ns ± 15 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
1.91 µs ± 36.7 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
```
The middle three timeit results are the ones we get from this PR.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31409/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31409/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31409.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31409",
"merged_at": "2020-02-02T22:50:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31409.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31409"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31410
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31410/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31410/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31410/events
|
https://github.com/pandas-dev/pandas/issues/31410
| 556,612,443
|
MDU6SXNzdWU1NTY2MTI0NDM=
| 31,410
|
Cross tabulations for categorical data doesn't work as the way expected in the guide
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41546976?v=4",
"events_url": "https://api.github.com/users/GYHHAHA/events{/privacy}",
"followers_url": "https://api.github.com/users/GYHHAHA/followers",
"following_url": "https://api.github.com/users/GYHHAHA/following{/other_user}",
"gists_url": "https://api.github.com/users/GYHHAHA/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GYHHAHA",
"id": 41546976,
"login": "GYHHAHA",
"node_id": "MDQ6VXNlcjQxNTQ2OTc2",
"organizations_url": "https://api.github.com/users/GYHHAHA/orgs",
"received_events_url": "https://api.github.com/users/GYHHAHA/received_events",
"repos_url": "https://api.github.com/users/GYHHAHA/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GYHHAHA/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GYHHAHA/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GYHHAHA"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-01-29T03:20:22Z
| 2020-04-27T05:33:25Z
| 2020-04-27T05:33:25Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
In [73]: foo = pd.Categorical(['a', 'b'], categories=['a', 'b', 'c'])
In [74]: bar = pd.Categorical(['d', 'e'], categories=['d', 'e', 'f'])
In [75]: pd.crosstab(foo, bar)
Out[75]:
col_0 d e
row_0
a 1 0
b 0 1
```
#### Problem description
In the latest [user guide](https://dev.pandas.io/docs/user_guide/reshaping.html#cross-tabulations), it says "Any input passed containing Categorical data will have all of its categories included in the cross-tabulation, even if the actual data does not contain any instances of a particular category.". But why the example doesn't work like this way? (lack of the row 'c' and column 'f')
Thanks !
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31410/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31410/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31411
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31411/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31411/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31411/events
|
https://github.com/pandas-dev/pandas/pull/31411
| 556,615,739
|
MDExOlB1bGxSZXF1ZXN0MzY4MzUzMTcw
| 31,411
|
COMPAT: dont pass dtype to datetime64
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
}
| 0
| 2020-01-29T03:34:46Z
| 2020-01-29T15:51:10Z
| 2020-01-29T15:12:06Z
|
MEMBER
| null |
Hopefully fixes npdev build
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31411/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31411/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31411.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31411",
"merged_at": "2020-01-29T15:12:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31411.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31411"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31412
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31412/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31412/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31412/events
|
https://github.com/pandas-dev/pandas/pull/31412
| 556,639,292
|
MDExOlB1bGxSZXF1ZXN0MzY4MzcyNTc3
| 31,412
|
CLN: Replace '.format' with f-strings in some test files #29547
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/956752?v=4",
"events_url": "https://api.github.com/users/vandana-iyer/events{/privacy}",
"followers_url": "https://api.github.com/users/vandana-iyer/followers",
"following_url": "https://api.github.com/users/vandana-iyer/following{/other_user}",
"gists_url": "https://api.github.com/users/vandana-iyer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vandana-iyer",
"id": 956752,
"login": "vandana-iyer",
"node_id": "MDQ6VXNlcjk1Njc1Mg==",
"organizations_url": "https://api.github.com/users/vandana-iyer/orgs",
"received_events_url": "https://api.github.com/users/vandana-iyer/received_events",
"repos_url": "https://api.github.com/users/vandana-iyer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vandana-iyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vandana-iyer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vandana-iyer"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-01-29T05:07:38Z
| 2020-02-02T03:06:03Z
| 2020-01-31T04:02:40Z
|
CONTRIBUTOR
| null |
Updates the below 2 test files to use f-strings (fast and preferred) instead of '.format' (old and slow)
1) pandas/tests/reshape/test_reshape.py
2) pandas/tests/scalar/period/test_period.py
For more details on the issue, refer: https://github.com/pandas-dev/pandas/issues/29547
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31412/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31412/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31412.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31412",
"merged_at": "2020-01-31T04:02:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31412.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31412"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31413
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31413/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31413/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31413/events
|
https://github.com/pandas-dev/pandas/issues/31413
| 556,657,922
|
MDU6SXNzdWU1NTY2NTc5MjI=
| 31,413
|
Series.append(DataFrame) should throw TypeError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6909215?v=4",
"events_url": "https://api.github.com/users/hvardhan20/events{/privacy}",
"followers_url": "https://api.github.com/users/hvardhan20/followers",
"following_url": "https://api.github.com/users/hvardhan20/following{/other_user}",
"gists_url": "https://api.github.com/users/hvardhan20/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hvardhan20",
"id": 6909215,
"login": "hvardhan20",
"node_id": "MDQ6VXNlcjY5MDkyMTU=",
"organizations_url": "https://api.github.com/users/hvardhan20/orgs",
"received_events_url": "https://api.github.com/users/hvardhan20/received_events",
"repos_url": "https://api.github.com/users/hvardhan20/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hvardhan20/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hvardhan20/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hvardhan20"
}
|
[
{
"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": "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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-01-29T06:06:21Z
| 2020-03-04T14:17:16Z
| 2020-03-04T14:17:16Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> import pandas as pd
>>> pd.__version__
'1.0.0rc0+233.gec0996c67'
>>> df = pd.DataFrame({'A':[1,2]})
>>> df.A.append(df)
0 A
0 1.0 NaN
1 2.0 NaN
0 NaN 1.0
1 NaN 2.0
```
#### Problem description
The behavior of append is the same as it is in 0.25.3 when a DataFrame is appended to Series. But it should actually throw a TypeError when passed a DataFrame.
We clearly document that the elements passed to append should be Series or list/tuple of Series.
Also according to [this](https://github.com/pandas-dev/pandas/issues/30975), a TypeError seems appropriate. The change can be implemented for 1.0.1 or 1.1 after [this](https://github.com/pandas-dev/pandas/pull/31036#issuecomment-577248825) discussion.
#### Expected Output
```python
>>> df = pd.DataFrame({'A':[1, 2]})
>>> df.A.append([df])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Work\Git projects\pandas\pandas\core\series.py", line 2572, in append
raise TypeError(msg)
TypeError: to_append should be a Series or list/tuple of Series, got DataFrame
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : ec0996c6751326eed17a0bb456fe1c550689a618
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.0rc0+233.gec0996c67.dirty
numpy : 1.17.0
pytz : 2018.9
dateutil : 2.8.0
pip : 19.3.1
setuptools : 44.0.0.post20200106
Cython : 0.29.14
pytest : 4.3.1
hypothesis : 5.1.5
sphinx : 1.8.5
blosc : None
feather : 0.4.0
xlsxwriter : 1.1.5
lxml.etree : 4.3.2
html5lib : 1.0.1
pymysql : 0.9.3
psycopg2 : None
jinja2 : 2.10
IPython : 7.4.0
pandas_datareader: None
bs4 : 4.6.3
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.3.2
matplotlib : 3.0.3
numexpr : 2.6.9
odfpy : None
openpyxl : 2.6.1
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
pytest : 4.3.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.1
tables : 3.5.1
tabulate : 0.8.6
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.1.5
numba : 0.43.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31413/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31413/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31414
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31414/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31414/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31414/events
|
https://github.com/pandas-dev/pandas/issues/31414
| 556,738,512
|
MDU6SXNzdWU1NTY3Mzg1MTI=
| 31,414
|
Cannot replace all occurences of infs and nans to None with a single df.replace
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6045454?v=4",
"events_url": "https://api.github.com/users/dougvj/events{/privacy}",
"followers_url": "https://api.github.com/users/dougvj/followers",
"following_url": "https://api.github.com/users/dougvj/following{/other_user}",
"gists_url": "https://api.github.com/users/dougvj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dougvj",
"id": 6045454,
"login": "dougvj",
"node_id": "MDQ6VXNlcjYwNDU0NTQ=",
"organizations_url": "https://api.github.com/users/dougvj/orgs",
"received_events_url": "https://api.github.com/users/dougvj/received_events",
"repos_url": "https://api.github.com/users/dougvj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dougvj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dougvj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dougvj"
}
|
[
{
"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": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] |
open
| false
| null |
[] | null | 1
| 2020-01-29T09:29:26Z
| 2020-04-25T12:41:44Z
| null |
NONE
| null |
#### Example code
```python
>>> df = pd.DataFrame(
... {'foo':[
... np.nan,
... np.inf,
... 1.1,
... 2.2
... ],
... 'bar':[
... 1,
... -np.inf,
... 2.1,
... 3.2
... ]
... })
>>> df
foo bar
0 NaN 1.0
1 inf -inf
2 1.1 2.1
3 2.2 3.2
>>> df.replace({np.nan: None, -np.inf:None, np.inf:None})
foo bar
0 NaN 1.0
1 NaN NaN
2 1.1 2.1
3 2.2 3.2
>>>
```
#### Problem description
When trying to replace all occurrences of `NaN`s and `Inf`s to `None`s the resulting dataframe simply contains 'NaNs' for every occurrence, retaining the dtype of `float64` rather than the expected `object`. A work around is to simply issue the replace again with only `np.nan` to `None`.
This behavior was discovered when trying to convert the contents of a dataframe containing `Inf`s, and `NaN`s to `None`s in preparation for JSON compliant output via a dictionary for compatibility with third party tools rather than directly through panda's to_json() method (which admittedly would make this process unnecessary as it produces the compliant output already)
I strongly suspect this problem is related to inconsistencies outlined here: https://github.com/pandas-dev/pandas/issues/29024
#### Expected Output
I would expect a column type of `object` with `None`s in place as I see when replacing only NaNs.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.13-arch1-1
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.0rc0+233.gec0996c675
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3
setuptools : 44.0.0
Cython : 0.29.14
pytest : None
hypothesis : None
sphinx : 2.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.12
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31414/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31414/timeline
| null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.