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/28613 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28613/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28613/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28613/events | https://github.com/pandas-dev/pandas/issues/28613 | 498,260,111 | MDU6SXNzdWU0OTgyNjAxMTE= | 28,613 | combine_first changes datatype | {
"avatar_url": "https://avatars.githubusercontent.com/u/16963976?v=4",
"events_url": "https://api.github.com/users/mohitanand001/events{/privacy}",
"followers_url": "https://api.github.com/users/mohitanand001/followers",
"following_url": "https://api.github.com/users/mohitanand001/following{/other_user}",
"gists_url": "https://api.github.com/users/mohitanand001/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mohitanand001",
"id": 16963976,
"login": "mohitanand001",
"node_id": "MDQ6VXNlcjE2OTYzOTc2",
"organizations_url": "https://api.github.com/users/mohitanand001/orgs",
"received_events_url": "https://api.github.com/users/mohitanand001/received_events",
"repos_url": "https://api.github.com/users/mohitanand001/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mohitanand001/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mohitanand001/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mohitanand001"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e102d8",
"de... | open | false | null | [] | null | 6 | 2019-09-25T12:40:05Z | 2021-10-17T17:43:02Z | null | CONTRIBUTOR | null | ```python
df_1 = pd.DataFrame(data = {'A' : [1, 2, 3], 'B' : [4, 5, 6]})
df_2 = pd.DataFrame(data = {'A' : [1, 20, 30], 'B' : [40, 50, 60], 'C' : [12, 34, 65]})
df_1.combine_first(df_2).dtypes
A int64
B int64
C float64
dtype: object
```
#### Problem description
The combine_first changes the datatype of the the column C to float64 from int64. Is this
an expected behavior
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.1.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.0
numpy : 1.16.2
pytz : 2018.7
dateutil : 2.7.5
pip : 18.1
setuptools : 40.6.3
Cython : 0.29.2
pytest : 4.0.2
hypothesis : None
sphinx : 1.8.2
blosc : None
feather : 0.4.0
xlsxwriter : 1.1.2
lxml.etree : 4.2.5
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.10
IPython : 7.2.0
pandas_datareader: None
bs4 : 4.6.3
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.2.5
matplotlib : 3.0.2
numexpr : 2.6.8
odfpy : None
openpyxl : 2.5.12
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
s3fs : None
scipy : 1.1.0
sqlalchemy : 1.2.15
tables : 3.4.4
xarray : None
xlrd : 1.0.0
xlwt : 1.3.0
xlsxwriter : 1.1.2
</details>
| {
"+1": 3,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 3,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28613/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28613/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28614 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28614/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28614/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28614/events | https://github.com/pandas-dev/pandas/pull/28614 | 498,331,749 | MDExOlB1bGxSZXF1ZXN0MzIxMjgzNjQx | 28,614 | CI: troubleshoot s3fs failures | {
"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": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 3 | 2019-09-25T14:40:37Z | 2019-09-25T16:00:29Z | 2019-09-25T15:47:43Z | MEMBER | null | xref #28612. Recent failures used 0.3.4, the last passing build I see used 0.2.0 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28614/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28614/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28614.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28614",
"merged_at": "2019-09-25T15:47:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28614.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28614"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28615 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28615/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28615/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28615/events | https://github.com/pandas-dev/pandas/pull/28615 | 498,373,169 | MDExOlB1bGxSZXF1ZXN0MzIxMzE3ODIw | 28,615 | Backport PR #28614 on branch 0.25.x (CI: troubleshoot s3fs failures) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 5 | 2019-09-25T15:48:08Z | 2019-09-26T12:24:13Z | 2019-09-26T12:24:13Z | NONE | null | Backport PR #28614: CI: troubleshoot s3fs failures | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28615/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28615/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28615.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28615",
"merged_at": "2019-09-26T12:24:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28615.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28615"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28616 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28616/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28616/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28616/events | https://github.com/pandas-dev/pandas/issues/28616 | 498,384,021 | MDU6SXNzdWU0OTgzODQwMjE= | 28,616 | CI: Revert s3fs pin | {
"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"
} | 1 | 2019-09-25T16:07:44Z | 2019-11-15T15:25:57Z | 2019-11-15T15:25:57Z | MEMBER | null | xref #28612, #28614.
CI was failing with newer versions of s3fs, so we pinned it.
Need to figure out if it's still failing with new versions and if so, why. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28616/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28616/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28617 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28617/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28617/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28617/events | https://github.com/pandas-dev/pandas/issues/28617 | 498,432,912 | MDU6SXNzdWU0OTg0MzI5MTI= | 28,617 | element-wise value comparison noticeably slower for large-scale dataframes | {
"avatar_url": "https://avatars.githubusercontent.com/u/10853125?v=4",
"events_url": "https://api.github.com/users/leo4183/events{/privacy}",
"followers_url": "https://api.github.com/users/leo4183/followers",
"following_url": "https://api.github.com/users/leo4183/following{/other_user}",
"gists_url": "https://api.github.com/users/leo4183/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/leo4183",
"id": 10853125,
"login": "leo4183",
"node_id": "MDQ6VXNlcjEwODUzMTI1",
"organizations_url": "https://api.github.com/users/leo4183/orgs",
"received_events_url": "https://api.github.com/users/leo4183/received_events",
"repos_url": "https://api.github.com/users/leo4183/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/leo4183/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo4183/subscriptions",
"type": "User",
"url": "https://api.github.com/users/leo4183"
} | [] | closed | false | null | [] | null | 1 | 2019-09-25T17:50:42Z | 2019-09-25T18:09:25Z | 2019-09-25T18:09:25Z | NONE | null | #### Problem Description
element-wise value comparison noticeably slower for large-scale dataframes, compared to corresponding numpy array value comparison (although in older pandas version, the operation speed was acceptable).
```python
import numpy as np
import pandas as pd
x = pd.DataFrame(np.random.rand(3000*4000).reshape((3000,-1)))
# pandas 0.25.1
%timeit x>0.0
1.72 s ± 3.23 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
# pandas 0.17.1
%timeit x>0.0
115 ms ± 114 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
%timeit x.values>0.0
13.1 ms ± 148 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
#### INSTALLED VERSIONS
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 4.18.0-80.7.2.el8_0.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.1
numpy : 1.17.2 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28617/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28617/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28618 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28618/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28618/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28618/events | https://github.com/pandas-dev/pandas/issues/28618 | 498,443,533 | MDU6SXNzdWU0OTg0NDM1MzM= | 28,618 | Update plot docs when backend is set. | {
"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"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 241332... | open | false | null | [] | null | 2 | 2019-09-25T18:12:08Z | 2021-07-21T05:00:25Z | null | CONTRIBUTOR | null | As part of the backend callback, can / should we copy the docstring from the backend to the `DataFrame.plot` object (including methods like DataFrame.plot.scatter)?
There may be backend-specific notes or behavior. It'd be nice if those were transferred over.
cc @jsignell. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28618/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28618/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28619 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28619/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28619/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28619/events | https://github.com/pandas-dev/pandas/issues/28619 | 498,467,316 | MDU6SXNzdWU0OTg0NjczMTY= | 28,619 | Allow users to pass backend option to `.plot()` | {
"avatar_url": "https://avatars.githubusercontent.com/u/4806877?v=4",
"events_url": "https://api.github.com/users/jsignell/events{/privacy}",
"followers_url": "https://api.github.com/users/jsignell/followers",
"following_url": "https://api.github.com/users/jsignell/following{/other_user}",
"gists_url": "https://api.github.com/users/jsignell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jsignell",
"id": 4806877,
"login": "jsignell",
"node_id": "MDQ6VXNlcjQ4MDY4Nzc=",
"organizations_url": "https://api.github.com/users/jsignell/orgs",
"received_events_url": "https://api.github.com/users/jsignell/received_events",
"repos_url": "https://api.github.com/users/jsignell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jsignell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jsignell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jsignell"
} | [
{
"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 | null | [] | null | 1 | 2019-09-25T19:03:02Z | 2019-11-05T17:07:09Z | 2019-11-05T17:07:09Z | CONTRIBUTOR | null | Once you have installed another plotting library with a pandas.plotting entrypoint it would be nice to be able to toggle back and forth between different backends even within on session.
## What currently exists
```python
pd.options.plotting.backend = 'holoviews'
```
## Proposed additional API
```python
df.plot(backend='holoviews')
```
This would be particularly useful when a particular backend doesn't support a certain type of plot, or you need to use a backend to get some specific functionality but don't want to use if for your whole notebook.
@datapythonista - @TomAugspurger mentioned that you might have opinions on this.
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28619/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28619/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28620 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28620/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28620/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28620/events | https://github.com/pandas-dev/pandas/issues/28620 | 498,479,535 | MDU6SXNzdWU0OTg0Nzk1MzU= | 28,620 | dataframe index not showing up bold after conda update | {
"avatar_url": "https://avatars.githubusercontent.com/u/32708833?v=4",
"events_url": "https://api.github.com/users/rdmtinez/events{/privacy}",
"followers_url": "https://api.github.com/users/rdmtinez/followers",
"following_url": "https://api.github.com/users/rdmtinez/following{/other_user}",
"gists_url": "https://api.github.com/users/rdmtinez/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rdmtinez",
"id": 32708833,
"login": "rdmtinez",
"node_id": "MDQ6VXNlcjMyNzA4ODMz",
"organizations_url": "https://api.github.com/users/rdmtinez/orgs",
"received_events_url": "https://api.github.com/users/rdmtinez/received_events",
"repos_url": "https://api.github.com/users/rdmtinez/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rdmtinez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rdmtinez/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rdmtinez"
} | [] | closed | false | null | [] | null | 5 | 2019-09-25T19:31:20Z | 2019-12-10T17:03:13Z | 2019-12-10T17:03:12Z | NONE | null | ```python
import numpy as np
import pandas as pd
%config InteractiveShell.ast_node_interactivity='all'
df = pd.DataFrame(np.random.randint(0,100,size=(100, 4)), columns=list('ABCD'))
df
```
#### Problem description
During my work today I decided to update conda when I started getting some random errors which I can't recall anymore. After the update I noticed that the indeces in the printouts of my dataframes were no longer bold. Its not a big deal, buts it is visually unappealing. If possible I'd like to fix this (if it is an issue with pandas), but I've never contributed a fix to anything before :) and I don't even know where to start hunting for the bug.
#### Expected Output
Indeces should be bold, just like column names---at least they've always were before the conda update.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 5.0.0-29-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.1
numpy : 1.16.5
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.2.0
Cython : 0.29.13
pytest : 5.1.2
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.1
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 : 2.6.3
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.8
tables : 3.5.2
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.1
</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/28620/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28620/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28621 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28621/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28621/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28621/events | https://github.com/pandas-dev/pandas/pull/28621 | 498,480,165 | MDExOlB1bGxSZXF1ZXN0MzIxNDAzNTgx | 28,621 | DEPR: Deprecate Index.set_value | {
"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": "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": "e99695",
"default": f... | 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 | 2019-09-25T19:32:53Z | 2019-10-03T06:56:14Z | 2019-10-03T06:56:11Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Deprecates ``Index.set_value``. This is a very little used and confusing method IMO.
For a given index ``idx``, array ``arr``, value ``idx_val`` in ``idx`` and a new value of ``val``, ``idx.set_value(arr, idx_val, val)`` is equivalent to ``arr[idx.get_loc(idx_val) = val``, which is more standard and should be used instead.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28621/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28621/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28621.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28621",
"merged_at": "2019-10-03T06:56:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28621.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28621"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28622 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28622/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28622/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28622/events | https://github.com/pandas-dev/pandas/pull/28622 | 498,484,207 | MDExOlB1bGxSZXF1ZXN0MzIxNDA2OTA2 | 28,622 | ENH: Allow plotting backend to be an option | {
"avatar_url": "https://avatars.githubusercontent.com/u/4806877?v=4",
"events_url": "https://api.github.com/users/jsignell/events{/privacy}",
"followers_url": "https://api.github.com/users/jsignell/followers",
"following_url": "https://api.github.com/users/jsignell/following{/other_user}",
"gists_url": "https://api.github.com/users/jsignell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jsignell",
"id": 4806877,
"login": "jsignell",
"node_id": "MDQ6VXNlcjQ4MDY4Nzc=",
"organizations_url": "https://api.github.com/users/jsignell/orgs",
"received_events_url": "https://api.github.com/users/jsignell/received_events",
"repos_url": "https://api.github.com/users/jsignell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jsignell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jsignell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jsignell"
} | [
{
"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 | 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"
} | 5 | 2019-09-25T19:42:15Z | 2019-11-05T17:07:14Z | 2019-11-05T17:07:09Z | CONTRIBUTOR | null | - [x] closes #28619
- [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/28622/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28622/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28622.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28622",
"merged_at": "2019-11-05T17:07:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28622.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28622"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28623 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28623/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28623/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28623/events | https://github.com/pandas-dev/pandas/pull/28623 | 498,524,360 | MDExOlB1bGxSZXF1ZXN0MzIxNDM5NTkz | 28,623 | DOC: start using new bootstrap-based sphinx theme | {
"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 | [] | null | 11 | 2019-09-25T21:07:08Z | 2019-10-04T20:12:55Z | 2019-10-04T20:12:38Z | MEMBER | null | closes https://github.com/pandas-dev/pandas/issues/15556/
I want to propose that we start using the new bootstrap-based theme that is being developed at https://github.com/pandas-dev/pandas-sphinx-theme/ for the dev docs.
This way it will already be used for the docs at https://dev.pandas.io/docs/ so it can get some exposure before the next release.
How I did it in this PR is to install it from git master https://github.com/pandas-dev/pandas-sphinx-theme/ instead of moving the actual source into the pandas repo. I would prefer doing it like this for now, as that makes it easier to further iterate on the theme (the other repo is set up with a faster doc build (disabled ipython directive + smaller api) and automatic preview using doctr on travis). In a later stage, we can still move it here if we want (or move the pandas-specific customizations here).
A preview (of a subset, not all API pages) can be seen at https://dev.pandas.io/pandas-sphinx-theme/
There are still several "must todo's" to get the theme in a decent enough state for a release. There are some open issues on the theme repo, but I can also open an issue here to keep track of those.
And of course, feedback on the theme is very welcome.
I made two other changes:
- moved the install.rst into the getting_started directory (so it is not a top-level navigation item). Given that the new website will have a page with a quick install linking to this more advanced install page, I think that is fine (and also, on a reworked home page of the docs it could also get a prominent place without being in the navigation bar)
- Idem for the ecosystem page, as this will also get more exposure on the new markdown website (we actually need to remove that page / reconcile it with the website, but let's leave that for another PR) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28623/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28623/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28623.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28623",
"merged_at": "2019-10-04T20:12:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28623.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28623"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28624 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28624/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28624/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28624/events | https://github.com/pandas-dev/pandas/pull/28624 | 498,594,101 | MDExOlB1bGxSZXF1ZXN0MzIxNDk0NDU0 | 28,624 | REF: separate out dispatch-centric ops functions | {
"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-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 | 2019-09-26T01:03:07Z | 2019-09-26T15:42:46Z | 2019-09-26T15:39:54Z | MEMBER | null | Seems like a reasonable chunk of stuff to get out of `__init__`.
`dispatch_to_series` is not moved because it will end up using `array_ops` and I don't want to introduce circular dependencies. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28624/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28624/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28624.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28624",
"merged_at": "2019-09-26T15:39:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28624.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28624"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28625 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28625/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28625/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28625/events | https://github.com/pandas-dev/pandas/issues/28625 | 498,602,428 | MDU6SXNzdWU0OTg2MDI0Mjg= | 28,625 | Date type output changes when using df.column.unique()[i] | {
"avatar_url": "https://avatars.githubusercontent.com/u/379357?v=4",
"events_url": "https://api.github.com/users/jwhendy/events{/privacy}",
"followers_url": "https://api.github.com/users/jwhendy/followers",
"following_url": "https://api.github.com/users/jwhendy/following{/other_user}",
"gists_url": "https://api.github.com/users/jwhendy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jwhendy",
"id": 379357,
"login": "jwhendy",
"node_id": "MDQ6VXNlcjM3OTM1Nw==",
"organizations_url": "https://api.github.com/users/jwhendy/orgs",
"received_events_url": "https://api.github.com/users/jwhendy/received_events",
"repos_url": "https://api.github.com/users/jwhendy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jwhendy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jwhendy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jwhendy"
} | [
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | null | 5 | 2019-09-26T01:35:14Z | 2020-04-23T14:05:40Z | 2020-04-23T14:05:28Z | NONE | null | Apologies if this is somehow expected. I admit I don't know the intricacies of all date types and what each of these is designed to return, but I found the result surprising.
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
dates = [pd.Timestamp(year=2019, month=m, d=1) for m in range(1, 6)]
df = pd.DataFrame({'date': dates})
>>> df.iloc[2].date
Timestamp('2019-03-01 00:00:00')
>>> df.iloc[2].date.year
2019
>>> df.date.unique()[2]
numpy.datetime64('2019-03-01T00:00:00.000000000')
>>> df.date.unique()[2].year
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'numpy.datetime64' object has no attribute 'year'
```
#### Problem description
I was subsetting data based on unique dates in a data frame. Part of my code used a string formatter, assuming I could access `x.year` when I got the `AttributeError` above.
#### Expected Output
Intuitively, I would expect that any incantation of obtaining values from a data frame should give me the type that's there, not a new type I don't expect.
Again, not being familiar with the intricacies of the various types and what's going on behind the curtains, this could easily be a false assumption and somehow `pd.Timestamp` and `np.datetime64` are more closely related than I understand and the call to `.unique()` is expected to cast one to the other?
#### Output of ``pd.show_versions()``
<details>
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.1-arch1-1-ARCH
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.1
numpy : 1.17.1
pytz : 2019.2
dateutil : 2.8.0
pip : 19.0.3
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : 2.6.3
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : None
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/28625/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28625/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28626 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28626/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28626/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28626/events | https://github.com/pandas-dev/pandas/pull/28626 | 498,646,058 | MDExOlB1bGxSZXF1ZXN0MzIxNTI3MTMy | 28,626 | REF: Assert json roundtrip equal | {
"avatar_url": "https://avatars.githubusercontent.com/u/48276939?v=4",
"events_url": "https://api.github.com/users/bganglia/events{/privacy}",
"followers_url": "https://api.github.com/users/bganglia/followers",
"following_url": "https://api.github.com/users/bganglia/following{/other_user}",
"gists_url": "https://api.github.com/users/bganglia/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bganglia",
"id": 48276939,
"login": "bganglia",
"node_id": "MDQ6VXNlcjQ4Mjc2OTM5",
"organizations_url": "https://api.github.com/users/bganglia/orgs",
"received_events_url": "https://api.github.com/users/bganglia/received_events",
"repos_url": "https://api.github.com/users/bganglia/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bganglia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bganglia/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bganglia"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": "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 | 2019-09-26T04:10:26Z | 2019-09-27T22:47:48Z | 2019-09-27T22:47:24Z | CONTRIBUTOR | null | Replaces a some frequently repeated lines with a function.
- [x] closes #28555
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28626/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28626/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28626.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28626",
"merged_at": "2019-09-27T22:47:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28626.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28626"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28627 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28627/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28627/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28627/events | https://github.com/pandas-dev/pandas/pull/28627 | 498,690,304 | MDExOlB1bGxSZXF1ZXN0MzIxNTYyMTM0 | 28,627 | Backport PR #28357 on branch 0.25.x (Change conda channel order for Windows builds) | {
"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"
} | [] | 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"
} | 2 | 2019-09-26T06:40:54Z | 2019-09-26T11:40:36Z | 2019-09-26T11:32:27Z | NONE | null | Backport PR #28357: Change conda channel order for Windows builds | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28627/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28627/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28627.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28627",
"merged_at": "2019-09-26T11:32:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28627.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28627"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28628 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28628/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28628/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28628/events | https://github.com/pandas-dev/pandas/pull/28628 | 498,700,958 | MDExOlB1bGxSZXF1ZXN0MzIxNTcwNzIz | 28,628 | TST: loc misbehaves when Period is at start of 3-level MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/34047134?v=4",
"events_url": "https://api.github.com/users/proost/events{/privacy}",
"followers_url": "https://api.github.com/users/proost/followers",
"following_url": "https://api.github.com/users/proost/following{/other_user}",
"gists_url": "https://api.github.com/users/proost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/proost",
"id": 34047134,
"login": "proost",
"node_id": "MDQ6VXNlcjM0MDQ3MTM0",
"organizations_url": "https://api.github.com/users/proost/orgs",
"received_events_url": "https://api.github.com/users/proost/received_events",
"repos_url": "https://api.github.com/users/proost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/proost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/proost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/proost"
} | [
{
"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": "eb... | 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 | 2019-09-26T07:08:53Z | 2019-10-30T14:04:29Z | 2019-10-30T12:23:35Z | CONTRIBUTOR | null | If index is MultiIndex and level of 0 is PeriodIndex, loc function raise
exception if all input of loc does not match index values
Background: This bug only happens when MultiIndex's level is 3 and first level index is PeriodIndex. In this situation, if someone access one row using a '.loc' with a miss match key, then would not raise exception.
Someone already change what i try to do `parse_time_string` function in '_libs.tslibs.parsing'.
in the past,
```
def parse_time_string(arg, freq=None, dayfirst=None, yearfirst=None):
if not isinstance(arg, str):
return arg
```
What i try to do:
```
def parse_time_string(arg, freq=None, dayfirst=None, yearfirst=None):
if not isinstance(arg, str):
raise TypeError
```
now in master:
```
def parse_time_string(arg, freq=None, dayfirst=None, yearfirst=None):
if not isinstance(arg, str):
raise TypeError("parse_time_string argument must be str")
```
Just add tests for issue.
- [x] closes (#20684)
- [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/28628/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28628/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28628.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28628",
"merged_at": "2019-10-30T12:23:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28628.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28628"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28629 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28629/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28629/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28629/events | https://github.com/pandas-dev/pandas/issues/28629 | 498,729,097 | MDU6SXNzdWU0OTg3MjkwOTc= | 28,629 | BUG: to_datetime inconsistent output container type | {
"avatar_url": "https://avatars.githubusercontent.com/u/8629629?v=4",
"events_url": "https://api.github.com/users/fjetter/events{/privacy}",
"followers_url": "https://api.github.com/users/fjetter/followers",
"following_url": "https://api.github.com/users/fjetter/following{/other_user}",
"gists_url": "https://api.github.com/users/fjetter/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fjetter",
"id": 8629629,
"login": "fjetter",
"node_id": "MDQ6VXNlcjg2Mjk2Mjk=",
"organizations_url": "https://api.github.com/users/fjetter/orgs",
"received_events_url": "https://api.github.com/users/fjetter/received_events",
"repos_url": "https://api.github.com/users/fjetter/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fjetter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fjetter/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fjetter"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
... | open | false | null | [] | null | 5 | 2019-09-26T08:12:06Z | 2020-09-21T21:35:23Z | null | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```python
>>> import pandas as pd
>>> type(pd.to_datetime(pd.Categorical(['2019-09-24 17:00:00']*50)))
<class 'pandas.core.indexes.datetimes.DatetimeIndex'>
>>> type(pd.to_datetime(pd.Categorical(['2019-09-24 17:00:00']*51)))
<class 'pandas.core.indexes.category.CategoricalIndex'>
```
#### Problem description
The output container type is inconsistent for `pd.to_datetime` and flips once the series is above 50 rows. This is an issue since the `CategoricalIndex` class does not support DateTime-like operations (tz_localize, stftime, etc.).
Since the behaviour switches between differently sized Series objects this is particularly troublesome since code behaves quite different depending on the amount of data we feed it (e.g. unit test vs. production).
#### Expected Output
Consistent container type.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.9.184-linuxkit
machine : x86_64
processor :
byteorder : little
LC_ALL : C.UTF-8
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.1
numpy : 1.17.0
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.2
setuptools : 39.1.0
Cython : None
pytest : 5.1.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.0.5
lxml.etree : 4.4.1
html5lib : None
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.7.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 2.5.4
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
s3fs : None
scipy : None
sqlalchemy : 1.3.7
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 1.0.5
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28629/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28629/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28630 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28630/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28630/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28630/events | https://github.com/pandas-dev/pandas/pull/28630 | 498,813,349 | MDExOlB1bGxSZXF1ZXN0MzIxNjYxMDk5 | 28,630 | WEB: Add diversity note to team.md | {
"avatar_url": "https://avatars.githubusercontent.com/u/30805504?v=4",
"events_url": "https://api.github.com/users/dorothykiz1/events{/privacy}",
"followers_url": "https://api.github.com/users/dorothykiz1/followers",
"following_url": "https://api.github.com/users/dorothykiz1/following{/other_user}",
"gists_url": "https://api.github.com/users/dorothykiz1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dorothykiz1",
"id": 30805504,
"login": "dorothykiz1",
"node_id": "MDQ6VXNlcjMwODA1NTA0",
"organizations_url": "https://api.github.com/users/dorothykiz1/orgs",
"received_events_url": "https://api.github.com/users/dorothykiz1/received_events",
"repos_url": "https://api.github.com/users/dorothykiz1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dorothykiz1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dorothykiz1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dorothykiz1"
} | [
{
"color": "23ef97",
"default": false,
"description": "pandas website",
"id": 1508144531,
"name": "Web",
"node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 14 | 2019-09-26T10:57:22Z | 2019-10-04T08:48:40Z | 2019-10-04T02:13:39Z | CONTRIBUTOR | null | @datapythonista kindly review
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28630/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28630/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28630.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28630",
"merged_at": "2019-10-04T02:13:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28630.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28630"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28631 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28631/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28631/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28631/events | https://github.com/pandas-dev/pandas/issues/28631 | 498,824,962 | MDU6SXNzdWU0OTg4MjQ5NjI= | 28,631 | BUG: DataFrame.reindex not following limit - 方法参数的错误 | {
"avatar_url": "https://avatars.githubusercontent.com/u/42970705?v=4",
"events_url": "https://api.github.com/users/french-home/events{/privacy}",
"followers_url": "https://api.github.com/users/french-home/followers",
"following_url": "https://api.github.com/users/french-home/following{/other_user}",
"gists_url": "https://api.github.com/users/french-home/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/french-home",
"id": 42970705,
"login": "french-home",
"node_id": "MDQ6VXNlcjQyOTcwNzA1",
"organizations_url": "https://api.github.com/users/french-home/orgs",
"received_events_url": "https://api.github.com/users/french-home/received_events",
"repos_url": "https://api.github.com/users/french-home/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/french-home/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/french-home/subscriptions",
"type": "User",
"url": "https://api.github.com/users/french-home"
} | [
{
"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 s... | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 10 | 2019-09-26T11:22:35Z | 2019-10-01T12:00:38Z | 2019-10-01T12:00:38Z | NONE | null | Python版本: 3.6.5
版本:pandas == 0.24.2
```python
import pandas as pd
Data = [
["A", "A", "A"],
["B", "B", "B"],
["C", "C", "C"],
["D", "D", "D"],
]
test1 = pd.DataFrame(Data)
print(test1)
print("------------")
test1 = test1.reindex([0, 1, 2, 3, 4, 5], method="ffill", limit=1)
print(test1)
```

limit参数限制数据继续向后填充
版本:pandas==0.25.1
```python
import pandas as pd
Data = [
["A", "A", "A"],
["B", "B", "B"],
["C", "C", "C"],
["D", "D", "D"],
]
test1 = pd.DataFrame(Data)
print(test1)
print("------------")
test1 = test1.reindex([0, 1, 2, 3, 4, 5], method="ffill", limit=1)
print(test1)
```

limit参数并没有限制数据继续向后填充 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28631/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28631/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28632 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28632/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28632/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28632/events | https://github.com/pandas-dev/pandas/pull/28632 | 498,847,070 | MDExOlB1bGxSZXF1ZXN0MzIxNjg4NDI0 | 28,632 | BUG: DataFrame.to_html validates formatters has the correct length | {
"avatar_url": "https://avatars.githubusercontent.com/u/26471482?v=4",
"events_url": "https://api.github.com/users/guipleite/events{/privacy}",
"followers_url": "https://api.github.com/users/guipleite/followers",
"following_url": "https://api.github.com/users/guipleite/following{/other_user}",
"gists_url": "https://api.github.com/users/guipleite/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/guipleite",
"id": 26471482,
"login": "guipleite",
"node_id": "MDQ6VXNlcjI2NDcxNDgy",
"organizations_url": "https://api.github.com/users/guipleite/orgs",
"received_events_url": "https://api.github.com/users/guipleite/received_events",
"repos_url": "https://api.github.com/users/guipleite/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/guipleite/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/guipleite/subscriptions",
"type": "User",
"url": "https://api.github.com/users/guipleite"
} | [
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] | 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 | 2019-09-26T12:18:52Z | 2019-10-19T01:22:56Z | 2019-10-07T15:01:03Z | CONTRIBUTOR | null | - [x] closes #28469
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@gabriellm1 @hugoecarl | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28632/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28632/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28632.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28632",
"merged_at": "2019-10-07T15:01:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28632.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28632"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28633 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28633/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28633/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28633/events | https://github.com/pandas-dev/pandas/issues/28633 | 498,865,619 | MDU6SXNzdWU0OTg4NjU2MTk= | 28,633 | Build Error, pip is trying to build a wheel using "pep517" | {
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "3465A4",
"default": false,
... | 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"
} | 13 | 2019-09-26T12:52:58Z | 2019-11-04T13:42:42Z | 2019-11-04T13:42:42Z | MEMBER | null | I get an error while following the [contributing guide](https://dev.pandas.io/docs/development/contributing.html) on creating a python eviroment using pip.
when I run the command:
```
python -m pip install -e . --no-build-isolation
```
I get an error that says:
> error: invalid command 'bdist_wheel'
#### To repreduce this issue:
1. Install [Arch linux](https://www.archlinux.org/download/), September release(and upgrade to the latest version)
2. Install :
1. ```python3-venv```
2. ```python-pip```
3. Follow the [contributing guide](https://dev.pandas.io/docs/development/contributing.html#id12)
1. ```git clone https://github.com/your-user-name/pandas.git pandas-yourname```
2. ```cd pandas-yourname```
3. ```git remote add upstream https://github.com/pandas-dev/pandas.git```
4. ```python3 -m venv ~/virtualenvs/pandas-dev```
5. ```. ~/virtualenvs/pandas-dev/bin/activate```
6. ```python -m pip install -r requirements-dev.txt```
7. ```python setup.py build_ext --inplace -j 4```
8. ```python -m pip install -e . --no-build-isolation```
on line 8 I get an error.
P.S
This is my second time opening an issue(ever), please let me know if what else I should mention/include/change in order to be more productive.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28633/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28633/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28634 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28634/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28634/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28634/events | https://github.com/pandas-dev/pandas/pull/28634 | 498,873,056 | MDExOlB1bGxSZXF1ZXN0MzIxNzEwMTI1 | 28,634 | BUG: value_counts can handle the case even with empty groups (#28479) | {
"avatar_url": "https://avatars.githubusercontent.com/u/19762154?v=4",
"events_url": "https://api.github.com/users/0xF4D3C0D3/events{/privacy}",
"followers_url": "https://api.github.com/users/0xF4D3C0D3/followers",
"following_url": "https://api.github.com/users/0xF4D3C0D3/following{/other_user}",
"gists_url": "https://api.github.com/users/0xF4D3C0D3/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0xF4D3C0D3",
"id": 19762154,
"login": "0xF4D3C0D3",
"node_id": "MDQ6VXNlcjE5NzYyMTU0",
"organizations_url": "https://api.github.com/users/0xF4D3C0D3/orgs",
"received_events_url": "https://api.github.com/users/0xF4D3C0D3/received_events",
"repos_url": "https://api.github.com/users/0xF4D3C0D3/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0xF4D3C0D3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xF4D3C0D3/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0xF4D3C0D3"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
... | 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 | 2019-09-26T13:06:48Z | 2019-11-07T21:20:01Z | 2019-11-07T21:19:58Z | CONTRIBUTOR | null | * If applying rep to recons_labels go fail, use ids which has no
consecutive duplicates instead.
- [x] closes #28479
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xuancong84 found that value_counts() crashes if `groupby` object contains empty groups.
However, even though I made the construction of DataFrame don't skip empty rows, it still crashed.
Till then, I already tried in many ways though, in this time I tried to correct the callee `self.grouper.recons_labels`. After several tests, I found that If freq of `Grouper` is too long so that it has empty groups in some periods then it crashes. And also have found that this is solved by using `ids` which has no consecutive duplicates instead of `self.grouper.recons_labels`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28634/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28634/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28634.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28634",
"merged_at": "2019-11-07T21:19:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28634.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28634"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28635 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28635/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28635/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28635/events | https://github.com/pandas-dev/pandas/issues/28635 | 498,913,237 | MDU6SXNzdWU0OTg5MTMyMzc= | 28,635 | Resample on MultiIndex level takes much more time than on normal column | {
"avatar_url": "https://avatars.githubusercontent.com/u/8490243?v=4",
"events_url": "https://api.github.com/users/pgrudzinski/events{/privacy}",
"followers_url": "https://api.github.com/users/pgrudzinski/followers",
"following_url": "https://api.github.com/users/pgrudzinski/following{/other_user}",
"gists_url": "https://api.github.com/users/pgrudzinski/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pgrudzinski",
"id": 8490243,
"login": "pgrudzinski",
"node_id": "MDQ6VXNlcjg0OTAyNDM=",
"organizations_url": "https://api.github.com/users/pgrudzinski/orgs",
"received_events_url": "https://api.github.com/users/pgrudzinski/received_events",
"repos_url": "https://api.github.com/users/pgrudzinski/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pgrudzinski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pgrudzinski/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pgrudzinski"
} | [
{
"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": "207de5",
"default": false,
"description": "res... | open | false | null | [] | null | 1 | 2019-09-26T14:13:47Z | 2021-07-21T05:03:38Z | null | NONE | null | #### Code Sample
```python
import pandas as pd
import numpy as np
n=80000
g=5
index = pd.MultiIndex.from_product([
np.arange(g),
pd.to_timedelta(np.arange(n), unit='s')
])
data = pd.DataFrame(
np.random.randint(0,1000,size=(len(index))),
index=index
)
%timeit data.groupby(level=0).resample('10s',level=1).mean()
# 3.93 s ± 295 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
%timeit data.reset_index(1).groupby(level=0).resample('10s',on='level_1').mean()
# 157 ms ± 3.33 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
```
#### Problem description
``resample`` seem to take much more time when resampling on a level of MultiIndex instead of normal data column. The second, faster approach is more convoluted and is not what first comes to mind.
#### Expected Output
Both operations should around the same amount of time with second possibly slightly more, because of additional reset_index operation. If the difference is expected than first operation should show warning hinting on optimal solution.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.1
numpy : 1.16.4
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.2
setuptools : 41.0.1
Cython : 0.29.13
pytest : 5.0.1
hypothesis : None
sphinx : 2.1.2
blosc : None
feather : None
xlsxwriter : 1.1.8
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
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 : 2.6.2
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.7
tables : 3.5.2
xarray : None
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/28635/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28635/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28636 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28636/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28636/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28636/events | https://github.com/pandas-dev/pandas/pull/28636 | 498,934,730 | MDExOlB1bGxSZXF1ZXN0MzIxNzYwMDk3 | 28,636 | "series_examples": _ne_example_SERIES added | {
"avatar_url": "https://avatars.githubusercontent.com/u/38443741?v=4",
"events_url": "https://api.github.com/users/RanDan363/events{/privacy}",
"followers_url": "https://api.github.com/users/RanDan363/followers",
"following_url": "https://api.github.com/users/RanDan363/following{/other_user}",
"gists_url": "https://api.github.com/users/RanDan363/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RanDan363",
"id": 38443741,
"login": "RanDan363",
"node_id": "MDQ6VXNlcjM4NDQzNzQx",
"organizations_url": "https://api.github.com/users/RanDan363/orgs",
"received_events_url": "https://api.github.com/users/RanDan363/received_events",
"repos_url": "https://api.github.com/users/RanDan363/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RanDan363/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RanDan363/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RanDan363"
} | [] | closed | false | null | [] | null | 3 | 2019-09-26T14:47:23Z | 2019-11-11T07:11:29Z | 2019-11-11T07:11:29Z | NONE | null | "series_examples": _ne_example_SERIES added
- [ ] 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/28636/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28636/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28636.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28636",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28636.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28636"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28637 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28637/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28637/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28637/events | https://github.com/pandas-dev/pandas/pull/28637 | 498,972,155 | MDExOlB1bGxSZXF1ZXN0MzIxNzkwNTUw | 28,637 | CLN: streamline Series _construct_result 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-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 | 2019-09-26T15:49:51Z | 2019-10-01T16:58:20Z | 2019-10-01T16:53:18Z | MEMBER | null | After this, the three Series methods in `ops.__init__` are just about in sync, the last holdout being alignment behavior in the comparison method. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28637/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28637/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28637.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28637",
"merged_at": "2019-10-01T16:53:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28637.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28637"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28638 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28638/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28638/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28638/events | https://github.com/pandas-dev/pandas/pull/28638 | 498,987,582 | MDExOlB1bGxSZXF1ZXN0MzIxODAzMzA4 | 28,638 | REF: Consolidate alignment calls in DataFrame 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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] | closed | false | null | [] | {
"closed_at": "2020-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 | 2019-09-26T16:19:52Z | 2019-10-02T12:44:29Z | 2019-10-02T11:52:27Z | MEMBER | null | Next step after this will be to consolidate _construct_result calls. That hinges on some not-obvious alignment behaviors. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28638/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28638/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28638.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28638",
"merged_at": "2019-10-02T11:52:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28638.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28638"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28639 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28639/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28639/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28639/events | https://github.com/pandas-dev/pandas/issues/28639 | 499,020,999 | MDU6SXNzdWU0OTkwMjA5OTk= | 28,639 | ENH: Add 'wheel' to requirements-dev.txt when user is using pip and Arch linux | {
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
} | [] | closed | false | null | [] | null | 1 | 2019-09-26T17:32:46Z | 2019-09-26T18:37:48Z | 2019-09-26T18:37:48Z | MEMBER | null | I had [This issue](https://github.com/pandas-dev/pandas/issues/28633) and appendig the word 'wheel' to requirements-dev.txt solved it. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28639/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28639/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28640 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28640/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28640/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28640/events | https://github.com/pandas-dev/pandas/issues/28640 | 499,021,784 | MDU6SXNzdWU0OTkwMjE3ODQ= | 28,640 | AttributeError: 'Categorical' object has no attribute '_ordered' | {
"avatar_url": "https://avatars.githubusercontent.com/u/13803242?v=4",
"events_url": "https://api.github.com/users/jorwoods/events{/privacy}",
"followers_url": "https://api.github.com/users/jorwoods/followers",
"following_url": "https://api.github.com/users/jorwoods/following{/other_user}",
"gists_url": "https://api.github.com/users/jorwoods/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorwoods",
"id": 13803242,
"login": "jorwoods",
"node_id": "MDQ6VXNlcjEzODAzMjQy",
"organizations_url": "https://api.github.com/users/jorwoods/orgs",
"received_events_url": "https://api.github.com/users/jorwoods/received_events",
"repos_url": "https://api.github.com/users/jorwoods/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorwoods/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorwoods/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorwoods"
} | [
{
"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 | [] | null | 4 | 2019-09-26T17:34:36Z | 2019-09-26T19:06:44Z | 2019-09-26T19:06:44Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
x = pd.Series(list('abcdadcb'))
category = pd.Categorical(x.values, ordered=True, categories=list('abcd'))
x.astype(category)
```
#### Problem description
Trying to assign a variable an ordered category type failes with
`AttributeError: 'Categorical' object has no attribute '_ordered'`
#### Expected Output
The operations completes successfully and yields a series of categorical dtype that is ordered.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : None.None
pandas : 0.25.1
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 : 4.34.0
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.7.0
pandas_datareader: None
bs4 : 4.7.1
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.3.4
matplotlib : 3.1.0
numexpr : 2.6.9
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : 0.11.1
pytables : None
s3fs : None
scipy : 1.3.0
sqlalchemy : 1.3.5
tables : 3.5.2
xarray : None
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/28640/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28640/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28641 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28641/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28641/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28641/events | https://github.com/pandas-dev/pandas/issues/28641 | 499,024,772 | MDU6SXNzdWU0OTkwMjQ3NzI= | 28,641 | GroupBy(..., as_index=True).agg() drops index when | {
"avatar_url": "https://avatars.githubusercontent.com/u/10812?v=4",
"events_url": "https://api.github.com/users/adamhooper/events{/privacy}",
"followers_url": "https://api.github.com/users/adamhooper/followers",
"following_url": "https://api.github.com/users/adamhooper/following{/other_user}",
"gists_url": "https://api.github.com/users/adamhooper/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adamhooper",
"id": 10812,
"login": "adamhooper",
"node_id": "MDQ6VXNlcjEwODEy",
"organizations_url": "https://api.github.com/users/adamhooper/orgs",
"received_events_url": "https://api.github.com/users/adamhooper/received_events",
"repos_url": "https://api.github.com/users/adamhooper/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adamhooper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adamhooper/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adamhooper"
} | [
{
"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": "cdea3c",
"default": false,
"description": "Unit test(s) ne... | 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 | 2019-09-26T17:41:22Z | 2020-06-15T22:53:27Z | 2020-06-15T22:53:27Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```ipython
In [1]: import pandas as pd
In [2]: pd.DataFrame({"A": [1997], "B": pd.Series(["b"], dtype="category").cat.as_ordered()}).groupby("A", as_index=True).agg({"B": "size"})
Out[2]:
B
A
1997 1
In [3]: pd.DataFrame({"A": [1997], "B": pd.Series(["b"], dtype="category").cat.as_ordered()}).groupby("A", as_index=True).agg({"B": "min"})
Out[3]:
B
0 b
```
#### Problem description
When aggregating `min`, `max` or `first` of a categorical column, `.agg()` returns a dataframe with a default index instead of the index returned by `groupby()`.
(This may be related to #13416 ... but I think it's a clear, well-defined bug so maybe easier to resolve?)
In my case, I think I can work around this problem with a hack: if I `.agg({"B": ["min", "size"]})` and then ignore the `("B", "size")` output column, Pandas will output a dataframe with the correct index.
#### Expected Output
```
Out[3]:
B
A
1997 b
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 5.2.11-200.fc30.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.0
numpy : 1.16.1
pytz : 2018.9
dateutil : 2.8.0
pip : 19.0.3
setuptools : 40.8.0
Cython : 0.29.5
pytest : 4.5.0
hypothesis : None
sphinx : 2.1.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.2.5
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.2.0
pandas_datareader: None
bs4 : 4.6.3
bottleneck : None
fastparquet : 0.2.1
gcsfs : None
lxml.etree : 4.2.5
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.14.1
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/28641/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28641/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28642 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28642/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28642/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28642/events | https://github.com/pandas-dev/pandas/pull/28642 | 499,031,546 | MDExOlB1bGxSZXF1ZXN0MzIxODM4NjM0 | 28,642 | CLN: more Exceptions | {
"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-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 | 2019-09-26T17:56:50Z | 2019-09-27T14:23:02Z | 2019-09-27T11:48:49Z | MEMBER | null | 84 of these left. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28642/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28642/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28642.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28642",
"merged_at": "2019-09-27T11:48:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28642.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28642"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28643 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28643/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28643/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28643/events | https://github.com/pandas-dev/pandas/pull/28643 | 499,041,902 | MDExOlB1bGxSZXF1ZXN0MzIxODQ2ODY0 | 28,643 | BUG: Fix TypeError raised in libreduction | {
"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": "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-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"
} | 2 | 2019-09-26T18:19:31Z | 2019-10-02T20:24:37Z | 2019-10-02T19:58:34Z | MEMBER | null | This is a PITA and I'm not 100% happy with the solution here, open to suggestions.
There is a call to `util.get_value_at(labels, i)` that raises `TypeError` if `labels` is not an `ndarray`. This fixes that by checking for non-ndarray and handling that case correctly.
There is _also_ a case in master where we get an `UnboundLocalError` by referencing `result` before it is assigned. This patches that to raise a `ValueError` instead, _but_ AFAICT fixing the ndarray bug above made it so that the UnboundLocalError case is no longer reached in the tests. i.e. this change is definitely more correct, but we don't have a test case specific to it.
I'm also not wild about the specific exception-catching on L297-307 in core.apply, but don't see a viable alternative. 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/28643/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28643/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28643.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28643",
"merged_at": "2019-10-02T19:58:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28643.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28643"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28644 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28644/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28644/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28644/events | https://github.com/pandas-dev/pandas/pull/28644 | 499,077,837 | MDExOlB1bGxSZXF1ZXN0MzIxODc2MjU4 | 28,644 | Doc contribution pr06 | {
"avatar_url": "https://avatars.githubusercontent.com/u/33249563?v=4",
"events_url": "https://api.github.com/users/tolaa001/events{/privacy}",
"followers_url": "https://api.github.com/users/tolaa001/followers",
"following_url": "https://api.github.com/users/tolaa001/following{/other_user}",
"gists_url": "https://api.github.com/users/tolaa001/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tolaa001",
"id": 33249563,
"login": "tolaa001",
"node_id": "MDQ6VXNlcjMzMjQ5NTYz",
"organizations_url": "https://api.github.com/users/tolaa001/orgs",
"received_events_url": "https://api.github.com/users/tolaa001/received_events",
"repos_url": "https://api.github.com/users/tolaa001/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tolaa001/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tolaa001/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tolaa001"
} | [
{
"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"
} | 4 | 2019-09-26T19:38:55Z | 2019-09-27T17:03:49Z | 2019-09-27T15:53:47Z | CONTRIBUTOR | null | Documentation update fixing some of the methods with a PR06 error code which involved updating
- string to str
- integer to int
- boolean to bool
No tests required
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28644/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28644/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28644.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28644",
"merged_at": "2019-09-27T15:53:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28644.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28644"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28645 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28645/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28645/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28645/events | https://github.com/pandas-dev/pandas/pull/28645 | 499,090,367 | MDExOlB1bGxSZXF1ZXN0MzIxODg2NTYw | 28,645 | CLN: Exception in pickle loading | {
"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-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"
} | 13 | 2019-09-26T20:07:10Z | 2019-11-02T15:50:19Z | 2019-11-02T15:48:40Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28645/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28645/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28645.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28645",
"merged_at": "2019-11-02T15:48:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28645.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28645"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28646 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28646/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28646/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28646/events | https://github.com/pandas-dev/pandas/pull/28646 | 499,093,583 | MDExOlB1bGxSZXF1ZXN0MzIxODg5MTU0 | 28,646 | CLN: remove unused categories/ordered handling in astype | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "207... | 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 | 2019-09-26T20:14:18Z | 2019-09-27T14:58:51Z | 2019-09-27T11:48:03Z | MEMBER | null | This removes some unused code in the internals `astype`. There is a small change in behaviour though, when passing the categories/ordered keyword you now get TypeError instead of ValueError. But since that is Python's default behaviour, I would say this is rather a good fix. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28646/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28646/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28646.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28646",
"merged_at": "2019-09-27T11:48:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28646.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28646"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28647 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28647/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28647/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28647/events | https://github.com/pandas-dev/pandas/pull/28647 | 499,139,731 | MDExOlB1bGxSZXF1ZXN0MzIxOTI3MDQz | 28,647 | ENH: When using another plotting backend, minimize pre-processing | {
"avatar_url": "https://avatars.githubusercontent.com/u/4806877?v=4",
"events_url": "https://api.github.com/users/jsignell/events{/privacy}",
"followers_url": "https://api.github.com/users/jsignell/followers",
"following_url": "https://api.github.com/users/jsignell/following{/other_user}",
"gists_url": "https://api.github.com/users/jsignell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jsignell",
"id": 4806877,
"login": "jsignell",
"node_id": "MDQ6VXNlcjQ4MDY4Nzc=",
"organizations_url": "https://api.github.com/users/jsignell/orgs",
"received_events_url": "https://api.github.com/users/jsignell/received_events",
"repos_url": "https://api.github.com/users/jsignell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jsignell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jsignell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jsignell"
} | [
{
"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 | 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 | 2019-09-26T22:09:45Z | 2019-11-19T04:59:16Z | 2019-11-19T04:59:10Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I ran into this while implementing the hvplot backend. In hvplot you can do:
```python
df.hvplot.hist(y='y', by='category')
```
but with the pandas version
```python
pd.options.plotting.backend= 'holoviews'
df.plot.hist(y='y', by='category')
```
will fail because `data = data[y]` is called before the plotting is passed off to the backend.
Basically it seems like backend writers should be free to get the passed pandas objects with as little interference as 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/28647/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28647/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28647.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28647",
"merged_at": "2019-11-19T04:59:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28647.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28647"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28648 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28648/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28648/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28648/events | https://github.com/pandas-dev/pandas/pull/28648 | 499,164,896 | MDExOlB1bGxSZXF1ZXN0MzIxOTQ3OTg0 | 28,648 | CLN: Exception in nanops | {
"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-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 | 2019-09-26T23:46:05Z | 2019-09-27T14:24:36Z | 2019-09-27T11:45:46Z | MEMBER | null | The only relevant exception that gets raised by bottleneck AFAICT is a TypeError when we pass a `mask` kwarg that it doesn't accept. By avoiding this case at the beginning, we avoid having to catch the exception. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28648/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28648/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28648.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28648",
"merged_at": "2019-09-27T11:45:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28648.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28648"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28649 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28649/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28649/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28649/events | https://github.com/pandas-dev/pandas/pull/28649 | 499,165,372 | MDExOlB1bGxSZXF1ZXN0MzIxOTQ4Mzgz | 28,649 | CLN: Exception in io, plotting | {
"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 | [] | null | 6 | 2019-09-26T23:47:58Z | 2019-10-03T19:23:24Z | 2019-10-03T19:23:24Z | MEMBER | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28649/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28649/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28649.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28649",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28649.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28649"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/28650 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28650/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28650/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28650/events | https://github.com/pandas-dev/pandas/pull/28650 | 499,167,339 | MDExOlB1bGxSZXF1ZXN0MzIxOTQ5OTk2 | 28,650 | CLN: Exception catching in expressions | {
"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-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 | 2019-09-26T23:57:04Z | 2019-09-27T21:31:23Z | 2019-09-27T21:18: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/28650/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28650/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28650.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28650",
"merged_at": "2019-09-27T21:18:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28650.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28650"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/28651 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28651/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28651/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28651/events | https://github.com/pandas-dev/pandas/pull/28651 | 499,216,774 | MDExOlB1bGxSZXF1ZXN0MzIxOTg1NDI0 | 28,651 | CLN: Define and pin GroupBy properties without exec | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": ... | 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 | 2019-09-27T03:36:56Z | 2019-10-01T13:43:40Z | 2019-10-01T13:07:53Z | MEMBER | null | - [x] closes #16959
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
In an unrelated branch I found that this exec-generated code is a PITA to debug. So this PR finally gets rid of it. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28651/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28651/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28651.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28651",
"merged_at": "2019-10-01T13:07:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28651.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28651"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28652 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28652/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28652/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28652/events | https://github.com/pandas-dev/pandas/issues/28652 | 499,285,383 | MDU6SXNzdWU0OTkyODUzODM= | 28,652 | groupby indexing is giving the wrong index | {
"avatar_url": "https://avatars.githubusercontent.com/u/12756081?v=4",
"events_url": "https://api.github.com/users/landmann/events{/privacy}",
"followers_url": "https://api.github.com/users/landmann/followers",
"following_url": "https://api.github.com/users/landmann/following{/other_user}",
"gists_url": "https://api.github.com/users/landmann/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/landmann",
"id": 12756081,
"login": "landmann",
"node_id": "MDQ6VXNlcjEyNzU2MDgx",
"organizations_url": "https://api.github.com/users/landmann/orgs",
"received_events_url": "https://api.github.com/users/landmann/received_events",
"repos_url": "https://api.github.com/users/landmann/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/landmann/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/landmann/subscriptions",
"type": "User",
"url": "https://api.github.com/users/landmann"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
... | 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 | 2019-09-27T07:32:14Z | 2020-01-01T16:21:27Z | 2020-01-01T16:21:27Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
a = pd.DataFrame([range(3)]*3,index=map(str, range(3))).T
a.iloc[:,0] = [10, 11, 11]
a.groupby('0').apply(lambda x: print(x.index))
indexes = a.groupby('0').apply(lambda x: x.index)
print(indexes)
index_lengths = a.groupby('0').apply(lambda x: len(x.index))
print(index_lengths)
indexes_lengths = a.groupby('0').apply(lambda x: x.index).apply(len)
print(indexes_lengths)
assert indexes_lengths.equals(index_lengths), "Apply indexes are returning the wrong index"
```
#### Problem description
Groupby indexing is returning the wrong value. It is returning the indexes of the last group for all the groups.
#### Expected Output
```
0
10 Int64Index([0], dtype='int64')
11 Int64Index([1, 2], dtype='int64')
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 5.2.0-arch2-1-ARCH
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : C
LOCALE : None.None
pandas : 0.25.1
numpy : 1.15.4
pytz : 2019.1
dateutil : 2.8.0
pip : 19.1.1
setuptools : 41.0.1
Cython : 0.28.5
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : 0.4.0
xlsxwriter : None
lxml.etree : 4.3.4
html5lib : None
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.5.0
pandas_datareader: None
bs4 : None
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.3.4
matplotlib : 2.2.2
numexpr : 2.6.9
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
s3fs : 0.1.5
scipy : 1.3.1
sqlalchemy : None
tables : 3.4.4
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/28652/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28652/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28653 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28653/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28653/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28653/events | https://github.com/pandas-dev/pandas/issues/28653 | 499,296,367 | MDU6SXNzdWU0OTkyOTYzNjc= | 28,653 | ExcelWriter's append mode unable to write to existing worksheet | {
"avatar_url": "https://avatars.githubusercontent.com/u/1503410?v=4",
"events_url": "https://api.github.com/users/garygsw/events{/privacy}",
"followers_url": "https://api.github.com/users/garygsw/followers",
"following_url": "https://api.github.com/users/garygsw/following{/other_user}",
"gists_url": "https://api.github.com/users/garygsw/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/garygsw",
"id": 1503410,
"login": "garygsw",
"node_id": "MDQ6VXNlcjE1MDM0MTA=",
"organizations_url": "https://api.github.com/users/garygsw/orgs",
"received_events_url": "https://api.github.com/users/garygsw/received_events",
"repos_url": "https://api.github.com/users/garygsw/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/garygsw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/garygsw/subscriptions",
"type": "User",
"url": "https://api.github.com/users/garygsw"
} | [] | closed | false | null | [] | null | 1 | 2019-09-27T07:57:30Z | 2019-09-27T08:06:17Z | 2019-09-27T08:05:56Z | NONE | null | #### Problem description
The openpxyl engine for ExcelWriter's append mode allows us to write data into a new Worksheet and append it to an existing Workbook. However, when trying to append data into an existing Worksheet, it creates a new blank Worksheet (without any existing data) with the Worksheet's name suffixed numerically incremented.
#### Sample Code
```python
import pandas as pd
from openpyxl import load_workbook
excel_filename = 'excel_file.xlsx'
# Create initial excel file
initial_data = pd.DataFrame({'col1': ['A', 'B'], 'col2': [1, 2]})
with pd.ExcelWriter(excel_filename, engine='openpyxl', mode='w') as writer:
initial_data.to_excel(writer, sheet_name="sheet", index=False)
# Append some new rows into an existing worksheet
new_data = pd.DataFrame({'col1': ['C', 'D'], 'col2': [3, 4]})
workbook = load_workbook(excel_filename)
with pd.ExcelWriter(excel_filename, engine='openpyxl', mode='a') as writer:
new_data.to_excel(writer,
sheet_name="sheet",
startrow=workbook['sheet'].max_row,
header=False,
index=False)
```
#### Expected Output
We would expect the Excel file to contain a Worksheet named "sheet", with the following data:
| col1 | col2 |
| ---| --- |
| A | 1 |
| B | 2 |
| C | 3 |
| D | 4 |
#### Actual Output
However, the Excel file contains two Worksheets, namely "sheet" and "sheet1", with the following data:
`sheet`:
| col1 | col2 |
| ---| --- |
| A | 1 |
| B | 2 |
`sheet1`:
| | |
| ---| --- |
| | |
| | |
| C | 3 |
| D | 4 |
#### Explanation
When the `ExcelWriter` object is instantiated, it assumes a new Empty Workbook with no Worksheets (see ExcelWriter: line 701).
https://github.com/pandas-dev/pandas/blob/171c71611886aab8549a8620c5b0071a129ad685/pandas/io/excel/_base.py#L701
So when we try to write data, it always creates a new blank Worksheet instead (see _OpenpyxlWriter: line 400-403).
https://github.com/pandas-dev/pandas/blob/171c71611886aab8549a8620c5b0071a129ad685/pandas/io/excel/_openpyxl.py#L400-L403
In addition, the openpxyl library performs a check before writing to "avoid duplicate names" (see [openpxyl: line 18](https://bitbucket.org/openpyxl/openpyxl/src/15df72eae2f93bedc0c0c0cc8753b9107cc82d41/openpyxl/workbook/child.py#lines-18)), which numerically increment the suffix of the sheet name.
#### Existing solution
An existing solution is found in Stack Overflow (see [here](https://stackoverflow.com/questions/57932758/unable-to-append-pandas-dataframe-to-existing-excel-sheet/57941866#57941866)).
It is a simple fix with just one line to add all existing worksheets after the `ExcelWriter` object is instantiated (see Sample Code above):
```python
writer.sheets = dict((ws.title, ws) for ws in writer.book.worksheets)
```
It would be preferred if this is done in the backend, right after the workbook is loaded here:
https://github.com/pandas-dev/pandas/blob/171c71611886aab8549a8620c5b0071a129ad685/pandas/io/excel/_openpyxl.py#L23-L27
It will improve usability of the `DataFrame.to_excel` function.
However, some additional flags should be added to warn the user that existing data in existing worksheets may be overwritten (if the `startrow` or `startcol` parameter is stated wrongly by accident). Perhaps a new default parameter `overwrite=false` should be created for `DataFrame.to_excel` to only write data to empty regions (by performing bound checks for `startrow` and `startcol`).
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Darwin
OS-release: 18.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.2
pytest: 2.8.5
pip: 10.0.1
setuptools: 39.2.0
Cython: 0.23.4
numpy: 1.16.4
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 5.5.0
sphinx: 1.3.5
patsy: 0.4.0
dateutil: 2.5.3
pytz: 2016.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.6
feather: None
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml.etree: 3.5.0
bs4: 4.4.1
html5lib: None
sqlalchemy: 1.0.11
pymysql: 0.8.0
psycopg2: 2.7.5 (dt dec pq3 ext lo64)
jinja2: 2.8
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28653/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28653/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28654 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28654/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28654/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28654/events | https://github.com/pandas-dev/pandas/issues/28654 | 499,430,477 | MDU6SXNzdWU0OTk0MzA0Nzc= | 28,654 | max_rows option is broken | {
"avatar_url": "https://avatars.githubusercontent.com/u/5413726?v=4",
"events_url": "https://api.github.com/users/jtiscione/events{/privacy}",
"followers_url": "https://api.github.com/users/jtiscione/followers",
"following_url": "https://api.github.com/users/jtiscione/following{/other_user}",
"gists_url": "https://api.github.com/users/jtiscione/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtiscione",
"id": 5413726,
"login": "jtiscione",
"node_id": "MDQ6VXNlcjU0MTM3MjY=",
"organizations_url": "https://api.github.com/users/jtiscione/orgs",
"received_events_url": "https://api.github.com/users/jtiscione/received_events",
"repos_url": "https://api.github.com/users/jtiscione/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtiscione/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtiscione/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtiscione"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2019-09-27T12:57:20Z | 2019-09-27T20:59:50Z | 2019-09-27T20:59:38Z | NONE | null | #### Code Sample, a copy-pastable example if possible
pd.set_option("display.max_rows", 100)
print(display)
Displays this:
<img width="391" alt="Screen Shot 2019-09-27 at 6 55 04 AM" src="https://user-images.githubusercontent.com/5413726/65770716-e0850700-e0f3-11e9-904f-f13e73d17687.png">
I need to see more than 12 rows.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28654/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28654/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28655 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28655/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28655/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28655/events | https://github.com/pandas-dev/pandas/pull/28655 | 499,430,579 | MDExOlB1bGxSZXF1ZXN0MzIyMTUzMDMz | 28,655 | DOC: Fixed PR08 docstring errors in pandas.DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/36764552?v=4",
"events_url": "https://api.github.com/users/jackbicknell14/events{/privacy}",
"followers_url": "https://api.github.com/users/jackbicknell14/followers",
"following_url": "https://api.github.com/users/jackbicknell14/following{/other_user}",
"gists_url": "https://api.github.com/users/jackbicknell14/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jackbicknell14",
"id": 36764552,
"login": "jackbicknell14",
"node_id": "MDQ6VXNlcjM2NzY0NTUy",
"organizations_url": "https://api.github.com/users/jackbicknell14/orgs",
"received_events_url": "https://api.github.com/users/jackbicknell14/received_events",
"repos_url": "https://api.github.com/users/jackbicknell14/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jackbicknell14/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jackbicknell14/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jackbicknell14"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, ... | 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 | 2019-09-27T12:57:33Z | 2019-10-01T18:51:36Z | 2019-09-30T16:22:42Z | CONTRIBUTOR | null | This relates to: [27977](https://github.com/pandas-dev/pandas/issues/27977). I have fixed the doc PR08 formatting issues for:
```
pandas.DataFrame.insert: Parameter "column" description should start with a capital letter
pandas.DataFrame.apply: Parameter "raw" description should start with a capital letter
pandas.DataFrame.pipe: Parameter "func" description should start with a capital letter
pandas.DataFrame.pipe: Parameter "args" description should start with a capital letter
pandas.DataFrame.pipe: Parameter "kwargs" description should start with a capital letter
pandas.DataFrame.corr: Parameter "method" description should start with a capital letter
pandas.DataFrame.corrwith: Parameter "axis" description should start with a capital letter
pandas.DataFrame.corrwith: Parameter "method" description should start with a capital letter
pandas.DataFrame.drop_duplicates: Parameter "keep" description should start with a capital letter
pandas.DataFrame.duplicated: Parameter "keep" description should start with a capital letter
pandas.DataFrame.idxmax: Parameter "axis" description should start with a capital letter
pandas.DataFrame.idxmin: Parameter "axis" description should start with a capital letter
pandas.DataFrame.unstack: Parameter "fill_value" description should start with a capital letter
pandas.DataFrame.plot: Parameter "kind" description should start with a capital letter
pandas.DataFrame.plot: Parameter "style" description should start with a capital letter
pandas.DataFrame.to_feather: Parameter "fname" description should start with a capital letter
pandas.DataFrame.to_msgpack: Parameter "path" description should start with a capital letter
pandas.DataFrame.to_msgpack: Parameter "append" description should start with a capital letter
pandas.DataFrame.to_msgpack: Parameter "compress" description should start with a capital letter
pandas.DataFrame.to_clipboard: Parameter "excel" description should start with a capital letter
```
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Will continue to work through all PR08 docstring errors. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28655/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28655/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28655.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28655",
"merged_at": "2019-09-30T16:22:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28655.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28655"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28656 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28656/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28656/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28656/events | https://github.com/pandas-dev/pandas/issues/28656 | 499,447,561 | MDU6SXNzdWU0OTk0NDc1NjE= | 28,656 | DOC: Styler errors PR08 and PR09 | {
"avatar_url": "https://avatars.githubusercontent.com/u/38143549?v=4",
"events_url": "https://api.github.com/users/HughKelley/events{/privacy}",
"followers_url": "https://api.github.com/users/HughKelley/followers",
"following_url": "https://api.github.com/users/HughKelley/following{/other_user}",
"gists_url": "https://api.github.com/users/HughKelley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HughKelley",
"id": 38143549,
"login": "HughKelley",
"node_id": "MDQ6VXNlcjM4MTQzNTQ5",
"organizations_url": "https://api.github.com/users/HughKelley/orgs",
"received_events_url": "https://api.github.com/users/HughKelley/received_events",
"repos_url": "https://api.github.com/users/HughKelley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HughKelley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HughKelley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HughKelley"
} | [] | closed | false | null | [] | null | 2 | 2019-09-27T13:30:02Z | 2019-10-02T06:29:51Z | 2019-10-02T06:29:51Z | CONTRIBUTOR | null | ```python
python scripts/validate_docstrings.py pandas.io.formats.style.Styler --errors=PR08,PR09
```
#### Problem description
returns:
```
11 Errors found:
Parameters {table_attributes} not documented
Parameter "data" has no description
Parameter "precision" description should start with a capital letter
Parameter "precision" description should finish with "."
Parameter "table_styles" description should start with a capital letter
Parameter "table_styles" description should finish with "."
Parameter "uuid" description should start with a capital letter
Parameter "uuid" description should finish with "."
Parameter "caption" description should start with a capital letter
Parameter "caption" description should finish with "."
Missing description for See Also "DataFrame.style" reference
2 Warnings found:
No extended summary found
No examples section found
```
This is a subset of error messages from #28602 and #25232. Part of the work for #27977
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28656/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28656/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28657 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28657/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28657/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28657/events | https://github.com/pandas-dev/pandas/issues/28657 | 499,490,844 | MDU6SXNzdWU0OTk0OTA4NDQ= | 28,657 | [Feature Request] Add `nancorr_biweightmidcorr` to `pandas._libs.algos` | {
"avatar_url": "https://avatars.githubusercontent.com/u/9061708?v=4",
"events_url": "https://api.github.com/users/jolespin/events{/privacy}",
"followers_url": "https://api.github.com/users/jolespin/followers",
"following_url": "https://api.github.com/users/jolespin/following{/other_user}",
"gists_url": "https://api.github.com/users/jolespin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jolespin",
"id": 9061708,
"login": "jolespin",
"node_id": "MDQ6VXNlcjkwNjE3MDg=",
"organizations_url": "https://api.github.com/users/jolespin/orgs",
"received_events_url": "https://api.github.com/users/jolespin/received_events",
"repos_url": "https://api.github.com/users/jolespin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jolespin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jolespin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jolespin"
} | [
{
"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": "eb6420",
"default": false,
"description": "Non-arit... | open | false | null | [] | null | 3 | 2019-09-27T14:50:29Z | 2019-10-26T01:41:14Z | null | NONE | null | #### Code Sample
This is probably the fastest implementation I am aware of at the moment: https://rdrr.io/cran/WGCNA/man/bicor.html
However this is also available but considerably slower and not parallelized:
https://docs.astropy.org/en/stable/api/astropy.stats.biweight_midcorrelation.html
#### Problem description
Nothing popped up for the following searches:
biweight
https://github.com/pandas-dev/pandas/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+biweight+
bicor
https://github.com/pandas-dev/pandas/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+bicor+
#### Expected Output
Fast implementation of biweight midcorrelation and extremely robust correlation metric
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28657/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28657/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28658 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28658/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28658/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28658/events | https://github.com/pandas-dev/pandas/issues/28658 | 499,545,019 | MDU6SXNzdWU0OTk1NDUwMTk= | 28,658 | Error when adding 'm' to a Series of strings | {
"avatar_url": "https://avatars.githubusercontent.com/u/2239771?v=4",
"events_url": "https://api.github.com/users/capelastegui/events{/privacy}",
"followers_url": "https://api.github.com/users/capelastegui/followers",
"following_url": "https://api.github.com/users/capelastegui/following{/other_user}",
"gists_url": "https://api.github.com/users/capelastegui/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/capelastegui",
"id": 2239771,
"login": "capelastegui",
"node_id": "MDQ6VXNlcjIyMzk3NzE=",
"organizations_url": "https://api.github.com/users/capelastegui/orgs",
"received_events_url": "https://api.github.com/users/capelastegui/received_events",
"repos_url": "https://api.github.com/users/capelastegui/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/capelastegui/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/capelastegui/subscriptions",
"type": "User",
"url": "https://api.github.com/users/capelastegui"
} | [
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"de... | 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"
} | 2 | 2019-09-27T16:45:55Z | 2019-10-02T06:43:09Z | 2019-10-02T06:43:09Z | NONE | null | #### Code Sample
I have found a strange corner case when adding strings to a Series. This is an operation that most of the times works well:
```python
import pandas as pd
# Adding a string to a Series, works as expected
pd.Series(['hello','world'])+'!'
```
output:
```
0 hello!
1 world!
dtype: object
```
But in the specific case of adding the string 'm', it raises an exception:
```python
# Adding the string 'm' to a Series
pd.Series(['hello','world'])+'m'
```
output:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-125-795dd84b51d1> in <module>
----> 1 pd.Series(['hello','world'])+'m'
~/PycharmProjects/nsa.notebooks-voice/virtual3/lib/python3.6/site-packages/pandas-0.25.1-py3.6-macosx-10.12-x86_64.egg/pandas/core/ops/__init__.py in wrapper(left, right)
1014 if is_scalar(right):
1015 # broadcast and wrap in a TimedeltaIndex
-> 1016 assert np.isnat(right)
1017 right = np.broadcast_to(right, left.shape)
1018 right = pd.TimedeltaIndex(right)
TypeError: ufunc 'isnat' is only defined for datetime and timedelta.
```
#### Problem description
It took me a while to figure this one out, but looking at the [source code ](https://github.com/pandas-dev/pandas/blob/171c71611886aab8549a8620c5b0071a129ad685/pandas/core/ops/__init__.py) of _arith_method_SERIES() in pandas/pandas/core/ops/__init__.py, it's apparently due to running is_timedelta64_dtype() as part of type checks for the scalar. String 'm' is incorrectly parsed as a timedelta64.
```python
pd.core.ops.is_timedelta64_dtype('m')
>True
```
This can be traced to a pandas_dtype() function:
```python
pd.core.dtypes.common.pandas_dtype('m')
>dtype('<m8')
```
Presumably there are other random strings with similar interactions with type checking functions that throw similar errors in this operation.
I get this error on build 25.1 . I haven't been able to test this on the latest master code, which introduces a lot of changes to /pandas/core/ops/__init__ , so I don't know if this is still a problem there.
#### Expected Output
Adding strings to a string Series shouldn't throw this exception.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.6.final.0
python-bits : 64
OS : Darwin
OS-release : 18.6.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 0.25.1
numpy : 1.17.2
pytz : 2019.2
dateutil : 2.8.0
pip : 10.0.1
setuptools : 39.0.1
Cython : None
pytest : 5.1.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.8.0
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 : 0.14.1
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.8
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/28658/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28658/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28659 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28659/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28659/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28659/events | https://github.com/pandas-dev/pandas/pull/28659 | 499,600,003 | MDExOlB1bGxSZXF1ZXN0MzIyMjg3NjMx | 28,659 | accept a dictionary in plot colors | {
"avatar_url": "https://avatars.githubusercontent.com/u/18487422?v=4",
"events_url": "https://api.github.com/users/Leostayner/events{/privacy}",
"followers_url": "https://api.github.com/users/Leostayner/followers",
"following_url": "https://api.github.com/users/Leostayner/following{/other_user}",
"gists_url": "https://api.github.com/users/Leostayner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Leostayner",
"id": 18487422,
"login": "Leostayner",
"node_id": "MDQ6VXNlcjE4NDg3NDIy",
"organizations_url": "https://api.github.com/users/Leostayner/orgs",
"received_events_url": "https://api.github.com/users/Leostayner/received_events",
"repos_url": "https://api.github.com/users/Leostayner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Leostayner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Leostayner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Leostayner"
} | [
{
"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 | null | [] | null | 8 | 2019-09-27T18:58:27Z | 2020-01-19T08:16:24Z | 2020-01-19T08:16:21Z | NONE | null | - [ ] closes #8193
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Line/bar plot accepts color by dictonary.
@elisamalzoni | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28659/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28659/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28659.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28659",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28659.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28659"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28660 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28660/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28660/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28660/events | https://github.com/pandas-dev/pandas/issues/28660 | 499,620,440 | MDU6SXNzdWU0OTk2MjA0NDA= | 28,660 | Stream compatibility on newest Python IO | {
"avatar_url": "https://avatars.githubusercontent.com/u/478888?v=4",
"events_url": "https://api.github.com/users/Deamoner/events{/privacy}",
"followers_url": "https://api.github.com/users/Deamoner/followers",
"following_url": "https://api.github.com/users/Deamoner/following{/other_user}",
"gists_url": "https://api.github.com/users/Deamoner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Deamoner",
"id": 478888,
"login": "Deamoner",
"node_id": "MDQ6VXNlcjQ3ODg4OA==",
"organizations_url": "https://api.github.com/users/Deamoner/orgs",
"received_events_url": "https://api.github.com/users/Deamoner/received_events",
"repos_url": "https://api.github.com/users/Deamoner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Deamoner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Deamoner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Deamoner"
} | [
{
"color": "5319e7",
"default": false,
"description": "SAS: read_sas",
"id": 258745163,
"name": "IO SAS",
"node_id": "MDU6TGFiZWwyNTg3NDUxNjM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS"
}
] | closed | false | null | [] | null | 2 | 2019-09-27T19:48:17Z | 2020-04-05T01:47:16Z | 2020-04-05T01:47:15Z | NONE | null | Python version 3.7.3 or 3.7.4
#### Code Sample, a copy-pastable example if possible
``` decoded = base64.b64decode(content_string)
try :
if 'dm.xpt' in filename :
# df_dict['dm'] = pd.read_sas(filename,encoding="latin1")
df_dict['dm'] = pd.read_sas(io.BytesIO(decoded),format='xport',encoding='latin1')
```
#### Problem description
'bytes' do not have attribute 'encode"
**How to fix:
commenting out L279-L282 in Python37\lib\site-packages\pandas\io\sas\sasreader.py**
**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/28660/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28660/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28661 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28661/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28661/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28661/events | https://github.com/pandas-dev/pandas/pull/28661 | 499,643,010 | MDExOlB1bGxSZXF1ZXN0MzIyMzIxODI5 | 28,661 | PERF: Make matplotlib import lazy | {
"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": "d93f0b",
"default"... | closed | false | null | [] | null | 3 | 2019-09-27T20:46:37Z | 2019-11-21T20:00:40Z | 2019-10-01T14:03:20Z | MEMBER | null | Cuts import time by about 23%, from 393ms to 303ms (note these measurements are pretty noisy). The percentage edges up to 26% if we ignore get_version, since that is negligible in a release.
Downside: we lose some docstrings on plotting methods. Will need to decide if it is worth a refactor to keep them in place. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28661/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28661/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28661.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28661",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28661.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28661"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28662 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28662/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28662/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28662/events | https://github.com/pandas-dev/pandas/pull/28662 | 499,690,584 | MDExOlB1bGxSZXF1ZXN0MzIyMzU3NjQx | 28,662 | BUG: Fix groupby.apply | {
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
... | 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"
} | 11 | 2019-09-27T23:27:41Z | 2020-01-07T00:30:25Z | 2020-01-01T16:21:28Z | MEMBER | null | - [x] closes #28652
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Makes sure that the output of `groupby.apply` is built up by value instead of by reference in `reduction.pyx` to avoid the behavior from #28652. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28662/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28662/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28662.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28662",
"merged_at": "2020-01-01T16:21:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28662.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28662"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28663 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28663/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28663/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28663/events | https://github.com/pandas-dev/pandas/issues/28663 | 499,732,074 | MDU6SXNzdWU0OTk3MzIwNzQ= | 28,663 | to_html()没有encoding参数?造成输出中文显示乱码 | {
"avatar_url": "https://avatars.githubusercontent.com/u/20920182?v=4",
"events_url": "https://api.github.com/users/645187919/events{/privacy}",
"followers_url": "https://api.github.com/users/645187919/followers",
"following_url": "https://api.github.com/users/645187919/following{/other_user}",
"gists_url": "https://api.github.com/users/645187919/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/645187919",
"id": 20920182,
"login": "645187919",
"node_id": "MDQ6VXNlcjIwOTIwMTgy",
"organizations_url": "https://api.github.com/users/645187919/orgs",
"received_events_url": "https://api.github.com/users/645187919/received_events",
"repos_url": "https://api.github.com/users/645187919/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/645187919/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/645187919/subscriptions",
"type": "User",
"url": "https://api.github.com/users/645187919"
} | [
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] | 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 | 2019-09-28T06:10:53Z | 2019-10-16T12:29:24Z | 2019-10-16T12:29:24Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Your code here
data = pd.read_csv("test.csv",encoding="gbk")
print(data)
html = data.to_html(col_space=40,justify="center")
```
#### Problem description
当我用to_html()方法生成html的时候,中文显示乱码,后来一看该方法竟然没有encoding参数,希望作者能完善了,这样以后会方便很多人哈!
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution.]
**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/28663/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28663/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28664 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28664/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28664/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28664/events | https://github.com/pandas-dev/pandas/issues/28664 | 499,740,717 | MDU6SXNzdWU0OTk3NDA3MTc= | 28,664 | Bug: pct_change with frequency set as 'BM' throws value error | {
"avatar_url": "https://avatars.githubusercontent.com/u/4449948?v=4",
"events_url": "https://api.github.com/users/min2bro/events{/privacy}",
"followers_url": "https://api.github.com/users/min2bro/followers",
"following_url": "https://api.github.com/users/min2bro/following{/other_user}",
"gists_url": "https://api.github.com/users/min2bro/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/min2bro",
"id": 4449948,
"login": "min2bro",
"node_id": "MDQ6VXNlcjQ0NDk5NDg=",
"organizations_url": "https://api.github.com/users/min2bro/orgs",
"received_events_url": "https://api.github.com/users/min2bro/received_events",
"repos_url": "https://api.github.com/users/min2bro/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/min2bro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/min2bro/subscriptions",
"type": "User",
"url": "https://api.github.com/users/min2bro"
} | [
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "eb6420",
"default": false,
"description... | 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 | 2019-09-28T07:56:33Z | 2019-11-15T14:55:06Z | 2019-11-15T14:55:06Z | NONE | null |
#### Code Sample, a copy-pastable example if possible
```
import pandas as pd
import random
import numpy as np
Creating the time-series index
n=60
index = pd.date_range('01/13/2020', periods = 70,freq='D')
Creating the dataframe
df = pd.DataFrame({"A":np.random.uniform(low=0.5, high=13.3, size=(70,)),
"B":np.random.uniform(low=10.5, high=45.3, size=(70,)),
"C":np.random.uniform(low=70.5, high=85, size=(70,)),
"D":np.random.uniform(low=50.5, high=65.7, size=(70,))}, index = index)
df.pct_change(freq='BM')
```
#### Problem description
For a time-series data, the df.pct_change(freq='BM') doesn't works and throws following error.
ValueError: cannot reindex from a duplicate axis
#### Expected Output
df.asfreq('BM').pct_change()
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.1
numpy : 1.15.4
pytz : 2017.2
dateutil : 2.6.1
pip : 18.0
setuptools : 39.1.0
Cython : 0.26.1
pytest : 5.1.2
hypothesis : None
sphinx : 1.6.3
blosc : None
feather : None
xlsxwriter : 1.0.2
lxml.etree : 4.1.0
html5lib : 0.9999999
pymysql : None
psycopg2 : 2.7.5 (dt dec pq3 ext lo64)
jinja2 : 2.9.6
IPython : 6.1.0
pandas_datareader: None
bs4 : 4.6.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.1.0
matplotlib : 2.1.0
numexpr : 2.6.2
odfpy : None
openpyxl : 2.4.8
pandas_gbq : None
pyarrow : 0.8.0
pytables : None
s3fs : None
scipy : 1.0.0
sqlalchemy : 1.1.13
tables : 3.4.2
xarray : 0.10.7
xlrd : 1.1.0
xlwt : 1.3.0
xlsxwriter : 1.0.2
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28664/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28664/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28665 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28665/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28665/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28665/events | https://github.com/pandas-dev/pandas/issues/28665 | 499,758,634 | MDU6SXNzdWU0OTk3NTg2MzQ= | 28,665 | Odd error message, concerning numpy using an alias versus numpy package name | {
"avatar_url": "https://avatars.githubusercontent.com/u/1430861?v=4",
"events_url": "https://api.github.com/users/apiszcz/events{/privacy}",
"followers_url": "https://api.github.com/users/apiszcz/followers",
"following_url": "https://api.github.com/users/apiszcz/following{/other_user}",
"gists_url": "https://api.github.com/users/apiszcz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apiszcz",
"id": 1430861,
"login": "apiszcz",
"node_id": "MDQ6VXNlcjE0MzA4NjE=",
"organizations_url": "https://api.github.com/users/apiszcz/orgs",
"received_events_url": "https://api.github.com/users/apiszcz/received_events",
"repos_url": "https://api.github.com/users/apiszcz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/apiszcz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/apiszcz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/apiszcz"
} | [
{
"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": "0e8a... | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/28212972?v=4",
"events_url": "https://api.github.com/users/hasnain2808/events{/privacy}",
"followers_url": "https://api.github.com/users/hasnain2808/followers",
"following_url": "https://api.github.com/users/hasnain2808/following{/other_user}",
"gists_url": "https://api.github.com/users/hasnain2808/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hasnain2808",
"id": 28212972,
"login": "hasnain2808",
"node_id": "MDQ6VXNlcjI4MjEyOTcy",
"organizations_url": "https://api.github.com/users/hasnain2808/orgs",
"received_events_url": "https://api.github.com/users/hasnain2808/received_events",
"repos_url": "https://api.github.com/users/hasnain2808/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hasnain2808/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasnain2808/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hasnain2808"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/28212972?v=4",
"events_url": "https://api.github.com/users/hasnain2808/events{/privacy}",
"followers_url": "https://api.github.com/users/hasnain2808/followers",
"following_url": "https://api.github.com/users/hasnain2808/following{/other_user}"... | {
"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"
} | 5 | 2019-09-28T11:16:10Z | 2019-12-26T00:08:09Z | 2019-12-26T00:08:08Z | NONE | null | This produces a poor warning
```python
>>> import pandas as pd
>>> import numpy as np
>>> np.ptp(pd.Series([1, 2, 3]))
/lib/python3.7/site-packages/numpy/core/fromnumeric.py:2495: FutureWarning: Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.
```
because `np.ptp` calls `Series.ptp`, which is deprecated. We should instruct the user
to convert the Series to an array before calling `ptp`.
```python
np.ptp(pd.Series([1, 2, 3]).array)
```
The warning is defined at https://github.com/pandas-dev/pandas/blob/20e4c186191859dcde2437edacaee43d8d34dc46/pandas/core/generic.py#L10197-L10199
---
In this case I am using numpy ptp, however the error messages states I am not
```
>>> dfagg = df.groupby(['idf']).agg({ 'f1' : [np.min, np.max, np.ptp] })
C:\test\lib\numpy\core\fromnumeric.py:2495: FutureWarning: Method .ptp is deprecated and will be removed in a future version. Use numpy.ptp instead.
```
NO warning
`>>> dfagg = df.groupby(['idf']).agg({ 'f1' : [np.min, np.max, numpy.ptp] })`
| {
"+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/28665/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28665/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28666 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28666/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28666/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28666/events | https://github.com/pandas-dev/pandas/pull/28666 | 499,789,879 | MDExOlB1bGxSZXF1ZXN0MzIyNDI0OTI5 | 28,666 | BUG: fix broken error message in ujson.encode() (GH18878) | {
"avatar_url": "https://avatars.githubusercontent.com/u/142362?v=4",
"events_url": "https://api.github.com/users/rlamy/events{/privacy}",
"followers_url": "https://api.github.com/users/rlamy/followers",
"following_url": "https://api.github.com/users/rlamy/following{/other_user}",
"gists_url": "https://api.github.com/users/rlamy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rlamy",
"id": 142362,
"login": "rlamy",
"node_id": "MDQ6VXNlcjE0MjM2Mg==",
"organizations_url": "https://api.github.com/users/rlamy/orgs",
"received_events_url": "https://api.github.com/users/rlamy/received_events",
"repos_url": "https://api.github.com/users/rlamy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rlamy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlamy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rlamy"
} | [
{
"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": "207d... | 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 | 2019-09-28T16:07:58Z | 2019-10-08T13:59:33Z | 2019-10-06T22:40:39Z | CONTRIBUTOR | null | - [x] closes #18878
- [x] 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/28666/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28666/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28666.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28666",
"merged_at": "2019-10-06T22:40:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28666.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28666"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28667 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28667/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28667/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28667/events | https://github.com/pandas-dev/pandas/pull/28667 | 499,797,069 | MDExOlB1bGxSZXF1ZXN0MzIyNDMwMTAy | 28,667 | DOC: Updating See Also section in IndexOpsMixin | {
"avatar_url": "https://avatars.githubusercontent.com/u/37672187?v=4",
"events_url": "https://api.github.com/users/Sedosa/events{/privacy}",
"followers_url": "https://api.github.com/users/Sedosa/followers",
"following_url": "https://api.github.com/users/Sedosa/following{/other_user}",
"gists_url": "https://api.github.com/users/Sedosa/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Sedosa",
"id": 37672187,
"login": "Sedosa",
"node_id": "MDQ6VXNlcjM3NjcyMTg3",
"organizations_url": "https://api.github.com/users/Sedosa/orgs",
"received_events_url": "https://api.github.com/users/Sedosa/received_events",
"repos_url": "https://api.github.com/users/Sedosa/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Sedosa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Sedosa/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Sedosa"
} | [
{
"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"
} | 3 | 2019-09-28T17:14:14Z | 2019-10-02T04:06:48Z | 2019-10-02T04:06:43Z | CONTRIBUTOR | null | - [x] Updated the "See Also" section for the IndexOpsMixin '''_is_homogenous_type'''
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28667/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28667/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28667.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28667",
"merged_at": "2019-10-02T04:06:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28667.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28667"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28668 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28668/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28668/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28668/events | https://github.com/pandas-dev/pandas/issues/28668 | 499,817,727 | MDU6SXNzdWU0OTk4MTc3Mjc= | 28,668 | Merge error on Categorical Interval columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/6556306?v=4",
"events_url": "https://api.github.com/users/harisbal/events{/privacy}",
"followers_url": "https://api.github.com/users/harisbal/followers",
"following_url": "https://api.github.com/users/harisbal/following{/other_user}",
"gists_url": "https://api.github.com/users/harisbal/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/harisbal",
"id": 6556306,
"login": "harisbal",
"node_id": "MDQ6VXNlcjY1NTYzMDY=",
"organizations_url": "https://api.github.com/users/harisbal/orgs",
"received_events_url": "https://api.github.com/users/harisbal/received_events",
"repos_url": "https://api.github.com/users/harisbal/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/harisbal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harisbal/subscriptions",
"type": "User",
"url": "https://api.github.com/users/harisbal"
} | [
{
"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, Stac... | 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"
} | 2 | 2019-09-28T20:28:30Z | 2019-10-08T12:40:09Z | 2019-10-08T12:40:09Z | CONTRIBUTOR | null | Failure on merging on Categorical columns which include intervals.
For instance, the following raises `TypeError: data type not understood`
```python
bins = np.arange(0, 91, 30)
df1 = pd.DataFrame(np.array([[1, 22], [2, 35], [3, 82]]),
columns=['Id', 'Dist']).set_index('Id')
df1['DistGroup'] = pd.cut(df1['Dist'], bins)
idx = pd.IntervalIndex.from_breaks(bins)
df2 = pd.DataFrame(np.array(['g1', 'g2', 'g3']), columns=['GroupId'], index=idx)
df2.index.name = 'DistGroup'
res = pd.merge(df1, df2, left_on='DistGroup', right_index=True).reset_index()
```
#### Expected Output
<table border="1" class="dataframe"> <thead> <tr style="text-align: right;"> <th></th> <th>Dist</th> <th>DistGroup</th> <th>GroupId</th> </tr> </thead> <tbody> <tr> <th>0</th> <td>22</td> <td>(0, 30]</td> <td>g1</td> </tr> <tr> <th>1</th> <td>35</td> <td>(30, 60]</td> <td>g2</td> </tr> <tr> <th>2</th> <td>82</td> <td>(60, 90]</td> <td>g3</td> </tr> </tbody></table>'
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.9.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 : 0.25.1
numpy : 1.16.5
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.2
setuptools : 41.0.1
Cython : 0.29.13
pytest : 5.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.3.3
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.7.6.1 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.8.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.3.3
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.7
tables : 3.5.2
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/28668/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28668/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28669 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28669/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28669/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28669/events | https://github.com/pandas-dev/pandas/issues/28669 | 499,824,979 | MDU6SXNzdWU0OTk4MjQ5Nzk= | 28,669 | minor inconsistency in Categorical.remove_categories error message | {
"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": "e11d... | 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"
} | 12 | 2019-09-28T21:52:21Z | 2019-10-22T15:46:04Z | 2019-10-22T15:46:04Z | MEMBER | null | mypy error: `pandas\core\arrays\categorical.py:1125:13: error: Incompatible types in assignment (expression has type "List[Any]", variable has type "Set[Any]") [assignment]`
#### Code Sample, a copy-pastable example if possible
```python
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import pandas as pd
>>> pd.__version__
'0.26.0.dev0+537.gd2bc6a497.dirty'
>>>
>>> cat = pd.Categorical(["a", "b", "c", "a"], ordered=True)
>>>
>>> cat
[a, b, c, a]
Categories (3, object): [a < b < c]
>>>
>>> cat = cat.remove_categories(["c"])
>>> cat
[a, b, NaN, a]
Categories (2, object): [a < b]
>>>
>>> cat = cat.remove_categories(["c"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\simon\pandas-simonjayhawkins\pandas\core\arrays\categorical.py", line 1130, in remove_categories
raise ValueError(msg.format(not_included=not_included))
ValueError: removals must all be in old categories: {'c'}
>>>
>>> cat = cat.remove_categories(["c", np.nan])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\simon\pandas-simonjayhawkins\pandas\core\arrays\categorical.py", line 1130, in remove_categories
raise ValueError(msg.format(not_included=not_included))
ValueError: removals must all be in old categories: ['c']
>>> cat
[a, b, NaN, a]
Categories (2, object): [a < b]
>>>
```
#### Problem description
The error message shows invalid removals as a set or a list depending on whether the removal list contains a null value.
#### Expected Output
consistent message. preferably as a list.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d2bc6a49778407a02f31c40408e8d62cb24e6b64
python : 3.7.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : None.None
pandas : 0.26.0.dev0+537.gd2bc6a497.dirty
numpy : 1.16.4
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.2
setuptools : 41.0.1
Cython : 0.29.13
pytest : 5.0.1
hypothesis : 4.32.2
sphinx : 1.8.5
blosc : None
feather : None
xlsxwriter : 1.1.8
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.7.1
bottleneck : 1.2.1
fastparquet : 0.3.0
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
s3fs : 0.2.1
scipy : 1.3.1
sqlalchemy : 1.3.7
tables : 3.5.2
xarray : 0.12.1
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/28669/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28669/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28670 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28670/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28670/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28670/events | https://github.com/pandas-dev/pandas/pull/28670 | 499,864,113 | MDExOlB1bGxSZXF1ZXN0MzIyNDc0ODE5 | 28,670 | Fix incorrect doc for to_datetime | {
"avatar_url": "https://avatars.githubusercontent.com/u/17039389?v=4",
"events_url": "https://api.github.com/users/harupy/events{/privacy}",
"followers_url": "https://api.github.com/users/harupy/followers",
"following_url": "https://api.github.com/users/harupy/following{/other_user}",
"gists_url": "https://api.github.com/users/harupy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/harupy",
"id": 17039389,
"login": "harupy",
"node_id": "MDQ6VXNlcjE3MDM5Mzg5",
"organizations_url": "https://api.github.com/users/harupy/orgs",
"received_events_url": "https://api.github.com/users/harupy/received_events",
"repos_url": "https://api.github.com/users/harupy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/harupy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harupy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/harupy"
} | [
{
"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"
} | 1 | 2019-09-29T06:07:23Z | 2019-10-05T22:44:58Z | 2019-10-05T22:44:54Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This PR fixes incorrect doc for `pandas.to_datetime`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28670/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28670/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28670.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28670",
"merged_at": "2019-10-05T22:44:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28670.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28670"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28671 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28671/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28671/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28671/events | https://github.com/pandas-dev/pandas/pull/28671 | 499,940,306 | MDExOlB1bGxSZXF1ZXN0MzIyNTIwMzg0 | 28,671 | BUG: restore limit in RangeIndex.get_indexer | {
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on s... | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 4 | 2019-09-29T16:38:32Z | 2019-10-01T12:17:45Z | 2019-10-01T12:00:39Z | MEMBER | null | - [x] closes #28631
- [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/28671/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28671/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28671.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28671",
"merged_at": "2019-10-01T12:00:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28671.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28671"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28672 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28672/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28672/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28672/events | https://github.com/pandas-dev/pandas/issues/28672 | 499,948,157 | MDU6SXNzdWU0OTk5NDgxNTc= | 28,672 | Pandas tries to do something with indexes while only supposed to work with values. | {
"avatar_url": "https://avatars.githubusercontent.com/u/18684799?v=4",
"events_url": "https://api.github.com/users/PhysSci/events{/privacy}",
"followers_url": "https://api.github.com/users/PhysSci/followers",
"following_url": "https://api.github.com/users/PhysSci/following{/other_user}",
"gists_url": "https://api.github.com/users/PhysSci/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/PhysSci",
"id": 18684799,
"login": "PhysSci",
"node_id": "MDQ6VXNlcjE4Njg0Nzk5",
"organizations_url": "https://api.github.com/users/PhysSci/orgs",
"received_events_url": "https://api.github.com/users/PhysSci/received_events",
"repos_url": "https://api.github.com/users/PhysSci/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/PhysSci/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PhysSci/subscriptions",
"type": "User",
"url": "https://api.github.com/users/PhysSci"
} | [] | closed | false | null | [] | null | 2 | 2019-09-29T17:52:03Z | 2020-01-27T07:23:00Z | 2020-01-27T07:22:59Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
ra = pd.read_excel("Edata.xlsx", sheet_name="r-a").astype(float)
```
```python
d[i].min().min()
```
#### Problem description
Traceback (most recent call last):
File "E:/загрузки/учеба/лабы/H2lab/Search.py", line 4, in <module>
ra = pd.read_excel("Edata.xlsx", sheet_name="r-a").astype(float)
File "E:\python\lib\site-packages\pandas\core\generic.py", line 5882, in astype
dtype=dtype, copy=copy, errors=errors, **kwargs
File "E:\python\lib\site-packages\pandas\core\internals\managers.py", line 581, in astype
return self.apply("astype", dtype=dtype, **kwargs)
File "E:\python\lib\site-packages\pandas\core\internals\managers.py", line 438, in apply
applied = getattr(b, f)(**kwargs)
File "E:\python\lib\site-packages\pandas\core\internals\blocks.py", line 559, in astype
return self._astype(dtype, copy=copy, errors=errors, values=values, **kwargs)
File "E:\python\lib\site-packages\pandas\core\internals\blocks.py", line 643, in _astype
values = astype_nansafe(vals1d, dtype, copy=True, **kwargs)
File "E:\python\lib\site-packages\pandas\core\dtypes\cast.py", line 729, in astype_nansafe
return arr.astype(dtype, copy=True)
ValueError: could not convert string to float: '4→0'
---------------
Traceback (most recent call last):
File "E:/загрузки/учеба/лабы/H2lab/Search.py", line 23, in <module>
mins[i] = d[i].min().min()
File "E:\python\lib\site-packages\pandas\core\generic.py", line 11620, in stat_func
f, name, axis=axis, skipna=skipna, numeric_only=numeric_only
File "E:\python\lib\site-packages\pandas\core\series.py", line 4083, in _reduce
return op(delegate, skipna=skipna, **kwds)
File "E:\python\lib\site-packages\pandas\core\nanops.py", line 123, in f
result = alt(values, axis=axis, skipna=skipna, **kwds)
File "E:\python\lib\site-packages\pandas\core\nanops.py", line 843, in reduction
result = getattr(values, meth)(axis)
File "E:\python\lib\site-packages\numpy\core\_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
TypeError: '<=' not supported between instances of 'str' and 'int'
I encountered this problem i new version of pandas. It seems like pandas when coverting values to float or searching for min, tries to operate with indexes(which strings) as well. I know it because "4→0" is a name of row or column. I can provide any fether info if you need it. It works ok with pandas 0.23.4
#### Expected Output
everything working without mistakes
#### Output of ``pd.show_versions()``
<details>
This convig works prety fine:
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.0.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: 0.23.4
pytest: None
pip: 19.1.1
setuptools: 39.0.1
Cython: 0.29.7
numpy: 1.15.1
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.0.1
sphinx: 1.8.1
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.0
openpyxl: 2.6.3
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: 4.3.3
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
------------------------------------------
This doesn't:
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.0.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 : 0.25.1
numpy : 1.15.1
pytz : 2018.5
dateutil : 2.7.3
pip : 19.1.1
setuptools : 39.0.1
Cython : 0.29.7
pytest : None
hypothesis : None
sphinx : 1.8.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.3.3
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 7.0.1
pandas_datareader: None
bs4 : 4.7.1
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.3.3
matplotlib : 3.0.0
numexpr : None
odfpy : None
openpyxl : 2.6.3
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.1.0
sqlalchemy : None
tables : None
xarray : None
xlrd : 1.1.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/28672/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28672/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28673 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28673/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28673/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28673/events | https://github.com/pandas-dev/pandas/issues/28673 | 499,968,370 | MDU6SXNzdWU0OTk5NjgzNzA= | 28,673 | DOCS: fix PR09,PR09 doc string errors in Timestamp, NaT, Timedelta class | {
"avatar_url": "https://avatars.githubusercontent.com/u/7444140?v=4",
"events_url": "https://api.github.com/users/josibake/events{/privacy}",
"followers_url": "https://api.github.com/users/josibake/followers",
"following_url": "https://api.github.com/users/josibake/following{/other_user}",
"gists_url": "https://api.github.com/users/josibake/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josibake",
"id": 7444140,
"login": "josibake",
"node_id": "MDQ6VXNlcjc0NDQxNDA=",
"organizations_url": "https://api.github.com/users/josibake/orgs",
"received_events_url": "https://api.github.com/users/josibake/received_events",
"repos_url": "https://api.github.com/users/josibake/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josibake/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josibake/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josibake"
} | [
{
"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 | 1 | 2019-09-29T20:42:54Z | 2019-10-04T15:33:29Z | 2019-10-04T15:33:29Z | CONTRIBUTOR | null | This fixes validation errors PR09,PR08 for pandas.Timestamp, pandas.Timedelta (and also NaT) class:
```
pandas.Timestamp.ceil: Parameter "ambiguous" description should start with a capital letter
pandas.Timestamp.ceil: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.ceil: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.day_name: Parameter "locale" description should start with a capital letter
pandas.Timestamp.day_name: Parameter "locale" description should finish with "."
pandas.Timestamp.floor: Parameter "ambiguous" description should start with a capital letter
pandas.Timestamp.floor: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.floor: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.fromordinal: Parameter "ordinal" description should start with a capital letter
pandas.Timestamp.fromordinal: Parameter "ordinal" description should finish with "."
pandas.Timestamp.fromordinal: Parameter "freq" description should finish with "."
pandas.Timestamp.month_name: Parameter "locale" description should start with a capital letter
pandas.Timestamp.month_name: Parameter "locale" description should finish with "."
pandas.Timestamp.now: Parameter "tz" description should finish with "."
pandas.Timestamp.round: Parameter "ambiguous" description should start with a capital letter
pandas.Timestamp.round: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.round: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.today: Parameter "tz" description should finish with "."
pandas.Timestamp.tz_localize: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.tz_localize: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.tz_localize: Parameter "errors" description should start with a capital letter
pandas.Timestamp.tz_localize: Parameter "errors" description should finish with "."
pandas.Timedelta.max: Parameter "unit" description should finish with "."
pandas.Timedelta.min: Parameter "unit" description should finish with "."
```
This is a subset of #28602 and #27977
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28673/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28673/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28674 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28674/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28674/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28674/events | https://github.com/pandas-dev/pandas/pull/28674 | 499,968,960 | MDExOlB1bGxSZXF1ZXN0MzIyNTM5MzQ5 | 28,674 | DOC: fix PR09,PR08 doc string errors in Timestamp, NaT, Timedelta class | {
"avatar_url": "https://avatars.githubusercontent.com/u/7444140?v=4",
"events_url": "https://api.github.com/users/josibake/events{/privacy}",
"followers_url": "https://api.github.com/users/josibake/followers",
"following_url": "https://api.github.com/users/josibake/following{/other_user}",
"gists_url": "https://api.github.com/users/josibake/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josibake",
"id": 7444140,
"login": "josibake",
"node_id": "MDQ6VXNlcjc0NDQxNDA=",
"organizations_url": "https://api.github.com/users/josibake/orgs",
"received_events_url": "https://api.github.com/users/josibake/received_events",
"repos_url": "https://api.github.com/users/josibake/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josibake/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josibake/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josibake"
} | [
{
"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"
} | 6 | 2019-09-29T20:48:20Z | 2019-10-03T23:59:22Z | 2019-10-01T16:59:29Z | CONTRIBUTOR | null | This fixes PR09,PR08 errors in Timestamp, NaT, Timedelta classes
Example:
```
pandas.Timestamp.ceil: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.ceil: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.day_name: Parameter "locale" description should finish with "."
pandas.Timestamp.floor: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.floor: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.fromordinal: Parameter "ordinal" description should finish with "."
pandas.Timestamp.fromordinal: Parameter "freq" description should finish with "."
pandas.Timestamp.month_name: Parameter "locale" description should finish with "."
pandas.Timestamp.now: Parameter "tz" description should finish with "."
pandas.Timestamp.round: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.round: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.today: Parameter "tz" description should finish with "."
pandas.Timestamp.tz_localize: Parameter "ambiguous" description should finish with "."
pandas.Timestamp.tz_localize: Parameter "nonexistent" description should finish with "."
pandas.Timestamp.tz_localize: Parameter "errors" description should finish with "."
```
closes #28673
- [x] closes #xxxx
- [x] tests added / passed
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28674/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28674/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28674.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28674",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28674.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28674"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28675 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28675/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28675/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28675/events | https://github.com/pandas-dev/pandas/issues/28675 | 499,995,075 | MDU6SXNzdWU0OTk5OTUwNzU= | 28,675 | resample becomes non-deterministic, depending on DateTimeIndex values | {
"avatar_url": "https://avatars.githubusercontent.com/u/5972376?v=4",
"events_url": "https://api.github.com/users/haeusser/events{/privacy}",
"followers_url": "https://api.github.com/users/haeusser/followers",
"following_url": "https://api.github.com/users/haeusser/following{/other_user}",
"gists_url": "https://api.github.com/users/haeusser/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/haeusser",
"id": 5972376,
"login": "haeusser",
"node_id": "MDQ6VXNlcjU5NzIzNzY=",
"organizations_url": "https://api.github.com/users/haeusser/orgs",
"received_events_url": "https://api.github.com/users/haeusser/received_events",
"repos_url": "https://api.github.com/users/haeusser/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/haeusser/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/haeusser/subscriptions",
"type": "User",
"url": "https://api.github.com/users/haeusser"
} | [
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] | closed | false | null | [] | {
"closed_at": "2020-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 | 2019-09-30T00:27:12Z | 2020-05-10T15:52:55Z | 2020-05-10T15:52:55Z | NONE | null | #### Minimal Example
```python
import datetime as dt
import numpy as np
import pandas as pd
def np_to_df(data, start_time):
index = pd.DatetimeIndex(
[start_time + dt.timedelta(milliseconds=t) for t in range(len(data))])
df = pd.DataFrame(data, index=index)
return df
# generate sample data
data = np.sin(np.arange(1000) / 30)
# create DataFrames with DateTimeIndices
df_1 = np_to_df(data, dt.datetime(2019, 9, 30, 9, 41))
df_2 = np_to_df(data, dt.datetime(2019, 9, 30, 9, 42))
# print difference before resampling
print("error_1-2:", np.mean(np.abs(df_1.values - df_2.values)))
# resample
df_1 = df_1.resample("19ms").mean()
df_2 = df_2.resample("19ms").mean()
# print difference after resampling
print("error_1-2:", np.mean(np.abs(df_1.values - df_2.values)))
```
Output:
```
error_1-2: 0.0
error_1-2: 0.04119868246404099
```
#### Problem description
When you give the exact same data to the resample function, it becomes non-deterministic if the `DateTimeIndex` has differing values - even though the frequency is the same.
#### Expected Output
The values of the two `DataFrames` should be exactly the same.
#### Output of ``pd.show_versions()``
<details>
- commit : None
- python : 3.6.8.final.0
- python-bits : 64
- OS : Linux
- OS-release : 4.15.0-51-generic
- machine : x86_64
- processor : x86_64
- byteorder : little
- LC_ALL : None
- LANG : C.UTF-8
- LOCALE : en_US.UTF-8
- pandas : 0.25.1
- numpy : 1.17.2
- pytz : 2019.2
- dateutil : 2.8.0
- pip : 9.0.1
- setuptools : 41.0.1
- Cython : None
- pytest : 4.4.0
- hypothesis : None
- sphinx : None
- blosc : None
- feather : None
- xlsxwriter : None
- lxml.etree : 4.3.3
- html5lib : 0.999999999
- pymysql : None
- psycopg2 : 2.7.7 (dt dec pq3 ext lo64)
- jinja2 : 2.10.1
- IPython : 7.1.1
- pandas_datareader: None
- bs4 : None
- bottleneck : None
- fastparquet : None
- gcsfs : None
- lxml.etree : 4.3.3
- matplotlib : 3.1.1
- numexpr : None
- odfpy : None
- openpyxl : None
- pandas_gbq : None
- pyarrow : None
- pytables : None
- s3fs : None
- scipy : 1.3.1
- sqlalchemy : 1.3.7
- tables : None
- xarray : None
- xlrd : None
- xlwt : None
- xlsxwriter : None
</details>
Happy about any help, @jreback ? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28675/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28675/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28676 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28676/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28676/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28676/events | https://github.com/pandas-dev/pandas/issues/28676 | 499,998,023 | MDU6SXNzdWU0OTk5OTgwMjM= | 28,676 | value_counts with dropna=False gives differing results | {
"avatar_url": "https://avatars.githubusercontent.com/u/9045621?v=4",
"events_url": "https://api.github.com/users/anttttti/events{/privacy}",
"followers_url": "https://api.github.com/users/anttttti/followers",
"following_url": "https://api.github.com/users/anttttti/following{/other_user}",
"gists_url": "https://api.github.com/users/anttttti/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/anttttti",
"id": 9045621,
"login": "anttttti",
"node_id": "MDQ6VXNlcjkwNDU2MjE=",
"organizations_url": "https://api.github.com/users/anttttti/orgs",
"received_events_url": "https://api.github.com/users/anttttti/received_events",
"repos_url": "https://api.github.com/users/anttttti/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/anttttti/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anttttti/subscriptions",
"type": "User",
"url": "https://api.github.com/users/anttttti"
} | [
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 3 | 2019-09-30T00:44:57Z | 2020-04-23T14:14:10Z | 2020-04-23T14:12:56Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
df[col].value_counts(dropna=False, normalize=True)
```
#### Problem description
Doing df[col].value_counts(dropna=False, normalize=True) gives different results on different x64 machines. Updated both machines to latest version of Python (3.7.4), Numpy (1.17.2), Scipy (1.3.1) and Pandas (0.25.1), and the problem still occurs. Regardless of version updates, the two machines produce slightly different orderings of value counts when null-values are present, the only difference being hardware differences.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28676/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28676/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28677 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28677/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28677/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28677/events | https://github.com/pandas-dev/pandas/pull/28677 | 500,017,997 | MDExOlB1bGxSZXF1ZXN0MzIyNTcyNDE1 | 28,677 | minor inconsistency in Categorical.remove_categories error message | {
"avatar_url": "https://avatars.githubusercontent.com/u/32433964?v=4",
"events_url": "https://api.github.com/users/punndcoder28/events{/privacy}",
"followers_url": "https://api.github.com/users/punndcoder28/followers",
"following_url": "https://api.github.com/users/punndcoder28/following{/other_user}",
"gists_url": "https://api.github.com/users/punndcoder28/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/punndcoder28",
"id": 32433964,
"login": "punndcoder28",
"node_id": "MDQ6VXNlcjMyNDMzOTY0",
"organizations_url": "https://api.github.com/users/punndcoder28/orgs",
"received_events_url": "https://api.github.com/users/punndcoder28/received_events",
"repos_url": "https://api.github.com/users/punndcoder28/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/punndcoder28/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/punndcoder28/subscriptions",
"type": "User",
"url": "https://api.github.com/users/punndcoder28"
} | [
{
"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": "e11d... | 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"
} | 17 | 2019-09-30T02:34:07Z | 2019-10-22T15:46:10Z | 2019-10-22T15:46:04Z | CONTRIBUTOR | null | This pull request fixes minor inconsistency in Categorical.remove_categories error message
- [x] closes #28669
- [ ] tests added / passed
- passes `black pandas`
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- whatsnew entry
Changed the error message to show invalid removals as a set. Added tests for removal of null from the categories. Parameterized pytest. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28677/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28677/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28677.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28677",
"merged_at": "2019-10-22T15:46:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28677.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28677"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28678 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28678/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28678/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28678/events | https://github.com/pandas-dev/pandas/issues/28678 | 500,034,514 | MDU6SXNzdWU1MDAwMzQ1MTQ= | 28,678 | BUG: RangeIndex.get_indexer is incorrect for some decreasing RangeIndex | {
"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": "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 s... | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 1 | 2019-09-30T03:49:22Z | 2019-10-02T06:50:51Z | 2019-10-02T06:50:51Z | MEMBER | null | For some decreasing `RangeIndex`, the `get_indexer` method will indicate that all of it's own values are missing, and find matches for values not included in the index:
```python
In [2]: ri = pd.RangeIndex(10, 0, -3)
In [3]: ri.get_indexer(ri)
Out[3]: array([-1, -1, -1, -1])
In [4]: ri.get_indexer(ri - 1)
Out[4]: array([ 1, 2, 3, -1])
```
This will in turn result in methods like `Series.reindex` not working properly:
```python
In [5]: s = pd.Series(list('abcd'), index=ri)
In [6]: s
Out[6]:
10 a
7 b
4 c
1 d
dtype: object
In [7]: s.reindex([10, 9, 7])
Out[7]:
10 NaN
9 b
7 NaN
dtype: object
```
The issue appears to occur specifically for decreasing `RangeIndex` that are not in their canonical form. By canonical form, I mean when `stop` is the next valid value in the range that's not included, e.g. when you think of a more standard range like `range(1, 7, 1)`, 7 is the next valid value that's not present, but when the step is larger than 1 you lose uniqueness of representation with `stop` (i.e. `range(1, 6, 2) == range(1, 7, 2)`).
Note that the code above works properly for the equivalent `RangeIndex` in it's canonical form:
```python
In [8]: ri2 = pd.RangeIndex(start=10, stop=-2, step=-3)
In [9]: ri2.equals(ri)
Out[9]: True
In [10]: ri2.get_indexer(ri2)
Out[10]: array([0, 1, 2, 3])
In [11]: ri2.get_indexer(ri2 - 1)
Out[11]: array([-1, -1, -1, -1])
In [12]: s2 = pd.Series(list('abcd'), index=ri2)
In [13]: s2
Out[13]:
10 a
7 b
4 c
1 d
dtype: object
In [14]: s2.reindex([10, 9, 7])
Out[14]:
10 a
9 NaN
7 b
dtype: object
```
The cause of the issue appears to be that the code to determine `start`, `stop`, `step` when dealing with decreasing `RangeIndex` in `get_indexer` assumes `self.stop` is the canonical form:
https://github.com/pandas-dev/pandas/blob/c4489cbfa5f93e69301486e1ef867caed9f4eb9e/pandas/core/indexes/range.py#L386-L390
Instead of directly computing the reversed values ourselves, I think we should simply take the values from the reversed underlying `range` object:
```diff
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py
index 8783351cc..4c5904e5a 100644
--- a/pandas/core/indexes/range.py
+++ b/pandas/core/indexes/range.py
@@ -387,7 +387,8 @@ class RangeIndex(Int64Index):
start, stop, step = self.start, self.stop, self.step
else:
# Work on reversed range for simplicity:
- start, stop, step = (self.stop - self.step, self.start + 1, -self.step)
+ reverse = self._range[::-1]
+ start, stop, step = reverse.start, reverse.stop, reverse.step
target_array = np.asarray(target)
if not (is_integer_dtype(target_array) and target_array.ndim == 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/28678/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28678/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28679 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28679/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28679/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28679/events | https://github.com/pandas-dev/pandas/issues/28679 | 500,068,419 | MDU6SXNzdWU1MDAwNjg0MTk= | 28,679 | c94eae breaks the test | {
"avatar_url": "https://avatars.githubusercontent.com/u/19762154?v=4",
"events_url": "https://api.github.com/users/0xF4D3C0D3/events{/privacy}",
"followers_url": "https://api.github.com/users/0xF4D3C0D3/followers",
"following_url": "https://api.github.com/users/0xF4D3C0D3/following{/other_user}",
"gists_url": "https://api.github.com/users/0xF4D3C0D3/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0xF4D3C0D3",
"id": 19762154,
"login": "0xF4D3C0D3",
"node_id": "MDQ6VXNlcjE5NzYyMTU0",
"organizations_url": "https://api.github.com/users/0xF4D3C0D3/orgs",
"received_events_url": "https://api.github.com/users/0xF4D3C0D3/received_events",
"repos_url": "https://api.github.com/users/0xF4D3C0D3/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0xF4D3C0D3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xF4D3C0D3/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0xF4D3C0D3"
} | [] | closed | false | null | [] | null | 2 | 2019-09-30T06:02:45Z | 2019-09-30T06:44:13Z | 2019-09-30T06:44:12Z | CONTRIBUTOR | null | the commit <Add Indent Support in to_json (#28130)> breaks the test. `pytest pandas/tests/io/json/test_pandas.py`.


<details>
/Users/donghojung/anaconda3/envs/pandas-dev/lib/python3.7/site-packages/xarray/core/merge.py:17: FutureWarning: The Panel class is removed from pandas. Accessing it from the top-level namespace will also be removed in the next version
PANDAS_TYPES = (pd.Series, pd.DataFrame, pd.Panel)
INSTALLED VERSIONS
------------------
commit : c94eaeec0387eb61eff303c24fc5ada24e1c563c
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 18.7.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 : 0.26.0.dev0+376.gc94eaeec0
numpy : 1.16.5
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.2
setuptools : 41.0.1
Cython : 0.29.13
pytest : 5.0.1
hypothesis : 4.32.2
sphinx : 1.8.5
blosc : None
feather : None
xlsxwriter : 1.1.8
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fastparquet : 0.3.0
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
s3fs : 0.2.1
scipy : 1.3.1
sqlalchemy : 1.3.7
tables : 3.5.2
xarray : 0.12.1
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/28679/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28679/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28680 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28680/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28680/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28680/events | https://github.com/pandas-dev/pandas/pull/28680 | 500,069,264 | MDExOlB1bGxSZXF1ZXN0MzIyNjEzMDEz | 28,680 | BUG: Fix RangeIndex.get_indexer for decreasing RangeIndex | {
"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": "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 s... | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 4 | 2019-09-30T06:05:30Z | 2019-10-02T16:13:03Z | 2019-10-02T06:50:51Z | MEMBER | null | - [X] closes #28678
- [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/28680/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28680/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28680.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28680",
"merged_at": "2019-10-02T06:50:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28680.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28680"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28681 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28681/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28681/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28681/events | https://github.com/pandas-dev/pandas/pull/28681 | 500,191,556 | MDExOlB1bGxSZXF1ZXN0MzIyNzExMzUx | 28,681 | BUG: make pct_change can handle the anchored freq #28664 | {
"avatar_url": "https://avatars.githubusercontent.com/u/19762154?v=4",
"events_url": "https://api.github.com/users/0xF4D3C0D3/events{/privacy}",
"followers_url": "https://api.github.com/users/0xF4D3C0D3/followers",
"following_url": "https://api.github.com/users/0xF4D3C0D3/following{/other_user}",
"gists_url": "https://api.github.com/users/0xF4D3C0D3/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0xF4D3C0D3",
"id": 19762154,
"login": "0xF4D3C0D3",
"node_id": "MDQ6VXNlcjE5NzYyMTU0",
"organizations_url": "https://api.github.com/users/0xF4D3C0D3/orgs",
"received_events_url": "https://api.github.com/users/0xF4D3C0D3/received_events",
"repos_url": "https://api.github.com/users/0xF4D3C0D3/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0xF4D3C0D3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xF4D3C0D3/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0xF4D3C0D3"
} | [
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "eb6420",
"default": false,
"description... | 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"
} | 8 | 2019-09-30T10:34:21Z | 2019-11-15T14:55:09Z | 2019-11-15T14:55:06Z | CONTRIBUTOR | null | - [x] closes #28664
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
pct_change didn't work when the freq is anchored(like `1W`, `1M`, `BM`)
so when the freq is anchored, use `data.asfreq(freq)` instead of the raw
`data`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28681/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28681/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28681.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28681",
"merged_at": "2019-11-15T14:55:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28681.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28681"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28682 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28682/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28682/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28682/events | https://github.com/pandas-dev/pandas/issues/28682 | 500,210,587 | MDU6SXNzdWU1MDAyMTA1ODc= | 28,682 | HDF Store – How to select from table with multiindex? | {
"avatar_url": "https://avatars.githubusercontent.com/u/51128957?v=4",
"events_url": "https://api.github.com/users/oyibor/events{/privacy}",
"followers_url": "https://api.github.com/users/oyibor/followers",
"following_url": "https://api.github.com/users/oyibor/following{/other_user}",
"gists_url": "https://api.github.com/users/oyibor/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/oyibor",
"id": 51128957,
"login": "oyibor",
"node_id": "MDQ6VXNlcjUxMTI4OTU3",
"organizations_url": "https://api.github.com/users/oyibor/orgs",
"received_events_url": "https://api.github.com/users/oyibor/received_events",
"repos_url": "https://api.github.com/users/oyibor/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/oyibor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oyibor/subscriptions",
"type": "User",
"url": "https://api.github.com/users/oyibor"
} | [] | closed | false | null | [] | null | 10 | 2019-09-30T11:16:29Z | 2019-10-04T16:56:21Z | 2019-10-04T10:18:41Z | NONE | null | I want to update data within a HDF table that has a multiindex.
This should be done in two steps:
- Remove the data from the HDF Store where the multiindex equals the multiindex of an update table (=> store.remove)
- Insert the new data into the HDF Store (=> store.append)
The problem is that I do not find a way to select the multiindex.
I would need something like this:
store.remove(‘table_name’, where="index in df_update.index")
Is there a way to select a multiindex from a HDF store? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28682/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28682/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28683 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28683/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28683/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28683/events | https://github.com/pandas-dev/pandas/issues/28683 | 500,216,973 | MDU6SXNzdWU1MDAyMTY5NzM= | 28,683 | Read long text from a cell | {
"avatar_url": "https://avatars.githubusercontent.com/u/54467678?v=4",
"events_url": "https://api.github.com/users/SenseiBunny/events{/privacy}",
"followers_url": "https://api.github.com/users/SenseiBunny/followers",
"following_url": "https://api.github.com/users/SenseiBunny/following{/other_user}",
"gists_url": "https://api.github.com/users/SenseiBunny/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SenseiBunny",
"id": 54467678,
"login": "SenseiBunny",
"node_id": "MDQ6VXNlcjU0NDY3Njc4",
"organizations_url": "https://api.github.com/users/SenseiBunny/orgs",
"received_events_url": "https://api.github.com/users/SenseiBunny/received_events",
"repos_url": "https://api.github.com/users/SenseiBunny/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SenseiBunny/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SenseiBunny/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SenseiBunny"
} | [
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 3 | 2019-09-30T11:31:16Z | 2020-02-17T14:53:36Z | 2020-02-17T14:53:36Z | NONE | null | So I have very long text in excel cell, when I want to read this it only shows a few lines. How to get all text from a cell?
tekst=self.alco.loc[self.alco['Name']=='Vodka', 'description']
tekst=tekst.to_string(index=False)
print(tekst)
Output:
Vodka is a distilled beverage composed primari...
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28683/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28683/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28684 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28684/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28684/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28684/events | https://github.com/pandas-dev/pandas/pull/28684 | 500,259,494 | MDExOlB1bGxSZXF1ZXN0MzIyNzY3NTcz | 28,684 | Deprecate is copy in take | {
"avatar_url": "https://avatars.githubusercontent.com/u/7977255?v=4",
"events_url": "https://api.github.com/users/chrisstpierre/events{/privacy}",
"followers_url": "https://api.github.com/users/chrisstpierre/followers",
"following_url": "https://api.github.com/users/chrisstpierre/following{/other_user}",
"gists_url": "https://api.github.com/users/chrisstpierre/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrisstpierre",
"id": 7977255,
"login": "chrisstpierre",
"node_id": "MDQ6VXNlcjc5NzcyNTU=",
"organizations_url": "https://api.github.com/users/chrisstpierre/orgs",
"received_events_url": "https://api.github.com/users/chrisstpierre/received_events",
"repos_url": "https://api.github.com/users/chrisstpierre/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrisstpierre/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrisstpierre/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrisstpierre"
} | [] | closed | false | null | [] | null | 2 | 2019-09-30T12:56:49Z | 2019-10-01T03:54:02Z | 2019-10-01T03:54:02Z | NONE | null | - [ X ] closes #27357
- [X ] tests added / passed
- [ X ] passes `black pandas`
- [ X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28684/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28684/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28684.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28684",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28684.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28684"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28685 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28685/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28685/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28685/events | https://github.com/pandas-dev/pandas/issues/28685 | 500,299,559 | MDU6SXNzdWU1MDAyOTk1NTk= | 28,685 | DOC: Fix formatting errors in pandas.api.extensions.ExtensionArray | {
"avatar_url": "https://avatars.githubusercontent.com/u/38143549?v=4",
"events_url": "https://api.github.com/users/HughKelley/events{/privacy}",
"followers_url": "https://api.github.com/users/HughKelley/followers",
"following_url": "https://api.github.com/users/HughKelley/following{/other_user}",
"gists_url": "https://api.github.com/users/HughKelley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HughKelley",
"id": 38143549,
"login": "HughKelley",
"node_id": "MDQ6VXNlcjM4MTQzNTQ5",
"organizations_url": "https://api.github.com/users/HughKelley/orgs",
"received_events_url": "https://api.github.com/users/HughKelley/received_events",
"repos_url": "https://api.github.com/users/HughKelley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HughKelley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HughKelley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HughKelley"
} | [] | closed | false | null | [] | null | 0 | 2019-09-30T14:04:06Z | 2019-10-15T13:04:33Z | 2019-10-14T21:48:15Z | CONTRIBUTOR | null | ```python
python scripts/validate_docstrings.py pandas.api.extensions.ExtensionArray.view
python scripts/validate_docstrings.py pandas.api.extensions.ExtensionArray.fillna
python scripts/validate_docstrings.py pandas.api.extensions.ExtensionArray.shift
```
#### Problem description
pandas.api.extensions.ExtensionArray.view: Parameter "dtype" description should finish with "."
pandas.api.extensions.ExtensionArray.view: Return value has no description
pandas.api.extensions.ExtensionArray.fillna: Parameter "method" description should finish with "."
pandas.api.extensions.ExtensionArray.fillna: The first line of the returns section should contain only the type, unless multiple values are being returned
pandas.api.extensions.ExtensionArray.fillna: Return value has no description
pandas.api.extensions.ExtensionArray.shift: Parameter "fill_value" description should finish with "."
pandas.api.extensions.ExtensionArray.shift: The first line of the returns section should contain only the type, unless multiple values are being returned
pandas.api.extensions.ExtensionArray.shift: Return value has no description
```
This is a subset of #27977 and #28602 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28685/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28685/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28686 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28686/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28686/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28686/events | https://github.com/pandas-dev/pandas/pull/28686 | 500,326,695 | MDExOlB1bGxSZXF1ZXN0MzIyODIyNjcw | 28,686 | DOC: fix formatting in the ExtensionArray docstrings | {
"avatar_url": "https://avatars.githubusercontent.com/u/38143549?v=4",
"events_url": "https://api.github.com/users/HughKelley/events{/privacy}",
"followers_url": "https://api.github.com/users/HughKelley/followers",
"following_url": "https://api.github.com/users/HughKelley/following{/other_user}",
"gists_url": "https://api.github.com/users/HughKelley/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HughKelley",
"id": 38143549,
"login": "HughKelley",
"node_id": "MDQ6VXNlcjM4MTQzNTQ5",
"organizations_url": "https://api.github.com/users/HughKelley/orgs",
"received_events_url": "https://api.github.com/users/HughKelley/received_events",
"repos_url": "https://api.github.com/users/HughKelley/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HughKelley/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HughKelley/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HughKelley"
} | [
{
"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"
} | 6 | 2019-09-30T14:47:21Z | 2019-10-14T21:50:43Z | 2019-10-14T21:48:16Z | CONTRIBUTOR | null | - [x] closes #28685
- [ ] 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/28686/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28686/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28686.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28686",
"merged_at": "2019-10-14T21:48:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28686.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28686"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28687 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28687/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28687/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28687/events | https://github.com/pandas-dev/pandas/issues/28687 | 500,338,144 | MDU6SXNzdWU1MDAzMzgxNDQ= | 28,687 | DOC: Docstrings Formatting Error PR09,PR08 in pandas.plotting | {
"avatar_url": "https://avatars.githubusercontent.com/u/7444140?v=4",
"events_url": "https://api.github.com/users/josibake/events{/privacy}",
"followers_url": "https://api.github.com/users/josibake/followers",
"following_url": "https://api.github.com/users/josibake/following{/other_user}",
"gists_url": "https://api.github.com/users/josibake/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josibake",
"id": 7444140,
"login": "josibake",
"node_id": "MDQ6VXNlcjc0NDQxNDA=",
"organizations_url": "https://api.github.com/users/josibake/orgs",
"received_events_url": "https://api.github.com/users/josibake/received_events",
"repos_url": "https://api.github.com/users/josibake/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josibake/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josibake/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josibake"
} | [] | closed | false | null | [] | null | 1 | 2019-09-30T15:04:31Z | 2019-10-01T15:50:52Z | 2019-10-01T15:50:52Z | CONTRIBUTOR | null | fix PR09,PR08 errors in `pandas.plotting`:
```
pandas.plotting.andrews_curves: Parameter "frame" description should finish with "."
pandas.plotting.andrews_curves: Parameter "color" description should finish with "."
pandas.plotting.andrews_curves: Parameter "kwds" description should finish with "."
pandas.plotting.autocorrelation_plot: Parameter "kwds" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "class_column" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "cols" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "ax" description should start with a capital letter
pandas.plotting.parallel_coordinates: Parameter "ax" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "color" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "use_columns" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "xticks" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "axvlines" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "axvlines_kwds" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "sort_labels" description should finish with "."
pandas.plotting.parallel_coordinates: Parameter "kwds" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "alpha" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "alpha" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "figsize" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "figsize" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "grid" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "grid" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "diagonal" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "diagonal" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "marker" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "hist_kwds" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "density_kwds" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "range_padding" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "range_padding" description should finish with "."
pandas.plotting.scatter_matrix: Parameter "kwds" description should finish with "."
pandas.plotting.table: Parameter "data" description should start with a capital letter
pandas.plotting.table: Parameter "data" description should finish with "."
pandas.plotting.table: Parameter "kwargs" description should start with a capital letter
```
This is a subset of #28602 and #27977
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28687/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28687/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28688 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28688/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28688/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28688/events | https://github.com/pandas-dev/pandas/issues/28688 | 500,343,867 | MDU6SXNzdWU1MDAzNDM4Njc= | 28,688 | Possible overflow errors with pd.rolling(...).std() | {
"avatar_url": "https://avatars.githubusercontent.com/u/923438?v=4",
"events_url": "https://api.github.com/users/fjanoos/events{/privacy}",
"followers_url": "https://api.github.com/users/fjanoos/followers",
"following_url": "https://api.github.com/users/fjanoos/following{/other_user}",
"gists_url": "https://api.github.com/users/fjanoos/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fjanoos",
"id": 923438,
"login": "fjanoos",
"node_id": "MDQ6VXNlcjkyMzQzOA==",
"organizations_url": "https://api.github.com/users/fjanoos/orgs",
"received_events_url": "https://api.github.com/users/fjanoos/received_events",
"repos_url": "https://api.github.com/users/fjanoos/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fjanoos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fjanoos/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fjanoos"
} | [
{
"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... | closed | false | null | [] | null | 1 | 2019-09-30T15:13:45Z | 2020-10-18T00:18:02Z | 2020-10-18T00:18:02Z | NONE | null | I'm experiencing a very weird bug with one very specific dataset - when I try to use pandas' rolling.std function on it.
Basically - the setup is -
* I have a dataframe with 1 column stored in float32 format
```
<class 'pandas.core.frame.DataFrame'>
DatetimeIndex: 2186 entries, 2010-11-30 16:00:00 to 2019-08-16 16:00:00
Data columns (total 1 columns):
high 2186 non-null float32
dtypes: float32(1)
memory usage: 25.6 KB
```
```python
ddf.head()
```

Here is a plot of the full timeseries (left column) along with a tail of 200 rows (right column)

Note the scale of the numbers here - it goes from 1e8 to 1e1.
Next I compute the rolling standard deviations using rolling means, as per:
```python
rs = np.sqrt((ddf.high ** 2).rolling(10).mean() - (ddf.high.rolling(10).mean() ) ** 2)
```
This is what the rolling std computed this way it looks like (and matches what I would expect):

But if I use
```python
rs = ddf.rolling(10).high.std()
```
this is what I get:

Something has gotten corrupted - as we can see in the tail of 200 rows in the right.
Now - however, if I rescale the data to make the numbers sit in a smaller range, compute the rolling std and scale it back up
```python
ddf = ddf.assign( high_rescaled=ddf.high / 1e8 )
rs = ddf.rolling(10).high_rescaled.std() * 1e8
```
This is what I get

which matches the output computed using rolling means !
Note - the original data was in np.float32 format. So I thought that this bug might be happening because of some overflow issues (which it really should not - the window is only 10 long !!).
So I converted the data to float64 to test this:
```python
ddf.high = ddf.high.astype(np.float64)
display( ddf.info() )
```
```
<class 'pandas.core.frame.DataFrame'>
DatetimeIndex: 2186 entries, 2010-11-30 16:00:00 to 2019-08-16 16:00:00
Data columns (total 1 columns):
high 2186 non-null float64
dtypes: float64(1)
memory usage: 34.2 KB
```
In this case - even applying rolling.std() to rescaled version of the data (which worked for float32) - is broken !!

#### Minimum Reproducible Example
Regarding generating an MRE - here is the rub.
The bug seems to be a function of the numerics specific to this dataset - and I cannot reproduce it using random data (since I don't know what feature of the numerics is causing this).
Now, if I save the data as a pickle file (using df.to_pickle) and load it back in - I can reproduce these results exactly.
However, if I save it as a csv file (for sharing here) - and load it back in - I get a whole new level of badness. The results look really bad for all cases after this round-tripping. This seems to indicate that there is some thing about the *exact numbers* of the dataset that is triggering some numerical problems with rolling.std.
[rs.zip](https://github.com/pandas-dev/pandas/files/3672047/rs.zip)
```python
from pylab import *
import pandas as pd
ddf = pd.read_csv( '/path/to/rs.csv')
ddf.high = ddf.high
display( ddf.info() )
figure()
subplot(121)
plot( ddf.high, '-r' )
subplot(122)
plot( ddf.high.tail(200), '-r' )
gcf().suptitle( 'original data' )
figure()
subplot(121)
rs = np.sqrt( (ddf.high ** 2).rolling(10).mean() - (ddf.high.rolling(10).mean() ) ** 2 )
plot( rs, '-b' )
subplot(122)
plot( rs.tail(200), '-b' )
gcf().suptitle( 'rolling std computed using rolling means on original data' )
figure()
subplot(121)
rs = ddf.rolling(10).high.std()
plot( rs, '-b' )
subplot(122)
plot( rs.tail(200), '-b' )
gcf().suptitle( 'rolling std computed on original data' )
figure()
subplot(121)
ddf = ddf.assign( high_rescaled=ddf.high / 1e8 )
rs = ddf.rolling(10).high_rescaled.std() * 1e8
plot( rs, '-b' )
subplot(122)
plot( rs.tail(200), '-b' )
gcf().suptitle( 'rolling std computed on rescaled data' )
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 4.9.0-9-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 19.2.3
setuptools: 41.2.0
Cython: None
numpy: 1.16.4
scipy: 1.3.1
pyarrow: 0.13.0
xarray: 0.13.0+6.g4617e68b
IPython: 7.8.0
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.1.0
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml.etree: 4.4.1
bs4: 4.8.0
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 0.3.0
</details>
@jreback | {
"+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/28688/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28688/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28689 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28689/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28689/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28689/events | https://github.com/pandas-dev/pandas/pull/28689 | 500,377,468 | MDExOlB1bGxSZXF1ZXN0MzIyODYyNzY3 | 28,689 | DOC: fix PR09,PR08 docstring errors in pandas.plotting | {
"avatar_url": "https://avatars.githubusercontent.com/u/7444140?v=4",
"events_url": "https://api.github.com/users/josibake/events{/privacy}",
"followers_url": "https://api.github.com/users/josibake/followers",
"following_url": "https://api.github.com/users/josibake/following{/other_user}",
"gists_url": "https://api.github.com/users/josibake/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josibake",
"id": 7444140,
"login": "josibake",
"node_id": "MDQ6VXNlcjc0NDQxNDA=",
"organizations_url": "https://api.github.com/users/josibake/orgs",
"received_events_url": "https://api.github.com/users/josibake/received_events",
"repos_url": "https://api.github.com/users/josibake/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josibake/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josibake/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josibake"
} | [
{
"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"
} | 2 | 2019-09-30T16:11:59Z | 2019-10-01T18:14:49Z | 2019-10-01T15:50:52Z | CONTRIBUTOR | null | fixes the errors along with minor changes to standardize kwds -> **kwargs
closes #28687
verified this fixes PR09,PR08 errors with:
```
./scripts/validate_docstrings.py --errors=PR09,PR08 | grep "pandas.plotting"
```
- [x] closes #xxxx
- [x] tests added / passed | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28689/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28689/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28689.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28689",
"merged_at": "2019-10-01T15:50:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28689.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28689"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28690 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28690/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28690/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28690/events | https://github.com/pandas-dev/pandas/issues/28690 | 500,381,318 | MDU6SXNzdWU1MDAzODEzMTg= | 28,690 | `reindex` of empty CategoricalIndex sometimes fails if target is not a `CategoricalIndex` | {
"avatar_url": "https://avatars.githubusercontent.com/u/18488?v=4",
"events_url": "https://api.github.com/users/batterseapower/events{/privacy}",
"followers_url": "https://api.github.com/users/batterseapower/followers",
"following_url": "https://api.github.com/users/batterseapower/following{/other_user}",
"gists_url": "https://api.github.com/users/batterseapower/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/batterseapower",
"id": 18488,
"login": "batterseapower",
"node_id": "MDQ6VXNlcjE4NDg4",
"organizations_url": "https://api.github.com/users/batterseapower/orgs",
"received_events_url": "https://api.github.com/users/batterseapower/received_events",
"repos_url": "https://api.github.com/users/batterseapower/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/batterseapower/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/batterseapower/subscriptions",
"type": "User",
"url": "https://api.github.com/users/batterseapower"
} | [
{
"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 s... | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2019-09-30T16:19:30Z | 2020-12-17T23:40:05Z | 2020-12-17T23:40:05Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
This fails with `AttributeError: 'Index' object has no attribute 'codes'`:
```python
pd.DataFrame(columns=pd.CategoricalIndex([], categories=['A'])).reindex(columns=pd.Index(['A']))
```
The backtrace is:
```
c:\python36\lib\site-packages\pandas\util\_decorators.py in wrapper(*args, **kwargs)
195 @wraps(func)
196 def wrapper(*args, **kwargs):
--> 197 return func(*args, **kwargs)
198
199 if not PY2:
c:\python36\lib\site-packages\pandas\core\frame.py in reindex(self, *args, **kwargs)
3807 kwargs.pop('axis', None)
3808 kwargs.pop('labels', None)
-> 3809 return super(DataFrame, self).reindex(**kwargs)
3810
3811 @Appender(_shared_docs['reindex_axis'] % _shared_doc_kwargs)
c:\python36\lib\site-packages\pandas\core\generic.py in reindex(self, *args, **kwargs)
4354 # perform the reindex on the axes
4355 return self._reindex_axes(axes, level, limit, tolerance, method,
-> 4356 fill_value, copy).__finalize__(self)
4357
4358 def _reindex_axes(self, axes, level, limit, tolerance, method, fill_value,
c:\python36\lib\site-packages\pandas\core\frame.py in _reindex_axes(self, axes, level, limit, tolerance, method, fill_value, copy)
3734 if columns is not None:
3735 frame = frame._reindex_columns(columns, method, copy, level,
-> 3736 fill_value, limit, tolerance)
3737
3738 index = axes['index']
c:\python36\lib\site-packages\pandas\core\frame.py in _reindex_columns(self, new_columns, method, copy, level, fill_value, limit, tolerance)
3756 new_columns, indexer = self.columns.reindex(new_columns, method=method,
3757 level=level, limit=limit,
-> 3758 tolerance=tolerance)
3759 return self._reindex_with_indexers({1: [new_columns, indexer]},
3760 copy=copy, fill_value=fill_value,
c:\python36\lib\site-packages\pandas\core\indexes\category.py in reindex(self, target, method, level, limit, tolerance)
521 else:
522
--> 523 codes = new_target.codes.copy()
524 codes[indexer == -1] = cats[missing]
525 new_target = self._create_from_codes(codes)
```
#### Problem description
This should not fail, but rather return an `0x1` DataFrame with the new columns. Other, closely-related, expressions **do** work correctly in this scenario e.g.:
```
pd.DataFrame(columns=pd.CategoricalIndex([], categories=['A'])).reindex(columns=pd.Index(['B']))
pd.DataFrame(columns=pd.CategoricalIndex([], categories=['A'])).reindex(columns=pd.CategoricalIndex(['A']))
pd.DataFrame(columns=pd.CategoricalIndex([], categories=['A'])).reindex(columns=pd.CategoricalIndex(['B']))
```
#### Expected Output
```
pd.DataFrame(columns=pd.Index(['A']))
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.1
pytest: 3.1.2
pip: 19.2.1
setuptools: 39.0.1
Cython: 0.29.6
numpy: 1.17.0
scipy: 1.2.1
pyarrow: 0.13.0
xarray: 0.12.1
IPython: 6.1.0
sphinx: 2.1.1
patsy: 0.4.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.3.0.dev0
tables: None
numexpr: 2.6.9
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.4
bs4: 4.7.1
html5lib: 0.9999999
sqlalchemy: 1.1.11
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: 0.3.1
pandas_gbq: None
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/28690/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28690/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28691 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28691/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28691/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28691/events | https://github.com/pandas-dev/pandas/pull/28691 | 500,475,767 | MDExOlB1bGxSZXF1ZXN0MzIyOTM4MDEy | 28,691 | To html encoding add | {
"avatar_url": "https://avatars.githubusercontent.com/u/1714565?v=4",
"events_url": "https://api.github.com/users/cailurus/events{/privacy}",
"followers_url": "https://api.github.com/users/cailurus/followers",
"following_url": "https://api.github.com/users/cailurus/following{/other_user}",
"gists_url": "https://api.github.com/users/cailurus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cailurus",
"id": 1714565,
"login": "cailurus",
"node_id": "MDQ6VXNlcjE3MTQ1NjU=",
"organizations_url": "https://api.github.com/users/cailurus/orgs",
"received_events_url": "https://api.github.com/users/cailurus/received_events",
"repos_url": "https://api.github.com/users/cailurus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cailurus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cailurus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cailurus"
} | [] | closed | false | null | [] | null | 1 | 2019-09-30T19:29:12Z | 2019-09-30T19:31:34Z | 2019-09-30T19:31:34Z | CONTRIBUTOR | null | - [x ] closes #xxxx
- [x ] tests added / passed
- [x ] passes `black pandas`
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28691/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28691/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28691.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28691",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28691.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28691"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28692 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28692/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28692/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28692/events | https://github.com/pandas-dev/pandas/pull/28692 | 500,479,453 | MDExOlB1bGxSZXF1ZXN0MzIyOTQwNDA5 | 28,692 | To html encoding add | {
"avatar_url": "https://avatars.githubusercontent.com/u/1714565?v=4",
"events_url": "https://api.github.com/users/cailurus/events{/privacy}",
"followers_url": "https://api.github.com/users/cailurus/followers",
"following_url": "https://api.github.com/users/cailurus/following{/other_user}",
"gists_url": "https://api.github.com/users/cailurus/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cailurus",
"id": 1714565,
"login": "cailurus",
"node_id": "MDQ6VXNlcjE3MTQ1NjU=",
"organizations_url": "https://api.github.com/users/cailurus/orgs",
"received_events_url": "https://api.github.com/users/cailurus/received_events",
"repos_url": "https://api.github.com/users/cailurus/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cailurus/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cailurus/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cailurus"
} | [
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
}
] | 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"
} | 8 | 2019-09-30T19:35:35Z | 2019-10-16T12:29:27Z | 2019-10-16T12:29:24Z | CONTRIBUTOR | null | - [x ] closes https://github.com/pandas-dev/pandas/issues/28663
- [x ] tests added / passed
- [x ] passes `black pandas`
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] whatsnew entry
added encoding argument to DataFrame.to_html()
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28692/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28692/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28692.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28692",
"merged_at": "2019-10-16T12:29:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28692.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28692"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28693 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28693/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28693/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28693/events | https://github.com/pandas-dev/pandas/pull/28693 | 500,497,526 | MDExOlB1bGxSZXF1ZXN0MzIyOTUzMzc3 | 28,693 | TST: Add test for categorical with str and tuples | {
"avatar_url": "https://avatars.githubusercontent.com/u/780341?v=4",
"events_url": "https://api.github.com/users/has2k1/events{/privacy}",
"followers_url": "https://api.github.com/users/has2k1/followers",
"following_url": "https://api.github.com/users/has2k1/following{/other_user}",
"gists_url": "https://api.github.com/users/has2k1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/has2k1",
"id": 780341,
"login": "has2k1",
"node_id": "MDQ6VXNlcjc4MDM0MQ==",
"organizations_url": "https://api.github.com/users/has2k1/orgs",
"received_events_url": "https://api.github.com/users/has2k1/received_events",
"repos_url": "https://api.github.com/users/has2k1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/has2k1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/has2k1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/has2k1"
} | [
{
"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": "e11d21",
"d... | 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 | 2019-09-30T20:10:08Z | 2019-10-07T15:58:05Z | 2019-10-06T22:02:43Z | CONTRIBUTOR | null | The bug is not present any more.
- [x] closes #21416
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- ~[ ] whatsnew entry~
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28693/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28693/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28693.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28693",
"merged_at": "2019-10-06T22:02:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28693.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28693"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28694 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28694/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28694/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28694/events | https://github.com/pandas-dev/pandas/issues/28694 | 500,500,094 | MDU6SXNzdWU1MDA1MDAwOTQ= | 28,694 | How to create a file with JsonL extension from my dataframe? | {
"avatar_url": "https://avatars.githubusercontent.com/u/48585802?v=4",
"events_url": "https://api.github.com/users/Schrodinger-cat-kz/events{/privacy}",
"followers_url": "https://api.github.com/users/Schrodinger-cat-kz/followers",
"following_url": "https://api.github.com/users/Schrodinger-cat-kz/following{/other_user}",
"gists_url": "https://api.github.com/users/Schrodinger-cat-kz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Schrodinger-cat-kz",
"id": 48585802,
"login": "Schrodinger-cat-kz",
"node_id": "MDQ6VXNlcjQ4NTg1ODAy",
"organizations_url": "https://api.github.com/users/Schrodinger-cat-kz/orgs",
"received_events_url": "https://api.github.com/users/Schrodinger-cat-kz/received_events",
"repos_url": "https://api.github.com/users/Schrodinger-cat-kz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Schrodinger-cat-kz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Schrodinger-cat-kz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Schrodinger-cat-kz"
} | [] | closed | false | null | [] | null | 2 | 2019-09-30T20:15:32Z | 2019-09-30T20:54:48Z | 2019-09-30T20:54:48Z | NONE | null | Hi, how can I create a file with **JsonL extension** from my dataframe/list/dictionary? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28694/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28694/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28695 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28695/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28695/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28695/events | https://github.com/pandas-dev/pandas/pull/28695 | 500,542,183 | MDExOlB1bGxSZXF1ZXN0MzIyOTg4MDYx | 28,695 | Picking up issue#17304 from closed PR | {
"avatar_url": "https://avatars.githubusercontent.com/u/26481954?v=4",
"events_url": "https://api.github.com/users/Alexandreae/events{/privacy}",
"followers_url": "https://api.github.com/users/Alexandreae/followers",
"following_url": "https://api.github.com/users/Alexandreae/following{/other_user}",
"gists_url": "https://api.github.com/users/Alexandreae/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alexandreae",
"id": 26481954,
"login": "Alexandreae",
"node_id": "MDQ6VXNlcjI2NDgxOTU0",
"organizations_url": "https://api.github.com/users/Alexandreae/orgs",
"received_events_url": "https://api.github.com/users/Alexandreae/received_events",
"repos_url": "https://api.github.com/users/Alexandreae/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alexandreae/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alexandreae/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alexandreae"
} | [] | closed | false | null | [] | null | 0 | 2019-09-30T21:43:04Z | 2019-09-30T21:43:24Z | 2019-09-30T21:43:24Z | NONE | 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/28695/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28695/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28695.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28695",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28695.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28695"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28696 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28696/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28696/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28696/events | https://github.com/pandas-dev/pandas/pull/28696 | 500,542,429 | MDExOlB1bGxSZXF1ZXN0MzIyOTg4Mjcz | 28,696 | feature wanted: pd.DataFrame.info() should show line numbers #17304 | {
"avatar_url": "https://avatars.githubusercontent.com/u/26481954?v=4",
"events_url": "https://api.github.com/users/Alexandreae/events{/privacy}",
"followers_url": "https://api.github.com/users/Alexandreae/followers",
"following_url": "https://api.github.com/users/Alexandreae/following{/other_user}",
"gists_url": "https://api.github.com/users/Alexandreae/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Alexandreae",
"id": 26481954,
"login": "Alexandreae",
"node_id": "MDQ6VXNlcjI2NDgxOTU0",
"organizations_url": "https://api.github.com/users/Alexandreae/orgs",
"received_events_url": "https://api.github.com/users/Alexandreae/received_events",
"repos_url": "https://api.github.com/users/Alexandreae/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Alexandreae/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Alexandreae/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Alexandreae"
} | [
{
"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 | [] | null | 4 | 2019-09-30T21:43:43Z | 2019-10-11T21:15:30Z | 2019-10-11T21:15:30Z | NONE | 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/28696/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28696/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28696.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28696",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28696.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28696"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28697 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28697/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28697/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28697/events | https://github.com/pandas-dev/pandas/issues/28697 | 500,545,419 | MDU6SXNzdWU1MDA1NDU0MTk= | 28,697 | Series.sort_values using mergesort and descending is not stable | {
"avatar_url": "https://avatars.githubusercontent.com/u/780341?v=4",
"events_url": "https://api.github.com/users/has2k1/events{/privacy}",
"followers_url": "https://api.github.com/users/has2k1/followers",
"following_url": "https://api.github.com/users/has2k1/following{/other_user}",
"gists_url": "https://api.github.com/users/has2k1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/has2k1",
"id": 780341,
"login": "has2k1",
"node_id": "MDQ6VXNlcjc4MDM0MQ==",
"organizations_url": "https://api.github.com/users/has2k1/orgs",
"received_events_url": "https://api.github.com/users/has2k1/received_events",
"repos_url": "https://api.github.com/users/has2k1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/has2k1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/has2k1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/has2k1"
} | [
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
},
{
... | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/51122019?v=4",
"events_url": "https://api.github.com/users/na2shell/events{/privacy}",
"followers_url": "https://api.github.com/users/na2shell/followers",
"following_url": "https://api.github.com/users/na2shell/following{/other_user}",
"gists_url": "https://api.github.com/users/na2shell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/na2shell",
"id": 51122019,
"login": "na2shell",
"node_id": "MDQ6VXNlcjUxMTIyMDE5",
"organizations_url": "https://api.github.com/users/na2shell/orgs",
"received_events_url": "https://api.github.com/users/na2shell/received_events",
"repos_url": "https://api.github.com/users/na2shell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/na2shell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/na2shell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/na2shell"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/51122019?v=4",
"events_url": "https://api.github.com/users/na2shell/events{/privacy}",
"followers_url": "https://api.github.com/users/na2shell/followers",
"following_url": "https://api.github.com/users/na2shell/following{/other_user}",
"gi... | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2019-09-30T21:50:46Z | 2021-05-31T14:27:03Z | 2021-05-31T14:27:03Z | CONTRIBUTOR | null | #### Code Sample
```python
import pandas as pd
s = pd.Series([1, 2, 1, 3], ['first', 'b', 'second', 'c'])
print(s.sort_values(ascending=False, kind='mergesort'))
```
#### Output
```
c 3
b 2
second 1
first 1
dtype: int64
```
#### Expected Output
```
c 3
b 2
first 1
second 1
dtype: int64
```
#### Problem description
Mergesort should be stable irrespective of direction, but `ascending=False` (which is not stable) is just the reverse of `ascending=True` (which is stable). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28697/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28697/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28698 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28698/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28698/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28698/events | https://github.com/pandas-dev/pandas/pull/28698 | 500,550,551 | MDExOlB1bGxSZXF1ZXN0MzIyOTk0NDY0 | 28,698 | BUG: Fix Series.sort_values descending & mergesort | {
"avatar_url": "https://avatars.githubusercontent.com/u/780341?v=4",
"events_url": "https://api.github.com/users/has2k1/events{/privacy}",
"followers_url": "https://api.github.com/users/has2k1/followers",
"following_url": "https://api.github.com/users/has2k1/following{/other_user}",
"gists_url": "https://api.github.com/users/has2k1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/has2k1",
"id": 780341,
"login": "has2k1",
"node_id": "MDQ6VXNlcjc4MDM0MQ==",
"organizations_url": "https://api.github.com/users/has2k1/orgs",
"received_events_url": "https://api.github.com/users/has2k1/received_events",
"repos_url": "https://api.github.com/users/has2k1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/has2k1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/has2k1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/has2k1"
} | [] | closed | false | null | [] | null | 3 | 2019-09-30T22:03:25Z | 2019-12-09T18:04:36Z | 2019-12-09T18:04:36Z | CONTRIBUTOR | null | The solution uses the `nargsort` function, which was created to handle
in one place the intricacies of sorting. Not adapting Series.sort_values
to use may have been an oversight.
- [ ] closes #28697
- [ ] 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/28698/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28698/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28698.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28698",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28698.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28698"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28699 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28699/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28699/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28699/events | https://github.com/pandas-dev/pandas/issues/28699 | 500,576,966 | MDU6SXNzdWU1MDA1NzY5NjY= | 28,699 | read_hdf closes HDF5 stores that it didn't open. | {
"avatar_url": "https://avatars.githubusercontent.com/u/789873?v=4",
"events_url": "https://api.github.com/users/kboone/events{/privacy}",
"followers_url": "https://api.github.com/users/kboone/followers",
"following_url": "https://api.github.com/users/kboone/following{/other_user}",
"gists_url": "https://api.github.com/users/kboone/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kboone",
"id": 789873,
"login": "kboone",
"node_id": "MDQ6VXNlcjc4OTg3Mw==",
"organizations_url": "https://api.github.com/users/kboone/orgs",
"received_events_url": "https://api.github.com/users/kboone/received_events",
"repos_url": "https://api.github.com/users/kboone/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kboone/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kboone/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kboone"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
... | 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 | 2019-09-30T23:29:06Z | 2019-10-10T02:05:01Z | 2019-10-10T02:05:01Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({'a': range(10), 'b': range(10)})
df.to_hdf('/tmp/1.hdf', 'key2')
store = pd.HDFStore('/tmp/1.hdf', 'r')
try:
pd.read_hdf(store, 'key1')
except KeyError:
pass
pd.read_hdf(store, 'key2')
```
#### Problem description
Due to a recent change in pandas, the read_hdf function closes HDF5 stores if it fails to read from the file. In my opinion, this is the expected behavior if read_hdf opened the file itself, but shouldn't happen if it was passed a file that is already open. One use case for this is a series of try/except blocks that try to read a series of different keys from an HDF5 file that may or may not have the individual keys, as in the example above. The attempt to read key2 will fail because the first attempt will have closed the file.
This issue was introduced in pull #25863 to address issue #25766 where read_hdf wasn't closing files that it hadn't opened itself.
The fix is pretty easy, just add `if not isinstance(path_or_buf, HDFStore):` before `store.close()` at the end of read_hdf().
#### Expected Output
Should not raise an Exception when reading key2.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-957.27.2.el7.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.utf8
LANG : en_US.utf8
LOCALE : en_US.UTF-8
pandas : 0.25.1
numpy : 1.17.2
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.0.1
Cython : 0.29.13
pytest : 5.1.2
hypothesis : None
sphinx : 2.2.0
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : None
tables : 3.5.2
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/28699/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28699/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28700 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28700/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28700/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28700/events | https://github.com/pandas-dev/pandas/pull/28700 | 500,598,048 | MDExOlB1bGxSZXF1ZXN0MzIzMDMzNjAz | 28,700 | read_hdf closes HDF5 stores that it didn't open. | {
"avatar_url": "https://avatars.githubusercontent.com/u/789873?v=4",
"events_url": "https://api.github.com/users/kboone/events{/privacy}",
"followers_url": "https://api.github.com/users/kboone/followers",
"following_url": "https://api.github.com/users/kboone/following{/other_user}",
"gists_url": "https://api.github.com/users/kboone/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kboone",
"id": 789873,
"login": "kboone",
"node_id": "MDQ6VXNlcjc4OTg3Mw==",
"organizations_url": "https://api.github.com/users/kboone/orgs",
"received_events_url": "https://api.github.com/users/kboone/received_events",
"repos_url": "https://api.github.com/users/kboone/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kboone/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kboone/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kboone"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] | 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"
} | 9 | 2019-10-01T00:49:39Z | 2019-10-10T02:05:06Z | 2019-10-10T02:05:01Z | CONTRIBUTOR | null | - [ ] closes #28699
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This commit fixes #28699. I added a test for the bug. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28700/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28700/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28700.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28700",
"merged_at": "2019-10-10T02:05:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28700.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28700"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28701 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28701/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28701/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28701/events | https://github.com/pandas-dev/pandas/issues/28701 | 500,615,148 | MDU6SXNzdWU1MDA2MTUxNDg= | 28,701 | TST/ENH: add default values check to validate_docstrings.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/7444140?v=4",
"events_url": "https://api.github.com/users/josibake/events{/privacy}",
"followers_url": "https://api.github.com/users/josibake/followers",
"following_url": "https://api.github.com/users/josibake/following{/other_user}",
"gists_url": "https://api.github.com/users/josibake/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josibake",
"id": 7444140,
"login": "josibake",
"node_id": "MDQ6VXNlcjc0NDQxNDA=",
"organizations_url": "https://api.github.com/users/josibake/orgs",
"received_events_url": "https://api.github.com/users/josibake/received_events",
"repos_url": "https://api.github.com/users/josibake/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josibake/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josibake/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josibake"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | open | false | null | [] | null | 1 | 2019-10-01T01:58:16Z | 2019-10-16T18:51:51Z | null | CONTRIBUTOR | null | #### Problem description
Per [contributing_docstring#section-3-parameters](https://pandas.pydata.org/pandas-docs/stable/development/contributing_docstring.html#section-3-parameters), default values should be documented as such:
* `int, default 0`
* `int, default -1, meaning all cpus` (optional descriptions)
Currently, the `validate_docstrings.py` script does not check default values. This should be added to ensure valid docstrings.
#### Proposal
Add a new validation, "PR11", to the validate_docstrings scripts. "PR03" compares the ordering of the actual arguments to the documented arguments: this might be a good starting point. The validation would need to
* check which params have a default value
* check that the documentation for the parameter has the correct format for default value documentation
* check that the documented value matches the actual value
#### Questions
* If default values documentation is enforced, does it make sense to allow optional descriptions inline?
* Can it be verified that the parameter description includes the default value description?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28701/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28701/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28702 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28702/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28702/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28702/events | https://github.com/pandas-dev/pandas/issues/28702 | 500,634,085 | MDU6SXNzdWU1MDA2MzQwODU= | 28,702 | DOC: Docstrings Formatting error PR09,PR08 in pandas.DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/7444140?v=4",
"events_url": "https://api.github.com/users/josibake/events{/privacy}",
"followers_url": "https://api.github.com/users/josibake/followers",
"following_url": "https://api.github.com/users/josibake/following{/other_user}",
"gists_url": "https://api.github.com/users/josibake/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/josibake",
"id": 7444140,
"login": "josibake",
"node_id": "MDQ6VXNlcjc0NDQxNDA=",
"organizations_url": "https://api.github.com/users/josibake/orgs",
"received_events_url": "https://api.github.com/users/josibake/received_events",
"repos_url": "https://api.github.com/users/josibake/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/josibake/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josibake/subscriptions",
"type": "User",
"url": "https://api.github.com/users/josibake"
} | [
{
"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 | 1 | 2019-10-01T03:13:30Z | 2021-07-21T05:07:12Z | 2021-07-21T05:07:12Z | CONTRIBUTOR | null | fix errors PR09,PR08 listed below:
```
pandas.DataFrame: Parameter "data" description should finish with "."
pandas.DataFrame: Parameter "index" description should finish with "."
pandas.DataFrame: Parameter "columns" description should finish with "."
pandas.DataFrame: Parameter "dtype" description should finish with "."
pandas.DataFrame: Parameter "copy" description should finish with "."
pandas.DataFrame.insert: Parameter "loc" description should finish with "."
pandas.DataFrame.insert: Parameter "column" description should start with a capital letter
pandas.DataFrame.insert: Parameter "column" description should finish with "."
pandas.DataFrame.lookup: Parameter "row_labels" description should finish with "."
pandas.DataFrame.lookup: Parameter "col_labels" description should finish with "."
pandas.DataFrame.corr: Parameter "method" description should finish with "."
pandas.DataFrame.corrwith: Parameter "method" description should finish with "."
pandas.DataFrame.mode: Parameter "axis" description should finish with "."
pandas.DataFrame.rank: Parameter "method" description should finish with "."
pandas.DataFrame.rank: Parameter "na_option" description should finish with "."
pandas.DataFrame.sem: Parameter "skipna" description should finish with "."
pandas.DataFrame.sem: Parameter "level" description should finish with "."
pandas.DataFrame.std: Parameter "skipna" description should finish with "."
pandas.DataFrame.std: Parameter "level" description should finish with "."
pandas.DataFrame.var: Parameter "skipna" description should finish with "."
pandas.DataFrame.var: Parameter "level" description should finish with "."
pandas.DataFrame.align: Parameter "axis" description should finish with "."
pandas.DataFrame.align: Parameter "level" description should finish with "."
pandas.DataFrame.align: Parameter "fill_value" description should finish with "."
pandas.DataFrame.align: Parameter "method" description should finish with "."
pandas.DataFrame.align: Parameter "fill_axis" description should finish with "."
pandas.DataFrame.align: Parameter "broadcast_axis" description should finish with "."
pandas.DataFrame.drop_duplicates: Parameter "subset" description should finish with "."
pandas.DataFrame.drop_duplicates: Parameter "inplace" description should finish with "."
pandas.DataFrame.duplicated: Parameter "subset" description should finish with "."
pandas.DataFrame.idxmax: Parameter "axis" description should finish with "."
pandas.DataFrame.idxmin: Parameter "axis" description should finish with "."
pandas.DataFrame.reindex: Parameter "index, columns" description should finish with "."
pandas.DataFrame.reindex: Parameter "method" description should finish with "."
pandas.DataFrame.reindex_like: Parameter "method" description should finish with "."
pandas.DataFrame.pivot_table: Parameter "aggfunc" description should finish with "."
pandas.DataFrame.pivot_table: Parameter "fill_value" description should finish with "."
pandas.DataFrame.pivot_table: Parameter "margins" description should finish with "."
pandas.DataFrame.pivot_table: Parameter "dropna" description should finish with "."
pandas.DataFrame.sort_values: Parameter "by" description should finish with "."
pandas.DataFrame.unstack: Parameter "level" description should finish with "."
pandas.DataFrame.unstack: Parameter "fill_value" description should finish with "."
pandas.DataFrame.asfreq: Parameter "method" description should finish with "."
pandas.DataFrame.asfreq: Parameter "how" description should finish with "."
pandas.DataFrame.asfreq: Parameter "normalize" description should finish with "."
pandas.DataFrame.slice_shift: Parameter "periods" description should finish with "."
pandas.DataFrame.tshift: Parameter "periods" description should finish with "."
pandas.DataFrame.tshift: Parameter "freq" description should finish with "."
pandas.DataFrame.tshift: Parameter "axis" description should finish with "."
pandas.DataFrame.tz_localize: Parameter "level" description should finish with "."
pandas.DataFrame.tz_localize: Parameter "copy" description should finish with "."
pandas.DataFrame.tz_localize: Parameter "ambiguous" description should finish with "."
pandas.DataFrame.tz_localize: Parameter "nonexistent" description should finish with "."
pandas.DataFrame.plot: Parameter "data" description should finish with "."
pandas.DataFrame.plot: Parameter "kind" description should finish with "."
pandas.DataFrame.plot: Parameter "use_index" description should finish with "."
pandas.DataFrame.plot: Parameter "grid" description should finish with "."
pandas.DataFrame.plot: Parameter "legend" description should finish with "."
pandas.DataFrame.plot: Parameter "style" description should finish with "."
pandas.DataFrame.plot: Parameter "logx" description should finish with "."
pandas.DataFrame.plot: Parameter "logy" description should finish with "."
pandas.DataFrame.plot: Parameter "loglog" description should finish with "."
pandas.DataFrame.plot: Parameter "rot" description should finish with "."
pandas.DataFrame.plot: Parameter "colorbar" description should finish with "."
pandas.DataFrame.plot: Parameter "position" description should finish with "."
pandas.DataFrame.plot: Parameter "mark_right" description should finish with "."
pandas.DataFrame.from_records: Parameter "index" description should finish with "."
pandas.DataFrame.from_records: Parameter "exclude" description should finish with "."
pandas.DataFrame.from_records: Parameter "columns" description should finish with "."
pandas.DataFrame.from_records: Parameter "coerce_float" description should finish with "."
pandas.DataFrame.from_records: Parameter "nrows" description should finish with "."
pandas.DataFrame.to_parquet: Parameter "partition_cols" description should finish with "."
pandas.DataFrame.to_pickle: Parameter "protocol" description should finish with "."
pandas.DataFrame.to_json: Parameter "orient" description should finish with "."
pandas.DataFrame.to_msgpack: Parameter "path" description should finish with "."
```
This is a subset of #28602 and #27977 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28702/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28702/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28703 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28703/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28703/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28703/events | https://github.com/pandas-dev/pandas/issues/28703 | 500,649,152 | MDU6SXNzdWU1MDA2NDkxNTI= | 28,703 | Add Note About Referencing GH Issue Number to Test in Contrib Guide | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 7171206... | 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"
} | 2 | 2019-10-01T04:15:09Z | 2019-10-12T17:09:57Z | 2019-10-12T17:09:57Z | MEMBER | null | We often ask people to add the GH Issue number as a comment to new tests, but that requirement isn't explicitly spelled out in the contributing guide. Might save some back and forth if that is added to the `Writing Tests` section:
https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#writing-tests | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28703/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28703/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28704 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28704/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28704/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28704/events | https://github.com/pandas-dev/pandas/issues/28704 | 500,728,603 | MDU6SXNzdWU1MDA3Mjg2MDM= | 28,704 | DataFrame built from ndarray does not preserve `.values.dtype` if there are no columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/18488?v=4",
"events_url": "https://api.github.com/users/batterseapower/events{/privacy}",
"followers_url": "https://api.github.com/users/batterseapower/followers",
"following_url": "https://api.github.com/users/batterseapower/following{/other_user}",
"gists_url": "https://api.github.com/users/batterseapower/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/batterseapower",
"id": 18488,
"login": "batterseapower",
"node_id": "MDQ6VXNlcjE4NDg4",
"organizations_url": "https://api.github.com/users/batterseapower/orgs",
"received_events_url": "https://api.github.com/users/batterseapower/received_events",
"repos_url": "https://api.github.com/users/batterseapower/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/batterseapower/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/batterseapower/subscriptions",
"type": "User",
"url": "https://api.github.com/users/batterseapower"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from... | open | false | null | [] | null | 8 | 2019-10-01T07:59:56Z | 2021-07-21T05:07:59Z | null | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
These both say `float64`:
```python
pd.DataFrame(np.zeros((0, 0), dtype=int), index=[]).values.dtype
pd.DataFrame(np.zeros((1, 0), dtype=int), index=['A']).values.dtype
```
All of the following examples instead say `int32` as expected:
```python
pd.DataFrame(np.zeros((0, 1), dtype=int), index=[]).values.dtype
pd.DataFrame(np.zeros(0, dtype=int), index=[]).values.dtype
pd.Series(np.zeros(0, dtype=int), index=[]).values.dtype
```
#### Problem description
I think in general it would be a nice property that if `X` is a 2D ndarray, then it should be the case that `pd.DataFrame(X).values.base is X`.
It would be great if pandas could not lose dtype information, because I sometimes wrap 2D arrays in DataFrames before extracting them (via `.values`) for use elsewhere. If that wrapping/unwrapping process changes dtype then it can lead to surprising failures (e.g. I roundtrip a 2D array of indexes and then find that I'm trying to index into another array with a 2D array of floats..)
#### Expected Output
`int32` or `int64` for all examples.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.1
pytest: 3.1.2
pip: 19.2.1
setuptools: 39.0.1
Cython: 0.29.6
numpy: 1.17.0
scipy: 1.2.1
pyarrow: 0.13.0
xarray: 0.12.1
IPython: 6.1.0
sphinx: 2.1.1
patsy: 0.4.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.3.0.dev0
tables: None
numexpr: 2.6.9
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.4
bs4: 4.7.1
html5lib: 0.9999999
sqlalchemy: 1.1.11
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: 0.3.1
pandas_gbq: None
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/28704/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28704/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28705 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28705/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28705/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28705/events | https://github.com/pandas-dev/pandas/pull/28705 | 500,734,831 | MDExOlB1bGxSZXF1ZXN0MzIzMTQxNzY5 | 28,705 | Added the GH Issue number note to Writing Tests in Docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/43413124?v=4",
"events_url": "https://api.github.com/users/KiranAkadas/events{/privacy}",
"followers_url": "https://api.github.com/users/KiranAkadas/followers",
"following_url": "https://api.github.com/users/KiranAkadas/following{/other_user}",
"gists_url": "https://api.github.com/users/KiranAkadas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KiranAkadas",
"id": 43413124,
"login": "KiranAkadas",
"node_id": "MDQ6VXNlcjQzNDEzMTI0",
"organizations_url": "https://api.github.com/users/KiranAkadas/orgs",
"received_events_url": "https://api.github.com/users/KiranAkadas/received_events",
"repos_url": "https://api.github.com/users/KiranAkadas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KiranAkadas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KiranAkadas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KiranAkadas"
} | [
{
"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": "3465A4",
"d... | 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"
} | 2 | 2019-10-01T08:13:22Z | 2019-10-15T01:27:43Z | 2019-10-15T01:27:43Z | NONE | null | - [x] closes #28703
I've added the required note at the appropriate place in the documentation.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28705/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28705/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28705.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28705",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28705.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28705"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28706 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28706/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28706/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28706/events | https://github.com/pandas-dev/pandas/issues/28706 | 500,795,640 | MDU6SXNzdWU1MDA3OTU2NDA= | 28,706 | DOC: Fix PR08 issues in docstrings in pandas.core.groupby | {
"avatar_url": "https://avatars.githubusercontent.com/u/5285879?v=4",
"events_url": "https://api.github.com/users/dayoreke/events{/privacy}",
"followers_url": "https://api.github.com/users/dayoreke/followers",
"following_url": "https://api.github.com/users/dayoreke/following{/other_user}",
"gists_url": "https://api.github.com/users/dayoreke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dayoreke",
"id": 5285879,
"login": "dayoreke",
"node_id": "MDQ6VXNlcjUyODU4Nzk=",
"organizations_url": "https://api.github.com/users/dayoreke/orgs",
"received_events_url": "https://api.github.com/users/dayoreke/received_events",
"repos_url": "https://api.github.com/users/dayoreke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dayoreke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dayoreke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dayoreke"
} | [] | closed | false | null | [] | null | 3 | 2019-10-01T10:07:55Z | 2019-10-01T11:58:25Z | 2019-10-01T11:58:25Z | CONTRIBUTOR | null | Current errors:
```
$ ./scripts/validate_docstrings.py --errors=PR08
pandas.Series.corr: Parameter "method" description should start with a capital letter
pandas.Series.quantile: Parameter "q" description should start with a capital letter
pandas.Series.drop_duplicates: Parameter "keep" description should start with a capital letter
pandas.Series.duplicated: Parameter "keep" description should start with a capital letter
pandas.Series.rename: Parameter "index" description should start with a capital letter
pandas.Series.reorder_levels: Parameter "order" description should start with a capital letter
pandas.Series.dt.tz_localize: Parameter "errors" description should start with a capital letter
pandas.Series.str.match: Parameter "flags" description should start with a capital letter
pandas.Series.str.replace: Parameter "case" description should start with a capital letter
pandas.Series.str.replace: Parameter "flags" description should start with a capital letter
pandas.Series.str.replace: Parameter "regex" description should start with a capital letter
pandas.Series.str.translate: Parameter "table" description should start with a capital letter
pandas.Series.cat.rename_categories: Parameter "new_categories" description should start with a capital letter
pandas.Series.hist: Parameter "xrot" description should start with a capital letter
pandas.Series.hist: Parameter "yrot" description should start with a capital letter
pandas.Series.hist: Parameter "figsize" description should start with a capital letter
pandas.Timestamp.ceil: Parameter "ambiguous" description should start with a capital letter
pandas.Timestamp.day_name: Parameter "locale" description should start with a capital letter
pandas.Timestamp.floor: Parameter "ambiguous" description should start with a capital letter
pandas.Timestamp.fromordinal: Parameter "ordinal" description should start with a capital letter
pandas.Timestamp.month_name: Parameter "locale" description should start with a capital letter
pandas.Timestamp.round: Parameter "ambiguous" description should start with a capital letter
pandas.Timestamp.tz_localize: Parameter "errors" description should start with a capital letter
pandas.Period.to_timestamp: Parameter "how" description should start with a capital letter
pandas.arrays.IntervalArray.from_tuples: Parameter "copy" description should start with a capital letter
pandas.arrays.IntervalArray.from_breaks: Parameter "copy" description should start with a capital letter
pandas.read_msgpack: Parameter "iterator" description should start with a capital letter
pandas.io.json.build_table_schema: Parameter "primary_key" description should start with a capital letter
pandas.read_html: Parameter "skiprows" description should start with a capital letter
pandas.HDFStore.put: Parameter "format" description should start with a capital letter
pandas.HDFStore.append: Parameter "format" description should start with a capital letter
pandas.HDFStore.append: Parameter "append " description should start with a capital letter
pandas.HDFStore.append: Parameter "dropna " description should start with a capital letter
pandas.read_feather: Parameter "nthreads" description should start with a capital letter
pandas.read_feather: Parameter "use_threads" description should start with a capital letter
pandas.read_sql_table: Parameter "parse_dates" description should start with a capital letter
pandas.read_sql_query: Parameter "con" description should start with a capital letter
pandas.read_sql_query: Parameter "parse_dates" description should start with a capital letter
pandas.read_sql: Parameter "con" description should start with a capital letter
pandas.read_sql: Parameter "parse_dates" description should start with a capital letter
pandas.core.resample.Resampler.get_group: Parameter "name" description should start with a capital letter
pandas.core.resample.Resampler.get_group: Parameter "obj" description should start with a capital letter
pandas.core.resample.Resampler.pipe: Parameter "args" description should start with a capital letter
pandas.core.resample.Resampler.pipe: Parameter "kwargs" description should start with a capital letter
pandas.core.resample.Resampler.ffill: Parameter "limit" description should start with a capital letter
pandas.core.resample.Resampler.pad: Parameter "limit" description should start with a capital letter
pandas.core.resample.Resampler.sem: Parameter "ddof" description should start with a capital letter
pandas.core.resample.Resampler.var: Parameter "ddof" description should start with a capital letter
pandas.plotting.parallel_coordinates: Parameter "ax" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "alpha" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "figsize" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "grid" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "diagonal" description should start with a capital letter
pandas.plotting.scatter_matrix: Parameter "range_padding" description should start with a capital letter
pandas.plotting.table: Parameter "data" description should start with a capital letter
pandas.plotting.table: Parameter "kwargs" description should start with a capital letter
pandas.api.types.union_categoricals: Parameter "to_union" description should start with a capital letter
pandas.merge_ordered: Parameter "how" description should start with a capital letter
pandas.merge_asof: Parameter "allow_exact_matches" description should start with a capital letter
pandas.to_numeric: Parameter "errors" description should start with a capital letter
pandas.to_datetime: Parameter "arg" description should start with a capital letter
pandas.to_datetime: Parameter "errors" description should start with a capital letter
pandas.to_datetime: Parameter "box" description should start with a capital letter
pandas.to_datetime: Parameter "format" description should start with a capital letter
pandas.to_datetime: Parameter "exact" description should start with a capital letter
pandas.to_datetime: Parameter "unit" description should start with a capital letter
pandas.to_timedelta: Parameter "box" description should start with a capital letter
pandas.to_timedelta: Parameter "errors" description should start with a capital letter
pandas.infer_freq: Parameter "index" description should start with a capital letter
pandas.util.hash_array: Parameter "encoding" description should start with a capital letter
pandas.util.hash_pandas_object: Parameter "index" description should start with a capital letter
pandas.util.hash_pandas_object: Parameter "encoding" description should start with a capital letter
pandas.Index.drop_duplicates: Parameter "keep" description should start with a capital letter
pandas.Index.is_: Parameter "other" description should start with a capital letter
pandas.Index.fillna: Parameter "downcast" description should start with a capital letter
pandas.Index.to_series: Parameter "index" description should start with a capital letter
pandas.Index.to_series: Parameter "name" description should start with a capital letter
pandas.Index.get_indexer: Parameter "method" description should start with a capital letter
pandas.Index.get_loc: Parameter "method" description should start with a capital letter
pandas.CategoricalIndex.rename_categories: Parameter "new_categories" description should start with a capital letter
pandas.IntervalIndex.from_tuples: Parameter "copy" description should start with a capital letter
pandas.IntervalIndex.from_breaks: Parameter "copy" description should start with a capital letter
pandas.IntervalIndex.get_loc: Parameter "method" description should start with a capital letter
pandas.IntervalIndex.get_indexer: Parameter "method" description should start with a capital letter
pandas.MultiIndex.set_levels: Parameter "levels" description should start with a capital letter
pandas.MultiIndex.set_levels: Parameter "level" description should start with a capital letter
pandas.MultiIndex.set_levels: Parameter "inplace" description should start with a capital letter
pandas.MultiIndex.set_levels: Parameter "verify_integrity" description should start with a capital letter
pandas.MultiIndex.set_codes: Parameter "codes" description should start with a capital letter
pandas.MultiIndex.set_codes: Parameter "level" description should start with a capital letter
pandas.MultiIndex.set_codes: Parameter "inplace" description should start with a capital letter
pandas.MultiIndex.set_codes: Parameter "verify_integrity" description should start with a capital letter
pandas.MultiIndex.get_loc_level: Parameter "drop_level" description should start with a capital letter
pandas.MultiIndex.get_indexer: Parameter "method" description should start with a capital letter
pandas.MultiIndex.get_level_values: Parameter "level" description should start with a capital letter
pandas.DatetimeIndex.indexer_at_time: Parameter "time" description should start with a capital letter
pandas.DatetimeIndex.indexer_between_time: Parameter "start_time, end_time" description should start with a capital letter
pandas.DatetimeIndex.tz_localize: Parameter "errors" description should start with a capital letter
pandas.TimedeltaIndex.to_series: Parameter "index" description should start with a capital letter
pandas.TimedeltaIndex.to_series: Parameter "name" description should start with a capital letter
pandas.PeriodIndex.asfreq: Parameter "freq" description should start with a capital letter
pandas.PeriodIndex.asfreq: Parameter "how" description should start with a capital letter
pandas.core.window.rolling.Rolling.apply: Parameter "raw" description should start with a capital letter
pandas.core.window.expanding.Expanding.apply: Parameter "raw" description should start with a capital letter
pandas.core.groupby.GroupBy.get_group: Parameter "name" description should start with a capital letter
pandas.core.groupby.GroupBy.get_group: Parameter "obj" description should start with a capital letter
pandas.Grouper: Parameter "key" description should start with a capital letter
pandas.Grouper: Parameter "level" description should start with a capital letter
pandas.Grouper: Parameter "sort" description should start with a capital letter
pandas.core.groupby.GroupBy.pipe: Parameter "args" description should start with a capital letter
pandas.core.groupby.GroupBy.pipe: Parameter "kwargs" description should start with a capital letter
pandas.core.groupby.GroupBy.bfill: Parameter "limit" description should start with a capital letter
pandas.core.groupby.GroupBy.ffill: Parameter "limit" description should start with a capital letter
pandas.core.groupby.GroupBy.nth: Parameter "n" description should start with a capital letter
pandas.core.groupby.GroupBy.nth: Parameter "dropna" description should start with a capital letter
pandas.core.groupby.GroupBy.rank: Parameter "method" description should start with a capital letter
pandas.core.groupby.GroupBy.rank: Parameter "na_option" description should start with a capital letter
pandas.core.groupby.GroupBy.sem: Parameter "ddof" description should start with a capital letter
pandas.core.groupby.GroupBy.std: Parameter "ddof" description should start with a capital letter
pandas.core.groupby.GroupBy.var: Parameter "ddof" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.bfill: Parameter "limit" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.ffill: Parameter "limit" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.filter: Parameter "dropna" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.rank: Parameter "method" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.rank: Parameter "na_option" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.shift: Parameter "periods" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.boxplot: Parameter "subplots" description should start with a capital letter
pandas.core.groupby.DataFrameGroupBy.boxplot: Parameter "layout" description should start with a capital letter
pandas.io.formats.style.Styler: Parameter "precision" description should start with a capital letter
pandas.io.formats.style.Styler: Parameter "table_styles" description should start with a capital letter
pandas.io.formats.style.Styler: Parameter "uuid" description should start with a capital letter
pandas.io.formats.style.Styler: Parameter "caption" description should start with a capital letter
pandas.io.formats.style.Styler.apply: Parameter "func" description should start with a capital letter
pandas.io.formats.style.Styler.apply: Parameter "axis" description should start with a capital letter
pandas.io.formats.style.Styler.apply: Parameter "subset" description should start with a capital letter
pandas.io.formats.style.Styler.apply: Parameter "**kwargs" description should start with a capital letter
pandas.io.formats.style.Styler.applymap: Parameter "func" description should start with a capital letter
pandas.io.formats.style.Styler.applymap: Parameter "subset" description should start with a capital letter
pandas.io.formats.style.Styler.applymap: Parameter "**kwargs" description should start with a capital letter
pandas.io.formats.style.Styler.where: Parameter "cond" description should start with a capital letter
pandas.io.formats.style.Styler.where: Parameter "value" description should start with a capital letter
pandas.io.formats.style.Styler.where: Parameter "other" description should start with a capital letter
pandas.io.formats.style.Styler.where: Parameter "subset" description should start with a capital letter
pandas.io.formats.style.Styler.where: Parameter "**kwargs" description should start with a capital letter
pandas.io.formats.style.Styler.set_properties: Parameter "subset" description should start with a capital letter
pandas.io.formats.style.Styler.set_properties: Parameter "**kwargs" description should start with a capital letter
pandas.io.formats.style.Styler.highlight_max: Parameter "subset" description should start with a capital letter
pandas.io.formats.style.Styler.highlight_max: Parameter "axis" description should start with a capital letter
pandas.io.formats.style.Styler.highlight_min: Parameter "subset" description should start with a capital letter
pandas.io.formats.style.Styler.highlight_min: Parameter "axis" description should start with a capital letter
pandas.io.formats.style.Styler.background_gradient: Parameter "cmap" description should start with a capital letter
pandas.io.formats.style.Styler.background_gradient: Parameter "low" description should start with a capital letter
pandas.io.formats.style.Styler.background_gradient: Parameter "high" description should start with a capital letter
pandas.io.formats.style.Styler.background_gradient: Parameter "axis" description should start with a capital letter
pandas.io.formats.style.Styler.background_gradient: Parameter "subset" description should start with a capital letter
pandas.io.formats.style.Styler.background_gradient: Parameter "text_color_threshold" description should start with a capital letter
pandas.io.formats.style.Styler.bar: Parameter "axis" description should start with a capital letter
pandas.io.formats.style.Styler.use: Parameter "styles" description should start with a capital letter
pandas.api.extensions.ExtensionArray.argsort: Parameter "*args, **kwargs:" description should start with a capital letter
pandas.DataFrame.insert: Parameter "column" description should start with a capital letter
```
This is a subset of #27977 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28706/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28706/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28707 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28707/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28707/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28707/events | https://github.com/pandas-dev/pandas/pull/28707 | 500,804,513 | MDExOlB1bGxSZXF1ZXN0MzIzMTk3NTg2 | 28,707 | DOC: Fixed PR09 docstring errors in pandas.tseries (#27977) | {
"avatar_url": "https://avatars.githubusercontent.com/u/11097856?v=4",
"events_url": "https://api.github.com/users/ladyyvii/events{/privacy}",
"followers_url": "https://api.github.com/users/ladyyvii/followers",
"following_url": "https://api.github.com/users/ladyyvii/following{/other_user}",
"gists_url": "https://api.github.com/users/ladyyvii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ladyyvii",
"id": 11097856,
"login": "ladyyvii",
"node_id": "MDQ6VXNlcjExMDk3ODU2",
"organizations_url": "https://api.github.com/users/ladyyvii/orgs",
"received_events_url": "https://api.github.com/users/ladyyvii/received_events",
"repos_url": "https://api.github.com/users/ladyyvii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ladyyvii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ladyyvii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ladyyvii"
} | [
{
"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"
} | 1 | 2019-10-01T10:25:36Z | 2019-10-01T13:27:06Z | 2019-10-01T12:12:05Z | CONTRIBUTOR | null | - [ ] xref #27977
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] fixed minor issues in the couple of docstrings (ErrorCode: PR09) in pandas.tseries.offsets.py, namely added dots at the end of parameters {param_name} descriptions. Some of the ErrorCodes: PR09 still appear when running the validation script. This is due the script not covering some of the special cases (such as extra info in the bullet points format in the descriptions of parameters {param_name}), see #25786 and #25461.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28707/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28707/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28707.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28707",
"merged_at": "2019-10-01T12:12:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28707.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28707"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28708 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28708/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28708/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28708/events | https://github.com/pandas-dev/pandas/issues/28708 | 500,818,898 | MDU6SXNzdWU1MDA4MTg4OTg= | 28,708 | CI Failing: TestReadHtml.test_spam_url | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 0 | 2019-10-01T10:56:09Z | 2019-10-01T13:00:17Z | 2019-10-01T12:49:35Z | MEMBER | null | http://ndb.nal.usda.gov/ndb/foods/show/300772?fg=&man=&lfacet=&format=&count=&max=25&offset=&sort=&qlookup=spam

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28708/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28708/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/28709 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28709/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28709/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28709/events | https://github.com/pandas-dev/pandas/pull/28709 | 500,844,486 | MDExOlB1bGxSZXF1ZXN0MzIzMjMwMDY5 | 28,709 | DOC: Fixed PR08, PR09 doctring issues in pandas.core.groupby | {
"avatar_url": "https://avatars.githubusercontent.com/u/5285879?v=4",
"events_url": "https://api.github.com/users/dayoreke/events{/privacy}",
"followers_url": "https://api.github.com/users/dayoreke/followers",
"following_url": "https://api.github.com/users/dayoreke/following{/other_user}",
"gists_url": "https://api.github.com/users/dayoreke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dayoreke",
"id": 5285879,
"login": "dayoreke",
"node_id": "MDQ6VXNlcjUyODU4Nzk=",
"organizations_url": "https://api.github.com/users/dayoreke/orgs",
"received_events_url": "https://api.github.com/users/dayoreke/received_events",
"repos_url": "https://api.github.com/users/dayoreke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dayoreke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dayoreke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dayoreke"
} | [
{
"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"
} | 1 | 2019-10-01T11:51:12Z | 2019-10-01T14:55:42Z | 2019-10-01T14:55:26Z | CONTRIBUTOR | null | - xref #25232.
- 0 tests added
- ✓ passes `black pandas`
- ✓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/28709/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28709/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28709.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28709",
"merged_at": "2019-10-01T14:55:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28709.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28709"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28710 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28710/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28710/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28710/events | https://github.com/pandas-dev/pandas/pull/28710 | 500,851,579 | MDExOlB1bGxSZXF1ZXN0MzIzMjM1ODA5 | 28,710 | CI Failing: TestReadHtml.test_spam_url #28708 | {
"avatar_url": "https://avatars.githubusercontent.com/u/11097856?v=4",
"events_url": "https://api.github.com/users/ladyyvii/events{/privacy}",
"followers_url": "https://api.github.com/users/ladyyvii/followers",
"following_url": "https://api.github.com/users/ladyyvii/following{/other_user}",
"gists_url": "https://api.github.com/users/ladyyvii/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ladyyvii",
"id": 11097856,
"login": "ladyyvii",
"node_id": "MDQ6VXNlcjExMDk3ODU2",
"organizations_url": "https://api.github.com/users/ladyyvii/orgs",
"received_events_url": "https://api.github.com/users/ladyyvii/received_events",
"repos_url": "https://api.github.com/users/ladyyvii/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ladyyvii/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ladyyvii/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ladyyvii"
} | [
{
"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": "006b75",
"default": false,
"description": ... | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 7 | 2019-10-01T12:06:04Z | 2019-10-02T06:53:58Z | 2019-10-01T12:49:35Z | CONTRIBUTOR | null | - [x] closes #28708
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] fixed test_spam_url test by changing a url address to the same html page stored in the pandas github repo
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28710/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28710/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28710.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28710",
"merged_at": "2019-10-01T12:49:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28710.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28710"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28711 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28711/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28711/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28711/events | https://github.com/pandas-dev/pandas/pull/28711 | 500,853,826 | MDExOlB1bGxSZXF1ZXN0MzIzMjM3NjI3 | 28,711 | CI/TST: temporary xfail spam url tests | {
"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 | [] | null | 3 | 2019-10-01T12:10:43Z | 2019-10-01T12:15:24Z | 2019-10-01T12:15:20Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/28708 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28711/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28711/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28711.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28711",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/28711.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28711"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/28712 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/28712/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/28712/comments | https://api.github.com/repos/pandas-dev/pandas/issues/28712/events | https://github.com/pandas-dev/pandas/pull/28712 | 500,857,435 | MDExOlB1bGxSZXF1ZXN0MzIzMjQwNjAz | 28,712 | Backport PR #28671 on branch 0.25.x (BUG: restore limit in RangeIndex.get_indexer) | {
"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": "e1... | closed | false | null | [] | {
"closed_at": "2019-10-19T17:01:24Z",
"closed_issues": 52,
"created_at": "2019-08-23T11:48:40Z",
"creator": {
"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"
},
"description": "on-merge: backport to 0.25.x",
"due_on": "2019-10-15T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/66",
"id": 4597769,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels",
"node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==",
"number": 66,
"open_issues": 0,
"state": "closed",
"title": "0.25.2",
"updated_at": "2019-10-19T17:01:24Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66"
} | 3 | 2019-10-01T12:18:11Z | 2019-10-02T06:52:56Z | 2019-10-01T18:53:15Z | NONE | null | Backport PR #28671: BUG: restore limit in RangeIndex.get_indexer | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/28712/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/28712/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/28712.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/28712",
"merged_at": "2019-10-01T18:53:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/28712.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/28712"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.