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/25813
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25813/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25813/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25813/events
https://github.com/pandas-dev/pandas/pull/25813
423,541,026
MDExOlB1bGxSZXF1ZXN0MjYzMDkyNjE4
25,813
BUG: Fix bug when using df.query with "str.contains()"
{ "avatar_url": "https://avatars.githubusercontent.com/u/11439447?v=4", "events_url": "https://api.github.com/users/dtpc/events{/privacy}", "followers_url": "https://api.github.com/users/dtpc/followers", "following_url": "https://api.github.com/users/dtpc/following{/other_user}", "gists_url": "https://api.github.com/users/dtpc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dtpc", "id": 11439447, "login": "dtpc", "node_id": "MDQ6VXNlcjExNDM5NDQ3", "organizations_url": "https://api.github.com/users/dtpc/orgs", "received_events_url": "https://api.github.com/users/dtpc/received_events", "repos_url": "https://api.github.com/users/dtpc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dtpc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dtpc/subscriptions", "type": "User", "url": "https://api.github.com/users/dtpc" }
[ { "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": "37...
closed
false
null
[]
null
6
2019-03-21T01:36:14Z
2019-05-19T18:28:30Z
2019-05-19T18:28:30Z
NONE
null
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixes bug in on line 588 of `pandas/core/computation/expr.py`: `AttributeError: 'dict' object has no attribute 'append'` Also addresses the specific example in #22172 Example: ```python import pandas as pd df = pd.DataFrame([["I", "XYZ"], ["IJ", None]], columns=['A', 'B']) df.query("B.str.contains('Z', na=False)", engine="python") ``` ``` Traceback (most recent call last): File "./test_query.py", line 12, in <module> result = df.query("B.str.contains('Z', na=False)", engine="python") File "./lib/python3.6/site-packages/pandas/core/frame.py", line 2847, in query res = self.eval(expr, **kwargs) File "./lib/python3.6/site-packages/pandas/core/frame.py", line 2962, in eval return _eval(expr, inplace=inplace, **kwargs) File "./lib/python3.6/site-packages/pandas/core/computation/eval.py", line 291, in eval truediv=truediv) File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 739, in __init__ self.terms = self.parse() File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 756, in parse return self._visitor.visit(self.expr) File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 321, in visit return visitor(node, **kwargs) File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 327, in visit_Module return self.visit(expr, **kwargs) File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 321, in visit return visitor(node, **kwargs) File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 330, in visit_Expr return self.visit(node.value, **kwargs) File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 321, in visit return visitor(node, **kwargs) File "./lib/python3.6/site-packages/pandas/core/computation/expr.py", line 588, in visit_Call_35 kwargs.append(ast.keyword( AttributeError: 'dict' object has no attribute 'append' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25813/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25813/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25813.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25813", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25813.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25813" }
https://api.github.com/repos/pandas-dev/pandas/issues/25814
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25814/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25814/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25814/events
https://github.com/pandas-dev/pandas/issues/25814
423,565,289
MDU6SXNzdWU0MjM1NjUyODk=
25,814
Cannot use categorical IntervalIndex as index when creating pivot_table
{ "avatar_url": "https://avatars.githubusercontent.com/u/13047435?v=4", "events_url": "https://api.github.com/users/peterpanmj/events{/privacy}", "followers_url": "https://api.github.com/users/peterpanmj/followers", "following_url": "https://api.github.com/users/peterpanmj/following{/other_user}", "gists_url": "https://api.github.com/users/peterpanmj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/peterpanmj", "id": 13047435, "login": "peterpanmj", "node_id": "MDQ6VXNlcjEzMDQ3NDM1", "organizations_url": "https://api.github.com/users/peterpanmj/orgs", "received_events_url": "https://api.github.com/users/peterpanmj/received_events", "repos_url": "https://api.github.com/users/peterpanmj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/peterpanmj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/peterpanmj/subscriptions", "type": "User", "url": "https://api.github.com/users/peterpanmj" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-21T04:07:16Z
2019-06-13T20:41:44Z
2019-06-13T20:41:44Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame({"A":[1, 1, 2, 2], "B":[1,2,3,4]}) df['C'] = pd.cut(df['A'],[0,2]) df.pivot_table(index='C', values='B', aggfunc=np.sum) ``` #### Problem description Cannot use IntervalIndex as index when creating pivot_table. It works fine on 0.23.4. C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\interval.py in _get_prev_label(label) 75 else: 76 raise TypeError('cannot determine next label for type {typ!r}' ---> 77 .format(typ=type(label))) 78 79 TypeError: cannot determine next label for type <class 'str'> #### 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 142 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: zh_CN.GBK@cjknarrow LOCALE: None.None pandas: 0.24.2 pytest: 4.0.2 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: Nonetput of ``pd.show_versions()`` here below this line] </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/25814/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25814/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25815
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25815/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25815/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25815/events
https://github.com/pandas-dev/pandas/issues/25815
423,584,278
MDU6SXNzdWU0MjM1ODQyNzg=
25,815
wrong aggregated results when pivot_table index is ordered categorical data
{ "avatar_url": "https://avatars.githubusercontent.com/u/13047435?v=4", "events_url": "https://api.github.com/users/peterpanmj/events{/privacy}", "followers_url": "https://api.github.com/users/peterpanmj/followers", "following_url": "https://api.github.com/users/peterpanmj/following{/other_user}", "gists_url": "https://api.github.com/users/peterpanmj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/peterpanmj", "id": 13047435, "login": "peterpanmj", "node_id": "MDQ6VXNlcjEzMDQ3NDM1", "organizations_url": "https://api.github.com/users/peterpanmj/orgs", "received_events_url": "https://api.github.com/users/peterpanmj/received_events", "repos_url": "https://api.github.com/users/peterpanmj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/peterpanmj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/peterpanmj/subscriptions", "type": "User", "url": "https://api.github.com/users/peterpanmj" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
8
2019-03-21T06:12:15Z
2019-11-25T15:17:19Z
2019-07-09T21:29:23Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np _c = np.arange(5,0,-1) df = pd.DataFrame(np.stack([_c]*3).T, columns=['A', 'B', 'C']) df["D"] = pd.Series(["A","B","B","A", "A"]) df["E"] = pd.cut(x=df["A"],bins=[0,3,6,10]) print(pd.pivot_table(df, index='E', columns=['D'], values="B", aggfunc="sum", margins=True)) ``` ``` ipython Output is D A B All E (0, 3] 3 3 9 (3, 6] 5 4 6 All 8 7 15 ``` #### Problem description the data is as follows: ``` Ipython A B C D E 0 5 5 5 A (3, 6] 1 4 4 4 B (3, 6] 2 3 3 3 B (0, 3] 3 2 2 2 A (0, 3] 4 1 1 1 A (0, 3] ``` Margin calculation results are in wrong order (0, 3] should have a sum value of 6, (3, 6] should have a sum value of 9 If I dont use column argument, results are correct. ``` Ipython B E (0, 3] 6 (3, 6] 9 (6, 10] 0 All 15 ``` I've tried both .23.4 and .24.2 . They have the same results. #### Expected Output ``` Ipython D A B All E (0, 3] 3 3 6 (3, 6] 5 4 9 All 8 7 15 ``` #### 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 142 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: zh_CN.GBK@cjknarrow LOCALE: None.None pandas: 0.23.4 pytest: 4.0.2 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 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/25815/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25815/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25816
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25816/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25816/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25816/events
https://github.com/pandas-dev/pandas/issues/25816
423,584,531
MDU6SXNzdWU0MjM1ODQ1MzE=
25,816
Series.replace throws TypeError only on large dataset
{ "avatar_url": "https://avatars.githubusercontent.com/u/1487820?v=4", "events_url": "https://api.github.com/users/yidatao/events{/privacy}", "followers_url": "https://api.github.com/users/yidatao/followers", "following_url": "https://api.github.com/users/yidatao/following{/other_user}", "gists_url": "https://api.github.com/users/yidatao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yidatao", "id": 1487820, "login": "yidatao", "node_id": "MDQ6VXNlcjE0ODc4MjA=", "organizations_url": "https://api.github.com/users/yidatao/orgs", "received_events_url": "https://api.github.com/users/yidatao/received_events", "repos_url": "https://api.github.com/users/yidatao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yidatao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yidatao/subscriptions", "type": "User", "url": "https://api.github.com/users/yidatao" }
[ { "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": "01a886", "default": false, "description": "replace method", "id...
open
false
null
[]
null
4
2019-03-21T06:13:36Z
2019-11-02T02:13:56Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python d = 1000000 df = pd.DataFrame({'A': np.random.randint(1,100,d)}) mapvalue = {i: i+1 for i in range(d)} res = df['A'].replace(mapvalue) ``` #### Problem description This throws "_TypeError: Cannot compare types 'ndarray(dtype=int32)' and 'int'_". What's weird is that, the code works fine when d = 100000, 10000, 1000 or lower. The error occurs only when d = 1000000 I found that if I changed line 3 to `mapvalue = {i: i+1 for i in range(100)}`, the problem goes away. However, the above behavior is still weird. pandas version: 0.24.2 numpy version: 1.16.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/25816/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25816/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25817
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25817/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25817/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25817/events
https://github.com/pandas-dev/pandas/pull/25817
423,590,505
MDExOlB1bGxSZXF1ZXN0MjYzMTMwMjk3
25,817
TST: Remove compat.PY2 and compat.PY3 flags from tests
{ "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": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "207de5", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-21T06:46:57Z
2019-03-21T14:58:04Z
2019-03-21T11:23:46Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` These flags become trivial after dropping Python 2. There are still some Python 2 specific things that can be removed from the tests but this should eliminate a lot of the low hanging fruit. Can split this up into separate PRs if need be; there are lots of changes but they're of low complexity and disjoint from each other, so shouldn't be too bad to review. Can wait on the other PRs mentioned in the master tracker issue if we want those to go in first.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25817/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25817/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25817.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25817", "merged_at": "2019-03-21T11:23:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25817.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25817" }
https://api.github.com/repos/pandas-dev/pandas/issues/25818
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25818/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25818/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25818/events
https://github.com/pandas-dev/pandas/issues/25818
423,601,855
MDU6SXNzdWU0MjM2MDE4NTU=
25,818
sort_index for MultiIndex DataFrame silently fill NaN for index column
{ "avatar_url": "https://avatars.githubusercontent.com/u/47309306?v=4", "events_url": "https://api.github.com/users/dddping/events{/privacy}", "followers_url": "https://api.github.com/users/dddping/followers", "following_url": "https://api.github.com/users/dddping/following{/other_user}", "gists_url": "https://api.github.com/users/dddping/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dddping", "id": 47309306, "login": "dddping", "node_id": "MDQ6VXNlcjQ3MzA5MzA2", "organizations_url": "https://api.github.com/users/dddping/orgs", "received_events_url": "https://api.github.com/users/dddping/received_events", "repos_url": "https://api.github.com/users/dddping/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dddping/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dddping/subscriptions", "type": "User", "url": "https://api.github.com/users/dddping" }
[ { "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": null, "id": 71268330,...
open
false
null
[]
null
0
2019-03-21T07:36:55Z
2021-06-27T20:35:39Z
null
NONE
null
#### Code Sample ```python mi = pd.MultiIndex.from_tuples([['A0', 'B0'],['A0', 'B1'], ['A1', 'B0'],['A1', 'B1'],['A3', np.nan] ], names=['ia','ib']) df = pd.DataFrame(np.arange(10).reshape(5,2), mi,columns=['bar', 'foo']) df2=df.copy() df2.index.set_levels(['B1','B0'],level=1,inplace=True) df2 bar foo ia ib A0 B1 0 1 B0 2 3 A1 B1 4 5 B0 6 7 A3 NaN 8 9 # now sort_index to df2 will fill B0 for (A3,NaN) row, but sort_index of df wouldn't df2.sort_index() bar foo ia ib A0 B0 2 3 B1 0 1 A1 B0 6 7 B1 4 5 A3 B0 8 9 ``` #### Problem description It is suspect that the unsort level in MultiIndex DataFrame lead to NaN auto fill. **Note**: I come with "unsort level in MultiIndex" DataFrame after some broadcast operation. Here is the code ```python def mklbl(prefix, n): return ["%s%s" % (prefix, i) for i in range(n)] miindex = pd.MultiIndex.from_product([mklbl('A', 3), mklbl('B', 2), mklbl('C', 2), mklbl('D', 2)],names=['ia','ib','ic','id']) micolumns = ['foo','bah'] dfmi = pd.DataFrame(np.arange(len(miindex) * len(micolumns)) .reshape((len(miindex), len(micolumns))), index=miindex, columns=micolumns).sort_index().sort_index(axis=1) dfmi=dfmi.drop('A2') # now dfmi first level index contain list of value more than it actually hold # and it may lead to the index level change from ['A0', 'A1', 'A2'] to ['A1','A0'] bs=dfmi.loc[('A0','B0')].copy().rename({'D1':'D2'}) # this will lead to NaN in some row due to broadcast. (dfmi+bs).sort_index() bah foo ic id ia ib C0 D0 A0 B0 2.0 0.0 B1 10.0 8.0 A1 B0 18.0 16.0 B1 26.0 24.0 D1 A0 B0 NaN NaN B1 NaN NaN A1 B0 NaN NaN B1 NaN NaN D2 A0 NaN NaN NaN C1 D0 A0 B0 10.0 8.0 B1 18.0 16.0 A1 B0 26.0 24.0 B1 34.0 32.0 D1 A0 B0 NaN NaN B1 NaN NaN A1 B0 NaN NaN B1 NaN NaN D2 A0 NaN NaN NaN # again the (D2,NaN,NaN) get change ``` #### Expected Output sort_index should not change the contain of DataFrame. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: 4.1.0 pip: 10.0.1 setuptools: 39.0.1 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.3 openpyxl: None xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None 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/25818/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25818/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25819
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25819/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25819/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25819/events
https://github.com/pandas-dev/pandas/issues/25819
423,661,882
MDU6SXNzdWU0MjM2NjE4ODI=
25,819
Slow read_parquet in version 0.24.1 vs 0.23.3
{ "avatar_url": "https://avatars.githubusercontent.com/u/23156370?v=4", "events_url": "https://api.github.com/users/alokgogate/events{/privacy}", "followers_url": "https://api.github.com/users/alokgogate/followers", "following_url": "https://api.github.com/users/alokgogate/following{/other_user}", "gists_url": "https://api.github.com/users/alokgogate/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alokgogate", "id": 23156370, "login": "alokgogate", "node_id": "MDQ6VXNlcjIzMTU2Mzcw", "organizations_url": "https://api.github.com/users/alokgogate/orgs", "received_events_url": "https://api.github.com/users/alokgogate/received_events", "repos_url": "https://api.github.com/users/alokgogate/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alokgogate/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alokgogate/subscriptions", "type": "User", "url": "https://api.github.com/users/alokgogate" }
[]
closed
false
null
[]
null
5
2019-03-21T10:32:27Z
2019-03-22T09:54:44Z
2019-03-22T09:54:43Z
NONE
null
Below is my code: import pandas as pd df = pd.read_parquet("/data/train.parquet" The time taken to read this file (size 8GB) is about 3 min with pandas version 0.24.1. This took less than 1 min with pandas version 0.23.3. Any clue as to why this may happen? Thanks!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25819/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25819/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25820
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25820/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25820/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25820/events
https://github.com/pandas-dev/pandas/pull/25820
423,693,483
MDExOlB1bGxSZXF1ZXN0MjYzMjA3MDE5
25,820
[PERF] Get rid of MultiIndex conversion in IntervalIndex.is_monotonic methods
{ "avatar_url": "https://avatars.githubusercontent.com/u/14367887?v=4", "events_url": "https://api.github.com/users/makbigc/events{/privacy}", "followers_url": "https://api.github.com/users/makbigc/followers", "following_url": "https://api.github.com/users/makbigc/following{/other_user}", "gists_url": "https://api.github.com/users/makbigc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/makbigc", "id": 14367887, "login": "makbigc", "node_id": "MDQ6VXNlcjE0MzY3ODg3", "organizations_url": "https://api.github.com/users/makbigc/orgs", "received_events_url": "https://api.github.com/users/makbigc/received_events", "repos_url": "https://api.github.com/users/makbigc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/makbigc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/makbigc/subscriptions", "type": "User", "url": "https://api.github.com/users/makbigc" }
[ { "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": "009800", "default"...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
8
2019-03-21T11:56:57Z
2019-04-22T02:41:40Z
2019-04-21T16:02:26Z
CONTRIBUTOR
null
- xref #24813 - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ``` All benchmarks: before after ratio [85572de5] [445fbe56] <master> <GH24813-inc-dec> - 261±6ns 134±3ns 0.51 index_object.IntervalIndexMethod.time_monotonic_inc ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25820/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25820/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25820.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25820", "merged_at": "2019-04-21T16:02:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25820.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25820" }
https://api.github.com/repos/pandas-dev/pandas/issues/25821
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25821/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25821/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25821/events
https://github.com/pandas-dev/pandas/issues/25821
423,717,987
MDU6SXNzdWU0MjM3MTc5ODc=
25,821
pandas read_sql con use sqlalchemy engine slow much than pymysql connection
{ "avatar_url": "https://avatars.githubusercontent.com/u/8348554?v=4", "events_url": "https://api.github.com/users/sparo-jack/events{/privacy}", "followers_url": "https://api.github.com/users/sparo-jack/followers", "following_url": "https://api.github.com/users/sparo-jack/following{/other_user}", "gists_url": "https://api.github.com/users/sparo-jack/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sparo-jack", "id": 8348554, "login": "sparo-jack", "node_id": "MDQ6VXNlcjgzNDg1NTQ=", "organizations_url": "https://api.github.com/users/sparo-jack/orgs", "received_events_url": "https://api.github.com/users/sparo-jack/received_events", "repos_url": "https://api.github.com/users/sparo-jack/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sparo-jack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sparo-jack/subscriptions", "type": "User", "url": "https://api.github.com/users/sparo-jack" }
[ { "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
5
2019-03-21T13:02:27Z
2019-12-11T08:51:13Z
2019-03-26T05:37:52Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import pymysql import time from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker connect = pymysql.Connect( host=host, port=port, user=user, passwd=passwd, db=db, charset='utf8' ) cursor = connect.cursor() sql = """SELECT * FROM table WHERE id = 1;""" start_time = time.time() cursor.execute(sql) for row in cursor.fetchall(): print(row) end_time = time.time() print("sql execute time:%s" % (end_time - start_time)) start_time = time.time() df_mysql = pd.read_sql(sql, con=connect) end_time = time.time() print("sql execute time:%s" % (end_time - start_time)) con_url = "mysql+pymysql://{0}:{1}@{2}:{3}/{4}?charset={5}" engine = create_engine(con_url.format(user, passwd, host, port, db, charset)) DBSession = sessionmaker(bind=engine) session = DBSession() start_time = time.time() raw_data_df = pd.read_sql(sql, session.bind) end_time = time.time() print("sql execute time:%s" % (end_time - start_time)) ``` #### Problem description pandas read_sql con use sqlalchemy engine slow much than pymysql connection #### Expected Output sql execute time:0.02592611312866211 sql execute time:0.028751611709594727 sql execute time:0.5061156749725342 #### Output of ``pd.show_versions()`` pandas ==0.23.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/25821/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25821/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25822
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25822/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25822/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25822/events
https://github.com/pandas-dev/pandas/pull/25822
423,732,815
MDExOlB1bGxSZXF1ZXN0MjYzMjM3OTY4
25,822
Implement --with-debugging-symbols switch in setup.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/45396231?v=4", "events_url": "https://api.github.com/users/vnlitvinov/events{/privacy}", "followers_url": "https://api.github.com/users/vnlitvinov/followers", "following_url": "https://api.github.com/users/vnlitvinov/following{/other_user}", "gists_url": "https://api.github.com/users/vnlitvinov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vnlitvinov", "id": 45396231, "login": "vnlitvinov", "node_id": "MDQ6VXNlcjQ1Mzk2MjMx", "organizations_url": "https://api.github.com/users/vnlitvinov/orgs", "received_events_url": "https://api.github.com/users/vnlitvinov/received_events", "repos_url": "https://api.github.com/users/vnlitvinov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vnlitvinov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vnlitvinov/subscriptions", "type": "User", "url": "https://api.github.com/users/vnlitvinov" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-21T13:36:56Z
2019-03-28T14:30:52Z
2019-03-21T15:12:09Z
CONTRIBUTOR
null
- [x] closes N/A - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This implements a switch that enables building Pandas with debugging symbols - useful for debugging or profiling native parts of the code.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25822/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25822/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25822.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25822", "merged_at": "2019-03-21T15:12:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25822.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25822" }
https://api.github.com/repos/pandas-dev/pandas/issues/25823
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25823/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25823/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25823/events
https://github.com/pandas-dev/pandas/issues/25823
423,772,697
MDU6SXNzdWU0MjM3NzI2OTc=
25,823
Logical operations on np.bool_ using pandas.eval raises TypeError
{ "avatar_url": "https://avatars.githubusercontent.com/u/14063748?v=4", "events_url": "https://api.github.com/users/james-mchugh/events{/privacy}", "followers_url": "https://api.github.com/users/james-mchugh/followers", "following_url": "https://api.github.com/users/james-mchugh/following{/other_user}", "gists_url": "https://api.github.com/users/james-mchugh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/james-mchugh", "id": 14063748, "login": "james-mchugh", "node_id": "MDQ6VXNlcjE0MDYzNzQ4", "organizations_url": "https://api.github.com/users/james-mchugh/orgs", "received_events_url": "https://api.github.com/users/james-mchugh/received_events", "repos_url": "https://api.github.com/users/james-mchugh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/james-mchugh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/james-mchugh/subscriptions", "type": "User", "url": "https://api.github.com/users/james-mchugh" }
[ { "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...
open
false
null
[]
null
6
2019-03-21T14:54:32Z
2021-06-27T20:38:34Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here import pandas as pd event = pd.Series({"a": "hello"}) pd.eval("event.str.match('hello').a") # returns numpy.bool_(True) pd.eval("event.str.match('hello').a and event.str.match('hello').a") # raises TypeError ``` #### Problem description When running the last line of the code above, the following error is produced: ``` TypeError Traceback (most recent call last) <ipython-input-1-4a1286720430> in <module> 5 pd.eval("event.str.match('hello').a") # returns np.bool_(True) 6 ----> 7 pd.eval("event.str.match('hello').a and event.str.match('hello').a") # raises TypeError ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/eval.py in eval(expr, parser, engine, truediv, local_dict, global_dict, resolvers, level, target, inplace) 292 293 parsed_expr = Expr(expr, engine=engine, parser=parser, env=env, --> 294 truediv=truediv) 295 296 # construct the engine and evaluate the parsed expression ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in __init__(self, expr, engine, parser, env, truediv, level) 747 self.env.scope['truediv'] = truediv 748 self._visitor = _parsers[parser](self.env, self.engine, self.parser) --> 749 self.terms = self.parse() 750 751 @property ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in parse(self) 764 def parse(self): 765 """Parse an expression""" --> 766 return self._visitor.visit(self.expr) 767 768 @property ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in visit(self, node, **kwargs) 329 method = 'visit_' + node.__class__.__name__ 330 visitor = getattr(self, method) --> 331 return visitor(node, **kwargs) 332 333 def visit_Module(self, node, **kwargs): ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in visit_Module(self, node, **kwargs) 335 raise SyntaxError('only a single expression is allowed') 336 expr = node.body[0] --> 337 return self.visit(expr, **kwargs) 338 339 def visit_Expr(self, node, **kwargs): ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in visit(self, node, **kwargs) 329 method = 'visit_' + node.__class__.__name__ 330 visitor = getattr(self, method) --> 331 return visitor(node, **kwargs) 332 333 def visit_Module(self, node, **kwargs): ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in visit_Expr(self, node, **kwargs) 338 339 def visit_Expr(self, node, **kwargs): --> 340 return self.visit(node.value, **kwargs) 341 342 def _rewrite_membership_op(self, node, left, right): ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in visit(self, node, **kwargs) 329 method = 'visit_' + node.__class__.__name__ 330 visitor = getattr(self, method) --> 331 return visitor(node, **kwargs) 332 333 def visit_Module(self, node, **kwargs): ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in visit_BoolOp(self, node, **kwargs) 691 692 operands = node.values --> 693 return reduce(visitor, operands) 694 695 ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in visitor(x, y) 688 op, op_class, lhs, rhs = self._maybe_transform_eq_ne( 689 node, lhs, rhs) --> 690 return self._maybe_evaluate_binop(op, node.op, lhs, rhs) 691 692 operands = node.values ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/expr.py in _maybe_evaluate_binop(self, op, op_class, lhs, rhs, eval_in_python, maybe_eval_in_python) 404 maybe_eval_in_python=('==', '!=', '<', '>', 405 '<=', '>=')): --> 406 res = op(lhs, rhs) 407 408 if res.has_invalid_return_type: ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/ops.py in __init__(self, op, lhs, rhs, **kwargs) 335 self.rhs = rhs 336 --> 337 self._disallow_scalar_only_bool_ops() 338 339 self.convert_values() ~/anaconda3/lib/python3.7/site-packages/pandas/core/computation/ops.py in _disallow_scalar_only_bool_ops(self) 440 if ((self.lhs.is_scalar or self.rhs.is_scalar) and 441 self.op in _bool_ops_dict and --> 442 (not (issubclass(self.rhs.return_type, (bool, np.bool_)) and 443 issubclass(self.lhs.return_type, (bool, np.bool_))))): 444 raise NotImplementedError("cannot evaluate scalar only bool ops") TypeError: issubclass() arg 1 must be a class ``` The expected output of this operation is a boolean indicating `numpy.bool_(True)` or `numpy.bool_(False)`. This is the output when running the following code. ```python event.str.match("hello").a and event.str.match("hello").a # outputs numpy.bool_(True) ``` Also, when using Python's builtin booleans with `pd.eval`, the behavior is as expected. ```python pd.eval("True and True") # returns True ``` I think that this behavior should be used when running boolean operations on `numpy.bool_` types. #### Expected Output Expected output of `pd.eval("event.str.match('hello').a and event.str.match('hello').a")`: `True` #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-957.5.1.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.2.0 pip: 19.0.1 setuptools: 40.7.3 Cython: 0.29.4 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.4 patsy: 0.5.0 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 2.2.3 openpyxl: 2.5.14 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.3.0 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.2.17 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25823/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25823/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25824
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25824/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25824/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25824/events
https://github.com/pandas-dev/pandas/issues/25824
423,892,361
MDU6SXNzdWU0MjM4OTIzNjE=
25,824
Core dump when converting to category with duplicate column names
{ "avatar_url": "https://avatars.githubusercontent.com/u/449558?v=4", "events_url": "https://api.github.com/users/amueller/events{/privacy}", "followers_url": "https://api.github.com/users/amueller/followers", "following_url": "https://api.github.com/users/amueller/following{/other_user}", "gists_url": "https://api.github.com/users/amueller/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amueller", "id": 449558, "login": "amueller", "node_id": "MDQ6VXNlcjQ0OTU1OA==", "organizations_url": "https://api.github.com/users/amueller/orgs", "received_events_url": "https://api.github.com/users/amueller/received_events", "repos_url": "https://api.github.com/users/amueller/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amueller/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amueller/subscriptions", "type": "User", "url": "https://api.github.com/users/amueller" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2019-03-21T18:59:07Z
2019-03-22T15:19:54Z
2019-03-21T21:10:49Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np X = np.random.normal(size=(100, 2)) X_df = pd.DataFrame(X, columns=[0, 0]) X_df[0] = X_df[0].astype('category') ``` #### Problem description Stack overflow in the Python interpreter #### Expected Output No core dump. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-46-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.4 pytest: 3.6.2 pip: 10.0.1 setuptools: 39.2.0 Cython: 0.29.2 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 6.4.0 sphinx: 1.8.2 patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: None xlrd: 1.1.0 xlwt: None xlsxwriter: None lxml: None bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 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/25824/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25824/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25825
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25825/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25825/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25825/events
https://github.com/pandas-dev/pandas/issues/25825
423,921,969
MDU6SXNzdWU0MjM5MjE5Njk=
25,825
Plotting pd.Series object does not show year correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/33427623?v=4", "events_url": "https://api.github.com/users/matias6942/events{/privacy}", "followers_url": "https://api.github.com/users/matias6942/followers", "following_url": "https://api.github.com/users/matias6942/following{/other_user}", "gists_url": "https://api.github.com/users/matias6942/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/matias6942", "id": 33427623, "login": "matias6942", "node_id": "MDQ6VXNlcjMzNDI3NjIz", "organizations_url": "https://api.github.com/users/matias6942/orgs", "received_events_url": "https://api.github.com/users/matias6942/received_events", "repos_url": "https://api.github.com/users/matias6942/repos", "site_admin": false, "starred_url": "https://api.github.com/users/matias6942/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/matias6942/subscriptions", "type": "User", "url": "https://api.github.com/users/matias6942" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
4
2019-03-21T20:15:51Z
2019-03-22T19:11:59Z
2019-03-22T19:11:59Z
NONE
null
I am graphing the results of the measurements of a humidity sensor over time. I'm using Python 3.7.1 and Pandas 0.24.2. I have a list called dateTimeList with date and time strings: ``` dateTimeList = ['15.3.2019 11:44:27', '15.3.2019 12:44:33', '15.3.2019 13:44:39'] ``` I wrote this code where `index` is a DatetimeIndex object and `humList` is a list of floats. ```python index = pd.to_datetime(dateTimeList, format='%d.%m.%Y %H:%M:%S') ts = pd.Series(humList, index) plt.figure(figsize=(12.80, 7.20)) ts.plot(title='Gráfico de Humedad en el Tiempo', style='g', marker='o') plt.xlabel('Tiempo [días]') plt.ylabel('Humedad [V]') plt.grid() plt.savefig('Hum_General'+'.png', bbox_inches='tight') plt.show() ``` And I have this two results, one with data from February[1] and the other one with data from March[2]. The problem is that in March instead of leaving the year 2019, sequences of 00 12 00 12 appear on the x axis. I think it is important to note that this only happens on the data of March, since February is ok, and the data of both months have the same structure. Day and Month are shown correctly on both plots. [1]: https://www.dropbox.com/s/ckv6zeqb0psh6ih/Hum_General_Febrero.png?dl=0 [2]: https://www.dropbox.com/s/nzvbwnuf5fkuim1/Hum_General_Marzo.png?dl=0 I also tried with: ``` index = [ pd.to_datetime(date, format='%d.%m.%Y %H:%M:%S') for date in dateTimeList] ``` Now `index` is a list of Timestamps objects. Same Results. Full Code, Data and Outputs: [CodeandData.zip](https://github.com/pandas-dev/pandas/files/2997619/CodeandData.zip)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25825/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25825/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25826
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25826/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25826/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25826/events
https://github.com/pandas-dev/pandas/pull/25826
423,952,259
MDExOlB1bGxSZXF1ZXN0MjYzNDEyNjIz
25,826
WIP, MAINT: upstream timedelta64 changes
{ "avatar_url": "https://avatars.githubusercontent.com/u/7903078?v=4", "events_url": "https://api.github.com/users/tylerjereddy/events{/privacy}", "followers_url": "https://api.github.com/users/tylerjereddy/followers", "following_url": "https://api.github.com/users/tylerjereddy/following{/other_user}", "gists_url": "https://api.github.com/users/tylerjereddy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tylerjereddy", "id": 7903078, "login": "tylerjereddy", "node_id": "MDQ6VXNlcjc5MDMwNzg=", "organizations_url": "https://api.github.com/users/tylerjereddy/orgs", "received_events_url": "https://api.github.com/users/tylerjereddy/received_events", "repos_url": "https://api.github.com/users/tylerjereddy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tylerjereddy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tylerjereddy/subscriptions", "type": "User", "url": "https://api.github.com/users/tylerjereddy" }
[ { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" }, { "color": "0052cc", "default": false, "des...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-21T21:34:11Z
2019-03-22T19:48:49Z
2019-03-22T19:46:59Z
CONTRIBUTOR
null
**Background:** In NumPy, I've been working to expand the operations supported for `np.timedelta64` (`m8`) operands, adding support for modulus, floordiv and divmod operations. Historically, we've allowed casting from integer and bool types to `m8`, which may seem innocent enough, but is arguably sloppy from a units perspective. Furthermore, with the introduction of new `m8` operation support, signed and unsigned integers are now able to interconvert in [undesirable ways](https://github.com/numpy/numpy/issues/12927) by sneaking through casts to `m8`. So, core devs have suggested [prohibiting casts from int / bool types to `m8`](https://github.com/numpy/numpy/pull/13061). A prime concern here for me is the effect on downstream libraries that are known to heavily use datetime operations, like `pandas`. **Feedback**: It would be great to get some feedback here from the `pandas` perspective. To get the discussion started, I've opened this PR with some perhaps crude changes that allow the `pandas` master branch test suite to pass for me locally (via `./test_fash.sh` anyway) with the NumPy feature branch linked above. How disruptive is this for you? Will we need to issue warnings / deprecate? Should we just not do this at all?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25826/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25826/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25826.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25826", "merged_at": "2019-03-22T19:46:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25826.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25826" }
https://api.github.com/repos/pandas-dev/pandas/issues/25827
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25827/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25827/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25827/events
https://github.com/pandas-dev/pandas/pull/25827
423,991,368
MDExOlB1bGxSZXF1ZXN0MjYzNDQzODM1
25,827
CI: exclude asv env directory from isort and tailing whitespace checks
{ "avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4", "events_url": "https://api.github.com/users/qwhelan/events{/privacy}", "followers_url": "https://api.github.com/users/qwhelan/followers", "following_url": "https://api.github.com/users/qwhelan/following{/other_user}", "gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qwhelan", "id": 440095, "login": "qwhelan", "node_id": "MDQ6VXNlcjQ0MDA5NQ==", "organizations_url": "https://api.github.com/users/qwhelan/orgs", "received_events_url": "https://api.github.com/users/qwhelan/received_events", "repos_url": "https://api.github.com/users/qwhelan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions", "type": "User", "url": "https://api.github.com/users/qwhelan" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-21T23:58:41Z
2019-03-22T11:22:37Z
2019-03-22T11:22:34Z
CONTRIBUTOR
null
When running `ci/code_checks.sh` on a local repository that has also been used to run `asv` benchmarks, a couple of the checks recurse into the `asv_bench/env` directory created for running benchmark environments. This massively increases the runtime and leads to linting errors on non-pandas packages, which is not informative. This change simply adds `env` to the `isort` exclude list and the tailing whitespace `grep` call, which resolves the issue. - [ ] closes #xxxx - [ ] tests added / passed - [ ] 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/25827/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25827/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25827.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25827", "merged_at": "2019-03-22T11:22:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25827.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25827" }
https://api.github.com/repos/pandas-dev/pandas/issues/25828
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25828/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25828/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25828/events
https://github.com/pandas-dev/pandas/issues/25828
424,027,761
MDU6SXNzdWU0MjQwMjc3NjE=
25,828
Use Substitution Decorator for CustomBusinessMonthEnd
{ "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-22T03:09:20Z
2019-03-26T19:59:07Z
2019-03-26T17:09:37Z
MEMBER
null
This is a follow up to https://github.com/pandas-dev/pandas/pull/21093/files#r188805397 which wasn't working with Py27. Now that that is a thing of the past we should be able to use the more idiomatic Substitution approach to generating this docstring
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25828/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25828/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25829
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25829/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25829/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25829/events
https://github.com/pandas-dev/pandas/pull/25829
424,035,485
MDExOlB1bGxSZXF1ZXN0MjYzNDc3NDA5
25,829
#25790 Updating type hints to Python3 syntax in pandas/core/array
{ "avatar_url": "https://avatars.githubusercontent.com/u/1430066?v=4", "events_url": "https://api.github.com/users/gwrome/events{/privacy}", "followers_url": "https://api.github.com/users/gwrome/followers", "following_url": "https://api.github.com/users/gwrome/following{/other_user}", "gists_url": "https://api.github.com/users/gwrome/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gwrome", "id": 1430066, "login": "gwrome", "node_id": "MDQ6VXNlcjE0MzAwNjY=", "organizations_url": "https://api.github.com/users/gwrome/orgs", "received_events_url": "https://api.github.com/users/gwrome/received_events", "repos_url": "https://api.github.com/users/gwrome/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gwrome/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gwrome/subscriptions", "type": "User", "url": "https://api.github.com/users/gwrome" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-22T03:50:01Z
2019-03-31T14:46:08Z
2019-03-30T19:21:17Z
CONTRIBUTOR
null
- [x] addresses the other half of #25790 - [x] pandas/tests/arrays/ tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25829/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25829/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25829.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25829", "merged_at": "2019-03-30T19:21:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25829.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25829" }
https://api.github.com/repos/pandas-dev/pandas/issues/25830
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25830/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25830/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25830/events
https://github.com/pandas-dev/pandas/issues/25830
424,038,351
MDU6SXNzdWU0MjQwMzgzNTE=
25,830
bug!!when `json_normalize` string has `null`
{ "avatar_url": "https://avatars.githubusercontent.com/u/5196740?v=4", "events_url": "https://api.github.com/users/gitbobo/events{/privacy}", "followers_url": "https://api.github.com/users/gitbobo/followers", "following_url": "https://api.github.com/users/gitbobo/following{/other_user}", "gists_url": "https://api.github.com/users/gitbobo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gitbobo", "id": 5196740, "login": "gitbobo", "node_id": "MDQ6VXNlcjUxOTY3NDA=", "organizations_url": "https://api.github.com/users/gitbobo/orgs", "received_events_url": "https://api.github.com/users/gitbobo/received_events", "repos_url": "https://api.github.com/users/gitbobo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gitbobo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gitbobo/subscriptions", "type": "User", "url": "https://api.github.com/users/gitbobo" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
2
2019-03-22T04:05:58Z
2019-03-23T02:12:00Z
2019-03-23T01:14:18Z
NONE
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/25830/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25830/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25831
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25831/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25831/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25831/events
https://github.com/pandas-dev/pandas/issues/25831
424,073,964
MDU6SXNzdWU0MjQwNzM5NjQ=
25,831
Can't sort DataFrame when level=[] and sort_remaining=False
{ "avatar_url": "https://avatars.githubusercontent.com/u/1175502?v=4", "events_url": "https://api.github.com/users/dlsun/events{/privacy}", "followers_url": "https://api.github.com/users/dlsun/followers", "following_url": "https://api.github.com/users/dlsun/following{/other_user}", "gists_url": "https://api.github.com/users/dlsun/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dlsun", "id": 1175502, "login": "dlsun", "node_id": "MDQ6VXNlcjExNzU1MDI=", "organizations_url": "https://api.github.com/users/dlsun/orgs", "received_events_url": "https://api.github.com/users/dlsun/received_events", "repos_url": "https://api.github.com/users/dlsun/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dlsun/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dlsun/subscriptions", "type": "User", "url": "https://api.github.com/users/dlsun" }
[ { "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": null, "id": 71268330,...
open
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/38671637?v=4", "events_url": "https://api.github.com/users/YuRenee/events{/privacy}", "followers_url": "https://api.github.com/users/YuRenee/followers", "following_url": "https://api.github.com/users/YuRenee/following{/other_user}", "gists_url": "https://api.github.com/users/YuRenee/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/YuRenee", "id": 38671637, "login": "YuRenee", "node_id": "MDQ6VXNlcjM4NjcxNjM3", "organizations_url": "https://api.github.com/users/YuRenee/orgs", "received_events_url": "https://api.github.com/users/YuRenee/received_events", "repos_url": "https://api.github.com/users/YuRenee/repos", "site_admin": false, "starred_url": "https://api.github.com/users/YuRenee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YuRenee/subscriptions", "type": "User", "url": "https://api.github.com/users/YuRenee" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/38671637?v=4", "events_url": "https://api.github.com/users/YuRenee/events{/privacy}", "followers_url": "https://api.github.com/users/YuRenee/followers", "following_url": "https://api.github.com/users/YuRenee/following{/other_user}", "gists...
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2019-03-22T07:08:00Z
2021-06-27T20:39:05Z
null
NONE
null
#### Code Sample ```python import pandas as pd # Create a DataFrame with a MultiIndex. df = pd.DataFrame({ "a": [0, 2, 1], "b": [3, 0, 2], "c": [0, 0, 1] }).set_index(["a", "b"]) # This works. df.sort_index(level=[], sort_remaining=True) # This throws an IndexError: list index out of range. df.sort_index(level=[], sort_remaining=False) ``` #### Problem description Pandas is unable to sort the index of a DataFrame when level=[] and sort_remaining=False. It works when sort_remaining=True, though. This is inconsistent behavior; it doesn't make sense for one to work but not the other. The above code worked as intended in 0.22, but started throwing an error in 0.23. I believe that the commit that broke it was [this one](https://github.com/pandas-dev/pandas/commit/bc37ea2e05019a89adaa48159b220483598d1898#diff-1e79abbbdd150d4771b91ea60a4e1cc7). By changing ``` if level: ``` to ``` if level is not None: ``` the conditional is now entered when `level=[]`, whereas it wasn't previously (since an empty list is treated as `False`). #### Expected Output The offending line of code should be equivalent to `df`. (You might wonder how the above situation would even arise; no one would ever deliberately write the above line of code, since it is a no-op. But it can happen when the `level=` argument is being programmatically generated.) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Darwin OS-release: 16.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.1 pytest: 3.3.2 pip: 18.1 setuptools: 38.4.0 Cython: 0.27.3 numpy: 1.15.4 scipy: 1.2.1 pyarrow: None xarray: None IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.5.0 dateutil: 2.6.1 pytz: 2017.3 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.9 feather: None matplotlib: 2.1.2 openpyxl: 2.4.10 xlrd: 1.1.0 xlwt: 1.2.0 xlsxwriter: 1.0.2 lxml.etree: 4.1.1 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25831/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25831/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25832
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25832/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25832/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25832/events
https://github.com/pandas-dev/pandas/issues/25832
424,129,329
MDU6SXNzdWU0MjQxMjkzMjk=
25,832
python3.7 pip install pandas==0.22.0 error
{ "avatar_url": "https://avatars.githubusercontent.com/u/7699602?v=4", "events_url": "https://api.github.com/users/nankaimy/events{/privacy}", "followers_url": "https://api.github.com/users/nankaimy/followers", "following_url": "https://api.github.com/users/nankaimy/following{/other_user}", "gists_url": "https://api.github.com/users/nankaimy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nankaimy", "id": 7699602, "login": "nankaimy", "node_id": "MDQ6VXNlcjc2OTk2MDI=", "organizations_url": "https://api.github.com/users/nankaimy/orgs", "received_events_url": "https://api.github.com/users/nankaimy/received_events", "repos_url": "https://api.github.com/users/nankaimy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nankaimy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nankaimy/subscriptions", "type": "User", "url": "https://api.github.com/users/nankaimy" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
null
1
2019-03-22T10:00:48Z
2019-03-22T11:21:51Z
2019-03-22T11:21:44Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here pip install pandas==0.22.0 ``` #### Problem description ---------------------------------------- Command "c:\myprogram\anaconda37\python.exe c:\myprogram\anaconda37\lib\site-packages\pip install --ignore-installed --no-user --prefix C:\Users\qiaj\AppData\Local\Temp\pip-build-env-ls0v0cdg\overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython "numpy==1.9.3; python_version=='3.5'" "numpy==1.12.1; python_version=='3.6'" "numpy==1.13.1; python_version>='3.7'"" failed with error code 1 in None [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/25832/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25832/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25833
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25833/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25833/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25833/events
https://github.com/pandas-dev/pandas/issues/25833
424,140,800
MDU6SXNzdWU0MjQxNDA4MDA=
25,833
RecursionError with self referencing column in str(df) on DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/35496930?v=4", "events_url": "https://api.github.com/users/Doom312/events{/privacy}", "followers_url": "https://api.github.com/users/Doom312/followers", "following_url": "https://api.github.com/users/Doom312/following{/other_user}", "gists_url": "https://api.github.com/users/Doom312/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Doom312", "id": 35496930, "login": "Doom312", "node_id": "MDQ6VXNlcjM1NDk2OTMw", "organizations_url": "https://api.github.com/users/Doom312/orgs", "received_events_url": "https://api.github.com/users/Doom312/received_events", "repos_url": "https://api.github.com/users/Doom312/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Doom312/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Doom312/subscriptions", "type": "User", "url": "https://api.github.com/users/Doom312" }
[ { "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": "ededed", "default": false, "description": "__repr__ of pandas objec...
open
false
null
[]
null
1
2019-03-22T10:28:59Z
2020-09-22T04:05:45Z
null
NONE
null
```python # Your code here b = a = pd.Series( [2, 1, 3], index=[2, 1, 3], ) # display(b) a['Hi'] = b print(str(a)) ``` This raises ```python RecursionError: maximum recursion depth exceeded in __instancecheck__ ``` It is annoying when this happens in interactive mode. #### Expected Output ``` 2 2 1 1 3 3 Hi 2 2 1 1 3 3 dtype: int64 dtype: object ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: None pip: 18.1 setuptools: 40.6.3 Cython: 0.29.4 numpy: 1.16.1 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: None patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: 1.2.18 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25833/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25833/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25834
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25834/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25834/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25834/events
https://github.com/pandas-dev/pandas/issues/25834
424,210,763
MDU6SXNzdWU0MjQyMTA3NjM=
25,834
Writing empty DataFrame to HDF file
{ "avatar_url": "https://avatars.githubusercontent.com/u/20497083?v=4", "events_url": "https://api.github.com/users/vss888/events{/privacy}", "followers_url": "https://api.github.com/users/vss888/followers", "following_url": "https://api.github.com/users/vss888/following{/other_user}", "gists_url": "https://api.github.com/users/vss888/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vss888", "id": 20497083, "login": "vss888", "node_id": "MDQ6VXNlcjIwNDk3MDgz", "organizations_url": "https://api.github.com/users/vss888/orgs", "received_events_url": "https://api.github.com/users/vss888/received_events", "repos_url": "https://api.github.com/users/vss888/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vss888/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vss888/subscriptions", "type": "User", "url": "https://api.github.com/users/vss888" }
[ { "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" }, { "color": "5319e7", ...
closed
false
null
[]
null
1
2019-03-22T13:32:11Z
2019-03-22T15:39:49Z
2019-03-22T15:39:48Z
NONE
null
I am not able to save empy DataFrames to HDF files. #### Code Sample #1 ```python import pandas as pd df = pd.DataFrame(columns=['x','y']) df.to_hdf('temp.h5', 'xxx') df2 = pd.read_hdf('temp.h5', 'xxx') ``` #### Output #1 ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 389, in read_hdf return store.select(key, auto_close=auto_close, **kwargs) File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 740, in select return it.get_result() File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 1518, in get_result results = self.func(self.start, self.stop, where) File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 733, in func columns=columns) File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 2986, in read idx=i), start=_start, stop=_stop) File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 2575, in read_index _, index = self.read_index_node(getattr(self.group, key), **kwargs) File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 2676, in read_index_node data = node[start:stop] File ".../Python-3.6.3/lib/python3.6/site-packages/tables/vlarray.py", line 675, in __getitem__ return self.read(start, stop, step) File ".../Python-3.6.3/lib/python3.6/site-packages/tables/vlarray.py", line 811, in read listarr = self._read_array(start, stop, step) File "tables/hdf5extension.pyx", line 2106, in tables.hdf5extension.VLArray._read_array (tables/hdf5extension.c:24649) ValueError: cannot set WRITEABLE flag to True of this array ``` #### Code Sample #2 (with `format='table'`): ```python import pandas as pd df = pd.DataFrame(columns=['x','y']) df.to_hdf('temp.h5', 'xxx', format='table') df2 = pd.read_hdf('temp.h5', 'xxx') ``` #### Output #2 ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 389, in read_hdf return store.select(key, auto_close=auto_close, **kwargs) File ".../Python-3.6.3/lib/python3.6/site-packages/pandas/io/pytables.py", line 722, in select raise KeyError('No object named {key} in the file'.format(key=key)) KeyError: 'No object named xxx in the file' ``` #### Problem description It is not possible to save (and read back) an empty DataFrame to an HDF file. #### Expected Output No error messages. Empty DataFrame can be saved and read back to/from an HDF file. #### Output of ``pd.show_versions()`` <details> >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-862.11.6.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.utf-8 LANG: en_US.utf-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 3.3.2 pip: 19.0.3 setuptools: 39.0.1 Cython: 0.27.3 numpy: 1.16.1 scipy: 1.1.0 pyarrow: 0.11.1 xarray: None IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.4 blosc: None bottleneck: None tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 3.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: 0.9999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </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/25834/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25834/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25835
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25835/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25835/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25835/events
https://github.com/pandas-dev/pandas/issues/25835
424,225,099
MDU6SXNzdWU0MjQyMjUwOTk=
25,835
MAC OS: sum over empy series with object dtype gives False
{ "avatar_url": "https://avatars.githubusercontent.com/u/15340151?v=4", "events_url": "https://api.github.com/users/mlangiu/events{/privacy}", "followers_url": "https://api.github.com/users/mlangiu/followers", "following_url": "https://api.github.com/users/mlangiu/following{/other_user}", "gists_url": "https://api.github.com/users/mlangiu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mlangiu", "id": 15340151, "login": "mlangiu", "node_id": "MDQ6VXNlcjE1MzQwMTUx", "organizations_url": "https://api.github.com/users/mlangiu/orgs", "received_events_url": "https://api.github.com/users/mlangiu/received_events", "repos_url": "https://api.github.com/users/mlangiu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mlangiu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mlangiu/subscriptions", "type": "User", "url": "https://api.github.com/users/mlangiu" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2019-03-22T14:03:49Z
2019-03-25T19:36:53Z
2019-03-22T16:31:05Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas pandas.Series(dtype='O').sum() ``` #### Problem description Performing the above code segment with pandas 0.24.2 gives me - (numpy.bool_) `False` on a Mac with homebrew python 3.6.4 - (int) `0` on a Windows 10 with Anaconda python 3.6.7 While I would prefer `0` for my own purposes, I suppose it is not easy to decide on an expected output here. But I would argue that it should at least be consistent. #### Output of ``pd.show_versions()`` - MAC <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.4.final.0 python-bits: 64 OS: Darwin OS-release: 16.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.24.2 pytest: 3.6.2 pip: 19.0.3 setuptools: 39.0.1 Cython: None numpy: 1.14.2 scipy: 1.0.1 pyarrow: None xarray: None IPython: 6.2.1 sphinx: None patsy: None dateutil: 2.7.2 pytz: 2018.3 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.0 openpyxl: None xlrd: 1.1.0 xlwt: None xlsxwriter: None lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 0.9999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None 23846nemo/linearization.py000418:1 LinterAtom Ide DiagnosticsActivate Power Mode Python 3 | idle CRLFUTF-8PythonGitHubGit (0)4 updates </details> - WIN <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 pytest: 4.0.2 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None 47327experiments\pyomo_nl.py50:1 Python 3 | idle CRLFenUS,deDEUTF-8Python developmentFetchGitHubGit (45) </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/25835/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25835/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25836
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25836/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25836/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25836/events
https://github.com/pandas-dev/pandas/pull/25836
424,239,320
MDExOlB1bGxSZXF1ZXN0MjYzNjM2MTAw
25,836
Safe version of ascii macros, add missing tolower_ascii
{ "avatar_url": "https://avatars.githubusercontent.com/u/45396231?v=4", "events_url": "https://api.github.com/users/vnlitvinov/events{/privacy}", "followers_url": "https://api.github.com/users/vnlitvinov/followers", "following_url": "https://api.github.com/users/vnlitvinov/following{/other_user}", "gists_url": "https://api.github.com/users/vnlitvinov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vnlitvinov", "id": 45396231, "login": "vnlitvinov", "node_id": "MDQ6VXNlcjQ1Mzk2MjMx", "organizations_url": "https://api.github.com/users/vnlitvinov/orgs", "received_events_url": "https://api.github.com/users/vnlitvinov/received_events", "repos_url": "https://api.github.com/users/vnlitvinov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vnlitvinov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vnlitvinov/subscriptions", "type": "User", "url": "https://api.github.com/users/vnlitvinov" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-22T14:33:42Z
2019-03-25T11:05:54Z
2019-03-22T16:18:38Z
CONTRIBUTOR
null
- [x] fixes a warning introduced in #23981 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Using unparenthesized macro parameters is dangerous, so wrap `c` in braces. Example warning fixed by adding `tolower_ascii()`: ``` In file included from pandas/_libs/lib.c:643:0: pandas/_libs/src/parse_helper.h: In function ‘lowercase’: pandas/_libs/src/parse_helper.h:141:26: warning: implicit declaration of function ‘tolower_ascii’; did you mean ‘toupper_ascii’? [-Wimplicit-function-declaration] for (; *p; ++p) *p = tolower_ascii(*p); ^~~~~~~~~~~~~ toupper_ascii ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25836/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25836/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25836.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25836", "merged_at": "2019-03-22T16:18:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25836.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25836" }
https://api.github.com/repos/pandas-dev/pandas/issues/25837
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25837/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25837/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25837/events
https://github.com/pandas-dev/pandas/issues/25837
424,267,989
MDU6SXNzdWU0MjQyNjc5ODk=
25,837
to_msgpack converts tuples of length 1 to str iff no object(str) columns are present.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1257580?v=4", "events_url": "https://api.github.com/users/TyberiusPrime/events{/privacy}", "followers_url": "https://api.github.com/users/TyberiusPrime/followers", "following_url": "https://api.github.com/users/TyberiusPrime/following{/other_user}", "gists_url": "https://api.github.com/users/TyberiusPrime/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TyberiusPrime", "id": 1257580, "login": "TyberiusPrime", "node_id": "MDQ6VXNlcjEyNTc1ODA=", "organizations_url": "https://api.github.com/users/TyberiusPrime/orgs", "received_events_url": "https://api.github.com/users/TyberiusPrime/received_events", "repos_url": "https://api.github.com/users/TyberiusPrime/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TyberiusPrime/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TyberiusPrime/subscriptions", "type": "User", "url": "https://api.github.com/users/TyberiusPrime" }
[]
closed
false
null
[]
null
2
2019-03-22T15:31:02Z
2019-12-11T13:28:32Z
2019-12-11T13:28:32Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd from pandas.testing import assert_frame_equal for name, df in [ ("mixed len tuples", pd.DataFrame({"x": [("one",), ("two", "three")]})), ("len(1) tuples", pd.DataFrame({"x": [("one",), ("two",)]})), ( "len(1) tuples+str_column", pd.DataFrame({"x": [("one",), ("two",)], "y": ["a", "b"]}), ), ( "len(1) tuples+categorical", pd.DataFrame({"x": [("one",), ("two",)], "y": pd.Categorical(["a", "b"])}), ), ]: df.to_msgpack("example") df2 = pd.read_msgpack("example") if df.equals(df2): print("%s -> ok" % name) else: print("%s -> different" % name) print(df2.x) ``` #### Problem description DataFrame.to_msgpack() handles tuples - except when they are of length 1 and no string column is present. This is unexpected, the round tripping shoudl neither depend on the tuples being longer nor on the dtypes of other columns. #### Expected Output mixed len tuples -> ok len(1) tuples -> ok len(1) tuples+str_column -> ok len(1) tuples+categorical -> ok len(mixed) tuples+int -> ok ###actual output mixed len tuples -> ok len(1) tuples -> different 0 one 1 two Name: x, dtype: object len(1) tuples+str_column -> ok len(1) tuples+categorical -> different 0 one 1 two Name: x, dtype: object #### Output of ``pd.show_versions()`` This is on todays master. INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-43-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: None LOCALE: en_US.UTF-8 pandas: 0.25.0.dev0+301.gf2bcb9f00 pytest: 3.10.1 pip: 19.0.1 setuptools: 40.8.0 Cython: 0.29.4 numpy: 1.16.1 scipy: 1.2.0 pyarrow: 0.12.0 xarray: None IPython: 7.3.0 sphinx: None patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: 0.4.0 matplotlib: 3.0.2 openpyxl: None xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None 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/25837/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25837/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25838
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25838/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25838/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25838/events
https://github.com/pandas-dev/pandas/issues/25838
424,281,384
MDU6SXNzdWU0MjQyODEzODQ=
25,838
ENH: keep='random' option for .duplicated and .drop_duplicates
{ "avatar_url": "https://avatars.githubusercontent.com/u/10999118?v=4", "events_url": "https://api.github.com/users/dylanjaide/events{/privacy}", "followers_url": "https://api.github.com/users/dylanjaide/followers", "following_url": "https://api.github.com/users/dylanjaide/following{/other_user}", "gists_url": "https://api.github.com/users/dylanjaide/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dylanjaide", "id": 10999118, "login": "dylanjaide", "node_id": "MDQ6VXNlcjEwOTk5MTE4", "organizations_url": "https://api.github.com/users/dylanjaide/orgs", "received_events_url": "https://api.github.com/users/dylanjaide/received_events", "repos_url": "https://api.github.com/users/dylanjaide/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dylanjaide/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dylanjaide/subscriptions", "type": "User", "url": "https://api.github.com/users/dylanjaide" }
[ { "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": "fc6feb", "default": false, "description": "duplicat...
closed
false
null
[]
null
3
2019-03-22T15:58:22Z
2021-03-02T09:35:15Z
2020-04-03T03:17:53Z
NONE
null
#### Enhancement description The present implementation of `df.duplicated()` (and hence `df.drop_duplicates()`) only has two options for users that wish to keep exactly one from each set of duplicates (`'first'` and `'last'`). In some use cases, if the data is already ordered in some way, these options can potentially introduce bias. It would be useful to have an option that allows for the duplicate selected to be randomly (but also deterministically) chosen. #### Details In our use case, we are able to produce the desired result by other means: we wish to remove all-but-one events with a duplicate in the 'eventNumber' column, so we introduce an additional 'random number' column using `pd.utils.hash_pandas_object(df, index=False)`. We then sort the dataframe by this column, apply `df.drop_duplicates()` using either keep='first' or keep='last', and then sort by index again (thanks to @chrisburr for this solution). By using a hash instead of a standard RNG, the numbers used in the sorting are deterministic & repeatable. It also remains stable when entries are added/removed but the rest are not modified, which is desirable not not necessarily required. But this method requires the hash having knowledge of another subset of the columns in which there are no duplicates, and so would require the underlying functions (the `duplicated_{{dtype}}` functions in `pandas/_libs/hashtable_func_helper.pxi.in`) to receive an additional argument.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25838/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25838/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25839
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25839/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25839/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25839/events
https://github.com/pandas-dev/pandas/issues/25839
424,403,835
MDU6SXNzdWU0MjQ0MDM4MzU=
25,839
df.to_hdf5() in table append mode very slow with data_columns=True, append=True, index=False
{ "avatar_url": "https://avatars.githubusercontent.com/u/2701562?v=4", "events_url": "https://api.github.com/users/dragoljub/events{/privacy}", "followers_url": "https://api.github.com/users/dragoljub/followers", "following_url": "https://api.github.com/users/dragoljub/following{/other_user}", "gists_url": "https://api.github.com/users/dragoljub/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dragoljub", "id": 2701562, "login": "dragoljub", "node_id": "MDQ6VXNlcjI3MDE1NjI=", "organizations_url": "https://api.github.com/users/dragoljub/orgs", "received_events_url": "https://api.github.com/users/dragoljub/received_events", "repos_url": "https://api.github.com/users/dragoljub/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dragoljub/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dragoljub/subscriptions", "type": "User", "url": "https://api.github.com/users/dragoljub" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default"...
open
false
null
[]
null
2
2019-03-22T21:19:16Z
2020-04-29T02:02:37Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import numpy as np import pandas as pd df = pd.DataFrame(np.random.randint(123,456, size=(300,225)), columns=['COL'+str(i) for i in range(225)]) df.loc[:,:'COL10'] = df.loc[:,:'COL10'].astype(str) df.loc[:,'COL11':'COL20'] = df.loc[:,'COL11':'COL20'].astype(float) df.to_hdf(r'test.h5', 'df', mode='w', data_columns=True, append=True, index=False) # <-- Quite Fast on first run creation of the table. df.to_hdf(r'test.h5', 'df', mode='a', data_columns=True, append=True, index=False) # <-- 3.6 Minutes for 2nd run trying to append to the table. Note index=False ``` #### Problem description ``df.to_hdf()`` In Append Table mode used to work very quickly when you set each column as a data column and want _no_ index created. ``data_columns=True, append=True, index=False``. On the new version of Pandas and PyTables it seems to be taking a very long to append additional rows. #### Expected Output Appending HDF5 Table rows with ''data_columns=True, append=True, index=False'' should create all columns as data columns, but not create an index and should be quite fast. #### 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 158 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: 4.0.0 pip: 19.0.3 setuptools: 40.6.2 Cython: 0.29 numpy: 1.15.4 scipy: 1.1.0 pyarrow: 0.12.0 xarray: 0.11.0 IPython: 7.1.1 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: 1.6.2 bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.10 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: None lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.14 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: 0.1.6 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/25839/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25839/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25840
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25840/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25840/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25840/events
https://github.com/pandas-dev/pandas/pull/25840
424,408,262
MDExOlB1bGxSZXF1ZXN0MjYzNzY5MjE3
25,840
Remove chainmap_impl compat code
{ "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-22T21:34:27Z
2019-03-23T21:37:04Z
2019-03-23T20:08:42Z
MEMBER
null
Also avoid having a dependency in `compat` on `core`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25840/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25840/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25840.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25840", "merged_at": "2019-03-23T20:08:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25840.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25840" }
https://api.github.com/repos/pandas-dev/pandas/issues/25841
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25841/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25841/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25841/events
https://github.com/pandas-dev/pandas/pull/25841
424,410,922
MDExOlB1bGxSZXF1ZXN0MjYzNzcxMzEz
25,841
Remove compat code in tseries
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[]
closed
false
null
[]
null
0
2019-03-22T21:43:52Z
2019-09-17T18:55:10Z
2019-03-22T22:17:42Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] 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/25841/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25841/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25841.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25841", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25841.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25841" }
https://api.github.com/repos/pandas-dev/pandas/issues/25842
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25842/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25842/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25842/events
https://github.com/pandas-dev/pandas/issues/25842
424,415,067
MDU6SXNzdWU0MjQ0MTUwNjc=
25,842
Usage Question: How to add/reindex leading and trailing dates
{ "avatar_url": "https://avatars.githubusercontent.com/u/7839615?v=4", "events_url": "https://api.github.com/users/coler-j/events{/privacy}", "followers_url": "https://api.github.com/users/coler-j/followers", "following_url": "https://api.github.com/users/coler-j/following{/other_user}", "gists_url": "https://api.github.com/users/coler-j/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/coler-j", "id": 7839615, "login": "coler-j", "node_id": "MDQ6VXNlcjc4Mzk2MTU=", "organizations_url": "https://api.github.com/users/coler-j/orgs", "received_events_url": "https://api.github.com/users/coler-j/received_events", "repos_url": "https://api.github.com/users/coler-j/repos", "site_admin": false, "starred_url": "https://api.github.com/users/coler-j/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/coler-j/subscriptions", "type": "User", "url": "https://api.github.com/users/coler-j" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
1
2019-03-22T21:59:04Z
2019-03-23T02:04:13Z
2019-03-23T02:04:07Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` df = pd.DataFrame.from_records(data=data, coerce_float=False, index=['date']) # date field a datetime.datetime values account_id amount date 2018-01-01 1 100.0 2018-01-01 1 50.0 2018-06-01 1 200.0 2018-07-01 2 100.0 2018-10-01 2 200.0 ``` #### Problem description How can I "pad" my dataframe with leading and trailing "empty dates". I have tried to reindex on a date_range and period_range, I have tried to merge another index. I have tried all sorts of things all day, and I have read alot of the docs. I have a simple dataframe with columns `transaction_date`, `transaction_amount`, and `transaction_account`. I want to group this dataframe so that it is grouped by account at the first level, and then by year, and then by month. Then I want a column for each month, with the `sum` of that month's transaction amount value. This seems like it should be something that is easy to do. #### Expected Output This is the closest I have gotten: ``` df = pd.DataFrame.from_records(data=data, coerce_float=False, index=['date']) df = df.groupby(['account_id', df.index.year, df.index.month]) df = df.resample('M').sum().fillna(0) print(df) account_id amount account_id date date date 1 2018 1 2018-01-31 2 150.0 6 2018-06-30 1 200.0 2 2018 7 2018-07-31 2 100.0 10 2018-10-31 2 200.0 ``` **And this is what I want to achieve (basically reindex the data by `date_range(start='2018-01-01', period=12, freq='M')`** *(Ideally I would want the month to be transposed by year across the top as columns)* ``` amount account_id Year Month 1 2018 1 150.0 2 NaN 3 NaN 4 NaN 5 NaN 6 200.0 .... 12 200.0 2 2018 1 NaN .... 7 100.0 .... 10 200.0 .... 12 NaN ``` If you want some stack overflow credit -> https://stackoverflow.com/questions/55308342/leading-and-trailing-padding-dates-in-pandas-dataframe
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25842/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25842/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25843
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25843/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25843/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25843/events
https://github.com/pandas-dev/pandas/issues/25843
424,438,022
MDU6SXNzdWU0MjQ0MzgwMjI=
25,843
DataFrame (and Series?) constructor ignores request for naive datetime64 dtype when passed datetime64 objects with timezone
{ "avatar_url": "https://avatars.githubusercontent.com/u/247555?v=4", "events_url": "https://api.github.com/users/tswast/events{/privacy}", "followers_url": "https://api.github.com/users/tswast/followers", "following_url": "https://api.github.com/users/tswast/following{/other_user}", "gists_url": "https://api.github.com/users/tswast/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tswast", "id": 247555, "login": "tswast", "node_id": "MDQ6VXNlcjI0NzU1NQ==", "organizations_url": "https://api.github.com/users/tswast/orgs", "received_events_url": "https://api.github.com/users/tswast/received_events", "repos_url": "https://api.github.com/users/tswast/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tswast/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tswast/subscriptions", "type": "User", "url": "https://api.github.com/users/tswast" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "e11d21", "default": false, "description": "Functiona...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-22T23:53:09Z
2019-04-21T16:37:05Z
2019-04-21T16:37:05Z
CONTRIBUTOR
null
I can reproduces this in pandas (development version, 0.24.0+, but not 0.23.4) with this minimal example: ``` import datetime import pandas as pd import pytz dates = [ datetime.datetime(2019, 1, 1, 12, tzinfo=pytz.utc), datetime.datetime(2018, 4, 1, 17, 13, tzinfo=pytz.utc), ] df = pd.DataFrame({"dates": dates}) print(df.dtypes) df2 = pd.DataFrame({"dates": dates}, dtype="datetime64[ns]") print(df2.dtypes) ``` It prints: ``` # df dates datetime64[ns, UTC] <-- I expect this. dtype: object # df2 dates datetime64[ns, UTC] <-- I didn't expect this. dtype: object ``` There do appear to be a lot of changes to `datetime64` behavior in the changelog for 0.24.0 http://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.24.0.html so maybe this is intended behavior? Maybe the distinction between `datetime64[ns, UTC]` and `datetime64[ns]` when you pass in an explicit `dtype` shouldn't actually be a meaningful difference?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25843/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25843/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25844
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25844/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25844/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25844/events
https://github.com/pandas-dev/pandas/pull/25844
424,454,950
MDExOlB1bGxSZXF1ZXN0MjYzODA0MjQ4
25,844
MyPy CI Configuration
{ "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": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
15
2019-03-23T02:44:14Z
2020-01-16T00:34:37Z
2019-03-26T15:45:07Z
MEMBER
null
- [X] closes #14468 I think this is the minimal amount of work required to get MyPy configured for CI. Note that the list of files is the only [documented](https://mypy.readthedocs.io/en/latest/running_mypy.html#reading-a-list-of-files-from-a-file) way to whitelist things that I could find (see also https://github.com/python/mypy/issues/1476) I think we want to add this to the Checks_and_doc job though I couldn't see where that was actually configured (maybe an access thing on Azure?) so can do as a quick follow up @jreback @gwrome
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25844/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25844/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25844.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25844", "merged_at": "2019-03-26T15:45:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25844.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25844" }
https://api.github.com/repos/pandas-dev/pandas/issues/25845
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25845/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25845/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25845/events
https://github.com/pandas-dev/pandas/pull/25845
424,462,461
MDExOlB1bGxSZXF1ZXN0MjYzODA5MTA2
25,845
CLN: Remove redundant definitions in pandas.compat (filter, map, range, etc.)
{ "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": "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-23T04:36:02Z
2019-03-23T20:14:38Z
2019-03-23T20:13:30Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Some more low hanging fruit in the Python 2 removal process. This should remove all references to the following functions in `pandas.compat` which are redundantly defined for Python 3: - `filter` - `map` - `range` - `zip` - `next` - `FileNotFoundError` - `ResourceWarning`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25845/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25845/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25845.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25845", "merged_at": "2019-03-23T20:13:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25845.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25845" }
https://api.github.com/repos/pandas-dev/pandas/issues/25846
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25846/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25846/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25846/events
https://github.com/pandas-dev/pandas/issues/25846
424,473,612
MDU6SXNzdWU0MjQ0NzM2MTI=
25,846
reset_index() error after crosstab
{ "avatar_url": "https://avatars.githubusercontent.com/u/31654102?v=4", "events_url": "https://api.github.com/users/MichaelSchroter/events{/privacy}", "followers_url": "https://api.github.com/users/MichaelSchroter/followers", "following_url": "https://api.github.com/users/MichaelSchroter/following{/other_user}", "gists_url": "https://api.github.com/users/MichaelSchroter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MichaelSchroter", "id": 31654102, "login": "MichaelSchroter", "node_id": "MDQ6VXNlcjMxNjU0MTAy", "organizations_url": "https://api.github.com/users/MichaelSchroter/orgs", "received_events_url": "https://api.github.com/users/MichaelSchroter/received_events", "repos_url": "https://api.github.com/users/MichaelSchroter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MichaelSchroter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MichaelSchroter/subscriptions", "type": "User", "url": "https://api.github.com/users/MichaelSchroter" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
4
2019-03-23T07:29:15Z
2020-01-21T04:23:19Z
2020-01-21T04:23:18Z
NONE
null
Hi All, I have a pandas dataframe which I constructed after doing a crosstab. When I try to `reset_index()` it gives me an error. Saying `TypeError: cannot insert an item into a CategoricalIndex that is not already an existing category` this happens sometimes and does not happen sometimes. The pandas dataframe was constructed using dask `.compute()` method. Would anyone be able to tell me what is the issue and how to rectify it. I have `pandas 0.24.2 ` running. Thanks Michael
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25846/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25846/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25847
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25847/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25847/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25847/events
https://github.com/pandas-dev/pandas/issues/25847
424,475,957
MDU6SXNzdWU0MjQ0NzU5NTc=
25,847
read_csv and dates: different date formats within the same column (one row month-day-year, anoher day-month-year)
{ "avatar_url": "https://avatars.githubusercontent.com/u/20935452?v=4", "events_url": "https://api.github.com/users/garfieldthecat/events{/privacy}", "followers_url": "https://api.github.com/users/garfieldthecat/followers", "following_url": "https://api.github.com/users/garfieldthecat/following{/other_user}", "gists_url": "https://api.github.com/users/garfieldthecat/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/garfieldthecat", "id": 20935452, "login": "garfieldthecat", "node_id": "MDQ6VXNlcjIwOTM1NDUy", "organizations_url": "https://api.github.com/users/garfieldthecat/orgs", "received_events_url": "https://api.github.com/users/garfieldthecat/received_events", "repos_url": "https://api.github.com/users/garfieldthecat/repos", "site_admin": false, "starred_url": "https://api.github.com/users/garfieldthecat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/garfieldthecat/subscriptions", "type": "User", "url": "https://api.github.com/users/garfieldthecat" }
[]
closed
false
null
[]
null
4
2019-03-23T08:02:59Z
2019-03-23T13:54:44Z
2019-03-23T13:51:55Z
NONE
null
#### Code Sample: ```python import numpy as np import pandas as pd df=pd.DataFrame() df['day'] =np.arange(1,32) df['day']=df['day'].apply(lambda x: "{:0>2d}".format(x) ) df['month']='01' df['year']='2018' df['date']=df['day']+'/'+df['month']+'/'+df['year'] df.to_csv('mydates.csv', index=False) #same results whether you use parse_dates or not imp = pd.read_csv('mydates.csv',parse_dates=['date']) imp['day extracted']=pd.DatetimeIndex(imp['date']).day print(imp) ``` #### Problem description **If you import a csv containing dates with read_csv(), pandas may assign different date formats within the same column, i.e. one row may be dd-mm-yyyy and another mm-dd-yyyy** . This is shown in the example above by extracting the day. This happens also when the date column is not ambiguous, i.e. when it contains days from 1st to the 31st. With a column containing only 1-1-2000 or 3-4-2010 you can't infer which is the day and which the month, but with columns containing days till the 31st there cannot be any ambiguity. The only way I have found to fix this is to declare the date format, either explicitly or "semi-explicitly" with dayfirst. However, it is a BIG problem because it means I must explicitly declare every single date format, even when there shouldn't be any ambiguity. This happens to me with pandas 0.23.4 and Python 3.7.1 on Windows 10. For reasons I don't understand, conda doesn't update pandas to 0.24.2 The same issue has been reported on stackoverflow: https://stackoverflow.com/questions/55309199/pandas-read-csv-can-apply-different-date-formats-within-the-same-column-is-it?noredirect=1#comment97348008_55309199 but I haven't found it mentioned in github. #### Expected Output The column 'day extracted' should have been identical to the column 'day' created with np.arange() #### 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: AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD byteorder: little LC_ALL: None LANG: en LOCALE: None.None pandas: 0.23.4 pytest: 4.0.2 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None 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/25847/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25847/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25848
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25848/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25848/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25848/events
https://github.com/pandas-dev/pandas/issues/25848
424,477,016
MDU6SXNzdWU0MjQ0NzcwMTY=
25,848
read_csv : using day first 23x to 35x slower than setting the format explicitly
{ "avatar_url": "https://avatars.githubusercontent.com/u/20935452?v=4", "events_url": "https://api.github.com/users/garfieldthecat/events{/privacy}", "followers_url": "https://api.github.com/users/garfieldthecat/followers", "following_url": "https://api.github.com/users/garfieldthecat/following{/other_user}", "gists_url": "https://api.github.com/users/garfieldthecat/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/garfieldthecat", "id": 20935452, "login": "garfieldthecat", "node_id": "MDQ6VXNlcjIwOTM1NDUy", "organizations_url": "https://api.github.com/users/garfieldthecat/orgs", "received_events_url": "https://api.github.com/users/garfieldthecat/received_events", "repos_url": "https://api.github.com/users/garfieldthecat/repos", "site_admin": false, "starred_url": "https://api.github.com/users/garfieldthecat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/garfieldthecat/subscriptions", "type": "User", "url": "https://api.github.com/users/garfieldthecat" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "a10c02", "default": false, "description": "Memory or...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-03-23T08:19:03Z
2019-05-14T17:13:01Z
2019-05-14T17:13:01Z
NONE
null
#### Code Sample: create a small csv with dates, then imports it and times the import ```python import numpy as np import pandas as pd import time import timeit start_time=time.time() n=int(100e3) out =pd.DataFrame() out['day']=np.random.randint(1,12,n) out['month']=np.random.randint(1,12,n) out['year']=np.random.randint(2000,2010,n) out['date1']= out.day.astype(str) + '-' + out.month.astype(str) + '-' + out.year.astype(str) out['date2']= out['day'].map('{:0>2d}'.format ) + '-' + out['month'].map('{:0>2d}'.format ) + '-' + out.year.astype(str) out.to_csv('test dates.csv') print('Exported in ') print(time.time()-start_time) def noparse(): return pd.read_csv('test dates.csv', dtype={'date1':str,'date2':str} ) def parse1(): return pd.read_csv('test dates.csv', parse_dates=['date1','date2'], dayfirst=True ) def parse2(): df = pd.read_csv('test dates.csv', dtype={'date1':str,'date2':str} ) for d in ['date1','date2']: df[d]= pd.to_datetime( df[d], dayfirst=True ) return df def parse3(): df = pd.read_csv('test dates.csv', dtype={'date1':str,'date2':str} ) # formatting described at: http://php.net/manual/en/function.strftime.php df['date1']=pd.to_datetime(df['date1'], format='%d-%m-%Y') df['date2']=pd.to_datetime(df['date2'], format='%d-%m-%Y') return df results=pd.DataFrame() results['no parse'] = timeit.Timer( "noparse()", globals=globals() ).repeat(repeat=3, number =1) results['parse 1']=timeit.Timer( "parse1()", globals=globals() ).repeat(repeat=3, number =1) results['parse 2']=timeit.Timer( "parse2()", globals=globals() ).repeat(repeat=3, number =1) results['parse 3']=timeit.Timer( "parse3()", globals=globals() ).repeat(repeat=3, number =1) print(results) ``` #### Problem description I am trying to import a CSV with dates, where the days are always < 13 , i.e. there is no way to infer the proper format - it must be specified explicitly (how can you tell whether 1-2 is Jan 2nd or Feb 1st?). What I noticed is that **setting the date format with dayfirst is 25 to 35x (I tried it on two PCs) slower than setting the format explicitly with format='%d-%m-%Y'** How can this be? It's insane. I appreciate there may be a little bit of additional overhead, as dayfirst must guess the position of the year, but 25x to 35x slower leaves me speechless. **With dayfirst it took 16 seconds to import a csv with 2 date columns and only 100k rows.** There must be something very wrong with how read_csv implements dayfirst - I'm hoping it shouldn't be too complicated to fix it? #### Expected Output #### 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: AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD byteorder: little LC_ALL: None LANG: en LOCALE: None.None pandas: 0.23.4 pytest: 4.0.2 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None 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/25848/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25848/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25849
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25849/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25849/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25849/events
https://github.com/pandas-dev/pandas/issues/25849
424,526,337
MDU6SXNzdWU0MjQ1MjYzMzc=
25,849
ImportError: cannot import name 'register_extension_dtype'
{ "avatar_url": "https://avatars.githubusercontent.com/u/38726809?v=4", "events_url": "https://api.github.com/users/hmmerino/events{/privacy}", "followers_url": "https://api.github.com/users/hmmerino/followers", "following_url": "https://api.github.com/users/hmmerino/following{/other_user}", "gists_url": "https://api.github.com/users/hmmerino/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hmmerino", "id": 38726809, "login": "hmmerino", "node_id": "MDQ6VXNlcjM4NzI2ODA5", "organizations_url": "https://api.github.com/users/hmmerino/orgs", "received_events_url": "https://api.github.com/users/hmmerino/received_events", "repos_url": "https://api.github.com/users/hmmerino/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hmmerino/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hmmerino/subscriptions", "type": "User", "url": "https://api.github.com/users/hmmerino" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
2
2019-03-23T17:44:17Z
2019-03-24T00:56:05Z
2019-03-24T00:56:04Z
NONE
null
#### Code Sample I'm using /anaconda3/bin/python 3.6.8 |Anaconda, Inc.| (default, Dec 29 2018, 19:04:46) pandas 0.24.2 ```python import pandas as pd ``` #### Problem description when running "import pandas as pd" I get: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-29-7dd3504c366f> in <module>() ----> 1 import pandas as pd /anaconda3/lib/python3.6/site-packages/pandas/__init__.py in <module>() 40 import pandas.core.config_init 41 ---> 42 from pandas.core.api import * 43 from pandas.core.sparse.api import * 44 from pandas.tseries.api import * /anaconda3/lib/python3.6/site-packages/pandas/core/api.py in <module>() 5 import numpy as np 6 ----> 7 from pandas.core.arrays.integer import ( 8 Int8Dtype, 9 Int16Dtype, /anaconda3/lib/python3.6/site-packages/pandas/core/arrays/integer.py in <module>() 14 is_bool_dtype, is_float, is_float_dtype, is_integer, is_integer_dtype, 15 is_list_like, is_object_dtype, is_scalar) ---> 16 from pandas.core.dtypes.dtypes import register_extension_dtype 17 from pandas.core.dtypes.generic import ABCIndexClass, ABCSeries 18 from pandas.core.dtypes.missing import isna, notna ImportError: cannot import name 'register_extension_dtype' Any Advice? thank you
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25849/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25849/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25850
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25850/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25850/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25850/events
https://github.com/pandas-dev/pandas/issues/25850
424,530,111
MDU6SXNzdWU0MjQ1MzAxMTE=
25,850
Assignment to DataFrame not working but dtypes changed
{ "avatar_url": "https://avatars.githubusercontent.com/u/24696644?v=4", "events_url": "https://api.github.com/users/crazywkb/events{/privacy}", "followers_url": "https://api.github.com/users/crazywkb/followers", "following_url": "https://api.github.com/users/crazywkb/following{/other_user}", "gists_url": "https://api.github.com/users/crazywkb/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/crazywkb", "id": 24696644, "login": "crazywkb", "node_id": "MDQ6VXNlcjI0Njk2NjQ0", "organizations_url": "https://api.github.com/users/crazywkb/orgs", "received_events_url": "https://api.github.com/users/crazywkb/received_events", "repos_url": "https://api.github.com/users/crazywkb/repos", "site_admin": false, "starred_url": "https://api.github.com/users/crazywkb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/crazywkb/subscriptions", "type": "User", "url": "https://api.github.com/users/crazywkb" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
1
2019-03-23T18:22:26Z
2019-03-23T21:55:55Z
2019-03-23T21:55:55Z
NONE
null
#### Code Sample ```python # python version # Python 3.7.2 (default, Feb 21 2019, 17:35:59) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 import pandas as pd import numpy as np dataset = [[[i for i in range(5)], ] for i in range(5)] dataset = pd.DataFrame(dataset, columns=['test']) # generate a test dataset with shape (5, 5) empty_numpy = np.arange(25).reshape(5, 5) empty_numpy.fill(np.nan) # Solution 1: change the below code into 'empty_frame = pd.DataFrame(empty_numpy)' then everything will be fine empty_frame = pd.DataFrame(empty_numpy, columns=[str(i) for i in range(5)]) series = dataset['test'] target_frame = pd.DataFrame(list(series)) # Solution 2: run `empty_frame[:] = target_frame` twice, work fine to me. # ================================================================== # First try. empty_frame[:] = target_frame print("="*40) print(f"Data types of empty_frame: {empty_frame.dtypes}") print("="*40) print("Result of first try: ") print(empty_frame) print("="*40) # Second try. empty_frame[:] = target_frame print(f"Data types of empty_frame: {empty_frame.dtypes}") print("="*40) print("Result of second try: ") print(empty_frame) print("="*40) # ==================================================================== ``` #### Problem description *Assignment to DataFrame not working but dtypes changed* New to data-science, I wanna to asign the `target_frame` to the `empty_frame`, but it's not working until asign again. And during the asignments, the dtypes of `empty_frame` has changed from `int32` to `float64` and finally setup to `int64`. There are two solutions for this problem but I don't know why: * as I showed in my code, try the asignment twice in one run. * remove the columns' name when creating `empty_frame`. It cost me a whole night to figure out what happens, the code above has been extracted and simplified. Two things I want to figure out: 1. why `empty_frame`'s data types changed. 2. why the solutions showed in my code can solve this asignment problem. Thanks. #### Expected Output ```python """ ======================================== Data types of empty_frame: 0 float64 1 float64 2 float64 3 float64 4 float64 dtype: object ======================================== Result of first try: 0 1 2 3 4 0 NaN NaN NaN NaN NaN 1 NaN NaN NaN NaN NaN 2 NaN NaN NaN NaN NaN 3 NaN NaN NaN NaN NaN 4 NaN NaN NaN NaN NaN ======================================== Data types of empty_frame: 0 int64 1 int64 2 int64 3 int64 4 int64 dtype: object ======================================== Result of second try: 0 1 2 3 4 0 0 1 2 3 4 1 0 1 2 3 4 2 0 1 2 3 4 3 0 1 2 3 4 4 0 1 2 3 4 ======================================== """ ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.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.24.2 pytest: None pip: 19.0.3 setuptools: 40.8.0 Cython: None numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25850/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25850/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25851
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25851/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25851/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25851/events
https://github.com/pandas-dev/pandas/issues/25851
424,536,065
MDU6SXNzdWU0MjQ1MzYwNjU=
25,851
Fix PyDateTime_CheckExact checks as proxy for Timestamp checks in cython files
{ "avatar_url": "https://avatars.githubusercontent.com/u/25773476?v=4", "events_url": "https://api.github.com/users/ArtificialQualia/events{/privacy}", "followers_url": "https://api.github.com/users/ArtificialQualia/followers", "following_url": "https://api.github.com/users/ArtificialQualia/following{/other_user}", "gists_url": "https://api.github.com/users/ArtificialQualia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArtificialQualia", "id": 25773476, "login": "ArtificialQualia", "node_id": "MDQ6VXNlcjI1NzczNDc2", "organizations_url": "https://api.github.com/users/ArtificialQualia/orgs", "received_events_url": "https://api.github.com/users/ArtificialQualia/received_events", "repos_url": "https://api.github.com/users/ArtificialQualia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArtificialQualia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArtificialQualia/subscriptions", "type": "User", "url": "https://api.github.com/users/ArtificialQualia" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "fbca04", "default": false, "description": "Related t...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
0
2019-03-23T19:27:58Z
2019-04-05T16:54:44Z
2019-04-05T16:54:44Z
CONTRIBUTOR
null
This is a followup to the discussion in #25746. PyDateTime_CheckExact is being used as a proxy for isinstance(obj, Timestamp) checks for performance reasons. However, if a subclass of the std datetime lib is being used, these checks are not sufficient to determine if an object is a Timestamp or not. Thus a performant replacement must be found. I have a working fix, but need to do some more performance testing and add proper test cases. If that goes well, I will submit a PR for this.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25851/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25851/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25852
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25852/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25852/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25852/events
https://github.com/pandas-dev/pandas/pull/25852
424,543,676
MDExOlB1bGxSZXF1ZXN0MjYzODYwNjU5
25,852
CLN: Remove u and u_safe from pandas.compat
{ "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": "444444", "default": false, "description": "Unicode strings", "id": 36380025, "name": "Unicode", "node_id": "MDU6TGFiZWwzNjM4MDAyNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode" }, { "color": "207de5", "default": false, "description...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-23T20:51:38Z
2019-03-24T17:20:34Z
2019-03-24T15:15:23Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Another incremental step in removing Python 2. Only non-standard changes were to `pandas/tests/test_strings.py` where I deleted a bunch of code, as removing `u` resulted in duplicate test scenarios.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25852/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25852/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25852.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25852", "merged_at": "2019-03-24T15:15:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25852.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25852" }
https://api.github.com/repos/pandas-dev/pandas/issues/25853
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25853/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25853/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25853/events
https://github.com/pandas-dev/pandas/pull/25853
424,554,612
MDExOlB1bGxSZXF1ZXN0MjYzODY3NzY1
25,853
BUG: Fix Timestamp type checks to work with subclassed datetime (#25851)
{ "avatar_url": "https://avatars.githubusercontent.com/u/25773476?v=4", "events_url": "https://api.github.com/users/ArtificialQualia/events{/privacy}", "followers_url": "https://api.github.com/users/ArtificialQualia/followers", "following_url": "https://api.github.com/users/ArtificialQualia/following{/other_user}", "gists_url": "https://api.github.com/users/ArtificialQualia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArtificialQualia", "id": 25773476, "login": "ArtificialQualia", "node_id": "MDQ6VXNlcjI1NzczNDc2", "organizations_url": "https://api.github.com/users/ArtificialQualia/orgs", "received_events_url": "https://api.github.com/users/ArtificialQualia/received_events", "repos_url": "https://api.github.com/users/ArtificialQualia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArtificialQualia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArtificialQualia/subscriptions", "type": "User", "url": "https://api.github.com/users/ArtificialQualia" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "fbca04", "default": false, "description": "Related t...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
15
2019-03-23T23:06:55Z
2019-04-05T18:13:57Z
2019-04-05T16:54:44Z
CONTRIBUTOR
null
- [x] closes #25851 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry PyDateTime_CheckExact is being used as a proxy for isinstance(obj, Timestamp) checks for performance reasons. However, if a subclass of the std datetime lib is being used, these checks are not sufficient to determine if an object is a Timestamp or not. As discussed in #25746, any solution will be less performant than PyDateTime_CheckExact. The best solution found was to use isinstance(obj, _Timestamp), and that is what I implemented here. Of course, a few additional changes were necessary to be able to use that check. Since asv isn't very good for cython code, I've done performance testing on all the modified functions by running them 10,000 times in a function, then timing that function in `%timeit`. The results are below: ``` ----------- PR --------- -------- Master ------- datetime timestamp datetime timestamp array_to_datetime 34.3 ms 34.5 ms 34.2 ms 34.5 ms localize_pydatetime 15 ms 67.7 ms 15.2 ms 57.5 ms normalize_date 12.7 ms 91 ms 12.8 ms 78.3 ms Timedelta addition 1.05 ms 23 ms 1.04 ms 22.9 ms Timestamp constructor 11.1 ms 9.85 ms 10.9 ms 9.79 ms tz_localize N/A 63.7 ms N/A 53.5 ms normalize N/A 90.6 ms N/A 78.5 ms ``` As you can see, some of the functions used with a `Timestamp` are affected, with a few unaffected. Where there is an impact, it appears to be 15-20% less performant. Note this fix also fixes (potentially) #25734, but if we want a separate test case for that issue I could modify my existing PR for that.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25853/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25853/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25853.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25853", "merged_at": "2019-04-05T16:54:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25853.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25853" }
https://api.github.com/repos/pandas-dev/pandas/issues/25854
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25854/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25854/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25854/events
https://github.com/pandas-dev/pandas/issues/25854
424,559,127
MDU6SXNzdWU0MjQ1NTkxMjc=
25,854
Inconsistent behavior of Series.str.replace() for unicode characters
{ "avatar_url": "https://avatars.githubusercontent.com/u/1063143?v=4", "events_url": "https://api.github.com/users/joonro/events{/privacy}", "followers_url": "https://api.github.com/users/joonro/followers", "following_url": "https://api.github.com/users/joonro/following{/other_user}", "gists_url": "https://api.github.com/users/joonro/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joonro", "id": 1063143, "login": "joonro", "node_id": "MDQ6VXNlcjEwNjMxNDM=", "organizations_url": "https://api.github.com/users/joonro/orgs", "received_events_url": "https://api.github.com/users/joonro/received_events", "repos_url": "https://api.github.com/users/joonro/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joonro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joonro/subscriptions", "type": "User", "url": "https://api.github.com/users/joonro" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
4
2019-03-24T00:18:27Z
2019-03-24T05:56:25Z
2019-03-24T05:49:10Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python In[11]: import pandas as pd test = pd.Series(data=r'Tech \u0026 Innovation', index=range(2)) # can replace a string directly In[11]: test[0].replace('\\u0026', '&') Out[11]: 'Tech & Innovation' # str.replace does not work with the same code: In[12]: test.str.replace('\\u0026', '&') Out[12]: 0 Tech \u0026 Innovation 1 Tech \u0026 Innovation dtype: object # it works when I use r'' In[13]: test.str.replace(r'\\u0026', '&') Out[13]: 0 Tech & Innovation 1 Tech & Innovation dtype: object ``` #### Problem description I just found an inconsistent behavior of `Series.str.replace()` when I try to replace a unicode character. As shown in the example above, I can replace the character `\u0026` with `.replace('\\u0026', '&')` for a string, but `Series.str.replace()` only works when I add `r` in front of the string (`.str.replace(r'\\u0026', '&')`) #### Expected Output ```python In[11]: import pandas as pd test = pd.Series(data=r'Tech \u0026 Innovation', index=range(2)) In[11]: test[0].replace('\\u0026', '&') Out[11]: 'Tech & Innovation' In[12]: test.str.replace('\\u0026', '&') Out[12]: 0 Tech & Innovation 1 Tech & Innovation dtype: object ``` #### Output of ``pd.show_versions()`` <details> pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.23.4 pytest: 3.2.1 pip: 19.0.3 setuptools: 38.4.0 Cython: 0.26.1 numpy: 1.13.3 scipy: 1.0.0 pyarrow: None xarray: 0.9.6 IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.4.1 dateutil: 2.6.1 pytz: 2017.2 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.2 feather: None matplotlib: 2.1.0 openpyxl: 2.4.8 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.0 bs4: 4.6.0 html5lib: 0.999999999 sqlalchemy: 1.1.13 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 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/25854/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25854/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25855
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25855/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25855/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25855/events
https://github.com/pandas-dev/pandas/issues/25855
424,560,128
MDU6SXNzdWU0MjQ1NjAxMjg=
25,855
`read_sas` with encrypted sas7bdat file
{ "avatar_url": "https://avatars.githubusercontent.com/u/8499679?v=4", "events_url": "https://api.github.com/users/scottgigante/events{/privacy}", "followers_url": "https://api.github.com/users/scottgigante/followers", "following_url": "https://api.github.com/users/scottgigante/following{/other_user}", "gists_url": "https://api.github.com/users/scottgigante/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scottgigante", "id": 8499679, "login": "scottgigante", "node_id": "MDQ6VXNlcjg0OTk2Nzk=", "organizations_url": "https://api.github.com/users/scottgigante/orgs", "received_events_url": "https://api.github.com/users/scottgigante/received_events", "repos_url": "https://api.github.com/users/scottgigante/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scottgigante/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scottgigante/subscriptions", "type": "User", "url": "https://api.github.com/users/scottgigante" }
[ { "color": "5319e7", "default": false, "description": "SAS: read_sas", "id": 258745163, "name": "IO SAS", "node_id": "MDU6TGFiZWwyNTg3NDUxNjM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2019-03-24T00:34:00Z
2019-03-27T15:33:23Z
2019-03-26T04:04:41Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python >>> import pandas as pd >>> pd.read_sas("filename.sas7bdat") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.7/site-packages/pandas/io/sas/sasreader.py", line 61, in read_sas chunksize=chunksize) File "/usr/lib/python3.7/site-packages/pandas/io/sas/sas7bdat.py", line 98, in __init__ self._get_properties() File "/usr/lib/python3.7/site-packages/pandas/io/sas/sas7bdat.py", line 114, in _get_properties raise ValueError("magic number mismatch (not a SAS file?)") ValueError: magic number mismatch (not a SAS file?) ``` #### Problem description I have a SAS file I would like to read with `pandas`. The author of the dataset encrypted it with a password, which I have been given; however, I do not have SAS and as such want to read this file with pandas. The command to load this file in SAS is ``` libname in "<file location>"; proc contents data=in.filename (read=my_password); run; ``` There appears to be no equivalent argument in the pandas `read_sas` function to include this password. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Linux OS-release: 4.14.85-1-lts machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.4 pytest: 3.10.1 pip: 18.0 setuptools: 40.6.2 Cython: 0.29 numpy: 1.15.0 scipy: 1.2.1 pyarrow: 0.11.1 xarray: None IPython: 6.5.0 sphinx: 1.8.4 patsy: 0.5.0 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: None numexpr: 2.6.8 feather: 0.4.0 matplotlib: 3.0.2 openpyxl: 2.5.9 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: None lxml: 4.2.5 bs4: None html5lib: 1.0.1 sqlalchemy: 1.2.14 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 0.7.0 ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25855/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25855/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25856
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25856/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25856/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25856/events
https://github.com/pandas-dev/pandas/pull/25856
424,563,596
MDExOlB1bGxSZXF1ZXN0MjYzODczNjgx
25,856
add a test to check zero index array do not error
{ "avatar_url": "https://avatars.githubusercontent.com/u/618650?v=4", "events_url": "https://api.github.com/users/illegalnumbers/events{/privacy}", "followers_url": "https://api.github.com/users/illegalnumbers/followers", "following_url": "https://api.github.com/users/illegalnumbers/following{/other_user}", "gists_url": "https://api.github.com/users/illegalnumbers/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/illegalnumbers", "id": 618650, "login": "illegalnumbers", "node_id": "MDQ6VXNlcjYxODY1MA==", "organizations_url": "https://api.github.com/users/illegalnumbers/orgs", "received_events_url": "https://api.github.com/users/illegalnumbers/received_events", "repos_url": "https://api.github.com/users/illegalnumbers/repos", "site_admin": false, "starred_url": "https://api.github.com/users/illegalnumbers/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/illegalnumbers/subscriptions", "type": "User", "url": "https://api.github.com/users/illegalnumbers" }
[]
closed
false
null
[]
null
4
2019-03-24T01:31:28Z
2019-03-24T15:35:51Z
2019-03-24T15:35:45Z
CONTRIBUTOR
null
refs GH-21946 - [x] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [na] 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/25856/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25856/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25856.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25856", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25856.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25856" }
https://api.github.com/repos/pandas-dev/pandas/issues/25857
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25857/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25857/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25857/events
https://github.com/pandas-dev/pandas/issues/25857
424,568,514
MDU6SXNzdWU0MjQ1Njg1MTQ=
25,857
expanding(min_periods=N).count(), for any N, returns same result as expanding(min_periods=1).count()
{ "avatar_url": "https://avatars.githubusercontent.com/u/22870395?v=4", "events_url": "https://api.github.com/users/magicmathmandarin/events{/privacy}", "followers_url": "https://api.github.com/users/magicmathmandarin/followers", "following_url": "https://api.github.com/users/magicmathmandarin/following{/other_user}", "gists_url": "https://api.github.com/users/magicmathmandarin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/magicmathmandarin", "id": 22870395, "login": "magicmathmandarin", "node_id": "MDQ6VXNlcjIyODcwMzk1", "organizations_url": "https://api.github.com/users/magicmathmandarin/orgs", "received_events_url": "https://api.github.com/users/magicmathmandarin/received_events", "repos_url": "https://api.github.com/users/magicmathmandarin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/magicmathmandarin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/magicmathmandarin/subscriptions", "type": "User", "url": "https://api.github.com/users/magicmathmandarin" }
[ { "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/18324242?v=4", "events_url": "https://api.github.com/users/theMogget/events{/privacy}", "followers_url": "https://api.github.com/users/theMogget/followers", "following_url": "https://api.github.com/users/theMogget/following{/other_user}", "gists_url": "https://api.github.com/users/theMogget/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/theMogget", "id": 18324242, "login": "theMogget", "node_id": "MDQ6VXNlcjE4MzI0MjQy", "organizations_url": "https://api.github.com/users/theMogget/orgs", "received_events_url": "https://api.github.com/users/theMogget/received_events", "repos_url": "https://api.github.com/users/theMogget/repos", "site_admin": false, "starred_url": "https://api.github.com/users/theMogget/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/theMogget/subscriptions", "type": "User", "url": "https://api.github.com/users/theMogget" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/18324242?v=4", "events_url": "https://api.github.com/users/theMogget/events{/privacy}", "followers_url": "https://api.github.com/users/theMogget/followers", "following_url": "https://api.github.com/users/theMogget/following{/other_user}", ...
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
8
2019-03-24T02:50:56Z
2020-10-16T01:16:23Z
2020-10-16T01:16:23Z
NONE
null
```python idx=pd.date_range('1/1/2019', periods=5) s = pd.Series([2,3, np.nan, 10,20], index=idx) s.expanding(min_periods=1).count() s.expanding(min_periods=100).count() s.expanding(min_periods=10000).count() ``` #### Problem description They should not be returning the same results because the Series has only 5 records. **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/25857/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25857/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25858
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25858/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25858/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25858/events
https://github.com/pandas-dev/pandas/issues/25858
424,578,494
MDU6SXNzdWU0MjQ1Nzg0OTQ=
25,858
Styler.applymap(subset=...) breaks promise that "any valid indexer to .loc will work." for mult-index
{ "avatar_url": "https://avatars.githubusercontent.com/u/450638?v=4", "events_url": "https://api.github.com/users/jeremysalwen/events{/privacy}", "followers_url": "https://api.github.com/users/jeremysalwen/followers", "following_url": "https://api.github.com/users/jeremysalwen/following{/other_user}", "gists_url": "https://api.github.com/users/jeremysalwen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeremysalwen", "id": 450638, "login": "jeremysalwen", "node_id": "MDQ6VXNlcjQ1MDYzOA==", "organizations_url": "https://api.github.com/users/jeremysalwen/orgs", "received_events_url": "https://api.github.com/users/jeremysalwen/received_events", "repos_url": "https://api.github.com/users/jeremysalwen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeremysalwen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeremysalwen/subscriptions", "type": "User", "url": "https://api.github.com/users/jeremysalwen" }
[ { "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" }
1
2019-03-24T05:56:51Z
2019-11-05T20:57:40Z
2019-11-05T20:57:40Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np labels = np.array([[0, 0,1,1], [0, 1, 0, 1]]) columns = pd.MultiIndex( levels=[["a", "b"], ['%', '#']], labels=labels, names=['', '']) df = pd.DataFrame( [[1,-1,1,1],[-1,1,1,1]], index=["hello", "world"], columns=columns) pct_subset = pd.IndexSlice[:, pd.IndexSlice[:, '%':'%']] def color_negative_red(val): color = 'red' if val < 0 else 'black' return 'color: %s' % color # Works on both 0.22 and 0.24. df.loc[pct_subset] # This works on 0.22, but `TypeError: unhashable type` on 0.24! df.style.applymap(color_negative_red, subset=pct_subset) ``` #### Problem description To quote from the docs on the `subset` keyword argument for `Styler.applymap` (https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html) : > For row and column slicing, any valid indexer to .loc will work. The code sample demonstrates an indexer for a dataframe with multindex columns that works with .loc, but doesn't work as the `subset` argument to `applymap`. Note that this indexer previously worked in pandas version 0.22, but a regression has been introduced in 0.24.2 #### Expected Output Expected the indexer to apply the styling the "%" columns, and not throw an error. #### Full Backtrace <details> ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-17-994feb9d52cf> in <module>() 1 df.style.format( ----> 2 '{:.1f}%', subset=pct_subset) /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/io/formats/style.pyc in format(self, formatter, subset) 399 subset = subset, self.data.columns 400 --> 401 sub_df = self.data.loc[subset] 402 row_locs = self.data.index.get_indexer_for(sub_df.index) 403 col_locs = self.data.columns.get_indexer_for(sub_df.columns) /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexing.pyc in __getitem__(self, key) 1492 except (KeyError, IndexError, AttributeError): 1493 pass -> 1494 return self._getitem_tuple(key) 1495 else: 1496 # we by definition only have the 0th axis /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_tuple(self, tup) 866 def _getitem_tuple(self, tup): 867 try: --> 868 return self._getitem_lowerdim(tup) 869 except IndexingError: 870 pass /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_lowerdim(self, tup) 967 # we may have a nested tuples indexer here 968 if self._is_nested_tuple_indexer(tup): --> 969 return self._getitem_nested_tuple(tup) 970 971 # we maybe be using a tuple to represent multiple dimensions here /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_nested_tuple(self, tup) 1046 1047 current_ndim = obj.ndim -> 1048 obj = getattr(obj, self.name)._getitem_axis(key, axis=axis) 1049 axis += 1 1050 /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_axis(self, key, axis) 1900 raise ValueError('Cannot index with multidimensional key') 1901 -> 1902 return self._getitem_iterable(key, axis=axis) 1903 1904 # nested tuple slicing /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_iterable(self, key, axis) 1203 # A collection of keys 1204 keyarr, indexer = self._get_listlike_indexer(key, axis, -> 1205 raise_missing=False) 1206 return self.obj._reindex_with_indexers({axis: [keyarr, indexer]}, 1207 copy=True, allow_dups=True) /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexing.pyc in _get_listlike_indexer(self, key, axis, raise_missing) 1152 if len(ax) or not len(key): 1153 key = self._convert_for_reindex(key, axis) -> 1154 indexer = ax.get_indexer_for(key) 1155 keyarr = ax.reindex(keyarr)[0] 1156 else: /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexes/base.pyc in get_indexer_for(self, target, **kwargs) 4453 """ 4454 if self.is_unique: -> 4455 return self.get_indexer(target, **kwargs) 4456 indexer, _ = self.get_indexer_non_unique(target, **kwargs) 4457 return indexer /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexes/multi.pyc in get_indexer(self, target, method, limit, tolerance) 2157 method=method, 2158 limit=limit, -> 2159 tolerance=tolerance) 2160 2161 if not self.is_unique: /home/jeremysalwen/.local/lib/python2.7/site-packages/pandas/core/indexes/base.pyc in get_indexer(self, target, method, limit, tolerance) 2753 'backfill or nearest reindexing') 2754 -> 2755 indexer = self._engine.get_indexer(target._ndarray_values) 2756 2757 return ensure_platform_int(indexer) pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_indexer() pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.lookup() TypeError: unhashable type ``` </details> #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.14.final.0 python-bits: 64 OS: Linux OS-release: 4.19.20-1rodete1-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.24.2 pytest: None pip: 19.0.3 setuptools: 36.7.1 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: 5.8.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: 4.2.5 bs4: 4.6.0 html5lib: 0.999999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 5, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 5, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25858/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25858/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25859
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25859/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25859/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25859/events
https://github.com/pandas-dev/pandas/pull/25859
424,599,076
MDExOlB1bGxSZXF1ZXN0MjYzODk2MjM1
25,859
[CLN] Remove TypeError in Interval.length
{ "avatar_url": "https://avatars.githubusercontent.com/u/14367887?v=4", "events_url": "https://api.github.com/users/makbigc/events{/privacy}", "followers_url": "https://api.github.com/users/makbigc/followers", "following_url": "https://api.github.com/users/makbigc/following{/other_user}", "gists_url": "https://api.github.com/users/makbigc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/makbigc", "id": 14367887, "login": "makbigc", "node_id": "MDQ6VXNlcjE0MzY3ODg3", "organizations_url": "https://api.github.com/users/makbigc/orgs", "received_events_url": "https://api.github.com/users/makbigc/received_events", "repos_url": "https://api.github.com/users/makbigc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/makbigc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/makbigc/subscriptions", "type": "User", "url": "https://api.github.com/users/makbigc" }
[ { "color": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" }, { "color": "207de5", "default": false, "descr...
closed
false
null
[]
null
5
2019-03-24T10:49:02Z
2019-03-24T20:57:10Z
2019-03-24T20:56:45Z
CONTRIBUTOR
null
Following #25768, remove `TypeError` in `Interval.length`, as all endpoints should be comparable now.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25859/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25859/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25859.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25859", "merged_at": "2019-03-24T20:56:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25859.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25859" }
https://api.github.com/repos/pandas-dev/pandas/issues/25860
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25860/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25860/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25860/events
https://github.com/pandas-dev/pandas/issues/25860
424,621,866
MDU6SXNzdWU0MjQ2MjE4NjY=
25,860
[BUG] IntervalIndex.get_loc error for decreasing index
{ "avatar_url": "https://avatars.githubusercontent.com/u/14367887?v=4", "events_url": "https://api.github.com/users/makbigc/events{/privacy}", "followers_url": "https://api.github.com/users/makbigc/followers", "following_url": "https://api.github.com/users/makbigc/following{/other_user}", "gists_url": "https://api.github.com/users/makbigc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/makbigc", "id": 14367887, "login": "makbigc", "node_id": "MDQ6VXNlcjE0MzY3ODg3", "organizations_url": "https://api.github.com/users/makbigc/orgs", "received_events_url": "https://api.github.com/users/makbigc/received_events", "repos_url": "https://api.github.com/users/makbigc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/makbigc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/makbigc/subscriptions", "type": "User", "url": "https://api.github.com/users/makbigc" }
[ { "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": "009800", "default": false, "description": "Interval data type", ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-24T14:53:49Z
2019-07-02T15:41:45Z
2019-07-02T15:41:45Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python In [1]: import pandas as pd In [2]: intv1 = pd.IntervalIndex.from_arrays([1, 3, 5], [2, 4, 6]) In [3]: intv1 Out[3]: IntervalIndex([(1, 2], (3, 4], (5, 6]], closed='right', dtype='interval[int64]') In [4]: intv1.get_loc(intv1[0]) Out[4]: 0 In [5]: intv2 = pd.IntervalIndex.from_arrays([4, 2, 1], [5, 3, 2]) In [6]: intv2 Out[6]: IntervalIndex([(4, 5], (2, 3], (1, 2]], closed='right', dtype='interval[int64]') In [7]: intv2.get_loc(intv2[0]) --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-7-00c58bb4fb1e> in <module> ----> 1 intv2.get_loc(intv2[0]) ~/Code/pandas/pandas/core/indexes/interval.py in get_loc(self, key, method) 777 return slice(start, stop) 778 else: --> 779 raise KeyError(original_key) 780 781 else: KeyError: Interval(4, 5, closed='right') ``` #### Problem description This `IntervalIndex` is non-overlapping_monotonic. `IntervalIndex.get_loc` runs in `KeyError`, even the key is its first element. After `start, stop = self._find_non_overlapping_monotonic_bounds(key)`, `start` and `stop` get the same value. Thereafter, no conditional handles this case. #### Expected Outcome In [5]: intv2 = pd.IntervalIndex.from_arrays([4, 2, 1], [5, 3, 2]) In [6]: intv2 Out[6]: IntervalIndex([(4, 5], (2, 3], (1, 2]], closed='right', dtype='interval[int64]') In [7]: intv2.get_loc(intv2[0]) Out[7]: 0 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: 01988735f8abde6ddc108f244ef0bbaef35ed1dd python: 3.7.1.final.0 python-bits: 64 OS: Linux OS-release: 4.18.0-16-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_HK.UTF-8 LOCALE: en_HK.UTF-8 pandas: 0.25.0.dev0+308.g01988735f pytest: 4.0.2 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25860/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25860/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25861
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25861/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25861/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25861/events
https://github.com/pandas-dev/pandas/pull/25861
424,656,003
MDExOlB1bGxSZXF1ZXN0MjYzOTMzODIz
25,861
[REF] Move remaining locale functions to _config.localization
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "fbca04", "default": false, "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-24T20:25:55Z
2019-03-26T00:22:25Z
2019-03-25T23:24:33Z
MEMBER
null
There are a a couple locale-centric functions left in `tm` that have not yet been moved because they depend on `pd.options.display.encoding`. This PR implements a minimal `_config.display` that allows us to consolidate the locale functions. `_config.display` also defines `display.date_dayfirst` and `display.date_yearfirst`, since those are used by `tslibs.parsing`. So this completes the process of removing `tslib`'s dependency on `core`. The existing `get_locales` function has a `if PY3` check that is no longer necessary, so this removes the PY2 branch of that.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25861/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25861/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25861.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25861", "merged_at": "2019-03-25T23:24:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25861.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25861" }
https://api.github.com/repos/pandas-dev/pandas/issues/25862
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25862/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25862/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25862/events
https://github.com/pandas-dev/pandas/pull/25862
424,658,784
MDExOlB1bGxSZXF1ZXN0MjYzOTM1NjQ2
25,862
CLN: Remove long and integer_types from pandas.compat
{ "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": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "c...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-24T20:54:16Z
2019-03-25T11:37:28Z
2019-03-24T21:48:59Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Another incremental step in removing Python 2. Doesn't look like `integer_types` was actually used anywhere. Otherwise mostly `long` --> `int`, or just removing `long` as the argument was already an `int` in Python 3.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25862/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25862/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25862.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25862", "merged_at": "2019-03-24T21:48:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25862.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25862" }
https://api.github.com/repos/pandas-dev/pandas/issues/25863
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25863/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25863/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25863/events
https://github.com/pandas-dev/pandas/pull/25863
424,663,957
MDExOlB1bGxSZXF1ZXN0MjYzOTM5MTA2
25,863
Read hdf does not close store
{ "avatar_url": "https://avatars.githubusercontent.com/u/7594913?v=4", "events_url": "https://api.github.com/users/rbenes/events{/privacy}", "followers_url": "https://api.github.com/users/rbenes/followers", "following_url": "https://api.github.com/users/rbenes/following{/other_user}", "gists_url": "https://api.github.com/users/rbenes/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rbenes", "id": 7594913, "login": "rbenes", "node_id": "MDQ6VXNlcjc1OTQ5MTM=", "organizations_url": "https://api.github.com/users/rbenes/orgs", "received_events_url": "https://api.github.com/users/rbenes/received_events", "repos_url": "https://api.github.com/users/rbenes/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rbenes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rbenes/subscriptions", "type": "User", "url": "https://api.github.com/users/rbenes" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-24T21:44:53Z
2019-03-31T15:35:55Z
2019-03-31T15:35:49Z
CONTRIBUTOR
null
- [x] closes #25766 - [x] tests added / passed - [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/25863/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25863/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25863.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25863", "merged_at": "2019-03-31T15:35:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25863.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25863" }
https://api.github.com/repos/pandas-dev/pandas/issues/25864
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25864/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25864/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25864/events
https://github.com/pandas-dev/pandas/pull/25864
424,664,592
MDExOlB1bGxSZXF1ZXN0MjYzOTM5NTQx
25,864
CLN: Remove unicode u string prefix
{ "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": "444444", "default": false, "description": "Unicode strings", "id": 36380025, "name": "Unicode", "node_id": "MDU6TGFiZWwzNjM4MDAyNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode" }, { "color": "207de5", "default": false, "description...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-24T21:51:45Z
2019-03-28T02:49:11Z
2019-03-25T11:36:45Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` More Python 2 removal. Could use a second pair of eyes to make sure the regex I used to make these fixes wasn't overzealous anywhere.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25864/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25864/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25864.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25864", "merged_at": "2019-03-25T11:36:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25864.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25864" }
https://api.github.com/repos/pandas-dev/pandas/issues/25865
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25865/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25865/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25865/events
https://github.com/pandas-dev/pandas/pull/25865
424,678,513
MDExOlB1bGxSZXF1ZXN0MjYzOTQ5MDQ1
25,865
CLN: Remove vestigial references to PY2 in tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "207de5", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-25T00:13:29Z
2019-03-25T14:58:29Z
2019-03-25T11:36:03Z
MEMBER
null
xref #25725
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25865/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25865/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25865.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25865", "merged_at": "2019-03-25T11:36:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25865.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25865" }
https://api.github.com/repos/pandas-dev/pandas/issues/25866
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25866/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25866/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25866/events
https://github.com/pandas-dev/pandas/pull/25866
424,686,716
MDExOlB1bGxSZXF1ZXN0MjYzOTU0ODky
25,866
STY: Check for pytest.raises without context
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "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": "eb6420", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-25T01:21:42Z
2019-03-26T22:49:59Z
2019-03-26T21:51:17Z
MEMBER
null
xref #24332 First commit adds the script code for checking. Remaining commits will fix any vestigial 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/25866/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25866/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25866.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25866", "merged_at": "2019-03-26T21:51:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25866.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25866" }
https://api.github.com/repos/pandas-dev/pandas/issues/25867
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25867/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25867/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25867/events
https://github.com/pandas-dev/pandas/issues/25867
424,855,811
MDU6SXNzdWU0MjQ4NTU4MTE=
25,867
BLD/CI: wheel building is failing
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "a2bca7", "default": false, ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-25T11:38:32Z
2019-03-26T11:38:21Z
2019-03-26T11:38:21Z
CONTRIBUTOR
null
I think some PRs yesterday broke pandas-wheels: https://travis-ci.org/MacPython/pandas-wheels/jobs/510798584, likely all the same issues: https://travis-ci.org/MacPython/pandas-wheels/builds/510798582 if someone can you do a quick PR to update (not easy to test unfort). ``` ______________________ TestFactorize.test_complex_sorting ______________________ [gw0] linux -- Python 3.6.6 /venv/bin/python self = <pandas.tests.test_algos.TestFactorize object at 0x7f7cbf173710> def test_complex_sorting(self): # gh 12666 - check no segfault x17 = np.array([complex(i) for i in range(17)], dtype=object) msg = (r"unorderable types: {0} [<>] {0}".format(r"complex\(\)") if _np_version_under1p14 else r"'[<>]' not supported between instances of {0} and {0}".format( "'complex'") ) with pytest.raises(TypeError, match=msg): > algos.factorize(x17[::-1], sort=True) E AssertionError: Pattern 'unorderable types: complex\(\) [<>] complex\(\)' not found in ''>' not supported between instances of 'complex' and 'complex'' /venv/lib/python3.6/site-packages/pandas/tests/test_algos.py:237: AssertionError _________________________ TestSafeSort.test_unsortable _________________________ [gw0] linux -- Python 3.6.6 /venv/bin/python self = <pandas.tests.test_sorting.TestSafeSort object at 0x7f7cbecbce48> def test_unsortable(self): # GH 13714 arr = np.array([1, 2, datetime.now(), 0, 3], dtype=object) msg = (r"unorderable types: ({0} [<>] {1}|{1} [<>] {0})".format( r"int\(\)", r"datetime\.datetime\(\)") # noqa: E126 if _np_version_under1p14 else (r"'[<>]' not supported between instances of " r"({0} and {1}|{1} and {0})").format( "'int'", r"'datetime\.datetime'") ) with pytest.raises(TypeError, match=msg): > safe_sort(arr) E AssertionError: Pattern 'unorderable types: (int\(\) [<>] datetime\.datetime\(\)|datetime\.datetime\(\) [<>] int\(\))' not found in ''>' not supported between instances of 'int' and 'datetime.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/25867/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25867/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25868
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25868/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25868/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25868/events
https://github.com/pandas-dev/pandas/pull/25868
424,896,860
MDExOlB1bGxSZXF1ZXN0MjY0MTE2MTE0
25,868
DOC: use substitution decorator for business month classes (#25828)
{ "avatar_url": "https://avatars.githubusercontent.com/u/11004857?v=4", "events_url": "https://api.github.com/users/Batalex/events{/privacy}", "followers_url": "https://api.github.com/users/Batalex/followers", "following_url": "https://api.github.com/users/Batalex/following{/other_user}", "gists_url": "https://api.github.com/users/Batalex/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Batalex", "id": 11004857, "login": "Batalex", "node_id": "MDQ6VXNlcjExMDA0ODU3", "organizations_url": "https://api.github.com/users/Batalex/orgs", "received_events_url": "https://api.github.com/users/Batalex/received_events", "repos_url": "https://api.github.com/users/Batalex/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Batalex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Batalex/subscriptions", "type": "User", "url": "https://api.github.com/users/Batalex" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-25T13:18:01Z
2019-03-27T07:59:48Z
2019-03-26T17:09:38Z
CONTRIBUTOR
null
- [X] closes #25828 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Validation script `CustomBusinessMonthEnd` ``` ################################################################################ ########## Docstring (pandas.tseries.offsets.CustomBusinessMonthEnd) ########## ################################################################################ DateOffset subclass representing one custom business month, incrementing between end of month dates. Parameters ---------- n : int, default 1 normalize : bool, default False Normalize start/end dates to midnight before generating date range weekmask : str, Default 'Mon Tue Wed Thu Fri' weekmask of valid business days, passed to ``numpy.busdaycalendar`` holidays : list list/array of dates to exclude from the set of valid business days, passed to ``numpy.busdaycalendar`` calendar : pd.HolidayCalendar or np.busdaycalendar offset : timedelta, default timedelta(0) ################################################################################ ################################## Validation ################################## ################################################################################ 9 Errors found: Summary should fit in a single line Parameter "n" has no description Parameter "normalize" description should finish with "." Parameter "weekmask" description should start with a capital letter Parameter "weekmask" description should finish with "." Parameter "holidays" description should start with a capital letter Parameter "holidays" description should finish with "." Parameter "calendar" has no description Parameter "offset" has no description 2 Warnings found: See Also section not found No examples section found ``` `CustomBusinessMonthBegin` ``` ################################################################################ ######### Docstring (pandas.tseries.offsets.CustomBusinessMonthBegin) ######### ################################################################################ DateOffset subclass representing one custom business month, incrementing between beginning of month dates. Parameters ---------- n : int, default 1 normalize : bool, default False Normalize start/end dates to midnight before generating date range weekmask : str, Default 'Mon Tue Wed Thu Fri' weekmask of valid business days, passed to ``numpy.busdaycalendar`` holidays : list list/array of dates to exclude from the set of valid business days, passed to ``numpy.busdaycalendar`` calendar : pd.HolidayCalendar or np.busdaycalendar offset : timedelta, default timedelta(0) ################################################################################ ################################## Validation ################################## ################################################################################ 9 Errors found: Summary should fit in a single line Parameter "n" has no description Parameter "normalize" description should finish with "." Parameter "weekmask" description should start with a capital letter Parameter "weekmask" description should finish with "." Parameter "holidays" description should start with a capital letter Parameter "holidays" description should finish with "." Parameter "calendar" has no description Parameter "offset" has no description 2 Warnings found: See Also section not found No examples section found ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25868/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25868/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25868.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25868", "merged_at": "2019-03-26T17:09:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25868.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25868" }
https://api.github.com/repos/pandas-dev/pandas/issues/25869
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25869/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25869/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25869/events
https://github.com/pandas-dev/pandas/issues/25869
425,072,938
MDU6SXNzdWU0MjUwNzI5Mzg=
25,869
astype('datetime64[xx, UTC]') crashes if not nanoseconds
{ "avatar_url": "https://avatars.githubusercontent.com/u/620513?v=4", "events_url": "https://api.github.com/users/dargueta/events{/privacy}", "followers_url": "https://api.github.com/users/dargueta/followers", "following_url": "https://api.github.com/users/dargueta/following{/other_user}", "gists_url": "https://api.github.com/users/dargueta/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dargueta", "id": 620513, "login": "dargueta", "node_id": "MDQ6VXNlcjYyMDUxMw==", "organizations_url": "https://api.github.com/users/dargueta/orgs", "received_events_url": "https://api.github.com/users/dargueta/received_events", "repos_url": "https://api.github.com/users/dargueta/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dargueta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dargueta/subscriptions", "type": "User", "url": "https://api.github.com/users/dargueta" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "5319e7", "default": false, "description": "Timezone ...
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-03-25T19:17:33Z
2019-03-25T23:21:40Z
2019-03-25T23:21:14Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.DataFrame({'foo': ['2000-01-01T00:00:00.000Z+00:00']}) xf = df.copy() xf.foo = df.foo.astype('datetime64[ns, UTC]') # Works xf.foo = df.foo.astype('datetime64[us]') # Works xf.foo = df.foo.astype('datetime64[us, UTC]') # Crashes ``` Traceback: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/dargueta/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pandas/core/generic.py", line 5691, in astype **kwargs) File "/Users/dargueta/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 531, in astype return self.apply('astype', dtype=dtype, **kwargs) File "/Users/dargueta/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 395, in apply applied = getattr(b, f)(**kwargs) File "/Users/dargueta/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 534, in astype **kwargs) File "/Users/dargueta/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 595, in _astype dtype = pandas_dtype(dtype) File "/Users/dargueta/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pandas/core/dtypes/common.py", line 2017, in pandas_dtype dtype)) TypeError: data type 'datetime64[us, UTC]' not understood data type 'datetime64[us, UTC]' not understood ``` #### Problem description It appears that timestamps require the resolution to be in nanoseconds if you're going to have the Series be timezone-aware. This is confusing because I can cast a string to a timestamp of any valid resolution, but I can't use anything but nanoseconds if I want a tz-aware timestamp. As for the relevance, I'm aware of #23990 but it doesn't seem to directly apply to `astype()`. Context: This is a problem because there's downstream code that expects microsecond resolution *and* timezones and will choke otherwise (long story). I also need to use `astype` because the code needs to work with any dtype handed to it, and since the dtypes are being loaded from YAML files passing in an object is not an option. #### Expected Output A Series shouldn't require nanosecond resolution to be timezone-aware. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Darwin OS-release: 17.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.3.1 pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.16.2 scipy: None pyarrow: 0.12.1 xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: None s3fs: 0.2.0 fastparquet: 0.2.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/25869/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25869/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25870
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25870/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25870/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25870/events
https://github.com/pandas-dev/pandas/issues/25870
425,108,606
MDU6SXNzdWU0MjUxMDg2MDY=
25,870
pd.Series.reindex is not thread safe.
{ "avatar_url": "https://avatars.githubusercontent.com/u/7799980?v=4", "events_url": "https://api.github.com/users/stuz5000/events{/privacy}", "followers_url": "https://api.github.com/users/stuz5000/followers", "following_url": "https://api.github.com/users/stuz5000/following{/other_user}", "gists_url": "https://api.github.com/users/stuz5000/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stuz5000", "id": 7799980, "login": "stuz5000", "node_id": "MDQ6VXNlcjc3OTk5ODA=", "organizations_url": "https://api.github.com/users/stuz5000/orgs", "received_events_url": "https://api.github.com/users/stuz5000/received_events", "repos_url": "https://api.github.com/users/stuz5000/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stuz5000/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stuz5000/subscriptions", "type": "User", "url": "https://api.github.com/users/stuz5000" }
[ { "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": "009800", "default"...
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" }
6
2019-03-25T20:48:47Z
2019-03-25T22:18:51Z
2019-03-25T20:55:14Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import traceback import pandas as pd import numpy as np from multiprocessing.pool import ThreadPool def f(arg): s,idx = arg try: # s.loc[idx] # No problem s.reindex(idx) # Fails except Exception: traceback.print_exc() return None def gen_args(n=10000): a = np.arange(0, 3000000) for i in xrange(n): if i%1000 == 0: # print "?",i s = pd.Series(data=a, index=a) f((s,a)) # <<< LOOK. IT WORKS HERE!!! yield s, np.arange(0,1000) # for arg in gen_args(): # f(arg) # Works just fine t = ThreadPool(4) for result in t.imap(f, gen_args(), chunksize=1): pass ``` #### Problem description pd.Series.reindex fails in a multi-threaded application. This is a little surprising since I'm not asking for any writes. The error also seems bogus: 'cannot reindex from a duplicate axis' ... the series does not have any duplicate axis and I was able to call ` s.reindex(idx)` in the main thread before the same failed in the pool's thread. ``` File "<ipython-input-8-4121235a46fa>", line 6, in f s.reindex(idx).values # Fails File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 2681, in reindex return super(Series, self).reindex(index=index, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pandas/core/generic.py", line 3023, in reindex fill_value, copy).__finalize__(self) File "/usr/local/lib/python2.7/dist-packages/pandas/core/generic.py", line 3041, in _reindex_axes copy=copy, allow_dups=False) File "/usr/local/lib/python2.7/dist-packages/pandas/core/generic.py", line 3145, in _reindex_with_indexers copy=copy) File "/usr/local/lib/python2.7/dist-packages/pandas/core/internals.py", line 4139, in reindex_indexer self.axes[axis]._can_reindex(indexer) File "/usr/local/lib/python2.7/dist-packages/pandas/core/indexes/base.py", line 2944, in _can_reindex raise ValueError("cannot reindex from a duplicate axis") ValueError: cannot reindex from a duplicate axis ``` #### Expected Output Program should output nothing. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.15.candidate.1 python-bits: 64 OS: Linux OS-release: 4.15.0-46-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.22.0 pytest: None pip: 18.1 setuptools: 40.6.2 Cython: 0.29.1 numpy: 1.16.1 scipy: 1.2.0 pyarrow: None xarray: None IPython: 5.0.0 sphinx: None patsy: 0.5.1 dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: None numexpr: 2.6.8 feather: None matplotlib: 2.1.0 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.6.0 html5lib: 0.9999999 sqlalchemy: 1.2.17 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 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/25870/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25870/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25871
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25871/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25871/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25871/events
https://github.com/pandas-dev/pandas/issues/25871
425,115,275
MDU6SXNzdWU0MjUxMTUyNzU=
25,871
groupby aggregation on ordered Categorial with 'observed=True' breaks order
{ "avatar_url": "https://avatars.githubusercontent.com/u/2961313?v=4", "events_url": "https://api.github.com/users/kpflugshaupt/events{/privacy}", "followers_url": "https://api.github.com/users/kpflugshaupt/followers", "following_url": "https://api.github.com/users/kpflugshaupt/following{/other_user}", "gists_url": "https://api.github.com/users/kpflugshaupt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kpflugshaupt", "id": 2961313, "login": "kpflugshaupt", "node_id": "MDQ6VXNlcjI5NjEzMTM=", "organizations_url": "https://api.github.com/users/kpflugshaupt/orgs", "received_events_url": "https://api.github.com/users/kpflugshaupt/received_events", "repos_url": "https://api.github.com/users/kpflugshaupt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kpflugshaupt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kpflugshaupt/subscriptions", "type": "User", "url": "https://api.github.com/users/kpflugshaupt" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-03-25T21:05:26Z
2019-04-05T00:27:27Z
2019-03-28T10:55:40Z
CONTRIBUTOR
null
#### Code Sample: ```python import pandas as pd # Create a DataFrame with an ordered categorical column, one category not present df = pd.DataFrame( dict(cat = pd.Series([3, 1, 2, 1, 3, 2], dtype=pd.CategoricalDtype( categories=[1, 2, 3, 4], ordered=True) ), val = pd.Series([1.5, 0.5, 1.0, 0.5, 1.5, 1.0]) ) ) ``` **Including unobserved categories gives correct groups:** ```python # Sum 'val' grouped by 'cat', including unobserved categories df.groupby('cat', observed=False)['val'].agg('sum') ``` ``` cat 1 1.0 2 2.0 3 3.0 4 0.0 Name: val, dtype: float64 ``` **Excluding unobserved categories changes the order, groups are wrong:** ```python # Sum 'val' grouped by 'cat', excluding unobserved categories df.groupby('cat', observed=True)['val'].agg('sum') ``` ``` cat 3 1.0 1 2.0 2 3.0 Name: val, dtype: float64 ``` #### Problem description: The sample code shows that grouping with an ordered factor does not respect the factor's order when ```'observed=True'``` is set. Instead, group labels are in order of first occurrence in the Categorical, _as if it were unordered_. The aggregation results, however, are in the Categorical's order. Thus, the result is wrong. **Related issues:** #25167 There, the Categorical was unordered, and the ```sort=True``` parameter did not work as expected in combination with ```observed=True```. In my case, ```sort``` makes no difference: ```python df.groupby('cat', observed=True, sort=True)['val'].agg('sum') df.groupby('cat', observed=True, sort=False)['val'].agg('sum') ``` both give the same, wrong result as shown above. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.3.0 pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: 0.11.3 IPython: 7.1.1 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.5 lxml.etree: 4.3.2 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.1 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: 0.2.1 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/25871/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25871/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25872
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25872/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25872/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25872/events
https://github.com/pandas-dev/pandas/issues/25872
425,138,469
MDU6SXNzdWU0MjUxMzg0Njk=
25,872
[BUG] dataframe.copy(deep=True) does not create a copy of dict objects
{ "avatar_url": "https://avatars.githubusercontent.com/u/6611004?v=4", "events_url": "https://api.github.com/users/jaredvasquez/events{/privacy}", "followers_url": "https://api.github.com/users/jaredvasquez/followers", "following_url": "https://api.github.com/users/jaredvasquez/following{/other_user}", "gists_url": "https://api.github.com/users/jaredvasquez/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jaredvasquez", "id": 6611004, "login": "jaredvasquez", "node_id": "MDQ6VXNlcjY2MTEwMDQ=", "organizations_url": "https://api.github.com/users/jaredvasquez/orgs", "received_events_url": "https://api.github.com/users/jaredvasquez/received_events", "repos_url": "https://api.github.com/users/jaredvasquez/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jaredvasquez/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jaredvasquez/subscriptions", "type": "User", "url": "https://api.github.com/users/jaredvasquez" }
[ { "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-03-25T22:10:45Z
2019-03-25T23:20:36Z
2019-03-25T23:20:27Z
NONE
null
#### Code Sample, ``` # Create some example data records = [] for i, x in enumerate(list('abcdefg')): record = { 'id': i, 'letter': x } records.append(record) df = pd.DataFrame({'data': records}) def _update_key_inplace(x): # Modifies the dictionary object in-place x['letter'] = 'foo' before1 = copy.deepcopy(df) ## No better results for this before2 = df.copy(deep=True) df['data'].apply(_update_key) ``` #### Problem description Running the code above will update the 'letter' key of the dictionaries for all instances (before1, before2 and df). #### Expected Output before1 and before2 are deep copies and should be unchanged.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25872/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25872/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25873
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25873/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25873/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25873/events
https://github.com/pandas-dev/pandas/pull/25873
425,213,968
MDExOlB1bGxSZXF1ZXN0MjY0MzYzNzAx
25,873
CLN: Remove miscellaneous rarely used items from pandas.compat
{ "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": "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-26T03:50:15Z
2019-03-28T02:48:10Z
2019-03-27T23:15:28Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Gets rid of the following from `pandas.compat`: - `intern` - `reduce` - `unichr` - `wraps` - `get_range_parameters` - `class_types` - `reload` - also removed `set_defaultencoding` as it used `reload`, was never used, and is PY2 specific - `import_lzma` - also removed `skip_if_no_lzma` since `lzma` is in the standard library for PY3
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25873/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25873/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25873.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25873", "merged_at": "2019-03-27T23:15:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25873.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25873" }
https://api.github.com/repos/pandas-dev/pandas/issues/25874
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25874/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25874/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25874/events
https://github.com/pandas-dev/pandas/pull/25874
425,222,264
MDExOlB1bGxSZXF1ZXN0MjY0MzY5NzIw
25,874
Revert changes to test regexes
{ "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": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "a2bca7", "default": false, ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-26T04:31:37Z
2019-03-26T14:45:25Z
2019-03-26T11:38:22Z
MEMBER
null
- [X] maybe closes #25867
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25874/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25874/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25874.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25874", "merged_at": "2019-03-26T11:38:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25874.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25874" }
https://api.github.com/repos/pandas-dev/pandas/issues/25875
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25875/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25875/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25875/events
https://github.com/pandas-dev/pandas/issues/25875
425,233,741
MDU6SXNzdWU0MjUyMzM3NDE=
25,875
test_time failure in CI logs
{ "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": "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": "5319e7", "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" }
7
2019-03-26T05:28:35Z
2019-10-09T05:41:13Z
2019-10-09T05:41:13Z
MEMBER
null
The following failure has shown up a couple times in CI today. Haven't looked in detail but assume it to be an unreliable test. https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=9836&view=logs&jobId=a69e7846-138e-5465-0656-921e8964615b&taskId=56da51de-fd5a-5466-5244-b5f65d252624&lineStart=42&lineEnd=95&colStart=1&colEnd=64 ``` =================================== FAILURES =================================== _____________________________ TestTSPlot.test_time _____________________________ [gw0] linux -- Python 3.6.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0x7f2889f69978> @pytest.mark.slow def test_time(self): t = datetime(1, 1, 1, 3, 30, 0) deltas = np.random.randint(1, 20, 3).cumsum() ts = np.array([(t + timedelta(minutes=int(x))).time() for x in deltas]) df = DataFrame({'a': np.random.randn(len(ts)), 'b': np.random.randn(len(ts))}, index=ts) fig, ax = self.plt.subplots() df.plot(ax=ax) # verify tick labels fig.canvas.draw() ticks = ax.get_xticks() labels = ax.get_xticklabels() for t, l in zip(ticks, labels): m, s = divmod(int(t), 60) h, m = divmod(m, 60) rs = l.get_text() if len(rs) > 0: if s != 0: xp = time(h, m, s).strftime('%H:%M:%S') else: xp = time(h, m, s).strftime('%H:%M') assert xp == rs # change xlim ax.set_xlim('1:30', '5:00') # check tick labels again fig.canvas.draw() ticks = ax.get_xticks() labels = ax.get_xticklabels() for t, l in zip(ticks, labels): m, s = divmod(int(t), 60) h, m = divmod(m, 60) rs = l.get_text() if len(rs) > 0: if s != 0: xp = time(h, m, s).strftime('%H:%M:%S') else: xp = time(h, m, s).strftime('%H:%M') > assert xp == rs E AssertionError: assert '01:06:40' == '03:40' E - 01:06:40 E + 03:40 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25875/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25875/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25876
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25876/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25876/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25876/events
https://github.com/pandas-dev/pandas/pull/25876
425,240,032
MDExOlB1bGxSZXF1ZXN0MjY0MzgzNDQz
25,876
CLN: Remove PY2/3 checks in cython files
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-26T05:57:23Z
2019-03-26T15:22:54Z
2019-03-26T11:39:51Z
MEMBER
null
- [x] xref #25725 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Remove PY2/3 checks in `pyx` files.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25876/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25876/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25876.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25876", "merged_at": "2019-03-26T11:39:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25876.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25876" }
https://api.github.com/repos/pandas-dev/pandas/issues/25877
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25877/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25877/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25877/events
https://github.com/pandas-dev/pandas/issues/25877
425,255,674
MDU6SXNzdWU0MjUyNTU2NzQ=
25,877
Unexpected behaviour of groupby.apply with Datetime types
{ "avatar_url": "https://avatars.githubusercontent.com/u/12560027?v=4", "events_url": "https://api.github.com/users/c-thiel/events{/privacy}", "followers_url": "https://api.github.com/users/c-thiel/followers", "following_url": "https://api.github.com/users/c-thiel/following{/other_user}", "gists_url": "https://api.github.com/users/c-thiel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/c-thiel", "id": 12560027, "login": "c-thiel", "node_id": "MDQ6VXNlcjEyNTYwMDI3", "organizations_url": "https://api.github.com/users/c-thiel/orgs", "received_events_url": "https://api.github.com/users/c-thiel/received_events", "repos_url": "https://api.github.com/users/c-thiel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/c-thiel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/c-thiel/subscriptions", "type": "User", "url": "https://api.github.com/users/c-thiel" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "729FCF", "default": false, "description": null, ...
closed
false
null
[]
null
2
2019-03-26T06:59:26Z
2019-10-31T14:41:52Z
2019-10-31T14:41:52Z
NONE
null
Pandas Version: 0.24.1 #### Code Sample: ```python import pandas as pd import numpy as np import datetime def to_compact(df): return pd.Series({'measurment_value': df['measurment_value'].values, 'measurement_time': df['measurement_time'].values}) data = [[0, 1.2, datetime.datetime(2019, 1, 1, 8, 1)], [0, 1.3, datetime.datetime(2019, 1, 1, 8, 2)], [0, 1.6, datetime.datetime(2019, 1, 1, 8, 3)], [1, 1.2, datetime.datetime(2019, 1, 1, 8, 1)], [1, 1.2, datetime.datetime(2019, 1, 1, 8, 2)], [1, 1.2, datetime.datetime(2019, 1, 1, 8, 3)], ] df = pd.DataFrame(data=data, columns=['feature', 'measurment_value', 'measurement_time']) df.groupby('feature').apply(to_compact) ``` #### Problem description Although the returned series of our `to_compact` function is perfectly fine, the return wrapper of `pandas.apply` tries to coerce the type of `measurement_time` to datetime, which obviously failes for arrays. I argue that this is unexpected, as the dtype of for example floats, ints and other more standard types, changes just as expected in the resulting dataframe to object (Just like in the series). Please note that this can simply be resolved by renaming the output fields in the `pd.Series`: ```python def to_compact(df): return pd.Series({'measurment_value': df['measurment_value'].values, 'measurement_time2': df['measurement_time'].values}) ``` This clearly shouldn't have any effect on the output. #### Actual Output feature | measurment_value | measurement_time -- | -- | -- 0 | [1.2, 1.3, 1.6] | NaT 1 | [1.2, 1.2, 1.2] | NaT #### Expected Output  feature | measurment_value | measurement_time -- | -- | -- 0 | [1.2, 1.3, 1.6] | [2019-01-01T08:01:00.000000000, 2019-01-01T08:... 1 | [1.2, 1.2, 1.2] | [2019-01-01T08:01:00.000000000, 2019-01-01T08:.. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-20-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: de_DE.UTF-8 pandas: 0.24.1 pytest: 4.2.0 pip: 19.0.1 setuptools: 40.7.3 Cython: 0.29.4 numpy: 1.16.2 scipy: 1.2.0 pyarrow: 0.12.1 xarray: None IPython: 7.2.0 sphinx: 1.8.4 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.5.14 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.3.0 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.2.17 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: 0.2.0 fastparquet: None 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/25877/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25877/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25878
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25878/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25878/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25878/events
https://github.com/pandas-dev/pandas/issues/25878
425,262,745
MDU6SXNzdWU0MjUyNjI3NDU=
25,878
pandas.DataFrame.applymap run not expected
{ "avatar_url": "https://avatars.githubusercontent.com/u/27916175?v=4", "events_url": "https://api.github.com/users/etveritas/events{/privacy}", "followers_url": "https://api.github.com/users/etveritas/followers", "following_url": "https://api.github.com/users/etveritas/following{/other_user}", "gists_url": "https://api.github.com/users/etveritas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/etveritas", "id": 27916175, "login": "etveritas", "node_id": "MDQ6VXNlcjI3OTE2MTc1", "organizations_url": "https://api.github.com/users/etveritas/orgs", "received_events_url": "https://api.github.com/users/etveritas/received_events", "repos_url": "https://api.github.com/users/etveritas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/etveritas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/etveritas/subscriptions", "type": "User", "url": "https://api.github.com/users/etveritas" }
[]
closed
false
null
[]
null
0
2019-03-26T07:24:19Z
2019-03-26T07:30:12Z
2019-03-26T07:30:12Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python >>> import numpy as np >>> import pandas as pd >>> df = pd.DataFrame([[1, 2.12], [3.356, 4.567]]) >>> df 0 1 0 1.000 2.120 1 3.356 4.567 >>> def test(x): ... print(x) ... >>> df.applymap(lambda x: test(x)) 1.0 3.356 1.0 3.356 2.12 4.567 ``` #### Problem description Hello, I run pandas.DataFrame.applymap, and it seems that **this function call twice on the first columns**. Is it a bug? #### Expected Output ```python 1.0 3.356 2.12 4.567 ``` #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.23.4 pytest: None pip: 10.0.1 setuptools: 39.0.1 Cython: None numpy: 1.15.4 scipy: 1.2.0 pyarrow: 0.11.1 xarray: None IPython: 7.2.0 sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: None lxml: 4.2.5 bs4: 4.7.1 html5lib: None sqlalchemy: 1.3.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 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/25878/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25878/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25879
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25879/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25879/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25879/events
https://github.com/pandas-dev/pandas/issues/25879
425,305,174
MDU6SXNzdWU0MjUzMDUxNzQ=
25,879
read_csv / read_excel interpret str as datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/47013228?v=4", "events_url": "https://api.github.com/users/rampDD/events{/privacy}", "followers_url": "https://api.github.com/users/rampDD/followers", "following_url": "https://api.github.com/users/rampDD/following{/other_user}", "gists_url": "https://api.github.com/users/rampDD/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rampDD", "id": 47013228, "login": "rampDD", "node_id": "MDQ6VXNlcjQ3MDEzMjI4", "organizations_url": "https://api.github.com/users/rampDD/orgs", "received_events_url": "https://api.github.com/users/rampDD/received_events", "repos_url": "https://api.github.com/users/rampDD/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rampDD/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rampDD/subscriptions", "type": "User", "url": "https://api.github.com/users/rampDD" }
[]
closed
false
null
[]
null
1
2019-03-26T09:22:33Z
2019-03-26T12:05:02Z
2019-03-26T12:05:02Z
NONE
null
#### Code Sample ```python df2 = pd.read_excel('license_nvm_logins.xlsx', sheet_name='Common', dtype={'Total Usage':str}) df2.head(n=10) ``` ```python df2.dtypes() User Name object Feature Name object Tag object Machine Name object Checkout Date datetime64[ns] Checkout Time object Total Usage object ``` #### Problem description When I read my Excel- / CSV-File into a DataFrame the last column 'Total Usage' will be interpreted as datetime (even if I try to force it to stay as a string). This happens if the %H part exceeds 24 hours. For instance if the content of 'Total Usage' column has following content '54:05:03' User Name | Feature Name | Tag | Machine Name | Checkout Date | Checkout Time | Total Usage -- | -- | -- | -- | -- | -- | -- someUser| someFeature | someTag | someMachine | 13.09.2018 | 07:40:00 | 1900-01-02 06:05:03 #### Expected Output I would like if that columns would stay as string so I've the option to parse it to a timedelta on my own. User Name | Feature Name | Tag | Machine Name | Checkout Date | Checkout Time | Total Usage -- | -- | -- | -- | -- | -- | -- someUser| someFeature | someTag | someMachine | 13.09.2018 | 07:40:00 | 54:05:03 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-87-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.22.0 pytest: 3.4.2 pip: 19.0.2 setuptools: 39.0.1 Cython: 0.27.3 numpy: 1.14.3 scipy: 1.0.1 pyarrow: 0.9.0 xarray: 0.10.7 IPython: 6.3.1 sphinx: 1.7.1 patsy: 0.5.0 dateutil: 2.7.2 pytz: 2018.4 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.4 feather: 0.4.0 matplotlib: 2.2.2 openpyxl: 2.5.1 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.2.0 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.5 pymysql: None psycopg2: 2.7.4 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 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/25879/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25879/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25880
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25880/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25880/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25880/events
https://github.com/pandas-dev/pandas/issues/25880
425,390,749
MDU6SXNzdWU0MjUzOTA3NDk=
25,880
Int64Dtype conversion seems to casts to double first in the Series constructor
{ "avatar_url": "https://avatars.githubusercontent.com/u/17914410?v=4", "events_url": "https://api.github.com/users/adeak/events{/privacy}", "followers_url": "https://api.github.com/users/adeak/followers", "following_url": "https://api.github.com/users/adeak/following{/other_user}", "gists_url": "https://api.github.com/users/adeak/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/adeak", "id": 17914410, "login": "adeak", "node_id": "MDQ6VXNlcjE3OTE0NDEw", "organizations_url": "https://api.github.com/users/adeak/orgs", "received_events_url": "https://api.github.com/users/adeak/received_events", "repos_url": "https://api.github.com/users/adeak/repos", "site_admin": false, "starred_url": "https://api.github.com/users/adeak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adeak/subscriptions", "type": "User", "url": "https://api.github.com/users/adeak" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtyp...
open
false
null
[]
null
1
2019-03-26T12:33:18Z
2021-06-27T20:41:38Z
null
NONE
null
Constructing a `Series` with `dtype=Int64Dtype()` suggests that there can be an intermiediate conversion to double if the input contains `NaN`s: ``` import pandas as pd n = 2**62+5 print(n, int(float(n))) print(pd.Series([n, float('nan')])) print(pd.Series([n, float('nan')], dtype=pd.Int64Dtype())) print(pd.Series([n, float('nan')], dtype=object).astype(pd.Int64Dtype())) ``` In both latter cases we end up with a `Series` with `dtype=Int64` containing integer NaNs. However, in the penultimate case we get the int-float-int converted value of `n` (4611686018427387904), and we only get the exact `Int64` result (4611686018427387909) if we instantiate the `Series` with `dtype=object` and convert afterward. This doesn't happen if the input doesn't contain any `NaN`s: ``` print(pd.Series([n, n+3], dtype=pd.Int64Dtype())) ``` Expected output is `4611686018427387909` inside the `Series` constructed with `dtype=Int64Dtype()`. Issue is there in master.
{ "+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/25880/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25880/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25881
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25881/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25881/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25881/events
https://github.com/pandas-dev/pandas/issues/25881
425,416,798
MDU6SXNzdWU0MjU0MTY3OTg=
25,881
.at does not work using a categorical index.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1257580?v=4", "events_url": "https://api.github.com/users/TyberiusPrime/events{/privacy}", "followers_url": "https://api.github.com/users/TyberiusPrime/followers", "following_url": "https://api.github.com/users/TyberiusPrime/following{/other_user}", "gists_url": "https://api.github.com/users/TyberiusPrime/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TyberiusPrime", "id": 1257580, "login": "TyberiusPrime", "node_id": "MDQ6VXNlcjEyNTc1ODA=", "organizations_url": "https://api.github.com/users/TyberiusPrime/orgs", "received_events_url": "https://api.github.com/users/TyberiusPrime/received_events", "repos_url": "https://api.github.com/users/TyberiusPrime/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TyberiusPrime/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TyberiusPrime/subscriptions", "type": "User", "url": "https://api.github.com/users/TyberiusPrime" }
[ { "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
[]
null
1
2019-03-26T13:26:08Z
2019-11-26T14:30:48Z
2019-11-26T14:30:48Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame({ "x": pd.Categorical(["a", "b", "c"]), "y": [10, 20, 30]} ).set_index("x") print(df.index) print(df.loc["a"]["y"]) print(df.at["a", "y"]) ``` #### Problem description Loc works using a categorical index, at does not. Both should work. #### Expected Output CategoricalIndex(['a', 'b', 'c'], categories=['a', 'b', 'c'], ordered=False, name='x', dtype='category') 10 10 #### Actual output ```python CategoricalIndex(['a', 'b', 'c'], categories=['a', 'b', 'c'], ordered=False, name='x', dtype='category') 10 Traceback (most recent call last): File "test.py", line 9, in <module> print(df.at["a", "y"]) File "/rose/temp/shu/pandas/pandas/core/indexing.py", line 2277, in __getitem__ return self.obj._get_value(*key, takeable=self._takeable) File "/rose/temp/shu/pandas/pandas/core/frame.py", line 2720, in _get_value return engine.get_value(series._values, index) File "pandas/_libs/index.pyx", line 81, in pandas._libs.index.IndexEngine.get_value File "pandas/_libs/index.pyx", line 89, in pandas._libs.index.IndexEngine.get_value File "pandas/_libs/index.pyx", line 129, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index_class_helper.pxi", line 214, in pandas._libs.index.Int8Engine._check_type ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-134-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.0.dev0+321.gb878f5b pytest: None pip: 19.0.1 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: None sphinx: 1.8.5 patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None Traceback (most recent </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/25881/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25881/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25882
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25882/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25882/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25882/events
https://github.com/pandas-dev/pandas/issues/25882
425,504,419
MDU6SXNzdWU0MjU1MDQ0MTk=
25,882
Typing Cleanup - Remove Blacklisted Items
{ "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": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": 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" }
10
2019-03-26T15:55:46Z
2019-06-25T12:34:26Z
2019-06-25T12:34:26Z
MEMBER
null
#25844 introduced a blacklist of modules in the mypy.ini config file which currently throw errors when analyzed with mypy. We would ideally be able to whittle these down (save exclusion of the test folder(s), which I think is fine). I'm not sure there is one easy way to split it up as the degree of difficulty may vary wildly. PRs from the community to clean up one to a few of the blacklisted modules at a time would certainly be welcome! Here's the list of modules for reference: - [X] pandas._config.config (#25899) - [X] pandas._version (#25949) - [X] pandas.compat (#26251) - [X] pandas.compat.numpy.function - [X] pandas.compat.pickle_compat (#25991) - [X] pandas.core.accessor (#26146) - [x] pandas.core.api - [X] pandas.core.apply - [X] pandas.core.arrays.array_ (#26065) - [X] pandas.core.arrays.datetimelike (#26065) - [X] pandas.core.arrays.integer (#26065) - [X] pandas.core.arrays.interval (#26065) - [X] pandas.core.arrays.numpy_ (#26065) - [X] pandas.core.arrays.period (#26065) - [X] pandas.core.arrays.sparse (#26065) - [X] pandas.core.arrays.timedeltas (#26065) - [x] pandas.core.base - [x] pandas.core.computation.expr - [x] pandas.core.computation.ops - [x] pandas.core.computation.pytables - [x] pandas.core.config (#26048) - [x] pandas.core.config_init - [X] pandas.core.dtypes.dtypes (#26028) - [X] pandas.core.dtypes.missing (#26028) - [X] pandas.core.frame - [X] pandas.core.generic - [X] pandas.core.groupby.generic (#26089) - [X] pandas.core.groupby.groupby (#26089) - [X] pandas.core.groupby.ops (#26089) - [x] pandas.core.indexes.base (#26315) - [x] pandas.core.indexes.datetimelike - [ ] pandas.core.indexes.datetimes (#26315) - [x] pandas.core.indexes.period (#26315) - [x] pandas.core.indexes.timedeltas (#26315) - [x] pandas.core.indexing - [x] pandas.core.internals.blocks - [x] pandas.core.ops - [X] pandas.core.panel (DEPRECATED - do not update) - [x] pandas.core.resample - [X] pandas.core.reshape.concat (#26019) - [x] pandas.core.reshape.merge - [x] pandas.core.reshape.reshape - [X] pandas.core.reshape.tile (#26019) - [X] pandas.core.series - [X] pandas.core.sparse.frame - [X] pandas.core.strings (#25902) - [x] pandas.core.util.hashing - [x] pandas.core.window - [x] pandas.io.clipboards (#26048) - [x] pandas.io.feather_format (#25939) - [x] pandas.io.formats.css (#25900) - [x] pandas.io.html (#25939) - [x] pandas.io.json.json (#25939) - [x] pandas.io.json.normalize (#25939) - [x] pandas.io.json.table_schema (#25939) - [x] pandas.io.packers (#25939) - [x] pandas.io.parquet (#25939) - [x] pandas.io.pytables - [x] pandas.io.stata (#25940) - [X] pandas.plotting._core (#26021) - [X] pandas.tseries.frequencies (#26014) - [X] pandas.tseries.holiday (#26014) - [X] pandas.tseries.offsets (#26014) - [x] pandas.util._doctools - [x] pandas.util.testing
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25882/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25882/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25883
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25883/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25883/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25883/events
https://github.com/pandas-dev/pandas/issues/25883
425,556,181
MDU6SXNzdWU0MjU1NTYxODE=
25,883
Performance regression in 0.24+ on GroupBy.apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/10400532?v=4", "events_url": "https://api.github.com/users/blu3r4y/events{/privacy}", "followers_url": "https://api.github.com/users/blu3r4y/followers", "following_url": "https://api.github.com/users/blu3r4y/following{/other_user}", "gists_url": "https://api.github.com/users/blu3r4y/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/blu3r4y", "id": 10400532, "login": "blu3r4y", "node_id": "MDQ6VXNlcjEwNDAwNTMy", "organizations_url": "https://api.github.com/users/blu3r4y/orgs", "received_events_url": "https://api.github.com/users/blu3r4y/received_events", "repos_url": "https://api.github.com/users/blu3r4y/repos", "site_admin": false, "starred_url": "https://api.github.com/users/blu3r4y/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/blu3r4y/subscriptions", "type": "User", "url": "https://api.github.com/users/blu3r4y" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "a10c02", "default": false, "description": "Memory or execu...
open
false
null
[]
null
11
2019-03-26T17:35:43Z
2019-10-16T18:58:53Z
null
NONE
null
#### Code Sample ```python import time import numpy as np import pandas as pd nrows, ncols = 1000, 100 # data frame with random values and a key to be grouped by df = pd.DataFrame(np.random.rand(nrows, ncols)) df["key"] = range(nrows) numeric_columns = list(range(ncols)) grouping = df.groupby(by="key") # performance regression in apply() start = time.time() grouping[numeric_columns].apply(lambda x: x - x.mean()) end = time.time() print("[pandas=={}] execution time: {:.4f} seconds".format(pd.__version__, end - start)) # [pandas==0.23.4] execution time: 0.8700 seconds # [pandas==0.24.0] execution time: 24.3790 seconds # [pandas==0.24.2] execution time: 23.9600 seconds ``` #### Problem description The function `GroupBy.apply` is a lot slower (~ 25 times) with version 0.24.0, compared to the 0.23.4 release. The problem still persists in the latest 0.24.2 release. The code sample above shows this performance regression. The purpose of the sample is to subtract the group mean from all elements in this group. The problem does only occur when the lambda for `apply()` returns a data frame. There are no performance issues with scalar return values, e.g. `lambda x: x.mean()`. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.0 pytest: None pip: 10.0.1 setuptools: 39.2.0 Cython: None numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 6.4.0 sphinx: None patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: 0.9999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </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/25883/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25883/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25884
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25884/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25884/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25884/events
https://github.com/pandas-dev/pandas/pull/25884
425,604,283
MDExOlB1bGxSZXF1ZXN0MjY0NjYwMjQw
25,884
Initial pandas.typing Module
{ "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": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
12
2019-03-26T19:18:11Z
2019-03-30T19:12:57Z
2019-03-30T19:12:34Z
MEMBER
null
ref #25791 maybe more of a conversation starter than complete PR but wanted to stub out some types that appear commonly in pandas code-base. Haven't used these yet as wanted to agree on type first. I wouldn't be surprised if we start seeing some issues pop up that would require real development changes once these get utilized @jreback @jbrockmendel
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25884/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25884/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25884.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25884", "merged_at": "2019-03-30T19:12:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25884.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25884" }
https://api.github.com/repos/pandas-dev/pandas/issues/25885
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25885/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25885/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25885/events
https://github.com/pandas-dev/pandas/issues/25885
425,618,315
MDU6SXNzdWU0MjU2MTgzMTU=
25,885
Epplus adds extra rows with duplicates to the spreadsheet
{ "avatar_url": "https://avatars.githubusercontent.com/u/17203487?v=4", "events_url": "https://api.github.com/users/william3n/events{/privacy}", "followers_url": "https://api.github.com/users/william3n/followers", "following_url": "https://api.github.com/users/william3n/following{/other_user}", "gists_url": "https://api.github.com/users/william3n/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/william3n", "id": 17203487, "login": "william3n", "node_id": "MDQ6VXNlcjE3MjAzNDg3", "organizations_url": "https://api.github.com/users/william3n/orgs", "received_events_url": "https://api.github.com/users/william3n/received_events", "repos_url": "https://api.github.com/users/william3n/repos", "site_admin": false, "starred_url": "https://api.github.com/users/william3n/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/william3n/subscriptions", "type": "User", "url": "https://api.github.com/users/william3n" }
[]
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-03-26T19:53:14Z
2019-03-26T23:19:48Z
2019-03-26T20:18:58Z
NONE
null
![epplus_duplicates](https://user-images.githubusercontent.com/17203487/55029028-16c3bb80-4fd7-11e9-9042-0f34c31541dc.png) SqlDataReader reader = myCommand.ExecuteReader(CommandBehavior.CloseConnection); int row_index = 2; while (reader.Read()) { worksheet.Cells[row_index, 1].Value = reader["Header1"].ToString(); worksheet.Cells[row_index, 2].Value = reader["Header2"].ToString(); worksheet.Cells[row_index, 3].Value = reader["Header3"].ToString(); row_index += 1; } reader.Close(); conn.Close(); p.Save();
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25885/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25885/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25886
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25886/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25886/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25886/events
https://github.com/pandas-dev/pandas/pull/25886
425,620,920
MDExOlB1bGxSZXF1ZXN0MjY0NjczMTU2
25,886
CLN: Remove PY2/3 references io directory
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-26T19:59:34Z
2019-03-29T00:51:15Z
2019-03-28T20:19:41Z
MEMBER
null
xref #25725
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25886/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25886/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25886.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25886", "merged_at": "2019-03-28T20:19:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25886.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25886" }
https://api.github.com/repos/pandas-dev/pandas/issues/25887
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25887/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25887/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25887/events
https://github.com/pandas-dev/pandas/issues/25887
425,663,688
MDU6SXNzdWU0MjU2NjM2ODg=
25,887
Empty dataframe creation
{ "avatar_url": "https://avatars.githubusercontent.com/u/3621629?v=4", "events_url": "https://api.github.com/users/0x0L/events{/privacy}", "followers_url": "https://api.github.com/users/0x0L/followers", "following_url": "https://api.github.com/users/0x0L/following{/other_user}", "gists_url": "https://api.github.com/users/0x0L/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/0x0L", "id": 3621629, "login": "0x0L", "node_id": "MDQ6VXNlcjM2MjE2Mjk=", "organizations_url": "https://api.github.com/users/0x0L/orgs", "received_events_url": "https://api.github.com/users/0x0L/received_events", "repos_url": "https://api.github.com/users/0x0L/repos", "site_admin": false, "starred_url": "https://api.github.com/users/0x0L/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/0x0L/subscriptions", "type": "User", "url": "https://api.github.com/users/0x0L" }
[ { "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": "370f77", "default"...
open
false
null
[]
null
4
2019-03-26T21:46:23Z
2020-06-05T17:28:20Z
null
CONTRIBUTOR
null
Hello, Creating an empty dataframe with specified columns ```python pd.__version__ # '0.24.2' %timeit pd.DataFrame([], columns=['a']) # 1.57 ms ± 20.9 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) ``` is way slower than it should be: ```python %timeit pd.DataFrame([]) # 184 µs ± 1.68 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) %timeit pd.DataFrame([[1]], columns=['a']) # 343 µs ± 3.33 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25887/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25887/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25888
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25888/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25888/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25888/events
https://github.com/pandas-dev/pandas/pull/25888
425,683,813
MDExOlB1bGxSZXF1ZXN0MjY0NzIyMzg2
25,888
Pass the errors and kwargs arguments through to astype in the columns…
{ "avatar_url": "https://avatars.githubusercontent.com/u/218060?v=4", "events_url": "https://api.github.com/users/johnklehm/events{/privacy}", "followers_url": "https://api.github.com/users/johnklehm/followers", "following_url": "https://api.github.com/users/johnklehm/following{/other_user}", "gists_url": "https://api.github.com/users/johnklehm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/johnklehm", "id": 218060, "login": "johnklehm", "node_id": "MDQ6VXNlcjIxODA2MA==", "organizations_url": "https://api.github.com/users/johnklehm/orgs", "received_events_url": "https://api.github.com/users/johnklehm/received_events", "repos_url": "https://api.github.com/users/johnklehm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/johnklehm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johnklehm/subscriptions", "type": "User", "url": "https://api.github.com/users/johnklehm" }
[ { "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": "370f...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
13
2019-03-26T22:52:35Z
2019-03-31T12:40:25Z
2019-03-31T02:03:15Z
CONTRIBUTOR
null
… dict logic branch.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25888/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25888/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25888.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25888", "merged_at": "2019-03-31T02:03:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25888.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25888" }
https://api.github.com/repos/pandas-dev/pandas/issues/25889
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25889/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25889/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25889/events
https://github.com/pandas-dev/pandas/pull/25889
425,723,239
MDExOlB1bGxSZXF1ZXN0MjY0NzUxMDg4
25,889
CLN: Remove __future__ imports
{ "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": "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-27T01:43:47Z
2019-03-27T16:28:12Z
2019-03-27T11:50:53Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Not needed after dropping Python 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/25889/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25889/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25889.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25889", "merged_at": "2019-03-27T11:50:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25889.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25889" }
https://api.github.com/repos/pandas-dev/pandas/issues/25890
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25890/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25890/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25890/events
https://github.com/pandas-dev/pandas/issues/25890
425,834,804
MDU6SXNzdWU0MjU4MzQ4MDQ=
25,890
Convert Dataframe to JSON
{ "avatar_url": "https://avatars.githubusercontent.com/u/7030722?v=4", "events_url": "https://api.github.com/users/kraikov/events{/privacy}", "followers_url": "https://api.github.com/users/kraikov/followers", "following_url": "https://api.github.com/users/kraikov/following{/other_user}", "gists_url": "https://api.github.com/users/kraikov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kraikov", "id": 7030722, "login": "kraikov", "node_id": "MDQ6VXNlcjcwMzA3MjI=", "organizations_url": "https://api.github.com/users/kraikov/orgs", "received_events_url": "https://api.github.com/users/kraikov/received_events", "repos_url": "https://api.github.com/users/kraikov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kraikov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kraikov/subscriptions", "type": "User", "url": "https://api.github.com/users/kraikov" }
[ { "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-03-27T08:57:40Z
2019-03-27T15:21:35Z
2019-03-27T15:21:25Z
NONE
null
Hey! I have the following dataframe: ```python price item_name timestamp item1 2018-10-12 12.2 2018-10-13 14.3 2018-10-14 17.1 item2 2018-10-12 11.4 2018-10-13 15.6 2018-10-14 17.2 item2 2018-10-12 11.5 2018-10-13 17.2 2018-10-14 17.2 ``` And I want to convert it to JSON in the following format: ```json { "item1":{ "1539302400000": 12.2, "1539388800000": 14.3, "1539475200000": 17.1, }, "item2":{ "1539302400000":11.4, "1539388800000":15.6, "1539475200000":17.2, }, "item3":{ "1539302400000":11.5, "1539388800000":17.2, "1539475200000":17.2, } } ``` However, I was not able to get json in the desired format. `df.reset_index().to_json(orient='records')` gives me this: ```json [ { "item_name":"item1", "timestamp":1539302400000, "price":12.2 }, { "item_name":"item1", "timestamp":1539388800000, "price":14.3 }, { "item_name":"item1", "timestamp":1539475200000, "price":17.1 }, { "item_name":"item2", "timestamp":1539302400000, "price":11.4 }, { "item_name":"item2", "timestamp":1539388800000, "price":15.6 }, { "item_name":"item2", "timestamp":1539475200000, "price":17.2 }, ] ``` Can anyone give me a clue how to accomplish that? <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.15.final.0 python-bits: 64 OS: Linux OS-release: 4.18.0-16-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.24.2 pytest: None pip: 9.0.1 setuptools: 40.8.0 Cython: None numpy: 1.15.1 scipy: None pyarrow: None xarray: None IPython: None sphinx: 1.7.6 patsy: None dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: 0.999999999 sqlalchemy: None pymysql: 0.9.2 psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25890/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25890/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25891
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25891/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25891/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25891/events
https://github.com/pandas-dev/pandas/issues/25891
425,874,886
MDU6SXNzdWU0MjU4NzQ4ODY=
25,891
MultiIndex level dropped when multiplying two series with a single entry
{ "avatar_url": "https://avatars.githubusercontent.com/u/9558262?v=4", "events_url": "https://api.github.com/users/mellesies/events{/privacy}", "followers_url": "https://api.github.com/users/mellesies/followers", "following_url": "https://api.github.com/users/mellesies/following{/other_user}", "gists_url": "https://api.github.com/users/mellesies/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mellesies", "id": 9558262, "login": "mellesies", "node_id": "MDQ6VXNlcjk1NTgyNjI=", "organizations_url": "https://api.github.com/users/mellesies/orgs", "received_events_url": "https://api.github.com/users/mellesies/received_events", "repos_url": "https://api.github.com/users/mellesies/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mellesies/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mellesies/subscriptions", "type": "User", "url": "https://api.github.com/users/mellesies" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, ...
open
false
null
[]
null
3
2019-03-27T10:22:49Z
2021-06-28T02:05:26Z
null
NONE
null
When multiplying two Series with overlapping MultiIndices and a _single_ entry, pandas drops levels from the MultiIndex. This doesn't happen when either Series contains multiple entries. Using pandas 0.24.1 and Numpy 1.16.2 #### This works fine ```python # Create Series s1, with a scope over {T, N} and set two values index1 = pd.MultiIndex.from_product([[], []], names=['T', 'N']) s1 = pd.Series(index=index1) s1['T.1A', 'N.0'] = 0.5 s1['T.1B', 'N.0'] = 0.5 # Create Series s2 with a scope over {N, M} and set a single value index2 = pd.MultiIndex.from_product([[], []], names=['N', 'M']) s2 = pd.Series(index=index2) s2['N.0', 'M.0'] = 0.5 # When multiplying s1 and s2 pandas will align the Series using the index. # Note that the index has 3 levels: {N, T, M} print(s1 * s2) # Prints: # N T M # N.0 T.1A M.0 0.25 # T.1B M.0 0.25 # dtype: float64 ``` #### This doesn't return the expected index levels ```python # Create Series s1, with a scope over {T, N} and set a single value index1 = pd.MultiIndex.from_product([[], []], names=['T', 'N']) s1 = pd.Series(index=index1) s1['T.1A', 'N.0'] = 0.5 # Create Series s2 with a scope over {N, M} and set a single value index2 = pd.MultiIndex.from_product([[], []], names=['N', 'M']) s2 = pd.Series(index=index2) s2['N.0', 'M.0'] = 0.5 # Multiply s1 and s2. Correctly yields 0.25. But where did index level 'M' go!? print(s1 * s2) # Prints: # T N # T.1A N.0 0.25 # dtype: float64 ``` #### Problem description Index level 'M' is dropped in the result. It appears the index from the first Series, `s1` is carried over? #### Expected Output I'd expect the result to have an index that is essentially the union of the indices from `s1` and `s2`. ``` # N T M # N.0 T.1A M.0 0.25 # dtype: float64 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.utf-8 LANG: None LOCALE: en_US.UTF-8 pandas: 0.24.1 pytest: None pip: 19.0.3 setuptools: 40.6.2 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25891/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25891/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25892
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25892/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25892/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25892/events
https://github.com/pandas-dev/pandas/issues/25892
426,005,520
MDU6SXNzdWU0MjYwMDU1MjA=
25,892
GroupBy.apply repeats the first group N times when slicing and sorting in the applied function
{ "avatar_url": "https://avatars.githubusercontent.com/u/48992229?v=4", "events_url": "https://api.github.com/users/gilbenzvi/events{/privacy}", "followers_url": "https://api.github.com/users/gilbenzvi/followers", "following_url": "https://api.github.com/users/gilbenzvi/following{/other_user}", "gists_url": "https://api.github.com/users/gilbenzvi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gilbenzvi", "id": 48992229, "login": "gilbenzvi", "node_id": "MDQ6VXNlcjQ4OTkyMjI5", "organizations_url": "https://api.github.com/users/gilbenzvi/orgs", "received_events_url": "https://api.github.com/users/gilbenzvi/received_events", "repos_url": "https://api.github.com/users/gilbenzvi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gilbenzvi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gilbenzvi/subscriptions", "type": "User", "url": "https://api.github.com/users/gilbenzvi" }
[]
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" }
5
2019-03-27T14:49:54Z
2019-04-04T02:02:33Z
2019-04-04T02:02:27Z
NONE
null
Hi, When using GroupBy.apply on function that applies pandas.DataFrame.sort_values() **with inplace=True** and also **data-frame slicing**, the first group is evaluated N times (N is the original number of the groups). See the following code and output: ```python >>> import numpy as np >>> import pandas as pd >>> >>> A = np.repeat('a', 8) >>> B = np.repeat([1, 2, 3, 4], 2) >>> data = pd.DataFrame.from_dict({'A': A, 'B': B}) >>> print(data) A B 0 a 1 1 a 1 2 a 2 3 a 2 4 a 3 5 a 3 6 a 4 7 a 4 >>> >>> def func(group_data, sort, slice): ... if sort: ... group_data.sort_values('A', inplace=True) ... if slice: ... group_data = group_data[:] ... return group_data ... >>> B_groups = data.groupby('B') >>> out_sort_slice = B_groups.apply(lambda x: func(x, sort=True, slice=True)) >>> out_sort_no_slice = B_groups.apply(lambda x: func(x, sort=True, slice=False)) >>> out_no_sort_slice = B_groups.apply(lambda x: func(x, sort=False, slice=True)) >>> out_no_sort_no_slice = B_groups.apply(lambda x: func(x, sort=False, slice=False)) >>> >>> print(out_sort_slice) A B B 1 0 a 1 1 a 1 2 0 a 1 1 a 1 3 0 a 1 1 a 1 4 0 a 1 1 a 1 >>> print(out_sort_no_slice) A B 0 a 1 1 a 1 2 a 2 3 a 2 4 a 3 5 a 3 6 a 4 7 a 4 >>> print(out_no_sort_slice) A B B 1 0 a 1 1 a 1 2 2 a 2 3 a 2 3 4 a 3 5 a 3 4 6 a 4 7 a 4 >>> print(out_no_sort_no_slice) A B 0 a 1 1 a 1 2 a 2 3 a 2 4 a 3 5 a 3 6 a 4 7 a 4 ``` As you can see, out_sort_no_slice, out_no_sort_slice and out_no_sort_no_slice get the expected outputs, while the output of out_sort_slice contains the first group 4 times. while debugging, you can see the first group evaluated 4 times inside func. Notice that the data is already sorted by field 'A' and the slicing part keeps all the data in the data-frame. I'm using Anaconda Python 3.7 with Pandas 0.24.2 on Mac. Thanks!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25892/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25892/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25893
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25893/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25893/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25893/events
https://github.com/pandas-dev/pandas/issues/25893
426,017,724
MDU6SXNzdWU0MjYwMTc3MjQ=
25,893
Memory leak with .rolling().max() in pandas 0.24.2
{ "avatar_url": "https://avatars.githubusercontent.com/u/16204193?v=4", "events_url": "https://api.github.com/users/labodyn/events{/privacy}", "followers_url": "https://api.github.com/users/labodyn/followers", "following_url": "https://api.github.com/users/labodyn/following{/other_user}", "gists_url": "https://api.github.com/users/labodyn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/labodyn", "id": 16204193, "login": "labodyn", "node_id": "MDQ6VXNlcjE2MjA0MTkz", "organizations_url": "https://api.github.com/users/labodyn/orgs", "received_events_url": "https://api.github.com/users/labodyn/received_events", "repos_url": "https://api.github.com/users/labodyn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/labodyn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/labodyn/subscriptions", "type": "User", "url": "https://api.github.com/users/labodyn" }
[ { "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
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
8
2019-03-27T15:10:36Z
2019-04-01T22:27:46Z
2019-04-01T22:27:46Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.read_csv('file.csv', index_col=0, parse_dates=True) while True: df['close'].rolling(4000).max() ``` #### Problem description Memory leak which shuts down my application. This occurs in pandas 0.24.2 but not in pandas 0.23.4. My 16 GB memory gets filled in a few hours of running this code. file.csv is attached in zip, the memory leak might only occur on certain data. [file.csv.zip](https://github.com/pandas-dev/pandas/files/3013836/file.csv.zip) #### Expected Output No memory leaks. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-46-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: None pip: 19.0.3 setuptools: 38.4.0 Cython: None numpy: 1.14.5 scipy: None pyarrow: None xarray: None IPython: 7.1.1 sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: 1.2.14 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </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/25893/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25893/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25894
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25894/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25894/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25894/events
https://github.com/pandas-dev/pandas/pull/25894
426,019,539
MDExOlB1bGxSZXF1ZXN0MjY0OTcyMzk4
25,894
Skipped flaky part of test_time
{ "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": "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": "5319e7", "default": false, "description": ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-27T15:13:50Z
2020-01-16T00:34:15Z
2019-03-27T20:44:44Z
MEMBER
null
Workaround for #25875 to get CI passing - I kept intact the working part of the test and split off the failing piece into a separate test, which may be more explicit anyway Haven't been able to reproduce this locally so plan to either keep the original issue open or create a new one for a more permanent fix, which may require a total refactor of the test @gfyoung
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25894/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25894/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25894.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25894", "merged_at": "2019-03-27T20:44:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25894.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25894" }
https://api.github.com/repos/pandas-dev/pandas/issues/25895
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25895/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25895/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25895/events
https://github.com/pandas-dev/pandas/pull/25895
426,084,512
MDExOlB1bGxSZXF1ZXN0MjY1MDIzMjk4
25,895
Implement helper method to get char* buffer from Python objects
{ "avatar_url": "https://avatars.githubusercontent.com/u/45396231?v=4", "events_url": "https://api.github.com/users/vnlitvinov/events{/privacy}", "followers_url": "https://api.github.com/users/vnlitvinov/followers", "following_url": "https://api.github.com/users/vnlitvinov/following{/other_user}", "gists_url": "https://api.github.com/users/vnlitvinov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vnlitvinov", "id": 45396231, "login": "vnlitvinov", "node_id": "MDQ6VXNlcjQ1Mzk2MjMx", "organizations_url": "https://api.github.com/users/vnlitvinov/orgs", "received_events_url": "https://api.github.com/users/vnlitvinov/received_events", "repos_url": "https://api.github.com/users/vnlitvinov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vnlitvinov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vnlitvinov/subscriptions", "type": "User", "url": "https://api.github.com/users/vnlitvinov" }
[ { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-03-27T17:12:36Z
2019-04-01T14:31:27Z
2019-03-29T15:26:20Z
CONTRIBUTOR
null
- [x] closes N/A - [x] tests added - `test_parsers_iso8601_leading_space` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is a follow-up PR for #25754 which adds a utility method for getting internal `char *` buffer from `unicode` or `bytes` Python object and switch at least some of usages to it. Its advantages over what is built-in in Cython is saving at least one extra memory allocation (Cython internally calls Python C API that creates a new `char *` copy which is not needed for most `unicode` objects which are internally stored in `utf8` encoding), and it also obtains the length in one call. cc @jbrockmendel
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25895/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25895/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25895.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25895", "merged_at": "2019-03-29T15:26:20Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25895.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25895" }
https://api.github.com/repos/pandas-dev/pandas/issues/25896
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25896/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25896/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25896/events
https://github.com/pandas-dev/pandas/issues/25896
426,166,436
MDU6SXNzdWU0MjYxNjY0MzY=
25,896
Cumulative Ops with skipna=True Don't Ignore NA Values
{ "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": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
null
4
2019-03-27T20:22:55Z
2019-09-14T12:13:28Z
2019-09-14T12:13:28Z
MEMBER
null
```python import numpy as np import pandas as pd df = pd.DataFrame({"a": ["x", "x", "x", "y", "y", "y"], "b": [np.nan, 2.0, 1.0, 2.0, np.nan, 1.0]}) df # a b # 0 x NaN # 1 x 2.0 # 2 x 1.0 # 3 y 2.0 # 4 y NaN # 5 y 1.0 df.groupby("a")["b"].cummax() # 0 NaN # 1 2.0 # 2 2.0 # 3 2.0 # 4 NaN # 5 2.0 # Name: b, dtype: float64 ``` #### Problem description In the example above we're taking the cumulative max of column `b` grouped by `a`, which should have the same result for rows 1 and 4 since both are taking the max of `np.nan` and `2.0` (order shouldn't matter). It seems like the max might be `np.nan` whenever the most recent value in the window is `np.nan` since we go back to the correct value in the next row. #### Expected Output ``` # 0 NaN # 1 2.0 # 2 2.0 # 3 2.0 # 4 2.0 # 5 2.0 # Name: b, dtype: float64 ``` #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Darwin OS-release: 18.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.1 pytest: None pip: 19.0.2 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.16.1 scipy: 1.2.1 pyarrow: 0.12.0 xarray: None IPython: 7.3.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: 1.3.1 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: 0.2.0 fastparquet: 0.2.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/25896/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25896/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25897
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25897/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25897/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25897/events
https://github.com/pandas-dev/pandas/issues/25897
426,177,857
MDU6SXNzdWU0MjYxNzc4NTc=
25,897
BUG: DatetimeIndex from datetime.datetime shifted by n minutes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1850821?v=4", "events_url": "https://api.github.com/users/GrivIN/events{/privacy}", "followers_url": "https://api.github.com/users/GrivIN/followers", "following_url": "https://api.github.com/users/GrivIN/following{/other_user}", "gists_url": "https://api.github.com/users/GrivIN/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/GrivIN", "id": 1850821, "login": "GrivIN", "node_id": "MDQ6VXNlcjE4NTA4MjE=", "organizations_url": "https://api.github.com/users/GrivIN/orgs", "received_events_url": "https://api.github.com/users/GrivIN/received_events", "repos_url": "https://api.github.com/users/GrivIN/repos", "site_admin": false, "starred_url": "https://api.github.com/users/GrivIN/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GrivIN/subscriptions", "type": "User", "url": "https://api.github.com/users/GrivIN" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2019-03-27T20:51:42Z
2019-03-27T22:55:23Z
2019-03-27T22:55:11Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import datetime as dt import pytz tz = pytz.timezone('America/New_York') data1 = pd.DataFrame([ {'date': dt.datetime(2019, 1, 1, tzinfo=tz), 'value': 10}, {'date': dt.datetime(2019, 1, 1, tzinfo=tz), 'value': 10}, {'date': dt.datetime(2019, 1, 2, tzinfo=tz), 'value': 20} ]).set_index('date') print(data1.index) # DatetimeIndex(['2018-12-31 23:56:00-05:00', '2018-12-31 23:56:00-05:00', # '2019-01-01 23:56:00-05:00'], # dtype='datetime64[ns, America/New_York]', name='date', freq=None) # data2 = pd.DataFrame([ {'date': pd.Timestamp(year=2019, month=1, day=1, tzinfo=tz), 'value': 10}, {'date': pd.Timestamp(year=2019, month=1, day=1, tzinfo=tz), 'value': 10}, {'date': pd.Timestamp(year=2019, month=1, day=2, tzinfo=tz), 'value': 20} ]).set_index('date') print(data2.index) # DatetimeIndex(['2019-01-01 00:00:00-05:00', '2019-01-01 00:00:00-05:00', # '2019-01-02 00:00:00-05:00'], # dtype='datetime64[ns, America/New_York]', name='date', freq=None) # ``` #### Problem description Creating index from python datetime object shifts time by n minutes depending on chosen timezone #### Expected Output Output for index created from datetime object should be same as created from Timestamp #### Similar Issues https://github.com/pandas-dev/pandas/issues/1676 https://github.com/pandas-dev/pandas/issues/1790 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: ac318d26cdbe3d10030f4863b84a06e938da9bba python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-46-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.0.dev0+327.gac318d26c pytest: None pip: 9.0.1 setuptools: 39.0.1 Cython: 0.29.6 numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: 0.999999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None 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/25897/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25897/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25898
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25898/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25898/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25898/events
https://github.com/pandas-dev/pandas/pull/25898
426,253,400
MDExOlB1bGxSZXF1ZXN0MjY1MTU2MjYw
25,898
TST: Check merging on equivalent CategoricalDtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "02d7e1", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-28T01:32:45Z
2019-03-29T00:51:21Z
2019-03-28T20:45:15Z
MEMBER
null
Closes #22501
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25898/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25898/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25898.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25898", "merged_at": "2019-03-28T20:45:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25898.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25898" }
https://api.github.com/repos/pandas-dev/pandas/issues/25899
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25899/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25899/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25899/events
https://github.com/pandas-dev/pandas/issues/25899
426,264,020
MDU6SXNzdWU0MjYyNjQwMjA=
25,899
Fix Type Annotations in pandas/_config/config.py
{ "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": "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": "ea91a4", "default": false, "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-28T02:21:13Z
2019-04-01T11:51:04Z
2019-04-01T11:51:04Z
MEMBER
null
Part of #25882 Current errors are as follows: ```sh pandas/_config/config.py:60: error: Need type annotation for '_deprecated_options' pandas/_config/config.py:61: error: Need type annotation for '_registered_options' pandas/_config/config.py:62: error: Need type annotation for '_global_config' ``` Should add annotations and remove this module from mypy.ini - think this is straightforward so community PR is certainly 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/25899/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25899/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25900
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25900/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25900/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25900/events
https://github.com/pandas-dev/pandas/pull/25900
426,268,042
MDExOlB1bGxSZXF1ZXN0MjY1MTY2MDU4
25,900
Remove pandas.io.formats.css from MyPy Blacklist
{ "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": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" }, { "color": "207de5", "default...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-28T02:37:56Z
2019-03-29T02:50:17Z
2019-03-28T21:29:10Z
MEMBER
null
There was a seemingly unused class variable which was failing mypy due to a lack of annotation. On closer inspection however it doesn't appear that this was even used, so I figured deletion makes things simpler. I suppose if this was subclassed it could have some effect but this isn't part of the exposed API @jnothman if you have any thoughts or objections
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25900/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25900/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25900.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25900", "merged_at": "2019-03-28T21:29:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25900.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25900" }
https://api.github.com/repos/pandas-dev/pandas/issues/25901
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25901/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25901/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25901/events
https://github.com/pandas-dev/pandas/issues/25901
426,282,499
MDU6SXNzdWU0MjYyODI0OTk=
25,901
Fix Type Annotations in pandas.core.generic
{ "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": "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": "ea91a4", "default": false, "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-03-28T03:39:42Z
2019-04-16T12:17:42Z
2019-04-16T12:17:42Z
MEMBER
null
Part of #25882 Current errors are as follows: ```sh pandas/core/generic.py:116: error: Need type annotation for '_accessors' pandas/core/generic.py:119: error: Need type annotation for '_metadata' ``` Both of these are containers which should contain strings, so just need proper annotation and this module can be removed from mypy.ini
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25901/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25901/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25902
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25902/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25902/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25902/events
https://github.com/pandas-dev/pandas/issues/25902
426,288,089
MDU6SXNzdWU0MjYyODgwODk=
25,902
Fix Type Annotations in pandas.core.strings
{ "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": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
0
2019-03-28T04:05:14Z
2019-04-03T20:31:40Z
2019-04-03T20:31:40Z
MEMBER
null
Pushing PR shortly
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25902/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25902/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25903
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25903/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25903/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25903/events
https://github.com/pandas-dev/pandas/pull/25903
426,288,481
MDExOlB1bGxSZXF1ZXN0MjY1MTc5Nzk1
25,903
CLN: Remove type definitions from pandas.compat
{ "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": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" }, { "color": "207de5", "defaul...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-28T04:07:05Z
2019-04-05T16:57:57Z
2019-03-29T12:20:43Z
MEMBER
null
- [X] xref #25725 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Removes the following: - `string_types` - `text_types` - `binary_types` - `string_and_binary_types` - `strlen` - only used once and in PY3 is equivalent to `len`, so just directly called `len` - `east_asian_len` - only called by `EastAsianTextAdjustment.len` in `pandas/io/formats/format.py` - directly implemented as `EastAsianTextAdjustment.len` 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/25903/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25903/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25903.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25903", "merged_at": "2019-03-29T12:20:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25903.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25903" }
https://api.github.com/repos/pandas-dev/pandas/issues/25904
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25904/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25904/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25904/events
https://github.com/pandas-dev/pandas/pull/25904
426,292,423
MDExOlB1bGxSZXF1ZXN0MjY1MTgyNDgx
25,904
Cleanup Typing in pandas.core.strings
{ "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": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-28T04:25:52Z
2020-01-16T00:34:14Z
2019-04-03T20:31:41Z
MEMBER
null
- [x] closes #25902 - [ ] tests added / passed - [ ] 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/25904/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25904/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25904.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25904", "merged_at": "2019-04-03T20:31:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25904.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25904" }
https://api.github.com/repos/pandas-dev/pandas/issues/25905
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25905/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25905/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25905/events
https://github.com/pandas-dev/pandas/issues/25905
426,301,681
MDU6SXNzdWU0MjYzMDE2ODE=
25,905
"errors" parameter has no effect on pd.DataFrame.astype if a dictionary is passed in as the dtype argument
{ "avatar_url": "https://avatars.githubusercontent.com/u/1085255?v=4", "events_url": "https://api.github.com/users/nandrea1/events{/privacy}", "followers_url": "https://api.github.com/users/nandrea1/followers", "following_url": "https://api.github.com/users/nandrea1/following{/other_user}", "gists_url": "https://api.github.com/users/nandrea1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nandrea1", "id": 1085255, "login": "nandrea1", "node_id": "MDQ6VXNlcjEwODUyNTU=", "organizations_url": "https://api.github.com/users/nandrea1/orgs", "received_events_url": "https://api.github.com/users/nandrea1/received_events", "repos_url": "https://api.github.com/users/nandrea1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nandrea1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nandrea1/subscriptions", "type": "User", "url": "https://api.github.com/users/nandrea1" }
[ { "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": "370f...
closed
false
null
[]
null
2
2019-03-28T05:11:11Z
2019-04-01T18:44:01Z
2019-04-01T18:44:01Z
NONE
null
#### Code Sample, a copy-pastable example if possible Given the code sample below: ```python data_df = pd.DataFrame([{'col_a': '1', 'col_b': '16.5%', 'col_c': 'test'}, {'col_a': '2.2', 'col_b': '15.3', 'col_c': 'another_test'} ]) type_dict = {'col_a': 'float64', 'col_b': 'float64', 'col_c': 'object} data_df = data_df.astype(dtype=type_dict, errors='ignore') ``` #### Problem description Pandas will raise the error `ValueError: could not convert string to float: '16.5%'` despite the fact that the `errors='ignore'` parameter was passed in. This is probable due to the implementation of `astype`, as can be seen in `pandas.core.generic.py` lines 5658 - 5680 ```python if is_dict_like(dtype): if self.ndim == 1: # i.e. Series if len(dtype) > 1 or self.name not in dtype: raise KeyError('Only the Series name can be used for ' 'the key in Series dtype mappings.') new_type = dtype[self.name] return self.astype(new_type, copy, errors, **kwargs) elif self.ndim > 2: raise NotImplementedError( 'astype() only accepts a dtype arg of type dict when ' 'invoked on Series and DataFrames. A single dtype must be ' 'specified when invoked on a Panel.' ) for col_name in dtype.keys(): if col_name not in self: raise KeyError('Only a column name can be used for the ' 'key in a dtype mappings argument.') results = [] for col_name, col in self.iteritems(): if col_name in dtype: results.append(col.astype(dtype[col_name], copy=copy)) else: results.append(results.append(col.copy() if copy else col)) ``` #### Expected Output One would expect the `pd.DataFrame` to successfully type cast, leaving the `col_b` as an `np.object` type
{ "+1": 4, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 4, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25905/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25905/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25906
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25906/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25906/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25906/events
https://github.com/pandas-dev/pandas/issues/25906
426,325,288
MDU6SXNzdWU0MjYzMjUyODg=
25,906
groupby-apply got different output with for loop in same action
{ "avatar_url": "https://avatars.githubusercontent.com/u/508885?v=4", "events_url": "https://api.github.com/users/princelai/events{/privacy}", "followers_url": "https://api.github.com/users/princelai/followers", "following_url": "https://api.github.com/users/princelai/following{/other_user}", "gists_url": "https://api.github.com/users/princelai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/princelai", "id": 508885, "login": "princelai", "node_id": "MDQ6VXNlcjUwODg4NQ==", "organizations_url": "https://api.github.com/users/princelai/orgs", "received_events_url": "https://api.github.com/users/princelai/received_events", "repos_url": "https://api.github.com/users/princelai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/princelai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/princelai/subscriptions", "type": "User", "url": "https://api.github.com/users/princelai" }
[ { "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": "0052cc", "default": false, "description": null, "id": ...
closed
false
null
[]
null
2
2019-03-28T06:45:10Z
2019-03-28T12:42:32Z
2019-03-28T12:42:16Z
NONE
null
#### data csv download link https://mega.nz/#!XjZWyYDT!EezOrZJglcwqytA5bIgc6-VoiEMGB7R0Tu8CG-QjV5w #### Problem description I have a Stock Time Series, I only take 4 ts_code(stock code) and other 3 useful columns to recurrent problem,you can download throgh link. #### read data ``` df = pd.read_csv('stock.csv', index_col='trade_date') df.index = pd.to_datetime(df.index) ``` #### problem code ``` dtday = df.groupby('ts_code').apply(lambda x: (x.MA1 > x.MA2) & (x.MA2 > x.MA3)) ``` #### right code ``` l = [] for k,v in df.groupby('ts_code'): v2 = (v.MA1 > v.MA2) & (v.MA2 > v.MA3) v2.name = k l.append(v2) dtday2 = pd.concat(l, axis=1).fillna(False).T ``` #### result 1 ``` print(dtday.sum(axis=1)) ts_code 000001.SZ 87 002624.SZ 62 002625.SZ 36 600519.SH 28 dtype: int64 ``` #### result 2 ``` print(dtday2.sum(axis=1)) 000001.SZ 87 002624.SZ 2 002625.SZ 44 600519.SH 39 dtype: int64 ``` you can plot the any stock line to verificate ``` df.loc[df['ts_code'] == '002625.SZ', ['MA1', 'MA2', "MA3"]].plot() ``` I only want to count how many day the MA1 > MA2 > MA3, I think that 2 code are exactly the same,but the result show NO. why? #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Linux OS-release: 4.19.30-1-MANJARO 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.0.3 setuptools: 40.8.0 Cython: 0.29.2 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.3.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: 4.3.2 bs4: 4.7.1 html5lib: None sqlalchemy: 1.3.1 pymysql: 0.9.3 psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None 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/25906/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25906/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25907
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25907/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25907/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25907/events
https://github.com/pandas-dev/pandas/pull/25907
426,429,899
MDExOlB1bGxSZXF1ZXN0MjY1MjgyNzYx
25,907
BUG: Fix groupby sorting on ordered Categoricals (GH25871)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2961313?v=4", "events_url": "https://api.github.com/users/kpflugshaupt/events{/privacy}", "followers_url": "https://api.github.com/users/kpflugshaupt/followers", "following_url": "https://api.github.com/users/kpflugshaupt/following{/other_user}", "gists_url": "https://api.github.com/users/kpflugshaupt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kpflugshaupt", "id": 2961313, "login": "kpflugshaupt", "node_id": "MDQ6VXNlcjI5NjEzMTM=", "organizations_url": "https://api.github.com/users/kpflugshaupt/orgs", "received_events_url": "https://api.github.com/users/kpflugshaupt/received_events", "repos_url": "https://api.github.com/users/kpflugshaupt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kpflugshaupt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kpflugshaupt/subscriptions", "type": "User", "url": "https://api.github.com/users/kpflugshaupt" }
[]
closed
false
null
[]
null
2
2019-03-28T11:02:24Z
2019-03-28T11:24:24Z
2019-03-28T11:24:24Z
CONTRIBUTOR
null
As documented in #25871, groupby() on an ordered Categorical messes up category order when 'observed=True' is specified. Specifically, group labels will be ordered by first occurrence (as for an unordered Categorical), but grouped aggregation results will retain the Categorical's order. The fix is a modified subset of #25173, which fixes a related case, but has not been merged yet. - [x] closes #25871 - [x] tests added / passed - [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/25907/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25907/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25907.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25907", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25907.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25907" }
https://api.github.com/repos/pandas-dev/pandas/issues/25908
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25908/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25908/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25908/events
https://github.com/pandas-dev/pandas/pull/25908
426,441,341
MDExOlB1bGxSZXF1ZXN0MjY1MjkxNjg5
25,908
BUG: Fix groupby sorting on ordered Categoricals (GH25871)
{ "avatar_url": "https://avatars.githubusercontent.com/u/2961313?v=4", "events_url": "https://api.github.com/users/kpflugshaupt/events{/privacy}", "followers_url": "https://api.github.com/users/kpflugshaupt/followers", "following_url": "https://api.github.com/users/kpflugshaupt/following{/other_user}", "gists_url": "https://api.github.com/users/kpflugshaupt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kpflugshaupt", "id": 2961313, "login": "kpflugshaupt", "node_id": "MDQ6VXNlcjI5NjEzMTM=", "organizations_url": "https://api.github.com/users/kpflugshaupt/orgs", "received_events_url": "https://api.github.com/users/kpflugshaupt/received_events", "repos_url": "https://api.github.com/users/kpflugshaupt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kpflugshaupt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kpflugshaupt/subscriptions", "type": "User", "url": "https://api.github.com/users/kpflugshaupt" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
16
2019-03-28T11:29:16Z
2019-04-05T09:33:48Z
2019-04-05T00:27:11Z
CONTRIBUTOR
null
As documented in #25871, groupby() on an ordered Categorical messes up category order when 'observed=True' is specified. Specifically, group labels will be ordered by first occurrence (as for an unordered Categorical), but grouped aggregation results will retain the Categorical's order. The fix is a modified subset of #25173, which fixes a related case, but has not been merged yet. - [x] closes #25871, also #25167 - [x] tests added / passed - [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/25908/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25908/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25908.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25908", "merged_at": "2019-04-05T00:27:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25908.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25908" }
https://api.github.com/repos/pandas-dev/pandas/issues/25909
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25909/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25909/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25909/events
https://github.com/pandas-dev/pandas/pull/25909
426,479,285
MDExOlB1bGxSZXF1ZXN0MjY1MzIxMjk0
25,909
Fix type annotation for pandas.core.generic.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/22582828?v=4", "events_url": "https://api.github.com/users/vaibhavhrt/events{/privacy}", "followers_url": "https://api.github.com/users/vaibhavhrt/followers", "following_url": "https://api.github.com/users/vaibhavhrt/following{/other_user}", "gists_url": "https://api.github.com/users/vaibhavhrt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vaibhavhrt", "id": 22582828, "login": "vaibhavhrt", "node_id": "MDQ6VXNlcjIyNTgyODI4", "organizations_url": "https://api.github.com/users/vaibhavhrt/orgs", "received_events_url": "https://api.github.com/users/vaibhavhrt/received_events", "repos_url": "https://api.github.com/users/vaibhavhrt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vaibhavhrt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vaibhavhrt/subscriptions", "type": "User", "url": "https://api.github.com/users/vaibhavhrt" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
17
2019-03-28T13:01:24Z
2019-04-16T12:21:01Z
2019-04-16T12:17:42Z
CONTRIBUTOR
null
Also remove this module from mypy.ini - [x] closes #25901 - [x] tests added / passed - [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/25909/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25909/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25909.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25909", "merged_at": "2019-04-16T12:17:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25909.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25909" }
https://api.github.com/repos/pandas-dev/pandas/issues/25910
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25910/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25910/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25910/events
https://github.com/pandas-dev/pandas/issues/25910
426,503,340
MDU6SXNzdWU0MjY1MDMzNDA=
25,910
CI: build failing because of gbq testing
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "0052cc", "default": false, "description": ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-03-28T13:50:47Z
2019-03-28T17:05:01Z
2019-03-28T16:54:57Z
CONTRIBUTOR
null
see https://github.com/pandas-dev/pandas/pull/25554#issuecomment-477602786 added back the gbq dep and this is now failing.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25910/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25910/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25911
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25911/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25911/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25911/events
https://github.com/pandas-dev/pandas/issues/25911
426,515,605
MDU6SXNzdWU0MjY1MTU2MDU=
25,911
Inner dictionaries are not displaying in insertion order
{ "avatar_url": "https://avatars.githubusercontent.com/u/214808?v=4", "events_url": "https://api.github.com/users/boardtc/events{/privacy}", "followers_url": "https://api.github.com/users/boardtc/followers", "following_url": "https://api.github.com/users/boardtc/following{/other_user}", "gists_url": "https://api.github.com/users/boardtc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/boardtc", "id": 214808, "login": "boardtc", "node_id": "MDQ6VXNlcjIxNDgwOA==", "organizations_url": "https://api.github.com/users/boardtc/orgs", "received_events_url": "https://api.github.com/users/boardtc/received_events", "repos_url": "https://api.github.com/users/boardtc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/boardtc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/boardtc/subscriptions", "type": "User", "url": "https://api.github.com/users/boardtc" }
[ { "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": "370f77", "default": false, "description": "DataFrame data structure...
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" }
4
2019-03-28T14:13:54Z
2019-05-28T10:48:54Z
2019-04-02T17:07:57Z
NONE
null
#### Code Sample ```python newspapers = {'Jim':{'Mon':15,'Tue':17,'Wed':21,'Thu':16,'Fri':19},\ 'Tony':{'Mon':8,'Tue':15,'Wed':11,'Thu':16,'Fri':13}, \ 'Colin':{'Mon':13,'Tue':17,'Wed':19,'Thu':17,'Fri':20} \ } newspapers_df = pd.DataFrame(newspapers) print(newspapers_df) ``` #### Problem description I am using a recent download of Anaconda with Python 3.7.1 & pandas 0.23.4 The [pandas doc](https://pandas-docs.github.io/pandas-docs-travis/getting_started/dsintro.html) says: > When the data is a dict, and an index is not passed, the Series index will be ordered by the dict’s insertion order I instantiate a pandas DataFrame from a dict with no index passed, and print outputs: #### Expected Output ```python Jim Tony Colin Mon 15 8 13 Tue 17 15 17 Wed 21 11 19 Thu 16 16 17 Fri 19 13 20 ``` #### Output of `0.23.4`` ```python Jim Tony Colin Fri 19 13 20 Mon 15 8 13 Thu 16 16 17 Tue 17 15 17 Wed 21 11 19 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25911/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25911/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25912
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25912/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25912/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25912/events
https://github.com/pandas-dev/pandas/pull/25912
426,516,731
MDExOlB1bGxSZXF1ZXN0MjY1MzUxMDE0
25,912
Fix pandas-gbq deps
{ "avatar_url": "https://avatars.githubusercontent.com/u/33685575?v=4", "events_url": "https://api.github.com/users/h-vetinari/events{/privacy}", "followers_url": "https://api.github.com/users/h-vetinari/followers", "following_url": "https://api.github.com/users/h-vetinari/following{/other_user}", "gists_url": "https://api.github.com/users/h-vetinari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/h-vetinari", "id": 33685575, "login": "h-vetinari", "node_id": "MDQ6VXNlcjMzNjg1NTc1", "organizations_url": "https://api.github.com/users/h-vetinari/orgs", "received_events_url": "https://api.github.com/users/h-vetinari/received_events", "repos_url": "https://api.github.com/users/h-vetinari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/h-vetinari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-vetinari/subscriptions", "type": "User", "url": "https://api.github.com/users/h-vetinari" }
[ { "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": "0052cc", "default": false, "description": ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-28T14:15:54Z
2019-03-28T17:48:21Z
2019-03-28T16:54:58Z
CONTRIBUTOR
null
Should close #25910, see https://github.com/pandas-dev/pandas/issues/25910#issuecomment-477611959. @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/25912/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25912/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25912.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25912", "merged_at": "2019-03-28T16:54:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25912.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25912" }