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/26613
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26613/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26613/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26613/events
https://github.com/pandas-dev/pandas/issues/26613
451,137,239
MDU6SXNzdWU0NTExMzcyMzk=
26,613
to_csv does not fail with specified columns not in dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/1170234?v=4", "events_url": "https://api.github.com/users/amcpherson/events{/privacy}", "followers_url": "https://api.github.com/users/amcpherson/followers", "following_url": "https://api.github.com/users/amcpherson/following{/other_user}", "gists_url": "https://api.github.com/users/amcpherson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amcpherson", "id": 1170234, "login": "amcpherson", "node_id": "MDQ6VXNlcjExNzAyMzQ=", "organizations_url": "https://api.github.com/users/amcpherson/orgs", "received_events_url": "https://api.github.com/users/amcpherson/received_events", "repos_url": "https://api.github.com/users/amcpherson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amcpherson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amcpherson/subscriptions", "type": "User", "url": "https://api.github.com/users/amcpherson" }
[]
closed
false
null
[]
null
3
2019-06-02T00:09:24Z
2020-02-18T03:44:15Z
2019-06-02T02:52:19Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python In [4]: data = pd.DataFrame({'a': [1, 2, 3]}) In [5]: data.to_csv('test.csv', columns=['a', 'x']) /Users/amcphers/Projects/scgenome/venv/lib/python3.7/site-packages/pandas/core/indexing.py:1494: FutureWarning: Passing list-likes to .loc or [] with any missing label will raise KeyError in the future, you can use .reindex() as an alternative. See the documentation here: https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike return self._getitem_tuple(key) ... $ head test.csv ,a,x 0,1, 1,2, 2,3, ``` #### Problem description The documentation specified that the columns kwarg is "Columns to write." If there is no matching column to write this would seem to warent an error of some kind. Instead an unrelated warning is printed. #### Expected Output An exception should be thrown. #### Output of ``pd.show_versions()`` <details> In [6]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Darwin OS-release: 16.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_CA.UTF-8 LOCALE: en_CA.UTF-8 pandas: 0.24.2 pytest: None pip: 19.1 setuptools: 41.0.1 Cython: 0.29 numpy: 1.16.2 scipy: 1.1.0 pyarrow: None xarray: None IPython: 5.8.0 sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 2.2.3 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/26613/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26613/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26614
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26614/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26614/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26614/events
https://github.com/pandas-dev/pandas/issues/26614
451,139,618
MDU6SXNzdWU0NTExMzk2MTg=
26,614
CI failing - All builds are failing on python 3.5 on pytest 4.6
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "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-06-02T00:51:22Z
2019-06-02T12:10:14Z
2019-06-02T12:10:14Z
MEMBER
null
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=12138 cc @pandas-dev/pandas-core
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26614/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26614/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26615
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26615/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26615/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26615/events
https://github.com/pandas-dev/pandas/issues/26615
451,145,042
MDU6SXNzdWU0NTExNDUwNDI=
26,615
Performance issue while groupby.shift if fill_value specified
{ "avatar_url": "https://avatars.githubusercontent.com/u/19474336?v=4", "events_url": "https://api.github.com/users/BeforeFlight/events{/privacy}", "followers_url": "https://api.github.com/users/BeforeFlight/followers", "following_url": "https://api.github.com/users/BeforeFlight/following{/other_user}", "gists_url": "https://api.github.com/users/BeforeFlight/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BeforeFlight", "id": 19474336, "login": "BeforeFlight", "node_id": "MDQ6VXNlcjE5NDc0MzM2", "organizations_url": "https://api.github.com/users/BeforeFlight/orgs", "received_events_url": "https://api.github.com/users/BeforeFlight/received_events", "repos_url": "https://api.github.com/users/BeforeFlight/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BeforeFlight/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BeforeFlight/subscriptions", "type": "User", "url": "https://api.github.com/users/BeforeFlight" }
[ { "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...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
6
2019-06-02T02:28:38Z
2021-07-28T22:55:13Z
2021-07-28T22:55:13Z
CONTRIBUTOR
null
Test code: ```python SIZE_MULT = 5 data = np.random.randint(0, 255, size=10**SIZE_MULT, dtype='uint8') index = pd.MultiIndex.from_product( [list(range(10**(SIZE_MULT-1))), list('ABCDEFGHIJ')], names = ['d', 'l']) test = pd.DataFrame(data, index, columns = ['data']) test.head() test['data'].dtype ``` ```python data d l 0 A 137 B 156 C 48 D 186 E 170 dtype('uint8') ``` And suppose we want group by 0-level of index and shift each group (shift step = 2, for example). ```python %%time shifted = test.groupby(axis=0, level=[0]).shift(2) print(shifted['data'].dtype) ``` ``` float64 CPU times: user 9.43 ms, sys: 56 Β΅s, total: 9.49 ms Wall time: 8.29 ms ``` Now to the problem: if we want to preserve our dtype 'uint8', we have to get rid of `None`s, and set our fill value with 0, for example. But we will get HUGE time of code execution now: ```python %%time shifted = test.groupby(axis=0, level=[0]).shift(2, fill_value = 0) shifted.head() print(shifted['data'].dtype) ``` ``` uint8 CPU times: user 5.9 s, sys: 38.4 ms, total: 5.94 s Wall time: 5.89 s ``` Expected time of execution should be comparable with following: If we take 1st shifted dataframe without `fill_value`, and add few code lines to achieve same result: ```python %%time shifted = test.groupby(axis=0, level=[0]).shift(2) shifted.fillna(0, inplace=True) shifted = shifted.astype(np.uint8) print(shifted['data'].dtype) ``` **Output:** ``` uint8 CPU times: user 9.64 ms, sys: 3.68 ms, total: 13.3 ms Wall time: 11.3 ms ``` It will add only few ms, not 5 seconds. <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Linux OS-release: 5.0.0-16-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: 4.5.0 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.7 numpy: 1.16.3 scipy: 1.2.1 pyarrow: None xarray: 0.12.1 IPython: 7.2.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: None tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10.1 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/26615/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26615/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26616
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26616/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26616/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26616/events
https://github.com/pandas-dev/pandas/issues/26616
451,151,909
MDU6SXNzdWU0NTExNTE5MDk=
26,616
Categorical type doesn't survive a round-trip through parquet
{ "avatar_url": "https://avatars.githubusercontent.com/u/12504708?v=4", "events_url": "https://api.github.com/users/karldw/events{/privacy}", "followers_url": "https://api.github.com/users/karldw/followers", "following_url": "https://api.github.com/users/karldw/following{/other_user}", "gists_url": "https://api.github.com/users/karldw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/karldw", "id": 12504708, "login": "karldw", "node_id": "MDQ6VXNlcjEyNTA0NzA4", "organizations_url": "https://api.github.com/users/karldw/orgs", "received_events_url": "https://api.github.com/users/karldw/received_events", "repos_url": "https://api.github.com/users/karldw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/karldw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/karldw/subscriptions", "type": "User", "url": "https://api.github.com/users/karldw" }
[ { "color": "5319e7", "default": false, "description": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" } ]
closed
false
null
[]
{ "closed_at": 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-06-02T04:31:14Z
2019-06-05T19:13:12Z
2019-06-02T17:03:47Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import pyarrow as pa df = pd.DataFrame({'x': pd.Categorical(['a', 'a', 'b', 'b'])}) df.dtypes # category # This works: pa.Table.from_pandas(df).to_pandas().dtypes # category df.to_parquet("categories.parquet") # This reads back object, but I expected category pd.read_parquet("categories.parquet").dtypes # object # Numeric categories have the same issue: df_num = pd.DataFrame({'x': pd.Categorical([1, 1, 2, 2])}) df_num.dtypes # category pa.Table.from_pandas(df_num).to_pandas().dtypes # category df_num.to_parquet("categories_num.parquet") # This reads back int64, but I expected category pd.read_parquet("categories_num.parquet").dtypes # int64 ``` #### Problem description Writing a string categorical variable to parquet is read back as string (`object` dtype). I expected it to be read as `category`. The same thing happens if the category is numeric -- a numeric category is read back as int64. In the code above, I tried out an in-memory arrow table, which successfully translates categories back to pandas. Please let me know if you think this is an issue with the arrow project rather than pandas. In the scheme of things, this isn't a big deal, but it's a small surprise. #### Expected Output I expected the data read by `pd.read_parquet` to be exactly the same as the data written by `df.to_parquet`. The values are the same, but the dtypes are not. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 5.0.0-15-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: 4.5.0 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.8 numpy: 1.16.4 scipy: 1.2.1 pyarrow: 0.11.1 xarray: None IPython: 7.5.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.1.0 openpyxl: 2.4.10 xlrd: 1.2.0 xlwt: None xlsxwriter: 1.1.8 lxml.etree: None bs4: None html5lib: None sqlalchemy: 1.3.3 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10.1 s3fs: None fastparquet: 0.3.0 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/26616/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26616/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26617
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26617/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26617/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26617/events
https://github.com/pandas-dev/pandas/pull/26617
451,170,818
MDExOlB1bGxSZXF1ZXN0Mjg0MzI4MTY3
26,617
PERF: custom ops for RangeIndex.[all|any|__contains__]
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "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": "e99695", "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-06-02T09:14:11Z
2019-06-19T13:43:48Z
2019-06-06T17:38:21Z
CONTRIBUTOR
null
- [x] xref #26565 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Follow-up to #26565. Make ``RangeIndex._data`` be created in fewer cases. Performance examples (but the larger gain is from memory savings by not creating the ``_data`` array): ```python >>> rng = pd.RangeIndex(-5_000_000, 0, 6) >>> %timeit rng.all() 789 Β΅s Β± 5.24 Β΅s per loop # master 216 ns Β± 0.957 ns per loop # this PR >>> %timeit rng.any() 763 Β΅s Β± 6.08 Β΅s per loop # master 124 ns Β± 9.15 ns per loop # this PR >>> %timeit (-2 in rng) 380 ns Β± 1.85 ns per loop # master 689 ns Β± 44.7 ns per loop # this PR, slightly slower ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26617/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26617/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26617.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26617", "merged_at": "2019-06-06T17:38:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26617.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26617" }
https://api.github.com/repos/pandas-dev/pandas/issues/26618
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26618/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26618/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26618/events
https://github.com/pandas-dev/pandas/issues/26618
451,173,400
MDU6SXNzdWU0NTExNzM0MDA=
26,618
All builds are failing on python 3.5
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
1
2019-06-02T09:46:56Z
2019-06-02T10:23:21Z
2019-06-02T10:23:21Z
CONTRIBUTOR
null
It seems like all PRs are currently failing on "macOS py35_macos" and "Linux py35_compat". I assume this must be a Python 3.5 failure, though I haven't been able to verify that, as I can't seem to be able to build pandas with Python 3.5 locally. (So I can't fix this either, as everything works fine on my Python3.7).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26618/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26618/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26619
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26619/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26619/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26619/events
https://github.com/pandas-dev/pandas/pull/26619
451,177,906
MDExOlB1bGxSZXF1ZXN0Mjg0MzMyODEy
26,619
CI: pin pytest version on Python 3.5
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "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-06-02T10:44:29Z
2019-06-03T11:15:59Z
2019-06-02T11:47:35Z
MEMBER
null
closes #26614
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26619/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26619/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26619.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26619", "merged_at": "2019-06-02T11:47:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26619.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26619" }
https://api.github.com/repos/pandas-dev/pandas/issues/26620
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26620/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26620/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26620/events
https://github.com/pandas-dev/pandas/pull/26620
451,181,365
MDExOlB1bGxSZXF1ZXN0Mjg0MzM1MjMx
26,620
[CI] Add pytest-azurepipelines in ​pandas-dev
{ "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": "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" }
8
2019-06-02T11:28:58Z
2019-06-28T14:12:45Z
2019-06-28T14:12:24Z
CONTRIBUTOR
null
- closes #26601 Is it better to put `pip install pytest-azurepipelines` inside `setup_env.sh`?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26620/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26620/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26620.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26620", "merged_at": "2019-06-28T14:12:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26620.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26620" }
https://api.github.com/repos/pandas-dev/pandas/issues/26621
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26621/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26621/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26621/events
https://github.com/pandas-dev/pandas/pull/26621
451,204,784
MDExOlB1bGxSZXF1ZXN0Mjg0MzUxMDI0
26,621
DOC/CI: restore travis CI doc build environment
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "a2bca7", "default": false, "description": "Continuous Integratio...
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-06-02T15:38:29Z
2019-06-03T07:28:29Z
2019-06-03T05:35:26Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/pull/26591#issuecomment-498040997 This is one option (adding back the specific doc build environment yml file), another option would be to actually update the main `environment.yaml` file to be suitable for the doc build. At the moment, my preference is to add back the separate yml file because 1) those additional dependencies are not necessarily needed for a dev env setup, and just makes that env even more heavy and 2) we might want to pin to certain versions from time to time for the doc build (eg we should consider pinning sphinx to < 2.0, which is not necessarily needed for all contributors to do as well). Another thing is that this env could actually use an update (eg python 3.6 -> 3.7) cc @datapythonista
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26621/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26621/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26621.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26621", "merged_at": "2019-06-03T05:35:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26621.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26621" }
https://api.github.com/repos/pandas-dev/pandas/issues/26622
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26622/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26622/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26622/events
https://github.com/pandas-dev/pandas/issues/26622
451,222,698
MDU6SXNzdWU0NTEyMjI2OTg=
26,622
pd.MultiIndex.isin doesn't validate input correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/2263641?v=4", "events_url": "https://api.github.com/users/telamonian/events{/privacy}", "followers_url": "https://api.github.com/users/telamonian/followers", "following_url": "https://api.github.com/users/telamonian/following{/other_user}", "gists_url": "https://api.github.com/users/telamonian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/telamonian", "id": 2263641, "login": "telamonian", "node_id": "MDQ6VXNlcjIyNjM2NDE=", "organizations_url": "https://api.github.com/users/telamonian/orgs", "received_events_url": "https://api.github.com/users/telamonian/received_events", "repos_url": "https://api.github.com/users/telamonian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/telamonian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/telamonian/subscriptions", "type": "User", "url": "https://api.github.com/users/telamonian" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrect or improved er...
open
false
null
[]
null
0
2019-06-02T18:56:12Z
2021-07-10T02:12:40Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python mix = pd.MultiIndex.from_product([['foo', 'bar'], ['one', 'two'], ['A', 'B']]) mix.isin([('foo', 'one', 'B'), ('bar', 'two', 'A')]) # returns `[False, True, False, False, False, False, True, False]` mix.isin([('bar',), ('foo', 'one', 'B'), ('bar',)]) # should raise, returns [False, True, False, False, False, False, False, False] instead ``` #### Problem description I got bit this morning by some improperly structured arguments for `MultiIndex.isin`. It turns out that as long as one value in the input `values` is the right length, `isin` doesn't care if every other value is too short. On the other hand, `isin` will error out in many other cases relating to the lengths of elements of `input`. With respect to my above example, these all raise an error: ```python mix.isin([('foo', 'one'), ('bar', 'two')]) # raises `ValueError: Length of names must match number of levels in MultiIndex.` mix.isin([('foo', 'one', 'B'), ('bar', 'two', 'A', 'alpha')]) # raises `ValueError: Length of names ...` mix.isin([('bar',), ('foo', 'one', 'B'), ('bar', 'two', 'A', 'alpha')]) # raises `ValueError: Length of names ...` ``` but this hot mess executes normally: ```python mix.isin([('foo', 'one', 'B'), *(('bar',),)*33]) # returns [False, True, False, False, False, False, False, False] ``` I'd like to see two fixes: - If elements of `values` are too short, `isin` should raise an error, just like it does in cases when elements are too long. - The current error message for invalid value length is a little confusing, since it refers to `Length of names`, even though `names` isn't an argument for `isin`. It turns out the reason for this is that the error is raised by the function `_set_names` during the construction of a new `MultiIndex` that `isin` uses to do validation. I'll submit a PR
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26622/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26622/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26623
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26623/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26623/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26623/events
https://github.com/pandas-dev/pandas/pull/26623
451,223,552
MDExOlB1bGxSZXF1ZXN0Mjg0MzYzNTQw
26,623
fixes #26622: pd.MultiIndex.isin should fail when input args are too short
{ "avatar_url": "https://avatars.githubusercontent.com/u/2263641?v=4", "events_url": "https://api.github.com/users/telamonian/events{/privacy}", "followers_url": "https://api.github.com/users/telamonian/followers", "following_url": "https://api.github.com/users/telamonian/following{/other_user}", "gists_url": "https://api.github.com/users/telamonian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/telamonian", "id": 2263641, "login": "telamonian", "node_id": "MDQ6VXNlcjIyNjM2NDE=", "organizations_url": "https://api.github.com/users/telamonian/orgs", "received_events_url": "https://api.github.com/users/telamonian/received_events", "repos_url": "https://api.github.com/users/telamonian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/telamonian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/telamonian/subscriptions", "type": "User", "url": "https://api.github.com/users/telamonian" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207d...
closed
false
null
[]
null
9
2019-06-02T19:05:18Z
2019-11-07T23:34:43Z
2019-11-07T23:34:42Z
NONE
null
- [x] closes #26622 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This fixes #26622 by making `pd.MultiIndex.isin` fail when input args are too short, as well as when they are too long (the current behavior). It also replaces existing error message with something a little bit clearly and more directly related to `isin` and its parameters. Currently, `isin` does some validation by [constructing a new `MultiIndex` and then taking its `values`](https://github.com/pandas-dev/pandas/blob/addc5fcd95064b765d4ee4260304d44822fdee3b/pandas/core/indexes/multi.py#L3178): values = MultiIndex.from_tuples(values, names=self.names).values Though the code I wrote should handle all validation relating to the length of the elements of `values`, I left this line in since I was unsure if it was validating/fixing anything else. Does anyone know if that line is safe to remove 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/26623/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26623/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26623.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26623", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26623.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26623" }
https://api.github.com/repos/pandas-dev/pandas/issues/26624
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26624/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26624/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26624/events
https://github.com/pandas-dev/pandas/pull/26624
451,229,279
MDExOlB1bGxSZXF1ZXN0Mjg0MzY3MzQ3
26,624
DOC: Tidy documentation about plotting Series histograms
{ "avatar_url": "https://avatars.githubusercontent.com/u/23633545?v=4", "events_url": "https://api.github.com/users/iamshwin/events{/privacy}", "followers_url": "https://api.github.com/users/iamshwin/followers", "following_url": "https://api.github.com/users/iamshwin/following{/other_user}", "gists_url": "https://api.github.com/users/iamshwin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/iamshwin", "id": 23633545, "login": "iamshwin", "node_id": "MDQ6VXNlcjIzNjMzNTQ1", "organizations_url": "https://api.github.com/users/iamshwin/orgs", "received_events_url": "https://api.github.com/users/iamshwin/received_events", "repos_url": "https://api.github.com/users/iamshwin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/iamshwin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iamshwin/subscriptions", "type": "User", "url": "https://api.github.com/users/iamshwin" }
[ { "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" }
1
2019-06-02T20:05:46Z
2019-06-02T23:11:53Z
2019-06-02T23:11:49Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26624/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26624/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26624.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26624", "merged_at": "2019-06-02T23:11:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26624.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26624" }
https://api.github.com/repos/pandas-dev/pandas/issues/26625
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26625/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26625/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26625/events
https://github.com/pandas-dev/pandas/pull/26625
451,250,854
MDExOlB1bGxSZXF1ZXN0Mjg0MzgyNDcy
26,625
Unpin pytest
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "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
[]
null
8
2019-06-03T00:13:26Z
2019-12-25T20:21:41Z
2019-06-05T00:20:48Z
CONTRIBUTOR
null
Follow up from #26619. Since pytest have just done a point release for 4.6.1 we should be good to remove the pin. https://github.com/pytest-dev/pytest/issues/5358 cc @simonjayhawkins
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26625/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26625/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26625.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26625", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26625.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26625" }
https://api.github.com/repos/pandas-dev/pandas/issues/26626
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26626/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26626/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26626/events
https://github.com/pandas-dev/pandas/issues/26626
451,252,808
MDU6SXNzdWU0NTEyNTI4MDg=
26,626
Setup python 3.8 builds
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "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": "207de5", "default": false, ...
closed
false
null
[]
{ "closed_at": "2019-10-19T17:01:24Z", "closed_issues": 52, "created_at": "2019-08-23T11:48:40Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }, "description": "on-merge: backport to 0.25.x", "due_on": "2019-10-15T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/66", "id": 4597769, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66/labels", "node_id": "MDk6TWlsZXN0b25lNDU5Nzc2OQ==", "number": 66, "open_issues": 0, "state": "closed", "title": "0.25.2", "updated_at": "2019-10-19T17:01:24Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/66" }
5
2019-06-03T00:29:23Z
2019-10-15T11:38:53Z
2019-10-15T11:38:53Z
CONTRIBUTOR
null
As the python 3.8 release date draws closer ( currently [scheduled](https://www.python.org/dev/peps/pep-0569/#release-schedule) for October this year ). I was wondering if we want to set up python3.8 builds? Given the 3.8 dev branch is available on [travis](https://docs.travis-ci.com/user/languages/python/) and shortly [azure](https://github.com/Microsoft/azure-pipelines-image-generation/issues/905). Might be abit early for this - but it will mean we can catch any potential issues early + support python 3.8 upon release date. Related issues: https://github.com/pandas-dev/pandas/issues/22714 I am happy to work on this - but would be good to get people's thoughts first. 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/26626/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26626/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26627
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26627/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26627/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26627/events
https://github.com/pandas-dev/pandas/pull/26627
451,340,308
MDExOlB1bGxSZXF1ZXN0Mjg0NDQ5OTI1
26,627
DOC/CI: Removing Panel specific code from validate_docstrings.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
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" }
2
2019-06-03T07:51:31Z
2019-06-04T11:23:43Z
2019-06-04T11:23:42Z
MEMBER
null
- [X] xref #25632 - [ ] 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/26627/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26627/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26627.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26627", "merged_at": "2019-06-04T11:23:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26627.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26627" }
https://api.github.com/repos/pandas-dev/pandas/issues/26628
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26628/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26628/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26628/events
https://github.com/pandas-dev/pandas/pull/26628
451,343,546
MDExOlB1bGxSZXF1ZXN0Mjg0NDUyNDM2
26,628
ENH: Support multiple opening hours intervals for BusinessHour
{ "avatar_url": "https://avatars.githubusercontent.com/u/3800802?v=4", "events_url": "https://api.github.com/users/howsiwei/events{/privacy}", "followers_url": "https://api.github.com/users/howsiwei/followers", "following_url": "https://api.github.com/users/howsiwei/following{/other_user}", "gists_url": "https://api.github.com/users/howsiwei/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/howsiwei", "id": 3800802, "login": "howsiwei", "node_id": "MDQ6VXNlcjM4MDA4MDI=", "organizations_url": "https://api.github.com/users/howsiwei/orgs", "received_events_url": "https://api.github.com/users/howsiwei/received_events", "repos_url": "https://api.github.com/users/howsiwei/repos", "site_admin": false, "starred_url": "https://api.github.com/users/howsiwei/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/howsiwei/subscriptions", "type": "User", "url": "https://api.github.com/users/howsiwei" }
[ { "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": "AFEEEE", "default": false, "description": null, ...
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-06-03T08:00:14Z
2019-06-28T14:10:28Z
2019-06-28T14:10:21Z
CONTRIBUTOR
null
- [x] closes #15481 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I'm not sure why, but after rebasing on latest master my previous PR #26400 is automatically closed. So I created a new PR here. I have edited as per all the comments there.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26628/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26628/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26628.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26628", "merged_at": "2019-06-28T14:10:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26628.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26628" }
https://api.github.com/repos/pandas-dev/pandas/issues/26629
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26629/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26629/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26629/events
https://github.com/pandas-dev/pandas/issues/26629
451,459,790
MDU6SXNzdWU0NTE0NTk3OTA=
26,629
Appender Causing MyPy Issues
{ "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" }
3
2019-06-03T12:38:30Z
2019-11-08T00:25:46Z
2019-11-08T00:24:45Z
MEMBER
null
ref https://github.com/pandas-dev/pandas/pull/26414#issuecomment-498224395 it appears that mypy and the Appender may not be playing nice together. A solution to this may be tucked away in https://github.com/python/mypy/issues/3157
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26629/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26629/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26630
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26630/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26630/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26630/events
https://github.com/pandas-dev/pandas/issues/26630
451,502,152
MDU6SXNzdWU0NTE1MDIxNTI=
26,630
pandas Series apply returns dtype:datetime though convert_dtype is set to False
{ "avatar_url": "https://avatars.githubusercontent.com/u/1278660?v=4", "events_url": "https://api.github.com/users/MarcelBeining/events{/privacy}", "followers_url": "https://api.github.com/users/MarcelBeining/followers", "following_url": "https://api.github.com/users/MarcelBeining/following{/other_user}", "gists_url": "https://api.github.com/users/MarcelBeining/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarcelBeining", "id": 1278660, "login": "MarcelBeining", "node_id": "MDQ6VXNlcjEyNzg2NjA=", "organizations_url": "https://api.github.com/users/MarcelBeining/orgs", "received_events_url": "https://api.github.com/users/MarcelBeining/received_events", "repos_url": "https://api.github.com/users/MarcelBeining/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarcelBeining/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarcelBeining/subscriptions", "type": "User", "url": "https://api.github.com/users/MarcelBeining" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, ...
open
false
null
[]
null
5
2019-06-03T14:03:03Z
2020-04-02T04:34:49Z
null
NONE
null
pandas version 0.24.2 #### Code Sample, a copy-pastable example if possible ```python import pandas as pd import datetime thisdf = pd.DataFrame({'date':['12.01.1999','','28.04.2012']}) def parseDate(date): try: return datetime.datetime.strptime(date,'%d.%m.%Y') except Exception: return None print(thisdf.date.apply(parseDate, convert_dtype=False)) ``` Output: ``` 0 1999-01-12 1 NaT 2 2012-04-28 Name: date, dtype: datetime64[ns] ``` #### Problem description I want to parse a pandas Series containing strings to datetime using the above function `parseDate`. The important thing is that `None` values **must not** be converted to `NaT` because I put it into a SQLAlchemy database afterwards which only recognizes `None` values as NULL. Hence the returned Series must be of `dtype object`. However, all methods I tried return the Series with `dtype: datetime64[ns]` after parsing. The solution of #14559 (using `.astype(object)` after the apply) does not help because the `NaT` values are still `NaT` values instead of None. Of course I could do another round of transformation after that but looping through twice does not seem very performant to me. Any help appreciated . #### Expected Output A pandas Series with dtype=object #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None 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: 1.2.1 pyarrow: None xarray: None IPython: 7.4.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.5.1 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: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26630/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26630/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26631
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26631/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26631/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26631/events
https://github.com/pandas-dev/pandas/pull/26631
451,509,661
MDExOlB1bGxSZXF1ZXN0Mjg0NTg1NTQ2
26,631
ENH: Added stride/offset aliases in to_datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/297142?v=4", "events_url": "https://api.github.com/users/timcera/events{/privacy}", "followers_url": "https://api.github.com/users/timcera/followers", "following_url": "https://api.github.com/users/timcera/following{/other_user}", "gists_url": "https://api.github.com/users/timcera/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/timcera", "id": 297142, "login": "timcera", "node_id": "MDQ6VXNlcjI5NzE0Mg==", "organizations_url": "https://api.github.com/users/timcera/orgs", "received_events_url": "https://api.github.com/users/timcera/received_events", "repos_url": "https://api.github.com/users/timcera/repos", "site_admin": false, "starred_url": "https://api.github.com/users/timcera/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/timcera/subscriptions", "type": "User", "url": "https://api.github.com/users/timcera" }
[ { "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": "AFEEEE", "default": false, "description": null, ...
closed
false
null
[]
null
15
2019-06-03T14:17:30Z
2019-10-06T23:45:16Z
2019-10-06T23:45:16Z
CONTRIBUTOR
null
Added support for stride and offset aliases to the 'unit' keyword in 'to_datetime'. Documented support for additional 'unit' intervals that were available. - [ ] closes #xxxx - [ ] 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/26631/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26631/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26631.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26631", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26631.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26631" }
https://api.github.com/repos/pandas-dev/pandas/issues/26632
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26632/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26632/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26632/events
https://github.com/pandas-dev/pandas/issues/26632
451,518,758
MDU6SXNzdWU0NTE1MTg3NTg=
26,632
pd.DataFrame.replace regression causes dtype to remain object
{ "avatar_url": "https://avatars.githubusercontent.com/u/5553636?v=4", "events_url": "https://api.github.com/users/Kjili/events{/privacy}", "followers_url": "https://api.github.com/users/Kjili/followers", "following_url": "https://api.github.com/users/Kjili/following{/other_user}", "gists_url": "https://api.github.com/users/Kjili/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Kjili", "id": 5553636, "login": "Kjili", "node_id": "MDQ6VXNlcjU1NTM2MzY=", "organizations_url": "https://api.github.com/users/Kjili/orgs", "received_events_url": "https://api.github.com/users/Kjili/received_events", "repos_url": "https://api.github.com/users/Kjili/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Kjili/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Kjili/subscriptions", "type": "User", "url": "https://api.github.com/users/Kjili" }
[ { "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...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
8
2019-06-03T14:34:31Z
2019-11-20T05:13:38Z
2019-11-20T05:13:38Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd # broken after pandas 0.23.4 if only "a" is replaced def return_replace(initial): return initial.replace({"a": 1.0, "b": 0.0}) # working def return_replace_just_one(initial): return initial.replace({"a": 1.0}) # the following should all be float64 print("problem:", return_replace(pd.DataFrame(["a"])).dtypes[0]) print("works:", return_replace(pd.DataFrame(["b"])).dtypes[0]) print("works:", return_replace_just_one(pd.DataFrame(["a"])).dtypes[0]) print("works:", return_replace(pd.DataFrame(["a", "b"])).dtypes[0]) ``` #### Problem description The behaviour shown above is inconsistent and hard to spot. In my case, it broke one of my tests due to mismatching types (as I was expecting a float64). The problem seems to involve a regression when upgrading from pandas 0.23.4 to any later version (tested with 0.24.0, 0.24.1 and 0.24.2, all of which have the same issue). Returning back to the old behaviour of changing the type also in the first case where it fails above (i.e. changing the type whenever possible?) would be more consistent and not require a manual type definition. This is probably related to https://github.com/pandas-dev/pandas/issues/23305. #### Expected Output ``` problem: float64 works: float64 works: float64 works: float64 ``` #### Output of ``pd.show_versions()`` Note: The below is for the working version of pandas! <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Linux OS-release: 5.1.6-arch1-1-ARCH machine: x86_64 processor: byteorder: little LC_ALL: None LANG: de_DE.UTF-8 LOCALE: de_DE.UTF-8 pandas: 0.23.4 pytest: 4.4.2 pip: 19.1.1 setuptools: 41.0.1 Cython: None numpy: 1.16.4 scipy: 1.3.0 pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.1.0 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None 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/26632/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26632/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26633
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26633/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26633/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26633/events
https://github.com/pandas-dev/pandas/pull/26633
451,521,083
MDExOlB1bGxSZXF1ZXN0Mjg0NTk0ODEy
26,633
[TST] Fix test_quantile_interpolation_int
{ "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": "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-06-03T14:38:45Z
2019-06-05T07:22:31Z
2019-06-05T07:22:09Z
CONTRIBUTOR
null
Follow up https://github.com/pandas-dev/pandas/pull/26556#discussion_r289056741
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26633/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26633/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26633.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26633", "merged_at": "2019-06-05T07:22:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26633.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26633" }
https://api.github.com/repos/pandas-dev/pandas/issues/26634
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26634/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26634/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26634/events
https://github.com/pandas-dev/pandas/pull/26634
451,525,559
MDExOlB1bGxSZXF1ZXN0Mjg0NTk4NDU2
26,634
#26545 Fix: same .tsv file, get different data-frame structure using engine 'python' and 'c'
{ "avatar_url": "https://avatars.githubusercontent.com/u/41421345?v=4", "events_url": "https://api.github.com/users/LuckyDenis/events{/privacy}", "followers_url": "https://api.github.com/users/LuckyDenis/followers", "following_url": "https://api.github.com/users/LuckyDenis/following{/other_user}", "gists_url": "https://api.github.com/users/LuckyDenis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LuckyDenis", "id": 41421345, "login": "LuckyDenis", "node_id": "MDQ6VXNlcjQxNDIxMzQ1", "organizations_url": "https://api.github.com/users/LuckyDenis/orgs", "received_events_url": "https://api.github.com/users/LuckyDenis/received_events", "repos_url": "https://api.github.com/users/LuckyDenis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LuckyDenis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LuckyDenis/subscriptions", "type": "User", "url": "https://api.github.com/users/LuckyDenis" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "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-06-03T14:46:46Z
2019-06-13T18:08:53Z
2019-06-12T18:40:48Z
CONTRIBUTOR
null
- [x] closes #26545 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry BugFix: When using `engine='python'`, columns were handled incorrectly if the first header had in the bom. Bug: ``` In [1]: import pandas as pd In [2]: pd.read_csv('test.txt', engine='python', delimiter='\t') Out[2]: Empty DataFrame Columns: [Project ID] Index: [] In [3]: pd.read_csv('test.txt', engine='python', delimiter='\t').shape Out[3]: (0, 1) In [4]: pd.read_csv('test.txt', delimiter='\t') Out[4]: Empty DataFrame Columns: [Project ID, Project Name, Product Name] Index: [] In [5]: pd.read_csv('test, delimiter='\t').shape Out[5]: (0, 3) ``` Fix: ``` In [1]: import pandas as pd In [2]: pd.read_csv('test.txt', engine='python', delimiter='\t') Out[2]: Empty DataFrame Columns: [Project ID, Project Name, Product Name] Index: [] In [3]: pd.read_csv('test.txt', engine='python', delimiter='\t').shape Out[3]: (0, 3) In [4]: pd.read_csv('test.txt', delimiter='\t') Out[4]: Empty DataFrame Columns: [Project ID, Project Name, Product Name] Index: [] In [5]: pd.read_csv('test, delimiter='\t').shape Out[5]: (0, 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/26634/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26634/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26634.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26634", "merged_at": "2019-06-12T18:40:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26634.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26634" }
https://api.github.com/repos/pandas-dev/pandas/issues/26635
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26635/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26635/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26635/events
https://github.com/pandas-dev/pandas/pull/26635
451,588,316
MDExOlB1bGxSZXF1ZXN0Mjg0NjQ4OTYz
26,635
CLN/API: clean-up of level argument of isin for indexes
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": nu...
closed
false
null
[]
null
6
2019-06-03T16:55:43Z
2019-06-09T17:51:30Z
2019-06-03T19:59:48Z
MEMBER
null
The docstring for Index.isin() states: ``` level : str or int, optional Name or position of the index level to use (if the index is a `MultiIndex`). ``` But the keyword is accepted by the other indexes, validated and raises if the level parameter does not match the only level in the index. This PR removes the levels argument from the indexes (except MultiIndex) Series.isin() and DataFrame.isin() do not have a level parameter, so isin for indexes will be consistent. The implementation for MultiIndex.isin is independent from Index.isin, so i think that a separate docstring for MultiIndex would be much clearer. (but out of scope for this PR) The docstring for datetimelike indexes does not include the level parameter but is not part of the published api, so has been removed to avoid confusion. NOTE: This is not a change to the api, but a clean-up to match the api to the published api.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26635/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26635/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26635.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26635", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26635.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26635" }
https://api.github.com/repos/pandas-dev/pandas/issues/26636
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26636/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26636/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26636/events
https://github.com/pandas-dev/pandas/issues/26636
451,596,098
MDU6SXNzdWU0NTE1OTYwOTg=
26,636
Enhancement request: read_html() parameter to control contents of DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/16766302?v=4", "events_url": "https://api.github.com/users/thedatadoc/events{/privacy}", "followers_url": "https://api.github.com/users/thedatadoc/followers", "following_url": "https://api.github.com/users/thedatadoc/following{/other_user}", "gists_url": "https://api.github.com/users/thedatadoc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/thedatadoc", "id": 16766302, "login": "thedatadoc", "node_id": "MDQ6VXNlcjE2NzY2MzAy", "organizations_url": "https://api.github.com/users/thedatadoc/orgs", "received_events_url": "https://api.github.com/users/thedatadoc/received_events", "repos_url": "https://api.github.com/users/thedatadoc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/thedatadoc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thedatadoc/subscriptions", "type": "User", "url": "https://api.github.com/users/thedatadoc" }
[ { "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": "006b75", "default": false, "description": "read_htm...
open
false
null
[]
null
20
2019-06-03T17:15:18Z
2021-10-11T09:16:30Z
null
NONE
null
The current read_html() method is useful when parsing simple tables, however in practice, not every html table has been created with simple parsing in mind. It is often required that we identify the type or purpose of data in a table cell. HTML tables generally express information this via the assignment of a CSS class name to a th or td element. I propose an optional read_html() string parameter called "get_attribute" that indicates if the parser should get the text of the cell or if it should get the value of an attribute. If get_attribute is None, behavior of read_html() is the same as its current functionality: th/td cell values will be read into the dataframe. If it is a string value, read_html() will retrieve attribute values rather than cell text. If a th or td element has no matching attribute, the value returned is None. I would use this functionality as follows: ``` myTableData = pandas.read_html( table )[ 0 ] myTableClasses = pandas.read_html( table, get_attribute = 'class' )[ 0 ] ``` The dataframe myTableClasses would contain information that I could use to map cell styling to the values in myTableData. I imagine it could be useful for other types of information as well, conveyed via other attributes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26636/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26636/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26637
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26637/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26637/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26637/events
https://github.com/pandas-dev/pandas/issues/26637
451,628,388
MDU6SXNzdWU0NTE2MjgzODg=
26,637
Improve docs for pandas_version in Dataframe to_json(orient='table')
{ "avatar_url": "https://avatars.githubusercontent.com/u/1915210?v=4", "events_url": "https://api.github.com/users/shsnyder/events{/privacy}", "followers_url": "https://api.github.com/users/shsnyder/followers", "following_url": "https://api.github.com/users/shsnyder/following{/other_user}", "gists_url": "https://api.github.com/users/shsnyder/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shsnyder", "id": 1915210, "login": "shsnyder", "node_id": "MDQ6VXNlcjE5MTUyMTA=", "organizations_url": "https://api.github.com/users/shsnyder/orgs", "received_events_url": "https://api.github.com/users/shsnyder/received_events", "repos_url": "https://api.github.com/users/shsnyder/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shsnyder/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shsnyder/subscriptions", "type": "User", "url": "https://api.github.com/users/shsnyder" }
[ { "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": "207de5", "default": false, "description": "read_json, to_json, j...
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
7
2019-06-03T18:36:16Z
2020-10-14T12:33:58Z
2020-10-14T12:33:58Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here import pandas as pd df = pd.DataFrame({'A': [1,2,3], 'B': [4,5,6], 'C': [7,8,9] }) df.to_json(orient='table', index='False') ``` #### Problem description I was attempting to serialize a dataframe and omit the indexes. In the generated JSON the indexes remained and the pandas_version value in the JSON was "0.20.0" The results I obtained on Windows 10 and MacOS 10.14.5 was: {"schema": {"fields":[{"name":"values","type":"integer"},{"name":"A","type":"integer"},{"name":"B","type":"integer"},{"name":"C","type":"integer"}],"primaryKey":[null]**,"pandas_version":"0.20.0"}**, "data": [{"index":0,"A":1,"B":4,"C":7},{"index":1,"A":2,"B":5,"C":8},{"index":2,"A":3,"B":6,"C":9}]}' [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 {"schema": {"fields":[{"name":"values","type":"integer"},{"name":"A","type":"integer"},{"name":"B","type":"integer"},{"name":"C","type":"integer"}],"primaryKey":[null],"pandas_version":"0.24.2"}, "data": [{"A":1,"B":4,"C":7},{"A":2,"B":5,"C":8},{"A":3,"B":6,"C":9}]}' #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None 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: 1.2.1 pyarrow: None xarray: None IPython: 7.4.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.5.1 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: 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/26637/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26637/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26638
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26638/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26638/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26638/events
https://github.com/pandas-dev/pandas/pull/26638
451,695,731
MDExOlB1bGxSZXF1ZXN0Mjg0NzM1ODU0
26,638
DOC: Minor doc cleanup because of Panel removal
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "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" }
2
2019-06-03T21:22:48Z
2019-06-03T22:17:46Z
2019-06-03T22:17:41Z
CONTRIBUTOR
null
"Other data structures..." is not usuful anymore, as ``Panel`` and ``Panel4D`` are have been removed for the code base, Plus other small stuff.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26638/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26638/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26638.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26638", "merged_at": "2019-06-03T22:17:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26638.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26638" }
https://api.github.com/repos/pandas-dev/pandas/issues/26639
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26639/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26639/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26639/events
https://github.com/pandas-dev/pandas/issues/26639
451,695,929
MDU6SXNzdWU0NTE2OTU5Mjk=
26,639
Possible performance regression in 9a42cbe85461c28417a5130bc80b035044c5575a
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "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"...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
17
2019-06-03T21:23:24Z
2019-12-30T17:45:24Z
2019-12-30T17:45:24Z
CONTRIBUTOR
null
Possible regression in https://github.com/pandas-dev/pandas/commit/9a42cbe85461c28417a5130bc80b035044c5575a ASV: http://pandas.pydata.org/speed/pandas/index.html#strings.Methods.time_normalize?commits=9a42cbe85461c28417a5130bc80b035044c5575a A bunch of benchmarks are ~20% slower. Not sure if that was talked about in the issue. cc @h-vetinari
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26639/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26639/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26640
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26640/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26640/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26640/events
https://github.com/pandas-dev/pandas/issues/26640
451,697,600
MDU6SXNzdWU0NTE2OTc2MDA=
26,640
Investigate performance regression in TimeSeries.infer_freq
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "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": "0052cc", "default"...
open
false
null
[]
null
2
2019-06-03T21:27:49Z
2021-07-10T02:15:40Z
null
CONTRIBUTOR
null
A whole bunch of them: - [ ] InferFreq: http://pandas.pydata.org/speed/pandas/index.html#timeseries.InferFreq.time_infer_freq?commits=9c5165e26260483ae64300c4d98939bf575aab7e-8154efb0c1a64295cf54e00025b4ab09bcd02752&p-freq=%27D%27 - [ ] DatetimeIndex http://pandas.pydata.org/speed/pandas/index.html#timeseries.DatetimeIndex.time_timeseries_is_month_start?commits=9c5165e26260483ae64300c4d98939bf575aab7e-8154efb0c1a64295cf54e00025b4ab09bcd02752&p-index_type=%27repeated%27 - [ ] offsets.ApplyIndex: http://pandas.pydata.org/speed/pandas/index.html#offset.ApplyIndex.time_apply_index?p-offset=%3CMonthEnd%3E&commits=9c5165e26260483ae64300c4d98939bf575aab7e-8154efb0c1a64295cf54e00025b4ab09bcd02752 - [ ] io.json.ToJSON.time_delta_int_tstamp: http://pandas.pydata.org/speed/pandas/index.html#io.json.ToJSON.time_delta_int_tstamp?p-orient=%27columns%27&commits=9c5165e26260483ae64300c4d98939bf575aab7e-8154efb0c1a64295cf54e00025b4ab09bcd02752 - [ ] index_object.Indexing.time_get('String')?: http://pandas.pydata.org/speed/pandas/index.html#index_object.Indexing.time_get?commits=9c5165e26260483ae64300c4d98939bf575aab7e-8154efb0c1a64295cf54e00025b4ab09bcd02752&p-dtype=%27String%27 - [ ] http://pandas.pydata.org/speed/pandas/index.html#groupby.GroupByMethods.time_dtype_as_group?commits=9c5165e26260483ae64300c4d98939bf575aab7e-8154efb0c1a64295cf54e00025b4ab09bcd02752&p-method=%27all%27&p-application=%27transformation%27&p-dtype=%27datetime%27 - [ ] http://pandas.pydata.org/speed/pandas/index.html#gil.ParallelDatetimeFields.time_datetime_to_period?commits=9c5165e26260483ae64300c4d98939bf575aab7e-8154efb0c1a64295cf54e00025b4ab09bcd02752 Unfortunately, the benchmark machine was down for ~1 week (we lost power during a storm, and I forgot to turn it back on). The window is https://github.com/pandas-dev/pandas/compare/9c5165e26260483ae64300c4d98939bf575aab7e...8154efb0c1a64295cf54e00025b4ab09bcd02752.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26640/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26640/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26641
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26641/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26641/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26641/events
https://github.com/pandas-dev/pandas/pull/26641
451,737,923
MDExOlB1bGxSZXF1ZXN0Mjg0NzcwMDIy
26,641
Remove NDFrame.select
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "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": "20...
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-06-03T23:56:09Z
2019-06-05T09:06:32Z
2019-06-04T23:59:02Z
CONTRIBUTOR
null
- [x] xref #17633 - [x] whatsnew entry Removes ``NDFrame.select``, that was deprecated in 0.21.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26641/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26641/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26641.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26641", "merged_at": "2019-06-04T23:59:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26641.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26641" }
https://api.github.com/repos/pandas-dev/pandas/issues/26642
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26642/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26642/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26642/events
https://github.com/pandas-dev/pandas/issues/26642
451,742,755
MDU6SXNzdWU0NTE3NDI3NTU=
26,642
Rename NDFrame.filter to .select?
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "R...
open
false
null
[]
null
6
2019-06-04T00:19:28Z
2021-07-10T02:18:03Z
null
CONTRIBUTOR
null
I've made a PR to remove ``NDFrame.select``, see #26641. That method was deprecated in 0.21. There was a discussion in #12401, where many participants agreed that removing the old ``select`` and having ``NDFrame.filter`` renamed to ``NDFrame.select`` would be a better naming scheme. I agree on that for several of the reasons mentioned in the thread. What do people think of such a name change and a related deprecation of the name (not functionality) ``.filter``?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26642/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26642/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26643
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26643/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26643/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26643/events
https://github.com/pandas-dev/pandas/pull/26643
451,744,247
MDExOlB1bGxSZXF1ZXN0Mjg0Nzc1MDcw
26,643
DOC: Small whatsnew cleanups
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "207de5", "default": false, "description": null, "id": 211029...
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" }
2
2019-06-04T00:27:07Z
2019-06-04T02:22:47Z
2019-06-04T01:23:50Z
MEMBER
null
Some small fixes I noticed reading over the whatsnew
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26643/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26643/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26643.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26643", "merged_at": "2019-06-04T01:23:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26643.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26643" }
https://api.github.com/repos/pandas-dev/pandas/issues/26644
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26644/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26644/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26644/events
https://github.com/pandas-dev/pandas/pull/26644
451,932,212
MDExOlB1bGxSZXF1ZXN0Mjg0OTIxNTgw
26,644
PLEASE IGNORE: Testing CI of plot refactoring #26414
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[]
closed
false
null
[]
null
0
2019-06-04T11:02:17Z
2019-06-06T10:14:10Z
2019-06-06T10:14:10Z
MEMBER
null
This PR is not intended to be merged. The refactoring of plotting #26414 (splitting matplotlib specific code from the rest) is generating some weird errors in the CI that can't be reproduced locally. Will be pushing here some tests to try to understand what's going on.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26644/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26644/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26644.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26644", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26644.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26644" }
https://api.github.com/repos/pandas-dev/pandas/issues/26645
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26645/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26645/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26645/events
https://github.com/pandas-dev/pandas/pull/26645
451,953,662
MDExOlB1bGxSZXF1ZXN0Mjg0OTM4OTky
26,645
MyPy.ini Make Import Machinery Explicit
{ "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
[]
null
14
2019-06-04T11:56:04Z
2020-01-16T00:34:50Z
2019-07-02T15:09:04Z
MEMBER
null
Now that we've wound down a lot of the mistyped annotations in the code base the next logical review point is our import machinery. Previously we used `ignore_missing_imports` for everything in the code base, but this is suggested by Mypy only as a last resort: https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports This PR makes the missing imports explicit. Third party libraries I think we'll have to keep until they become available in typeshed. Internal imports may be resolved through either stubfiles or internal import machinery (would need review as follow ups)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26645/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26645/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26645.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26645", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26645.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26645" }
https://api.github.com/repos/pandas-dev/pandas/issues/26646
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26646/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26646/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26646/events
https://github.com/pandas-dev/pandas/pull/26646
452,041,973
MDExOlB1bGxSZXF1ZXN0Mjg1MDEwMjIz
26,646
catch iterator input in io.json.json_normalize
{ "avatar_url": "https://avatars.githubusercontent.com/u/8099328?v=4", "events_url": "https://api.github.com/users/msteijaert/events{/privacy}", "followers_url": "https://api.github.com/users/msteijaert/followers", "following_url": "https://api.github.com/users/msteijaert/following{/other_user}", "gists_url": "https://api.github.com/users/msteijaert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/msteijaert", "id": 8099328, "login": "msteijaert", "node_id": "MDQ6VXNlcjgwOTkzMjg=", "organizations_url": "https://api.github.com/users/msteijaert/orgs", "received_events_url": "https://api.github.com/users/msteijaert/received_events", "repos_url": "https://api.github.com/users/msteijaert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/msteijaert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/msteijaert/subscriptions", "type": "User", "url": "https://api.github.com/users/msteijaert" }
[]
closed
false
null
[]
null
6
2019-06-04T14:49:14Z
2019-06-04T17:24:15Z
2019-06-04T17:24:14Z
NONE
null
The data argument in json_normalize should be an dictionary or list of dictionaries. If an iterator is passed, unexpected behavior can occur. In particular, this will result in the loss of the first row. See https://stackoverflow.com/questions/56362810/missing-first-document-when-loading-multi-document-yaml-file-in-pandas-dataframe. In my proposal, an error is thrown. Alternatively, the iterator could be turned into a list: ``` if data is iter(data): data = [x for x in data] ``` - [ ] 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/26646/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26646/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26646.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26646", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26646.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26646" }
https://api.github.com/repos/pandas-dev/pandas/issues/26647
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26647/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26647/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26647/events
https://github.com/pandas-dev/pandas/issues/26647
452,051,892
MDU6SXNzdWU0NTIwNTE4OTI=
26,647
json_normalize Support for Generators
{ "avatar_url": "https://avatars.githubusercontent.com/u/8099328?v=4", "events_url": "https://api.github.com/users/msteijaert/events{/privacy}", "followers_url": "https://api.github.com/users/msteijaert/followers", "following_url": "https://api.github.com/users/msteijaert/following{/other_user}", "gists_url": "https://api.github.com/users/msteijaert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/msteijaert", "id": 8099328, "login": "msteijaert", "node_id": "MDQ6VXNlcjgwOTkzMjg=", "organizations_url": "https://api.github.com/users/msteijaert/orgs", "received_events_url": "https://api.github.com/users/msteijaert/received_events", "repos_url": "https://api.github.com/users/msteijaert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/msteijaert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/msteijaert/subscriptions", "type": "User", "url": "https://api.github.com/users/msteijaert" }
[ { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
null
7
2019-06-04T15:06:31Z
2020-08-08T21:15:17Z
2020-04-17T00:17:16Z
NONE
null
The data argument in json_normalize requires be an dictionary or list of dictionaries. If an iterator is passed, unexpected behavior can occur. In particular, this will result in the loss of the first row. See https://stackoverflow.com/questions/56362810/missing-first-document-when-loading-multi-document-yaml-file-in-pandas-dataframe. I think this should be catched, either by throwing an error (as proposed in https://github.com/pandas-dev/pandas/pull/26646) or by ensuring that the output for the iterator is the same as for the list created by "materializing" the iterator.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26647/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26647/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26648
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26648/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26648/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26648/events
https://github.com/pandas-dev/pandas/pull/26648
452,093,680
MDExOlB1bGxSZXF1ZXN0Mjg1MDUyMTcx
26,648
CI/DOC: Building the documentation with azure-pipelines
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
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-06-04T16:29:15Z
2019-06-13T10:07:14Z
2019-06-13T08:54:38Z
MEMBER
null
- [X] xref #22766, #26574 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Looks like the problem in #26591 was that the `HostName` input of the azure task that installs the key, is not the host name, but the `know_hosts` line for the host name where to push. I set up azure-pipelines in my pandas branch, to be able to see the `master` builds and avoid surprises, and this branch is successfully pushing the docs to https://dev.pandas.io @TomAugspurger since there were differences between the travis docs dependencies and `environment.yml` I think it makes more sense to change and use `environment.yml` here, so we can detect and fix any problem while we still have the travis docs, and then simply remove the travis docs dependencies with the build when we are happy with this. @jorisvandenbossche the `ImportError` for `pyarrow` doesn't seem to be because `pyarrow` is not in `environment.yml`, it is. There is something weird with that, need to have a look.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26648/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26648/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26648.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26648", "merged_at": "2019-06-13T08:54:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26648.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26648" }
https://api.github.com/repos/pandas-dev/pandas/issues/26649
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26649/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26649/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26649/events
https://github.com/pandas-dev/pandas/issues/26649
452,134,838
MDU6SXNzdWU0NTIxMzQ4Mzg=
26,649
merge_asof with one tz-aware datetime "by" parameter and another parameter raises
{ "avatar_url": "https://avatars.githubusercontent.com/u/80800?v=4", "events_url": "https://api.github.com/users/0x26res/events{/privacy}", "followers_url": "https://api.github.com/users/0x26res/followers", "following_url": "https://api.github.com/users/0x26res/following{/other_user}", "gists_url": "https://api.github.com/users/0x26res/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/0x26res", "id": 80800, "login": "0x26res", "node_id": "MDQ6VXNlcjgwODAw", "organizations_url": "https://api.github.com/users/0x26res/orgs", "received_events_url": "https://api.github.com/users/0x26res/received_events", "repos_url": "https://api.github.com/users/0x26res/repos", "site_admin": false, "starred_url": "https://api.github.com/users/0x26res/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/0x26res/subscriptions", "type": "User", "url": "https://api.github.com/users/0x26res" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
null
[]
{ "closed_at": "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-06-04T18:08:00Z
2019-07-05T14:29:35Z
2019-07-05T14:29:35Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd left = pd.DataFrame({ 'by_col1': pd.DatetimeIndex(['2018-01-01']).tz_localize('UTC'), 'by_col2': ['HELLO'], 'on_col': [2], 'value': ['a']}) right = pd.DataFrame({ 'by_col1': pd.DatetimeIndex(['2018-01-01']).tz_localize('UTC'), 'by_col2': ['WORLD'], 'on_col': [1], 'value': ['b']}) pd.merge_asof(left, right, by=['by_col1', 'by_col2'], on='on_col') ``` #### Problem description This is very similar to: https://github.com/pandas-dev/pandas/issues/21184 The only difference is that the `merge_asof` `by` is made of 2 columns (instead of one): * one is tz-aware * the other one is something else (string, number etc...) When running this, I get: ``` Traceback (most recent call last): File "test.py", line 13, in <module> pd.merge_asof(left, right, by=['by_col1', 'by_col2'], on='on_col') File "myenv/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 462, in merge_asof return op.get_result() File "myenv/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 1256, in get_result join_index, left_indexer, right_indexer = self._get_join_info() File "myenv/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 756, in _get_join_info right_indexer) = self._get_join_indexers() File "myenv/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 1504, in _get_join_indexers left_by_values = flip(left_by_values) File "myenv/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 1457, in flip return np.array(lzip(*xs), labeled_dtypes) File "myenv/lib/python3.6/site-packages/pandas/core/dtypes/dtypes.py", line 150, in __repr__ return str(self) File "myenv/lib/python3.6/site-packages/pandas/core/dtypes/dtypes.py", line 129, in __str__ return self.__unicode__() File "myenv/lib/python3.6/site-packages/pandas/core/dtypes/dtypes.py", line 704, in __unicode__ return "datetime64[{unit}, {tz}]".format(unit=self.unit, tz=self.tz) SystemError: PyEval_EvalFrameEx returned a result with an error set ``` #### Expected Output I expect the merge_asof to work, and pick up the by column accordingly #### Output of ``0.24.2`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-862.3.3.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.5.0 pip: 19.1.1 setuptools: 40.8.0 Cython: 0.28.5 numpy: 1.16.4 scipy: 1.1.0 pyarrow: 0.12.1 xarray: None IPython: 7.3.0 sphinx: 1.4.6 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.5.3 xlrd: None xlwt: None xlsxwriter: None lxml.etree: 4.3.1 bs4: None html5lib: None sqlalchemy: 1.2.18 pymysql: None psycopg2: 2.7.1 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 0.7.0 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/26649/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26649/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26650
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26650/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26650/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26650/events
https://github.com/pandas-dev/pandas/issues/26650
452,152,980
MDU6SXNzdWU0NTIxNTI5ODA=
26,650
Handle numpy.matmul in DataFrame.__array_ufunc__
{ "avatar_url": "https://avatars.githubusercontent.com/u/48369202?v=4", "events_url": "https://api.github.com/users/nate-bryant/events{/privacy}", "followers_url": "https://api.github.com/users/nate-bryant/followers", "following_url": "https://api.github.com/users/nate-bryant/following{/other_user}", "gists_url": "https://api.github.com/users/nate-bryant/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nate-bryant", "id": 48369202, "login": "nate-bryant", "node_id": "MDQ6VXNlcjQ4MzY5MjAy", "organizations_url": "https://api.github.com/users/nate-bryant/orgs", "received_events_url": "https://api.github.com/users/nate-bryant/received_events", "repos_url": "https://api.github.com/users/nate-bryant/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nate-bryant/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nate-bryant/subscriptions", "type": "User", "url": "https://api.github.com/users/nate-bryant" }
[ { "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...
open
false
null
[]
null
3
2019-06-04T18:51:44Z
2021-07-10T02:19:53Z
null
NONE
null
#### Code Sample ```python import pandas as pd import numpy as np d = {'col1': [0.0037448, -0.002455324, 0.003062666, 0.000768503, 0.002309015]} df = pd.DataFrame(data=d) dfT = df.T np.matmul(dfT, df) ``` #### Problem description Issue originally raised here: https://github.com/numpy/numpy/issues/13712. In version 1.16 of NumPy ```np.matmul``` was implemented as a ufunc which caused compatibility issues with pandas. I get an error when trying to use ```np.matmul``` with single dimension pandas DataFrames. In the linked issue someone suggested that ```DataFrame.__array_ufunc__``` needs to handle ```numpy.matmul```. Here is the error message I receive when running the sample code: ``` Traceback (most recent call last): File "MatmulBugTest.py", line 8, in <module> np.matmul(dfT, df) File "C:\Users\bryant_n\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\generic.py", line 1909, in __array_wrap__ return self._constructor(result, **d).__finalize__(self) File "C:\Users\bryant_n\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\frame.py", line 424, in __init__ copy=copy) File "C:\Users\bryant_n\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 167, in init_ndarray return create_block_manager_from_blocks([values], [columns, index]) File "C:\Users\bryant_n\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 1660, in create_block_manager_from_blocks construction_error(tot_items, blocks[0].shape[1:], axes, e) File "C:\Users\bryant_n\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 1691, in construction_error passed, implied)) ValueError: Shape of passed values is (1, 1), indices imply (1, 5) ``` #### Expected Output Expected output of sample code is ```array([[3.53542131e-05]])```. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.0.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 pytest: 3.8.0 pip: 19.1 setuptools: 40.2.0 Cython: 0.28.5 numpy: 1.16.3 scipy: 1.1.0 pyarrow: None xarray: None IPython: 6.5.0 sphinx: 1.7.9 patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 2.2.3 openpyxl: 2.5.6 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.1.0 lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.11 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/26650/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26650/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26651
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26651/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26651/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26651/events
https://github.com/pandas-dev/pandas/pull/26651
452,207,835
MDExOlB1bGxSZXF1ZXN0Mjg1MTQ0MTQy
26,651
BUG: avoid overflow in Bday generate_range, closes #24252
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "0052...
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" }
11
2019-06-04T21:05:19Z
2019-06-21T02:13:48Z
2019-06-21T02:02:00Z
MEMBER
null
- [x] closes #24252 - [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/26651/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26651/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26651.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26651", "merged_at": "2019-06-21T02:02:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26651.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26651" }
https://api.github.com/repos/pandas-dev/pandas/issues/26652
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26652/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26652/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26652/events
https://github.com/pandas-dev/pandas/pull/26652
452,291,901
MDExOlB1bGxSZXF1ZXN0Mjg1MjA5ODA0
26,652
Allow operator overloading for custom classes to return custom objects
{ "avatar_url": "https://avatars.githubusercontent.com/u/767425?v=4", "events_url": "https://api.github.com/users/mhsekhavat/events{/privacy}", "followers_url": "https://api.github.com/users/mhsekhavat/followers", "following_url": "https://api.github.com/users/mhsekhavat/following{/other_user}", "gists_url": "https://api.github.com/users/mhsekhavat/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mhsekhavat", "id": 767425, "login": "mhsekhavat", "node_id": "MDQ6VXNlcjc2NzQyNQ==", "organizations_url": "https://api.github.com/users/mhsekhavat/orgs", "received_events_url": "https://api.github.com/users/mhsekhavat/received_events", "repos_url": "https://api.github.com/users/mhsekhavat/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mhsekhavat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhsekhavat/subscriptions", "type": "User", "url": "https://api.github.com/users/mhsekhavat" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
null
10
2019-06-05T02:50:15Z
2019-07-11T16:11:58Z
2019-07-11T16:11:57Z
NONE
null
Uses a similar convention as numpy's ufunc overriding mechanism (https://docs.scipy.org/doc/numpy-1.13.0/neps/ufunc-overrides.html) to fix #22255 - [x] closes #22255 - [ ] 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/26652/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26652/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26652.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26652", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26652.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26652" }
https://api.github.com/repos/pandas-dev/pandas/issues/26653
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26653/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26653/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26653/events
https://github.com/pandas-dev/pandas/pull/26653
452,336,018
MDExOlB1bGxSZXF1ZXN0Mjg1MjQzNTc5
26,653
Update Accessors URL for PdVega package.
{ "avatar_url": "https://avatars.githubusercontent.com/u/69084?v=4", "events_url": "https://api.github.com/users/shawnbrown/events{/privacy}", "followers_url": "https://api.github.com/users/shawnbrown/followers", "following_url": "https://api.github.com/users/shawnbrown/following{/other_user}", "gists_url": "https://api.github.com/users/shawnbrown/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shawnbrown", "id": 69084, "login": "shawnbrown", "node_id": "MDQ6VXNlcjY5MDg0", "organizations_url": "https://api.github.com/users/shawnbrown/orgs", "received_events_url": "https://api.github.com/users/shawnbrown/received_events", "repos_url": "https://api.github.com/users/shawnbrown/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shawnbrown/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shawnbrown/subscriptions", "type": "User", "url": "https://api.github.com/users/shawnbrown" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "8AE234", "default": false, "description": null, "id": 241332...
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-06-05T06:34:50Z
2019-06-05T11:53:41Z
2019-06-05T11:53:41Z
CONTRIBUTOR
null
See altair-viz/pdvega@7476a8a26b for 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/26653/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26653/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26653.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26653", "merged_at": "2019-06-05T11:53:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26653.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26653" }
https://api.github.com/repos/pandas-dev/pandas/issues/26654
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26654/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26654/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26654/events
https://github.com/pandas-dev/pandas/pull/26654
452,395,594
MDExOlB1bGxSZXF1ZXN0Mjg1Mjg5NTUw
26,654
DEPR: Deprecate NDFrame.swapaxes
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "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": "5319e7", "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-06-05T09:16:18Z
2019-06-05T23:47:57Z
2019-06-05T23:47:57Z
CONTRIBUTOR
null
- [x] xref #18262 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``.swapaxes`` are not needed, now that ``Panel`` is being removed.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26654/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26654/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26654.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26654", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26654.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26654" }
https://api.github.com/repos/pandas-dev/pandas/issues/26655
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26655/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26655/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26655/events
https://github.com/pandas-dev/pandas/pull/26655
452,404,273
MDExOlB1bGxSZXF1ZXN0Mjg1Mjk2NDc2
26,655
Remove redundant check arr_or_dtype is None
{ "avatar_url": "https://avatars.githubusercontent.com/u/50622389?v=4", "events_url": "https://api.github.com/users/AlexTereshenkov/events{/privacy}", "followers_url": "https://api.github.com/users/AlexTereshenkov/followers", "following_url": "https://api.github.com/users/AlexTereshenkov/following{/other_user}", "gists_url": "https://api.github.com/users/AlexTereshenkov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexTereshenkov", "id": 50622389, "login": "AlexTereshenkov", "node_id": "MDQ6VXNlcjUwNjIyMzg5", "organizations_url": "https://api.github.com/users/AlexTereshenkov/orgs", "received_events_url": "https://api.github.com/users/AlexTereshenkov/received_events", "repos_url": "https://api.github.com/users/AlexTereshenkov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexTereshenkov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexTereshenkov/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexTereshenkov" }
[ { "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" }
9
2019-06-05T09:35:43Z
2019-06-05T21:53:15Z
2019-06-05T21:37:55Z
CONTRIBUTOR
null
- [ X ] tests passed - [ X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Checking whether `if arr_or_dtype is None` is done in the beginning of the function so the following check is redundant and can be safely removed. This issue (among a few others) were flagged up by LGTM.com website: https://lgtm.com/projects/g/pandas-dev/pandas/alerts/?mode=tree. Some of the other numerical computing repositories have been analyzed there as well such as [numpy](https://lgtm.com/projects/g/numpy/numpy/alerts/?mode=tree) and [scipy](https://lgtm.com/projects/g/scipy/scipy/alerts/?mode=tree). If you like, you can use LGTM for automatically reviewing code in pull requests. Here's an example of how Google's AMPHTML use that to flag up security vulnerabilities in their code base: ampproject/amphtml#13060. (full disclosure: I'm a huge fan of `pandas` and also part of the team that runs LGTM.com)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26655/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26655/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26655.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26655", "merged_at": "2019-06-05T21:37:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26655.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26655" }
https://api.github.com/repos/pandas-dev/pandas/issues/26656
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26656/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26656/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26656/events
https://github.com/pandas-dev/pandas/issues/26656
452,438,504
MDU6SXNzdWU0NTI0Mzg1MDQ=
26,656
CI/DOC: pyarrow ImportError when using environment.yml to build the docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
closed
false
null
[]
null
3
2019-06-05T10:57:40Z
2019-06-13T13:23:48Z
2019-06-13T13:23:48Z
MEMBER
null
In #26648, when we tried to use `environment.yml` to build the docs in azure instead of `ci/deps/travis-36-docs.yaml`, we found that `pyarrow` couldn't be imported, and it failed with the next error : ``` ImportError: /home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pyarrow/lib.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow6Status8ToStringB5cxx11Ev ``` There are few differences between the created environments, like Python 3.6 vs 3.7, arrow-cpp being installed from defaults vs conda-forge... But it's unclear what's the exact problem or what is causing it. Ideally, we'd like to use `environment.yml` to build the docs, so the environment is exactly the same as the local installations we use. What we need to do is: - Identify what is causing the error - Implement the required changes so `pyarrow` can be imported - Replace `ci/deps/travis-36-docs.yaml` by `environment.yml` in the doc builds in Travis and Azure.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26656/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26656/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26657
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26657/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26657/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26657/events
https://github.com/pandas-dev/pandas/pull/26657
452,444,632
MDExOlB1bGxSZXF1ZXN0Mjg1MzI5MDIx
26,657
DEPS: Adding missing doc dependencies to environment.yml
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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": "d93f0b", "default": false, "description": "Required and optional...
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-06-05T11:13:22Z
2019-06-05T13:36:09Z
2019-06-05T12:46:38Z
MEMBER
null
In #26648 we detected that `environment.yml` didn't contain some of the dependencies required to build the documentation. `environment.yml` is what we use to build the documentation locally. Adding them here. CC: @jorisvandenbossche
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26657/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26657/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26657.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26657", "merged_at": "2019-06-05T12:46:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26657.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26657" }
https://api.github.com/repos/pandas-dev/pandas/issues/26658
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26658/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26658/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26658/events
https://github.com/pandas-dev/pandas/issues/26658
452,456,401
MDU6SXNzdWU0NTI0NTY0MDE=
26,658
loc allows different length boolean indexer
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
null
0
2019-06-05T11:44:26Z
2019-06-26T19:48:44Z
2019-06-26T19:48:44Z
CONTRIBUTOR
null
Is this a bug, or deliberate? ```python In [45]: a.loc[[True, False]] # too few? Out[45]: a 1 dtype: int64 In [46]: a.loc[[True, False, True, False, False]] # too many? Out[46]: a 1 c 3 dtype: int64 ``` The fact that we raise here, when we have too many true values makes me think this is a bug ```python In [53]: a.loc[[True, False, True, False, True]] --------------------------------------------------------------------------- IndexError Traceback (most recent call last) ~/Envs/dask-dev/lib/python3.7/site-packages/pandas/core/indexing.py in _getbool_axis(self, key, axis) 1517 try: -> 1518 return self.obj._take(inds, axis=axis) 1519 except Exception as detail: ~/Envs/dask-dev/lib/python3.7/site-packages/pandas/core/series.py in _take(self, indices, axis, is_copy) 3925 indices = ensure_platform_int(indices) -> 3926 new_index = self.index.take(indices) 3927 ~/Envs/dask-dev/lib/python3.7/site-packages/pandas/core/indexes/base.py in take(self, indices, axis, allow_fill, fill_value, **kwargs) 793 fill_value=fill_value, --> 794 na_value=self._na_value) 795 else: ~/Envs/dask-dev/lib/python3.7/site-packages/pandas/core/indexes/base.py in _assert_take_fillable(self, values, indices, allow_fill, fill_value, na_value) 819 else: --> 820 taken = values.take(indices) 821 return taken IndexError: index 4 is out of bounds for axis 0 with size 3 During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) <ipython-input-53-9fd96bbd72ce> in <module> ----> 1 a.loc[[True, False, True, False, True]] ~/Envs/dask-dev/lib/python3.7/site-packages/pandas/core/indexing.py in __getitem__(self, key) 1498 1499 maybe_callable = com.apply_if_callable(key, self.obj) -> 1500 return self._getitem_axis(maybe_callable, axis=axis) 1501 1502 def _is_scalar_access(self, key): ~/Envs/dask-dev/lib/python3.7/site-packages/pandas/core/indexing.py in _getitem_axis(self, key, axis) 1867 return self._get_slice_axis(key, axis=axis) 1868 elif com.is_bool_indexer(key): -> 1869 return self._getbool_axis(key, axis=axis) 1870 elif is_list_like_indexer(key): 1871 ~/Envs/dask-dev/lib/python3.7/site-packages/pandas/core/indexing.py in _getbool_axis(self, key, axis) 1518 return self.obj._take(inds, axis=axis) 1519 except Exception as detail: -> 1520 raise self._exception(detail) 1521 1522 def _get_slice_axis(self, slice_obj, axis=None): KeyError: IndexError('index 4 is out of bounds for axis 0 with size 3') ``` In the docs at http://pandas-docs.github.io/pandas-docs-travis/user_guide/indexing.html#boolean-indexing we say > You may select rows from a DataFrame using a boolean vector the same length as the DataFrame’s index Note that this only affects `.loc`. `Series.__getitem__` and `DataFrame.__getitem__` are unaffected.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26658/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26658/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26659
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26659/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26659/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26659/events
https://github.com/pandas-dev/pandas/issues/26659
452,491,566
MDU6SXNzdWU0NTI0OTE1NjY=
26,659
DEPS: Group dependencies and provide information of why they are required
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "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-06-05T13:08:15Z
2019-06-06T15:46:22Z
2019-06-06T15:46:22Z
MEMBER
null
Our dependencies file `environment.yml` (https://github.com/pandas-dev/pandas/blob/master/environment.yml) is growing, and it's difficult to keep track on what each dependency is required for, and if there is any that can be removed. We already provide some groups: - required: pandas requires them to work - development: they are used by pandas contributors and CI, but not by pandas itself - optional: pandas can use them if they are installed (e.g. `fastparquet` will be used if `pandas.read_parquet()` is called, but it's not required otherwise) But those don't provide enough information, and could be improved. Also, not sure if the current division is correct, for example `nbsphinx` should probably be in `development`, I don't think pandas uses it. Some groups we could have are: - testing (e.g. `pytest`, `hypothesis`,...) - documentation (e.g. `sphinx`, `numpydoc`,...) - code checks, see `ci/code_checks.sh` (e.g. `flake8`, `mypy`, `isort`,...) And for the optional, I'd personally add a comment for the ones that make sense to inform in which part of pandas they are used, for example: ``` - fastparquet>=0.2.1 # pandas.read_parquet, DataFrame.to_parquet - matplotlib>=2.2.2 # DataFrame.plot, Series.plot, pandas.plotting ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26659/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26659/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26660
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26660/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26660/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26660/events
https://github.com/pandas-dev/pandas/issues/26660
452,509,070
MDU6SXNzdWU0NTI1MDkwNzA=
26,660
Indices of df.describe(percentiles=np.linspace(...)) are mix of integers and decimal numbers
{ "avatar_url": "https://avatars.githubusercontent.com/u/24897067?v=4", "events_url": "https://api.github.com/users/jkovacevic/events{/privacy}", "followers_url": "https://api.github.com/users/jkovacevic/followers", "following_url": "https://api.github.com/users/jkovacevic/following{/other_user}", "gists_url": "https://api.github.com/users/jkovacevic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jkovacevic", "id": 24897067, "login": "jkovacevic", "node_id": "MDQ6VXNlcjI0ODk3MDY3", "organizations_url": "https://api.github.com/users/jkovacevic/orgs", "received_events_url": "https://api.github.com/users/jkovacevic/received_events", "repos_url": "https://api.github.com/users/jkovacevic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jkovacevic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jkovacevic/subscriptions", "type": "User", "url": "https://api.github.com/users/jkovacevic" }
[ { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "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" }
2
2019-06-05T13:43:06Z
2019-06-11T00:16:58Z
2019-06-11T00:16:58Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import numpy as np import pandas as pd df = pd.DataFrame(columns=["a"], data=np.random.randint(10, size=30).reshape(-1, 1)) pct = np.linspace(0, 1, 20 + 1) desc = df.describe(percentiles=pct) print(desc.index) print(desc.loc['25%']) print(desc.loc['30%']) ``` #### Problem description If desc.index is printed out, some percentile indexes are written as decimal numbers (e.g. 30.0%, 55.0%, 85.0%), while others are whole numbers (e.g. 35%, 70%, 100%). Printing percentiles of distribution therefore requires hardcoding some decimal numbers, e.g. ```python print(desc.loc['0%']) print(desc.loc['5%']) print(desc.loc['10%']) print(desc.loc['15.0%']) print(desc.loc['20%']) print(desc.loc['25%']) print(desc.loc['30.0%']) print(desc.loc['35%']) print(desc.loc['40%']) print(desc.loc['45%']) print(desc.loc['50%']) print(desc.loc['55.0%']) print(desc.loc['60.0%']) print(desc.loc['65%']) print(desc.loc['70%']) print(desc.loc['75%']) print(desc.loc['80%']) print(desc.loc['85.0%']) print(desc.loc['90%']) print(desc.loc['95%']) print(desc.loc['100%']) ``` #### Expected Output Indexes of percentiles should be either all whole numbers or either all decimal numbers. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-50-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.1.1 setuptools: 41.0.1 Cython: None numpy: 1.16.3 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.5.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: 0.7.3 lxml.etree: 3.5.0 bs4: 4.4.1 html5lib: 0.999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 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/26660/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26660/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26661
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26661/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26661/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26661/events
https://github.com/pandas-dev/pandas/issues/26661
452,511,065
MDU6SXNzdWU0NTI1MTEwNjU=
26,661
CI: Remove isort from CI dependencies
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "default": false, "description": ...
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-06-05T13:46:49Z
2019-06-08T19:52:20Z
2019-06-08T19:52:20Z
MEMBER
null
In #25455 we added `isort` as a dependency to all our builds. Looks like the CI was failing, and adding `isort` fixed the problem. Not sure what the problem is, but `isort` is something we should only have in `environment.yml`, as it's only used in `ci/code_checks.sh` and locally. We should remove `isort` from all files in `ci/deps/` and if the CI complains, find out what's the problem, and fix it.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26661/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26661/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26662
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26662/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26662/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26662/events
https://github.com/pandas-dev/pandas/pull/26662
452,512,329
MDExOlB1bGxSZXF1ZXN0Mjg1MzgzNjIw
26,662
Excel Tests Continued Fixture Cleanup
{ "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": "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": "bfe5bf", "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" }
11
2019-06-05T13:49:22Z
2019-06-08T16:16:13Z
2019-06-08T16:15:58Z
MEMBER
null
Follow up to #26579 Removing the frame2 fixture which is sparsely used. I've also removed inheritance of `ReadingTestsBase` and made that it's own discoverable class. Previously these tests were only being generated when `TestXlrdReader` was being run which tightly couples reading with xlrd. The goal here in subsequent PRs would be to better parametrize `TestReaders` for new engines that come in and truly make `TestXlrdReader` only deal with xlrd specific tests (will have to move around some tests to make that happen)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26662/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26662/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26662.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26662", "merged_at": "2019-06-08T16:15:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26662.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26662" }
https://api.github.com/repos/pandas-dev/pandas/issues/26663
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26663/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26663/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26663/events
https://github.com/pandas-dev/pandas/issues/26663
452,516,161
MDU6SXNzdWU0NTI1MTYxNjE=
26,663
PERF: asv for import time
{ "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": "ae68cc", "default": false, "description": "Performance (ASV) benchmarks", "id": 732775912, "name": "Benchmark", "node_id": "MDU6TGFiZWw3MzI3NzU5MTI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark" } ]
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" }
10
2019-06-05T13:56:27Z
2019-09-05T15:34:44Z
2019-09-05T15:34:44Z
MEMBER
null
Not entirely sure how to do it with asv, but at the command line its just `python3 -X importtime -c "import pandas"` - [ ] import time with `python3 -X importtime -c "import pandas"` - [ ] import size with something like `import pandas, psutil; psutil.Process().memory_info()`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26663/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26663/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26664
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26664/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26664/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26664/events
https://github.com/pandas-dev/pandas/issues/26664
452,519,211
MDU6SXNzdWU0NTI1MTkyMTE=
26,664
Using LGTM.com to find and fix issues in Python and C code
{ "avatar_url": "https://avatars.githubusercontent.com/u/50622389?v=4", "events_url": "https://api.github.com/users/AlexTereshenkov/events{/privacy}", "followers_url": "https://api.github.com/users/AlexTereshenkov/followers", "following_url": "https://api.github.com/users/AlexTereshenkov/following{/other_user}", "gists_url": "https://api.github.com/users/AlexTereshenkov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexTereshenkov", "id": 50622389, "login": "AlexTereshenkov", "node_id": "MDQ6VXNlcjUwNjIyMzg5", "organizations_url": "https://api.github.com/users/AlexTereshenkov/orgs", "received_events_url": "https://api.github.com/users/AlexTereshenkov/received_events", "repos_url": "https://api.github.com/users/AlexTereshenkov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexTereshenkov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexTereshenkov/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexTereshenkov" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
2
2019-06-05T14:02:02Z
2019-06-06T10:01:25Z
2019-06-05T17:58:42Z
CONTRIBUTOR
null
There are a few issues in the code that were flagged up by LGTM.com website: https://lgtm.com/projects/g/pandas-dev/pandas/alerts/?mode=tree. Some of the other numerical computing repositories have been analyzed there as well such as [numpy](https://lgtm.com/projects/g/numpy/numpy/alerts/?mode=tree) and [scipy](https://lgtm.com/projects/g/scipy/scipy/alerts/?mode=tree). You can see the issues in both Python and C code. For instance, here is the issue [Implicit scaling of pointer arithmetic expressions can cause buffer overflow conditions](https://lgtm.com/projects/g/scipy/scipy/alerts/?mode=tree&ruleFocus=2156240610) that is found in SciPy source C code. Some of the issues may be of higher importance to the project (e.g. [Allocating memory with a size controlled by an external user can result in integer overflow](https://lgtm.com/projects/g/scipy/scipy/alerts/?mode=tree&ruleFocus=2157860315) vs [A pure expression whose value is ignored is likely to be the result of a typo.](https://lgtm.com/projects/g/scipy/scipy/alerts/?mode=tree&ruleFocus=2165170567)). It is completely up to the developers to pick what's relevant. Due to the dynamic nature of Python and some heavy use of all kinds of magic in `numpy` (e.g. [Comparison of identical values, the intent of which is unclear](https://lgtm.com/projects/g/scipy/scipy/alerts/?mode=tree&ruleFocus=4840093) and `scipy` (e.g. [Using a named argument whose name does not correspond to a parameter of the init method of the class being instantiated, will result in a TypeError at runtime](https://lgtm.com/projects/g/scipy/scipy/alerts/?mode=tree&ruleFocus=1506312116236), some of the alerts may look like false positives and I would love to find out which of them are to be able to fix the code to avoid raising them. If you like, you can use LGTM for automatically reviewing code in pull requests. Here's an example of how Google's AMPHTML use that to flag up security vulnerabilities in their code base: ampproject/amphtml#13060. This will prevent introducing new issues as you can see if there are any issues introduced before merging. (full disclosure: I'm a huge fan of `pandas` and also part of the team that runs LGTM.com)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26664/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26664/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26665
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26665/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26665/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26665/events
https://github.com/pandas-dev/pandas/pull/26665
452,522,110
MDExOlB1bGxSZXF1ZXN0Mjg1MzkxNTc1
26,665
ERR: include original error message for missing required dependencies
{ "avatar_url": "https://avatars.githubusercontent.com/u/41120183?v=4", "events_url": "https://api.github.com/users/DanielFEvans/events{/privacy}", "followers_url": "https://api.github.com/users/DanielFEvans/followers", "following_url": "https://api.github.com/users/DanielFEvans/following{/other_user}", "gists_url": "https://api.github.com/users/DanielFEvans/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DanielFEvans", "id": 41120183, "login": "DanielFEvans", "node_id": "MDQ6VXNlcjQxMTIwMTgz", "organizations_url": "https://api.github.com/users/DanielFEvans/orgs", "received_events_url": "https://api.github.com/users/DanielFEvans/received_events", "repos_url": "https://api.github.com/users/DanielFEvans/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DanielFEvans/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DanielFEvans/subscriptions", "type": "User", "url": "https://api.github.com/users/DanielFEvans" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "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" }
2
2019-06-05T14:07:17Z
2019-06-05T20:33:37Z
2019-06-05T18:44:39Z
CONTRIBUTOR
null
- [x] closes #23868 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Modifies the try-catch for imports of required dependencies (`numpy`, `pytz`, and `dateutil`) to record any exceptions raised, and then to include the message from these when reporting that required dependencies are missing. Previously, the error message simply claimed the dependency was missing, which was somewhat misleading if the dependency was installed but raised its own ImportError (missing sub-dependencies, bad install, etc.).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26665/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26665/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26665.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26665", "merged_at": "2019-06-05T18:44:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26665.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26665" }
https://api.github.com/repos/pandas-dev/pandas/issues/26666
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26666/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26666/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26666/events
https://github.com/pandas-dev/pandas/issues/26666
452,547,316
MDU6SXNzdWU0NTI1NDczMTY=
26,666
PERF: use lazy imports on py37 to speed up import
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "a10c02", "default": false, "description": "Memory o...
closed
false
null
[]
null
4
2019-06-05T14:52:17Z
2019-06-18T15:49:17Z
2019-06-18T15:49:16Z
MEMBER
null
IIUC py37 supports patching of module-level `__getattr__`. One of the big uses cases for that is lazy imports. This might be nice to use for some lesser-used modules, e.g. in `io`. Not sure how much trouble it will be to do this conditionally for py37+ only.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26666/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26666/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26667
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26667/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26667/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26667/events
https://github.com/pandas-dev/pandas/issues/26667
452,559,309
MDU6SXNzdWU0NTI1NTkzMDk=
26,667
pandas cannot actually read Stata file format 104
{ "avatar_url": "https://avatars.githubusercontent.com/u/26555712?v=4", "events_url": "https://api.github.com/users/miker985/events{/privacy}", "followers_url": "https://api.github.com/users/miker985/followers", "following_url": "https://api.github.com/users/miker985/following{/other_user}", "gists_url": "https://api.github.com/users/miker985/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/miker985", "id": 26555712, "login": "miker985", "node_id": "MDQ6VXNlcjI2NTU1NzEy", "organizations_url": "https://api.github.com/users/miker985/orgs", "received_events_url": "https://api.github.com/users/miker985/received_events", "repos_url": "https://api.github.com/users/miker985/repos", "site_admin": false, "starred_url": "https://api.github.com/users/miker985/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miker985/subscriptions", "type": "User", "url": "https://api.github.com/users/miker985" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "5319e7", "default": false, "description": "read_sta...
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
8
2019-06-05T15:13:17Z
2020-05-12T14:54:10Z
2020-05-12T14:54:10Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible Data usage agreements prevent me from attaching a Stata file of format version 104, so I cannot easily provide a copy/paste example. This is unfortunate as I have several of these files... ``` . dtaversion CIV_LSMS_1987_ANTHROPOMETRICS_A.DTA (file "CIV_LSMS_1987_ANTHROPOMETRICS_A.DTA" is .dta-format 104 from Stata 4) ``` #### Problem description The `stata.py` module will provide error messages that it can only read certain versions and explicitly enumerates version 104 both in the [`_version_error` string](https://github.com/pandas-dev/pandas/blob/c07d71d13b21e0b6e22146f0f546f1f8e24a64b3/pandas/io/stata.py#L40-L42) and in [`StataReader._read_old_header`](https://github.com/pandas-dev/pandas/blob/c07d71d13b21e0b6e22146f0f546f1f8e24a64b3/pandas/io/stata.py#L1224) However, `StataReader` cannot read files with version 104. This is because 1. `StataReader.__init__` calls `_read_header` [code](https://github.com/pandas-dev/pandas/blob/c07d71d13b21e0b6e22146f0f546f1f8e24a64b3/pandas/io/stata.py#L993) 1. `_read_header` calls `_read_old_header` [code](https://github.com/pandas-dev/pandas/blob/c07d71d13b21e0b6e22146f0f546f1f8e24a64b3/pandas/io/stata.py#L1025) 1. `_read_old_header` calls `_get_time_stamp` [code](https://github.com/pandas-dev/pandas/blob/c07d71d13b21e0b6e22146f0f546f1f8e24a64b3/pandas/io/stata.py#L1238) 1. `_get_time_stamp` raises a `ValueError` for format versions > 104 [code](https://github.com/pandas-dev/pandas/blob/c07d71d13b21e0b6e22146f0f546f1f8e24a64b3/pandas/io/stata.py#L1197-L1207) None of this behavior can be overridden or otherwise configured as part of instantiating `pandas.io.stata.StataReader` #### Expected Output Remove 104 as a supported format and error: `ValueError: Version of given Stata file is not 105, 108, 111 (Stata 7SE), 113 (Stata 8/9), 114 (Stata 10/11), 115 (Stata 12), 117 (Stata 13), or 118 (Stata 14)` Alternatively `_get_time_stamp` could be changed to return `""` or a similar value to reflect that Stata did not include a file timestamp in that format version. My experiments subclassing `StataReader` to suppress the error, read the data file in as a df, and export to CSV yield a file equivalent to an equivalent `export delimited` call from Stata. #### Output of ``pd.show_versions()`` <details> >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-50-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.1.1 setuptools: 41.0.1 Cython: None numpy: 1.16.4 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2019.1 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: 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/26667/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26667/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26668
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26668/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26668/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26668/events
https://github.com/pandas-dev/pandas/pull/26668
452,581,954
MDExOlB1bGxSZXF1ZXN0Mjg1NDQwNjk1
26,668
Deprecate Series/Dataframe.to_dense/to_sparse
{ "avatar_url": "https://avatars.githubusercontent.com/u/41290641?v=4", "events_url": "https://api.github.com/users/VikramjeetD/events{/privacy}", "followers_url": "https://api.github.com/users/VikramjeetD/followers", "following_url": "https://api.github.com/users/VikramjeetD/following{/other_user}", "gists_url": "https://api.github.com/users/VikramjeetD/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/VikramjeetD", "id": 41290641, "login": "VikramjeetD", "node_id": "MDQ6VXNlcjQxMjkwNjQx", "organizations_url": "https://api.github.com/users/VikramjeetD/orgs", "received_events_url": "https://api.github.com/users/VikramjeetD/received_events", "repos_url": "https://api.github.com/users/VikramjeetD/repos", "site_admin": false, "starred_url": "https://api.github.com/users/VikramjeetD/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VikramjeetD/subscriptions", "type": "User", "url": "https://api.github.com/users/VikramjeetD" }
[]
closed
false
null
[]
null
6
2019-06-05T15:54:16Z
2019-06-07T06:55:11Z
2019-06-05T16:50:50Z
CONTRIBUTOR
null
- [x] closes #26557 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Marks the methods mentioned in #26557 as deprecated, with proper messages.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26668/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26668/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26668.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26668", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26668.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26668" }
https://api.github.com/repos/pandas-dev/pandas/issues/26669
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26669/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26669/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26669/events
https://github.com/pandas-dev/pandas/pull/26669
452,624,681
MDExOlB1bGxSZXF1ZXN0Mjg1NDc1ODMx
26,669
Filter warning in sparse repr
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" } ]
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-06-05T17:26:42Z
2019-06-05T21:48:53Z
2019-06-05T21:48:47Z
CONTRIBUTOR
null
xref https://github.com/pandas-dev/pandas/issues/26555
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26669/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26669/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26669.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26669", "merged_at": "2019-06-05T21:48:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26669.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26669" }
https://api.github.com/repos/pandas-dev/pandas/issues/26670
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26670/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26670/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26670/events
https://github.com/pandas-dev/pandas/pull/26670
452,651,354
MDExOlB1bGxSZXF1ZXN0Mjg1NDk3Njkx
26,670
WIP: environment.yml encounters import error with pyarrow
{ "avatar_url": "https://avatars.githubusercontent.com/u/14131823?v=4", "events_url": "https://api.github.com/users/minggli/events{/privacy}", "followers_url": "https://api.github.com/users/minggli/followers", "following_url": "https://api.github.com/users/minggli/following{/other_user}", "gists_url": "https://api.github.com/users/minggli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/minggli", "id": 14131823, "login": "minggli", "node_id": "MDQ6VXNlcjE0MTMxODIz", "organizations_url": "https://api.github.com/users/minggli/orgs", "received_events_url": "https://api.github.com/users/minggli/received_events", "repos_url": "https://api.github.com/users/minggli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/minggli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minggli/subscriptions", "type": "User", "url": "https://api.github.com/users/minggli" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "default": false, "description": ...
closed
false
null
[]
null
3
2019-06-05T18:27:50Z
2019-06-13T13:29:49Z
2019-06-12T21:10:20Z
CONTRIBUTOR
null
#LondonPythonSprints - [X] closes #26656 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This issue seems to be ubiquitous, and below link suggest solution: https://github.com/apache/arrow/issues/2213
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26670/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26670/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26670.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26670", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26670.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26670" }
https://api.github.com/repos/pandas-dev/pandas/issues/26671
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26671/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26671/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26671/events
https://github.com/pandas-dev/pandas/pull/26671
452,661,079
MDExOlB1bGxSZXF1ZXN0Mjg1NTA1NjYz
26,671
WIP: isort init files
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "default": false, "description": ...
closed
false
null
[]
null
5
2019-06-05T18:50:41Z
2019-06-08T13:30:35Z
2019-06-08T13:30:35Z
CONTRIBUTOR
null
#LondonPythonSprints - [x] closes #26661 - [x] tests added / 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/26671/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26671/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26671.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26671", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26671.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26671" }
https://api.github.com/repos/pandas-dev/pandas/issues/26672
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26672/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26672/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26672/events
https://github.com/pandas-dev/pandas/pull/26672
452,669,506
MDExOlB1bGxSZXF1ZXN0Mjg1NTEyNTAx
26,672
DO NOT MERGE Marc/docs azure
{ "avatar_url": "https://avatars.githubusercontent.com/u/14131823?v=4", "events_url": "https://api.github.com/users/minggli/events{/privacy}", "followers_url": "https://api.github.com/users/minggli/followers", "following_url": "https://api.github.com/users/minggli/following{/other_user}", "gists_url": "https://api.github.com/users/minggli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/minggli", "id": 14131823, "login": "minggli", "node_id": "MDQ6VXNlcjE0MTMxODIz", "organizations_url": "https://api.github.com/users/minggli/orgs", "received_events_url": "https://api.github.com/users/minggli/received_events", "repos_url": "https://api.github.com/users/minggli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/minggli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minggli/subscriptions", "type": "User", "url": "https://api.github.com/users/minggli" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integratio...
closed
false
null
[]
null
0
2019-06-05T19:11:20Z
2019-06-05T23:24:38Z
2019-06-05T23:24:33Z
CONTRIBUTOR
null
#LondonPythonSprints - [ ] 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/26672/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26672/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26672.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26672", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26672.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26672" }
https://api.github.com/repos/pandas-dev/pandas/issues/26673
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26673/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26673/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26673/events
https://github.com/pandas-dev/pandas/issues/26673
452,671,649
MDU6SXNzdWU0NTI2NzE2NDk=
26,673
TST: tests.plotting.test_frame.test_subplots failing on locally OSX
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "009800", "d...
closed
false
null
[]
null
1
2019-06-05T19:16:23Z
2019-06-09T18:21:17Z
2019-06-09T18:21:08Z
MEMBER
null
It's marked as slow, making it easy to fall through the cracks. Will troubleshoot later, just parking this here for 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/26673/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26673/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26674
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26674/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26674/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26674/events
https://github.com/pandas-dev/pandas/pull/26674
452,678,170
MDExOlB1bGxSZXF1ZXN0Mjg1NTE5NDY3
26,674
Fix deletion of temp variables in main namespace (left-over from GH26665)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[]
closed
false
null
[]
null
5
2019-06-05T19:32:26Z
2019-06-05T20:34:25Z
2019-06-05T20:34:24Z
MEMBER
null
Fixing my merge of https://github.com/pandas-dev/pandas/pull/26665
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26674/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26674/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26674.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26674", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26674.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26674" }
https://api.github.com/repos/pandas-dev/pandas/issues/26675
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26675/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26675/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26675/events
https://github.com/pandas-dev/pandas/issues/26675
452,679,279
MDU6SXNzdWU0NTI2NzkyNzk=
26,675
BUG: .isin on datetimelike indexes do not validate input of level parameter
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "e99695", "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-06-05T19:35:11Z
2019-06-09T21:59:56Z
2019-06-09T21:59:56Z
MEMBER
null
#### Code Sample, a copy-pastable example if possible ```python index = pd.DatetimeIndex([], name='foo') index.isin([], level='foobar') ``` #### Problem description on master: ``` array([], dtype=bool) ``` on 0.23.4 ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-82f8aeda6721> in <module> 1 index = pd.DatetimeIndex([], name='foo') ----> 2 index.isin([], level='foobar') TypeError: isin() got an unexpected keyword argument 'level' ``` #### Expected Output to validate input and raise same message as other non-datetimelike indexes ``` KeyError: 'Level foobar must be same as name (foo)' ``` the api for `isin` is defined in #7892 #### 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/26675/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26675/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26676
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26676/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26676/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26676/events
https://github.com/pandas-dev/pandas/issues/26676
452,681,620
MDU6SXNzdWU0NTI2ODE2MjA=
26,676
VIS: test plots losing information on y axis
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "C4A000", "default": false, "description": "pandas t...
open
false
null
[]
null
2
2019-06-05T19:41:21Z
2020-05-22T03:34:29Z
null
MEMBER
null
tests.plotting.test_frame.TestDataFramePlots.test_subplots_timeseries_y_axis issues a warning when plotting a datetime64[tz] column: ``` pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_subplots_timeseries_y_axis /Users/bmendel/Desktop/pd/matwarns/pandas/plotting/_core.py:384: FutureWarning: Converting timezone-aware DatetimeArray to timezone-naive ndarray with 'datetime64[ns]' dtype. In the future, this will return an ndarray with 'object' dtype where each element is a 'pandas.Timestamp' with the correct 'tz'. To accept the future behavior, pass 'dtype=object'. To keep the old behavior, pass 'dtype="datetime64[ns]"'. numeric_data[col] = np.asarray(numeric_data[col]) ``` The relevant code is: ``` data = {"numeric": np.array([1, 2, 5]), "timedelta": [pd.Timedelta(-10, unit="s"), pd.Timedelta(10, unit="m"), pd.Timedelta(10, unit="h")], "datetime_no_tz": [pd.to_datetime("2017-08-01 00:00:00"), pd.to_datetime("2017-08-01 02:00:00"), pd.to_datetime("2017-08-02 00:00:00")], "datetime_all_tz": [pd.to_datetime("2017-08-01 00:00:00", utc=True), pd.to_datetime("2017-08-01 02:00:00", utc=True), pd.to_datetime("2017-08-02 00:00:00", utc=True)], "text": ["This", "should", "fail"]} testdata = pd.DataFrame(data) ax_datetime_no_tz = testdata.plot(y="datetime_no_tz") ax_datetime_all_tz = testdata.plot(y="datetime_all_tz") ``` Checking the actual images generated by these last two: ![ax_datetime_all_tz](https://user-images.githubusercontent.com/8078968/58984909-cd92a380-879f-11e9-95f3-06ba6abbe3e9.png) ![ax_datetime_no_tz](https://user-images.githubusercontent.com/8078968/58984910-cd92a380-879f-11e9-8416-ac6355f1085c.png) The UTC is completely lost for the tz-aware case, and in both cases the dates are rendered without year and with weird-looking hour.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26676/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26676/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26677
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26677/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26677/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26677/events
https://github.com/pandas-dev/pandas/pull/26677
452,681,668
MDExOlB1bGxSZXF1ZXN0Mjg1NTIyMzE4
26,677
BUG: .isin on datetimelike indexes do not validate input of level parameter
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "e99695", "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" }
5
2019-06-05T19:41:28Z
2019-06-10T07:57:50Z
2019-06-09T21:59:57Z
MEMBER
null
#LondonPythonSprints - [x] closes #26675 - [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/26677/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26677/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26677.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26677", "merged_at": "2019-06-09T21:59:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26677.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26677" }
https://api.github.com/repos/pandas-dev/pandas/issues/26678
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26678/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26678/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26678/events
https://github.com/pandas-dev/pandas/pull/26678
452,682,888
MDExOlB1bGxSZXF1ZXN0Mjg1NTIzMzQw
26,678
TST: avoid matplotlib warnings in tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "8AE234", "d...
closed
false
null
[]
null
6
2019-06-05T19:44:38Z
2019-06-07T19:58:18Z
2019-06-07T19:45:00Z
MEMBER
null
In master we get the following warnings in this file: ``` $ pytest pandas/tests/plotting/test_frame.py --skip-slow [...] pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_mpl2_color_cycle_str pandas/pandas/plotting/_style.py:60: MatplotlibDeprecationWarning: Support for uppercase single-letter colors is deprecated since Matplotlib 3.1 and will be removed in 3.3; please use lowercase instead. [conv.to_rgba(c) for c in colors] pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_subplots_timeseries_y_axis pandas/pandas/plotting/_core.py:384: FutureWarning: Converting timezone-aware DatetimeArray to timezone-naive ndarray with 'datetime64[ns]' dtype. In the future, this will return an ndarray with 'object' dtype where each element is a 'pandas.Timestamp' with the correct 'tz'. To accept the future behavior, pass 'dtype=object'. To keep the old behavior, pass 'dtype="datetime64[ns]"'. numeric_data[col] = np.asarray(numeric_data[col]) pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_line_area_stacked pandas/pandas/plotting/_core.py:1014: UserWarning: Attempted to set non-positive left xlim on a log-scaled axis. Invalid limit will be ignored. ax.set_xlim(left, right) ``` This PR addresses first and third of these. The middle one is the topic of #26676.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26678/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26678/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26678.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26678", "merged_at": "2019-06-07T19:45:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26678.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26678" }
https://api.github.com/repos/pandas-dev/pandas/issues/26679
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26679/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26679/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26679/events
https://github.com/pandas-dev/pandas/pull/26679
452,687,272
MDExOlB1bGxSZXF1ZXN0Mjg1NTI2OTE0
26,679
DOC: Fixed warning about convert_objects in doc build
{ "avatar_url": "https://avatars.githubusercontent.com/u/46745130?v=4", "events_url": "https://api.github.com/users/nadebu/events{/privacy}", "followers_url": "https://api.github.com/users/nadebu/followers", "following_url": "https://api.github.com/users/nadebu/following{/other_user}", "gists_url": "https://api.github.com/users/nadebu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nadebu", "id": 46745130, "login": "nadebu", "node_id": "MDQ6VXNlcjQ2NzQ1MTMw", "organizations_url": "https://api.github.com/users/nadebu/orgs", "received_events_url": "https://api.github.com/users/nadebu/received_events", "repos_url": "https://api.github.com/users/nadebu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nadebu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nadebu/subscriptions", "type": "User", "url": "https://api.github.com/users/nadebu" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
7
2019-06-05T19:55:46Z
2019-07-31T11:49:59Z
2019-06-14T13:58:17Z
NONE
null
`convert_objects` doesn't exist anymore, and the example in the release notes when it was added is failing and generating a warning in the doc build: ``` Exception in /home/travis/build/pandas-dev/pandas/doc/source/whatsnew/v0.11.0.rst at block ending on line None Specify :okexcept: as an option in the ipython:: block to suppress this message --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-20-d11827bcdf31> in <module> ----> 1 s.convert_objects(convert_dates='coerce') ~/build/pandas-dev/pandas/pandas/core/generic.py in __getattr__(self, name) 5095 if self._info_axis._can_hold_identifiers_and_holds_name(name): 5096 return self[name] -> 5097 return object.__getattribute__(self, name) 5098 5099 def __setattr__(self, name, value): AttributeError: 'Series' object has no attribute 'convert_objects' ``` Open during the London sprint. - [X] xref #24173 - [ ] 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/26679/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26679/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26679.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26679", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26679.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26679" }
https://api.github.com/repos/pandas-dev/pandas/issues/26680
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26680/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26680/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26680/events
https://github.com/pandas-dev/pandas/issues/26680
452,695,648
MDU6SXNzdWU0NTI2OTU2NDg=
26,680
derivative method for Series and DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4", "events_url": "https://api.github.com/users/scls19fr/events{/privacy}", "followers_url": "https://api.github.com/users/scls19fr/followers", "following_url": "https://api.github.com/users/scls19fr/following{/other_user}", "gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scls19fr", "id": 109167, "login": "scls19fr", "node_id": "MDQ6VXNlcjEwOTE2Nw==", "organizations_url": "https://api.github.com/users/scls19fr/orgs", "received_events_url": "https://api.github.com/users/scls19fr/received_events", "repos_url": "https://api.github.com/users/scls19fr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions", "type": "User", "url": "https://api.github.com/users/scls19fr" }
[]
closed
false
null
[]
null
3
2019-06-05T20:15:57Z
2019-06-05T21:30:36Z
2019-06-05T21:30:35Z
CONTRIBUTOR
null
Hello, when dealing with sensors data (energy meter, volumetric meter, ...) and having such data in a `DataFrame` (or in a `Series`) it can be convenient to easily calculate derivative of values (generally over local time) ie calculate power from energy consumption for example or flow rate from volume over time. This question have been asked on StackOverflow (at least 2 times) https://stackoverflow.com/questions/39235712/calculate-local-time-derivative-of-series https://stackoverflow.com/questions/26245242/time-differentiation-in-pandas/26246562 Maybe `Series` and `DataFrame` could have a `derivative` method. I wrote some convenient methods (both for `DataFrame` and for `Series`) to calculate derivative. I currently [monkey patch](https://en.wikipedia.org/wiki/Monkey_patch) Pandas using the following code: ```python import pandas as pd def _derivative_series(self): if isinstance(self.index, pd.DatetimeIndex): den = self.index.to_series(keep_tz=True).diff().dt.total_seconds() else: den = self.index.to_series().diff() num = self.diff() return num.div(den, axis=0) def _derivative_dataframe(self, var=None): if var is None: if isinstance(self.index, pd.DatetimeIndex): den = self.index.to_series(keep_tz=True).diff().dt.total_seconds() else: den = self.index.to_series().diff() num = self.diff() return num.div(den, axis=0) else: if pd.api.types.is_datetime64_any_dtype(self[var]): den = self[var].diff().dt.total_seconds() else: den = self[var].diff() num = self.loc[:, self.columns != var].diff() result = num.div(den, axis=0) result[var] = self[var] return result.loc[:, self.columns] def monkey_patch_pandas(pd): pd.Series.derivative = _derivative_series pd.DataFrame.derivative = _derivative_dataframe ``` So you can now use `derivative` method with DataFrame with `DatetimeIndex` ```python import pandas as pd monkey_patch_pandas(pd) from io import StringIO dat = """time,sensor1,sensor2 2019-05-27 13:49:47.703850+02:00,0.0,100.2 2019-05-27 13:49:47.827518+02:00,0.4,102.2 2019-05-27 13:49:47.974124+02:00,0.8,102.4 2019-05-27 13:49:48.097793+02:00,1.1,104.1 2019-05-27 13:49:48.222461+02:00,1.2,101.1 2019-05-27 13:49:48.355105+02:00,1.4,102.0 """ df = pd.read_csv(StringIO(dat), index_col='time', parse_dates=True) print("df:") print(df) print("") print("df.derivative():") print(df.derivative()) print("") ``` it should also work with `Series` with `DatetimeIndex` ```python print("df['sensor1'].derivative():") print(df['sensor1'].derivative()) print("") ``` but you can also derivate using a column name as variable ```python print("df.reset_index().derivative(var='time'):") print(df.reset_index().derivative(var='time')) ``` `derivate` method should also work fine with `DataFrame` with float index like ```python dat2 = """x,y1,y2 0.0,0.0,100.2 0.2,0.4,102.2 0.3,0.8,102.4 0.45,1.1,104.1 0.5,1.2,101.1 0.7,1.4,102.0 """ df = pd.read_csv(StringIO(dat2), index_col='x', parse_dates=True) print("df:") print(df) print("") print("df.derivative():") print(df.derivative()) print("") ``` with `Series` also ```python print("df['y1'].derivative():") print(df['y1'].derivative()) print("") ``` and given a variable name (a `DataFrame` column name) ```python print("df.reset_index().derivative(var='x'):") print(df.reset_index().derivative(var='x')) ``` I wonder if some other Pandas users have similar use cases and / if adding such a feature directly in Pandas code could be valuable. Kind regards PS : An other approach could be to make use of [`numpy.gradient`](https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.gradient.html) function
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26680/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26680/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26681
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26681/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26681/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26681/events
https://github.com/pandas-dev/pandas/issues/26681
452,700,560
MDU6SXNzdWU0NTI3MDA1NjA=
26,681
integrate method for Series and DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4", "events_url": "https://api.github.com/users/scls19fr/events{/privacy}", "followers_url": "https://api.github.com/users/scls19fr/followers", "following_url": "https://api.github.com/users/scls19fr/following{/other_user}", "gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scls19fr", "id": 109167, "login": "scls19fr", "node_id": "MDQ6VXNlcjEwOTE2Nw==", "organizations_url": "https://api.github.com/users/scls19fr/orgs", "received_events_url": "https://api.github.com/users/scls19fr/received_events", "repos_url": "https://api.github.com/users/scls19fr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions", "type": "User", "url": "https://api.github.com/users/scls19fr" }
[]
closed
false
null
[]
null
1
2019-06-05T20:27:33Z
2019-06-06T19:25:53Z
2019-06-05T21:31:11Z
CONTRIBUTOR
null
Hello, Similar to #26680 when dealing with sensors data such as power meter or flow meter and having such data in a `DataFrame` (or in a `Series`) it can be convenient to easily calculate integral of values ie calculate energy consumption from power usage, volume consumption from flow rate for example. Maybe `Series` and `DataFrame` could have an `integrate` method. Similar question have been asked on StackOverflow https://stackoverflow.com/questions/50239878/pandas-dataframe-column-numerical-integration Maybe it could be worth to provide a better integration with Scipy and make use of `scipy.integrate.trapz`. Kind regards PS : related issue may be #3759
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26681/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26681/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26682
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26682/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26682/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26682/events
https://github.com/pandas-dev/pandas/issues/26682
452,761,470
MDU6SXNzdWU0NTI3NjE0NzA=
26,682
read_sql_query converts empty columns to object with no way to override
{ "avatar_url": "https://avatars.githubusercontent.com/u/4305943?v=4", "events_url": "https://api.github.com/users/lengau/events{/privacy}", "followers_url": "https://api.github.com/users/lengau/followers", "following_url": "https://api.github.com/users/lengau/following{/other_user}", "gists_url": "https://api.github.com/users/lengau/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lengau", "id": 4305943, "login": "lengau", "node_id": "MDQ6VXNlcjQzMDU5NDM=", "organizations_url": "https://api.github.com/users/lengau/orgs", "received_events_url": "https://api.github.com/users/lengau/received_events", "repos_url": "https://api.github.com/users/lengau/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lengau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lengau/subscriptions", "type": "User", "url": "https://api.github.com/users/lengau" }
[]
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-06-05T23:28:46Z
2019-06-06T16:12:35Z
2019-06-06T12:08:41Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas import numpy import sqlite3 con = sqlite3.connect('example.db') df = pandas.DataFrame( { 'filled': [1.0, 2.0, 3.0], 'partial': [1.0, numpy.nan, numpy.nan], 'empty': [numpy.nan] * 3 } ) df.to_sql('test', con, index=False) returned_df = pandas.read_sql_query('select * from test', con) for col in ['filled', 'partial', 'empty']: assert df[col].dtype == returned_df[col].dtype, f'Problematic column: {col}, Expected dtype: {df[col].dtype}, actual dtype: {returned_df[col].dtype}' ``` #### Problem description When a float column queried from a SQL database contains NULL, the type of that column in the resulting DataFrame is `object`, filled with `None` values ('empty' column in the example). NULL values in a column containing at least one non-NULL row ('partial' column in the example) are converted to `float64` dtype, as expected. This itself is not necessarily an issue, but without a way to assign dtypes to a column, some future uses of the column (such as joining to another numeric column) raise an exception unless the column type is checked and (if necessary) changed. In `read_csv` and `read_excel`, both the `dtype` parameter and the `converters` parameter are capable of the expected behaviour, so implementing one or both of these in `read_sql_query` (and probably `read_sql_table`, which I believe has the same issue) would provide a reasonable workaround. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Linux OS-release: 4.19.34-04457-g5b63d4390e96 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.1.1 setuptools: 41.0.1 Cython: None numpy: 1.16.3 scipy: None pyarrow: None xarray: None IPython: 7.5.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2019.1 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.1 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/26682/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26682/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26683
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26683/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26683/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26683/events
https://github.com/pandas-dev/pandas/issues/26683
452,785,096
MDU6SXNzdWU0NTI3ODUwOTY=
26,683
Warning while reindexing tz aware index with method='nearest'
{ "avatar_url": "https://avatars.githubusercontent.com/u/41048?v=4", "events_url": "https://api.github.com/users/goriccardo/events{/privacy}", "followers_url": "https://api.github.com/users/goriccardo/followers", "following_url": "https://api.github.com/users/goriccardo/following{/other_user}", "gists_url": "https://api.github.com/users/goriccardo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/goriccardo", "id": 41048, "login": "goriccardo", "node_id": "MDQ6VXNlcjQxMDQ4", "organizations_url": "https://api.github.com/users/goriccardo/orgs", "received_events_url": "https://api.github.com/users/goriccardo/received_events", "repos_url": "https://api.github.com/users/goriccardo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/goriccardo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/goriccardo/subscriptions", "type": "User", "url": "https://api.github.com/users/goriccardo" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2019-06-06T01:13:19Z
2020-02-03T03:48:29Z
2020-02-03T03:48:29Z
NONE
null
Reindexing a tz aware dataframe using method='nearest' raise an internal warning. ```python from pandas.util.testing import makeTimeDataFrame df = makeTimeDataFrame(freq='1h') df = df.tz_localize('UTC') df.reindex(df.index[1:4], method='nearest') ``` raises a warning: ``` /lib/python3.7/site-packages/pandas/core/indexes/base.py:2820: FutureWarning: Converting timezone-aware DatetimeArray to timezone-naive ndarray with 'datetime64[ns]' dtype. In the future, this will return an ndarray with 'object' dtype where each element is a 'pandas.Timestamp' with the correct 'tz'. To accept the future behavior, pass 'dtype=object'. To keep the old behavior, pass 'dtype="datetime64[ns]"'. target = np.asarray(target) ``` in pandas 0.24.2
{ "+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/26683/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26683/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26684
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26684/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26684/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26684/events
https://github.com/pandas-dev/pandas/pull/26684
452,818,502
MDExOlB1bGxSZXF1ZXN0Mjg1NjMyMzE0
26,684
DEPR: Deprecate Series/Dataframe.to_dense/to_sparse
{ "avatar_url": "https://avatars.githubusercontent.com/u/41290641?v=4", "events_url": "https://api.github.com/users/VikramjeetD/events{/privacy}", "followers_url": "https://api.github.com/users/VikramjeetD/followers", "following_url": "https://api.github.com/users/VikramjeetD/following{/other_user}", "gists_url": "https://api.github.com/users/VikramjeetD/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/VikramjeetD", "id": 41290641, "login": "VikramjeetD", "node_id": "MDQ6VXNlcjQxMjkwNjQx", "organizations_url": "https://api.github.com/users/VikramjeetD/orgs", "received_events_url": "https://api.github.com/users/VikramjeetD/received_events", "repos_url": "https://api.github.com/users/VikramjeetD/repos", "site_admin": false, "starred_url": "https://api.github.com/users/VikramjeetD/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VikramjeetD/subscriptions", "type": "User", "url": "https://api.github.com/users/VikramjeetD" }
[ { "color": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" }, { "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" }
16
2019-06-06T03:49:53Z
2019-06-19T00:41:11Z
2019-06-19T00:41:04Z
CONTRIBUTOR
null
- [x] closes #26557 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] add whatsnew entry - [x] add tests Marks the methods mentioned in #26557 as deprecated, with proper messages.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26684/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26684/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26684.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26684", "merged_at": "2019-06-19T00:41:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26684.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26684" }
https://api.github.com/repos/pandas-dev/pandas/issues/26685
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26685/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26685/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26685/events
https://github.com/pandas-dev/pandas/pull/26685
452,878,144
MDExOlB1bGxSZXF1ZXN0Mjg1Njc5NjM0
26,685
ERR: include original error message for missing required dependencies
{ "avatar_url": "https://avatars.githubusercontent.com/u/41120183?v=4", "events_url": "https://api.github.com/users/DanielFEvans/events{/privacy}", "followers_url": "https://api.github.com/users/DanielFEvans/followers", "following_url": "https://api.github.com/users/DanielFEvans/following{/other_user}", "gists_url": "https://api.github.com/users/DanielFEvans/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DanielFEvans", "id": 41120183, "login": "DanielFEvans", "node_id": "MDQ6VXNlcjQxMTIwMTgz", "organizations_url": "https://api.github.com/users/DanielFEvans/orgs", "received_events_url": "https://api.github.com/users/DanielFEvans/received_events", "repos_url": "https://api.github.com/users/DanielFEvans/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DanielFEvans/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DanielFEvans/subscriptions", "type": "User", "url": "https://api.github.com/users/DanielFEvans" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "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-06-06T07:42:15Z
2019-06-11T08:27:06Z
2019-06-11T08:27:05Z
CONTRIBUTOR
null
closes #23868 Resubmit of PR #26665, which was merged in a bit too eagerly! Change to test hopefully avoids recursion, although like others, it doesn't reproduce locally for me.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26685/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26685/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26685.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26685", "merged_at": "2019-06-11T08:27:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26685.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26685" }
https://api.github.com/repos/pandas-dev/pandas/issues/26686
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26686/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26686/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26686/events
https://github.com/pandas-dev/pandas/pull/26686
452,912,399
MDExOlB1bGxSZXF1ZXN0Mjg1NzA2Njk0
26,686
Defer Series.str.get_dummies to pandas.get_dummies
{ "avatar_url": "https://avatars.githubusercontent.com/u/5648645?v=4", "events_url": "https://api.github.com/users/joshlk/events{/privacy}", "followers_url": "https://api.github.com/users/joshlk/followers", "following_url": "https://api.github.com/users/joshlk/following{/other_user}", "gists_url": "https://api.github.com/users/joshlk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joshlk", "id": 5648645, "login": "joshlk", "node_id": "MDQ6VXNlcjU2NDg2NDU=", "organizations_url": "https://api.github.com/users/joshlk/orgs", "received_events_url": "https://api.github.com/users/joshlk/received_events", "repos_url": "https://api.github.com/users/joshlk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joshlk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joshlk/subscriptions", "type": "User", "url": "https://api.github.com/users/joshlk" }
[ { "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": "e11d21", "default": false, "description": "Categori...
closed
false
null
[]
null
12
2019-06-06T08:59:59Z
2019-12-26T15:13:10Z
2019-09-08T16:41:12Z
NONE
null
- [x] closes #19618 - [x] 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/26686/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26686/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26686.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26686", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26686.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26686" }
https://api.github.com/repos/pandas-dev/pandas/issues/26687
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26687/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26687/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26687/events
https://github.com/pandas-dev/pandas/issues/26687
452,980,885
MDU6SXNzdWU0NTI5ODA4ODU=
26,687
rolling_apply forces output type to be numerical
{ "avatar_url": "https://avatars.githubusercontent.com/u/51169226?v=4", "events_url": "https://api.github.com/users/tobi-lipede-oodle/events{/privacy}", "followers_url": "https://api.github.com/users/tobi-lipede-oodle/followers", "following_url": "https://api.github.com/users/tobi-lipede-oodle/following{/other_user}", "gists_url": "https://api.github.com/users/tobi-lipede-oodle/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tobi-lipede-oodle", "id": 51169226, "login": "tobi-lipede-oodle", "node_id": "MDQ6VXNlcjUxMTY5MjI2", "organizations_url": "https://api.github.com/users/tobi-lipede-oodle/orgs", "received_events_url": "https://api.github.com/users/tobi-lipede-oodle/received_events", "repos_url": "https://api.github.com/users/tobi-lipede-oodle/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tobi-lipede-oodle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tobi-lipede-oodle/subscriptions", "type": "User", "url": "https://api.github.com/users/tobi-lipede-oodle" }
[ { "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-06-06T11:35:37Z
2020-01-21T04:27:19Z
2020-01-21T04:27:18Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python pd.Series([1, 2, 3, 4]).rolling(2).apply(lambda n: str(n)) ``` #### Problem description When using `rolling(x),apply(func)`, an error is thrown if the return value of `func` is non-numeric. Is this necessary? There are valid cases for a rolling apply function returning a string value. #### Expected Output ``` 0 1 1 2 2 3 3 4 dtype: object ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Linux pandas: 0.24.2 ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26687/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26687/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26688
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26688/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26688/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26688/events
https://github.com/pandas-dev/pandas/issues/26688
452,985,314
MDU6SXNzdWU0NTI5ODUzMTQ=
26,688
series.rolling doesn't create windows when values are NaN or inf
{ "avatar_url": "https://avatars.githubusercontent.com/u/51169226?v=4", "events_url": "https://api.github.com/users/tobi-lipede-oodle/events{/privacy}", "followers_url": "https://api.github.com/users/tobi-lipede-oodle/followers", "following_url": "https://api.github.com/users/tobi-lipede-oodle/following{/other_user}", "gists_url": "https://api.github.com/users/tobi-lipede-oodle/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tobi-lipede-oodle", "id": 51169226, "login": "tobi-lipede-oodle", "node_id": "MDQ6VXNlcjUxMTY5MjI2", "organizations_url": "https://api.github.com/users/tobi-lipede-oodle/orgs", "received_events_url": "https://api.github.com/users/tobi-lipede-oodle/received_events", "repos_url": "https://api.github.com/users/tobi-lipede-oodle/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tobi-lipede-oodle/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tobi-lipede-oodle/subscriptions", "type": "User", "url": "https://api.github.com/users/tobi-lipede-oodle" }
[ { "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-06-06T11:46:41Z
2019-06-07T01:53:30Z
2019-06-07T01:52:27Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python def fn(window): return(0) pd.Series([1, 2, 3, np.inf, 4, 5, 6]).rolling(2).apply(fn) ``` output: ``` 0 NaN 1 0.0 2 0.0 3 NaN 4 NaN 5 0.0 6 0.0 ``` #### Problem description If `series.rolling(x).apply(fn)` does not create a window if any of the values in said window are inf/NaN, and instead returns NaN for the window in question. This seems like an optimisation to reduce the number of window comparisons, but this may not be the behaviour intended by the user. #### Expected Output ``` 0 NaN 1 0.0 2 0.0 3 0.0 4 0.0 5 0.0 6 0.0 ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Linux pandas: 0.24.2 ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26688/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26688/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26689
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26689/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26689/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26689/events
https://github.com/pandas-dev/pandas/issues/26689
452,991,627
MDU6SXNzdWU0NTI5OTE2Mjc=
26,689
Comparison between TimedeltaIndex/PeriodIndex and 0-dim ndarray raises
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "006b75", "default": false, "description": "Arithmeti...
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-06-06T12:02:38Z
2019-06-07T15:14:35Z
2019-06-07T15:14:35Z
CONTRIBUTOR
null
```python In [17]: a = pd.timedelta_range('2H', periods=4) In [18]: a <= np.array(a.to_numpy()[0]) ``` ```pytb --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-18-e196011a0cff> in <module> ----> 1 a <= np.array(a.to_numpy()[0]) ~/sandbox/pandas/pandas/core/indexes/datetimelike.py in wrapper(self, other) 116 other = other._values 117 --> 118 result = op(self._data, maybe_unwrap_index(other)) 119 return result 120 ~/sandbox/pandas/pandas/core/arrays/timedeltas.py in wrapper(self, other) 78 79 elif not is_list_like(other): ---> 80 return ops.invalid_comparison(self, other, op) 81 82 elif len(other) != len(self): ~/sandbox/pandas/pandas/core/ops.py in invalid_comparison(left, right, op) 1196 else: 1197 raise TypeError("Invalid comparison between dtype={dtype} and {typ}" -> 1198 .format(dtype=left.dtype, typ=type(right).__name__)) 1199 return res_values 1200 TypeError: Invalid comparison between dtype=timedelta64[ns] and ndarray ``` Works for DatetimeIndex. Raises a different error for PeriodIndex ```python In [24]: a = pd.period_range('2000', periods=4) In [25]: a <= np.array(a.to_numpy()[0]) ``` ```pytb --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-25-e196011a0cff> in <module> ----> 1 a <= np.array(a.to_numpy()[0]) ~/sandbox/pandas/pandas/core/indexes/datetimelike.py in wrapper(self, other) 116 other = other._values 117 --> 118 result = op(self._data, maybe_unwrap_index(other)) 119 return result 120 ~/sandbox/pandas/pandas/core/arrays/period.py in wrapper(self, other) 76 result.fill(nat_result) 77 else: ---> 78 other = Period(other, freq=self.freq) 79 result = op(other.ordinal) 80 ~/sandbox/pandas/pandas/_libs/tslibs/period.pyx in pandas._libs.tslibs.period.Period.__new__() 2448 ordinal = converted.ordinal 2449 -> 2450 elif is_null_datetimelike(value) or value in nat_strings: 2451 ordinal = NPY_NAT 2452 TypeError: unhashable type: 'numpy.ndarray' ``` @jbrockmendel would you be interested in looking at 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/26689/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26689/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26690
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26690/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26690/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26690/events
https://github.com/pandas-dev/pandas/issues/26690
453,005,600
MDU6SXNzdWU0NTMwMDU2MDA=
26,690
ImportError: cannot import name 'Timedelta'
{ "avatar_url": "https://avatars.githubusercontent.com/u/35135320?v=4", "events_url": "https://api.github.com/users/CapitalZe/events{/privacy}", "followers_url": "https://api.github.com/users/CapitalZe/followers", "following_url": "https://api.github.com/users/CapitalZe/following{/other_user}", "gists_url": "https://api.github.com/users/CapitalZe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CapitalZe", "id": 35135320, "login": "CapitalZe", "node_id": "MDQ6VXNlcjM1MTM1MzIw", "organizations_url": "https://api.github.com/users/CapitalZe/orgs", "received_events_url": "https://api.github.com/users/CapitalZe/received_events", "repos_url": "https://api.github.com/users/CapitalZe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CapitalZe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CapitalZe/subscriptions", "type": "User", "url": "https://api.github.com/users/CapitalZe" }
[ { "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
7
2019-06-06T12:35:18Z
2019-06-11T06:41:33Z
2019-06-11T06:41:33Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # X@ubuntu:~/Desktop$ pylivetrader run -f algo.py --backend-config config.yaml ``` #### Problem description I'm trying to run pylivetrader locally in a conda environment with all requisites met, so far as I can see. Pandas continually fails. I have tried multiple Pandas versions and explored both the help sections here as well as thoroughly searched online for possible solutions. I believe there is a conflict of Pandas versions going on, but based on the output of ``pd.show_versions()``, as I detail below, I'm not quite sure what is going on. #### Expected Output I expect pylivetrader to be able to run the algo.py, instead I am faced with ``` ImportError: cannot import name 'Timedelta' ```. #### Output of ``pd.show_versions()`` Furthermore, the output of the above is: details> ```AttributeError: module 'pandas' has no attribute 'show_versions'``` However, if I run ```conda list``` in the specific env then I see that: ``` pandas 0.24.2 py37he6710b0_0 ``` /details> ``` Traceback (most recent call last): File "/home/X.local/bin/pylivetrader", line 7, in <module> from pylivetrader.__main__ import main File "/home/X/.local/lib/python3.5/site-packages/pylivetrader/__init__.py", line 16, in <module> from pylivetrader import api # noqa File "/home/X/.local/lib/python3.5/site-packages/pylivetrader/api.py", line 25, in <module> from pylivetrader.finance.asset_restrictions import ( File "/home/X/.local/lib/python3.5/site-packages/pylivetrader/finance/asset_restrictions.py", line 20, in <module> import pandas as pd File "/home/X/.local/lib/python3.5/site-packages/pandas/__init__.py", line 42, in <module> from pandas.core.api import * File "/home/X/.local/lib/python3.5/site-packages/pandas/core/api.py", line 10, in <module> from pandas.core.groupby.groupby import Grouper File "/home/X/.local/lib/python3.5/site-packages/pandas/core/groupby/__init__.py", line 2, in <module> from pandas.core.groupby.groupby import ( File "/home/X/.local/lib/python3.5/site-packages/pandas/core/groupby/groupby.py", line 49, in <module> from pandas.core.frame import DataFrame File "/home/X/.local/lib/python3.5/site-packages/pandas/core/frame.py", line 66, in <module> from pandas.core.generic import NDFrame, _shared_docs File "/home/X/.local/lib/python3.5/site-packages/pandas/core/generic.py", line 43, in <module> from pandas.core.internals import BlockManager File "/home/X/.local/lib/python3.5/site-packages/pandas/core/internals/__init__.py", line 2, in <module> from .blocks import ( # noqa:F401 File "/home/X/.local/lib/python3.5/site-packages/pandas/core/internals/blocks.py", line 11, in <module> from pandas._libs.tslibs import Timedelta, conversion, is_null_datetimelike ImportError: cannot import name 'Timedelta' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26690/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26690/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26691
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26691/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26691/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26691/events
https://github.com/pandas-dev/pandas/pull/26691
453,058,466
MDExOlB1bGxSZXF1ZXN0Mjg1ODI1NjM3
26,691
DEPS: Grouping deps and adding information to environment.yml
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "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-06-06T14:19:50Z
2019-06-07T07:42:20Z
2019-06-06T15:46:22Z
MEMBER
null
- [X] closes #26659 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I didn't add or remove any dependency here. I think it makes more sense to keep exactly the same here that the diff is not so clear, and make changes in a follow up PR if needed. CC: @jreback @TomAugspurger @jorisvandenbossche
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26691/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26691/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26691.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26691", "merged_at": "2019-06-06T15:46:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26691.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26691" }
https://api.github.com/repos/pandas-dev/pandas/issues/26692
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26692/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26692/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26692/events
https://github.com/pandas-dev/pandas/issues/26692
453,081,056
MDU6SXNzdWU0NTMwODEwNTY=
26,692
If tuples used as index pd.read_json( orient='split') does not read file saved by df.to_json(orient='split)
{ "avatar_url": "https://avatars.githubusercontent.com/u/8679977?v=4", "events_url": "https://api.github.com/users/achatrian/events{/privacy}", "followers_url": "https://api.github.com/users/achatrian/followers", "following_url": "https://api.github.com/users/achatrian/following{/other_user}", "gists_url": "https://api.github.com/users/achatrian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/achatrian", "id": 8679977, "login": "achatrian", "node_id": "MDQ6VXNlcjg2Nzk5Nzc=", "organizations_url": "https://api.github.com/users/achatrian/orgs", "received_events_url": "https://api.github.com/users/achatrian/received_events", "repos_url": "https://api.github.com/users/achatrian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/achatrian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/achatrian/subscriptions", "type": "User", "url": "https://api.github.com/users/achatrian" }
[ { "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": "read_json, to_json, json...
open
false
null
[]
null
2
2019-06-06T15:00:11Z
2020-11-04T21:51:51Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python a = pd.DataFrame() a['example'] = [0, 1 ,2, 3 ,4 ,5 ,6] a.index = [(i, i) for i in range(7)] a.to_json('test2.json', orient='split') b = pd.read_json('test2.json', orient='split') ``` #### Problem description After using tuples as index and saving DataFrame with orient='split', error is thrown during loading via pd.read_json( orient='split'). Full traceback: -------------------------------------------------------- ValueError Traceback (most recent call last) ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in create_block_manager_from_arrays(arrays, names, axes) 1666 blocks = form_blocks(arrays, names, axes) -> 1667 mgr = BlockManager(blocks, axes) 1668 mgr._consolidate_inplace() ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in __init__(self, blocks, axes, do_integrity_check) 113 if do_integrity_check: --> 114 self._verify_integrity() 115 ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in _verify_integrity(self) 310 if block._verify_integrity and block.shape[1:] != mgr_shape[1:]: --> 311 construction_error(tot_items, block.shape[1:], self.axes) 312 if len(self.items) != tot_items: ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in construction_error(tot_items, block_shape, axes, e) 1690 raise ValueError("Shape of passed values is {0}, indices imply {1}".format( -> 1691 passed, implied)) 1692 ValueError: Shape of passed values is (7, 1), indices imply (3, 1) During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) <ipython-input-36-f5b064e2d9e4> in <module> 3 a.index = [(i, i, i) for i in range(7)] 4 a.to_json('test2.json', orient='split') ----> 5 b = pd.read_json('test2.json', orient='split') ~/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py in read_json(path_or_buf, orient, typ, dtype, convert_axes, convert_dates, keep_default_dates, numpy, precise_float, date_unit, encoding, lines, chunksize, compression) 425 return json_reader 426 --> 427 result = json_reader.read() 428 if should_close: 429 try: ~/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py in read(self) 535 ) 536 else: --> 537 obj = self._get_object_parser(self.data) 538 self.close() 539 return obj ~/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py in _get_object_parser(self, json) 554 obj = None 555 if typ == 'frame': --> 556 obj = FrameParser(json, **kwargs).parse() 557 558 if typ == 'series' or obj is None: ~/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py in parse(self) 650 651 else: --> 652 self._parse_no_numpy() 653 654 if self.obj is None: ~/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py in _parse_no_numpy(self) 874 loads(json, precise_float=self.precise_float))} 875 self.check_keys_split(decoded) --> 876 self.obj = DataFrame(dtype=None, **decoded) 877 elif orient == "index": 878 self.obj = DataFrame( ~/anaconda3/lib/python3.7/site-packages/pandas/core/frame.py in __init__(self, data, index, columns, dtype, copy) 446 447 mgr = arrays_to_mgr(arrays, columns, index, columns, --> 448 dtype=dtype) 449 else: 450 mgr = init_ndarray(data, index, columns, dtype=dtype, ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/construction.py in arrays_to_mgr(arrays, arr_names, index, columns, dtype) 59 axes = [ensure_index(columns), index] 60 ---> 61 return create_block_manager_from_arrays(arrays, arr_names, axes) 62 63 ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in create_block_manager_from_arrays(arrays, names, axes) 1669 return mgr 1670 except ValueError as e: -> 1671 construction_error(len(arrays), arrays[0].shape, axes, e) 1672 1673 ~/anaconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py in construction_error(tot_items, block_shape, axes, e) 1689 raise ValueError("Empty data passed with indices specified.") 1690 raise ValueError("Shape of passed values is {0}, indices imply {1}".format( -> 1691 passed, implied)) 1692 1693 ValueError: Shape of passed values is (7, 1), indices imply (2, 1) 2 in last tuple is number of elements of tuples I use as index. #### Expected Output b = a -- dataframe with same content as a example (0, 0) 0 (1, 1) 1 (2, 2) 2 (3, 3) 3 (4, 4) 4 (5, 5) 5 (6, 6) 6 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Linux OS-release: 4.18.0-20-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 pandas: 0.24.2 pytest: 4.5.0 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.7 numpy: 1.16.3 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.5.0 sphinx: 2.0.1 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.1.0 openpyxl: 2.6.2 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.8 lxml.etree: 4.3.3 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.3 pymysql: None psycopg2: None jinja2: 2.10.1 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/26692/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26692/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26693
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26693/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26693/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26693/events
https://github.com/pandas-dev/pandas/pull/26693
453,109,801
MDExOlB1bGxSZXF1ZXN0Mjg1ODY2MjA1
26,693
DEPS: Using cpplint from conda-forge
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "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-06-06T15:52:05Z
2019-06-07T11:29:27Z
2019-06-07T11:29:24Z
MEMBER
null
Follow up of #26691. `cpplint` was installed from pip, but it's now available in conda-forge. CC: @TomAugspurger
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26693/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26693/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26693.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26693", "merged_at": "2019-06-07T11:29:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26693.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26693" }
https://api.github.com/repos/pandas-dev/pandas/issues/26694
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26694/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26694/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26694/events
https://github.com/pandas-dev/pandas/pull/26694
453,184,316
MDExOlB1bGxSZXF1ZXN0Mjg1OTI1Njk1
26,694
Add Sponsors Button to GitHub Repo
{ "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": "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" }
5
2019-06-06T18:47:36Z
2019-06-07T17:24:15Z
2019-06-07T17:01:59Z
MEMBER
null
While discussion on other support avenues are still ongoing, I think it would still be beneficial to add the a Sponsors Button to the repo that points to https://pandas.pydata.org/donate.html Note: https://www.flipcause.com/secure/cause_pdetails/MzA3OA== is the direct page to donate but this link doesn't appear as "donate friendly" IMO Let me know if there's a better link to reference Reference to the Support Button on Numpy's page: https://github.com/numpy/numpy/pull/13700
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26694/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26694/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26694.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26694", "merged_at": "2019-06-07T17:01:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26694.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26694" }
https://api.github.com/repos/pandas-dev/pandas/issues/26695
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26695/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26695/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26695/events
https://github.com/pandas-dev/pandas/issues/26695
453,188,575
MDU6SXNzdWU0NTMxODg1NzU=
26,695
CI - Azure: print skipped tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "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": "0e8a16", "default": true, "description": n...
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-06-06T18:58:04Z
2019-06-10T15:48:30Z
2019-06-10T15:48:04Z
MEMBER
null
We have a `ci/print_skipped.py` script to print the skipped tests, that is currently used in Travis (see end of `.travis.yml` file). It would be to also do this in Azure as an extra step.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26695/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26695/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26696
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26696/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26696/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26696/events
https://github.com/pandas-dev/pandas/issues/26696
453,199,120
MDU6SXNzdWU0NTMxOTkxMjA=
26,696
Test for tests\indexes\datetimes\test_tools.py fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[]
closed
false
null
[]
null
1
2019-06-06T19:25:05Z
2019-06-06T19:29:32Z
2019-06-06T19:25:27Z
CONTRIBUTOR
null
I'm getting an error when running the tests suite. I've locatet the relevant PR to be #26585. It is failing on my machine, but not on the CI, so I assume some configuration differences. I'm on a Windows machine, which could be the relevant difference. See my cinfuΓ­guration at the bottom of this issue. ``` ================================================================= FAILURES ================================================================== ______________________ TestTimeConversionFormats.test_int_to_datetime_format_YYYYMMDD_typeerror[2012010101-2012010101] ______________________ self = <pandas.tests.indexes.datetimes.test_tools.TestTimeConversionFormats object at 0x000002950CC92E80>, int_date = 2012010101 expected = 2012010101 @pytest.mark.parametrize('int_date, expected', [ # valid date, length == 8 [20121030, datetime(2012, 10, 30)], # short valid date, length == 6 [199934, datetime(1999, 3, 4)], # long integer date partially parsed to datetime(2012,1,1), length > 8 [2012010101, 2012010101], # invalid date partially parsed to datetime(2012,9,9), length == 8 [20129930, 20129930], # short integer date partially parsed to datetime(2012,9,9), length < 8 [2012993, 2012993], # short invalid date, length == 4 [2121, 2121]]) def test_int_to_datetime_format_YYYYMMDD_typeerror(self, int_date, expected): # GH 26583 > result = to_datetime(int_date, format='%Y%m%d', errors='ignore') pandas\tests\indexes\datetimes\test_tools.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas\util\_decorators.py:188: in wrapper return func(*args, **kwargs) pandas\core\tools\datetimes.py:626: in to_datetime result = convert_listlike(np.array([arg]), box, format)[0] pandas\core\tools\datetimes.py:270: in _convert_listlike_datetimes arg, format, exact=exact, errors=errors) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > val[found.end():]) E TypeError: 'int' object is unsliceable pandas\_libs\tslibs\strptime.pyx:149: TypeError ________________________ TestTimeConversionFormats.test_int_to_datetime_format_YYYYMMDD_typeerror[20129930-20129930] ________________________ self = <pandas.tests.indexes.datetimes.test_tools.TestTimeConversionFormats object at 0x000002950D025C18>, int_date = 20129930 expected = 20129930 @pytest.mark.parametrize('int_date, expected', [ # valid date, length == 8 [20121030, datetime(2012, 10, 30)], # short valid date, length == 6 [199934, datetime(1999, 3, 4)], # long integer date partially parsed to datetime(2012,1,1), length > 8 [2012010101, 2012010101], # invalid date partially parsed to datetime(2012,9,9), length == 8 [20129930, 20129930], # short integer date partially parsed to datetime(2012,9,9), length < 8 [2012993, 2012993], # short invalid date, length == 4 [2121, 2121]]) def test_int_to_datetime_format_YYYYMMDD_typeerror(self, int_date, expected): # GH 26583 > result = to_datetime(int_date, format='%Y%m%d', errors='ignore') pandas\tests\indexes\datetimes\test_tools.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas\util\_decorators.py:188: in wrapper return func(*args, **kwargs) pandas\core\tools\datetimes.py:626: in to_datetime result = convert_listlike(np.array([arg]), box, format)[0] pandas\core\tools\datetimes.py:270: in _convert_listlike_datetimes arg, format, exact=exact, errors=errors) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > val[found.end():]) E TypeError: 'int' object is unsliceable pandas\_libs\tslibs\strptime.pyx:149: TypeError _________________________ TestTimeConversionFormats.test_int_to_datetime_format_YYYYMMDD_typeerror[2012993-2012993] _________________________ self = <pandas.tests.indexes.datetimes.test_tools.TestTimeConversionFormats object at 0x000002950CEC7908>, int_date = 2012993 expected = 2012993 @pytest.mark.parametrize('int_date, expected', [ # valid date, length == 8 [20121030, datetime(2012, 10, 30)], # short valid date, length == 6 [199934, datetime(1999, 3, 4)], # long integer date partially parsed to datetime(2012,1,1), length > 8 [2012010101, 2012010101], # invalid date partially parsed to datetime(2012,9,9), length == 8 [20129930, 20129930], # short integer date partially parsed to datetime(2012,9,9), length < 8 [2012993, 2012993], # short invalid date, length == 4 [2121, 2121]]) def test_int_to_datetime_format_YYYYMMDD_typeerror(self, int_date, expected): # GH 26583 > result = to_datetime(int_date, format='%Y%m%d', errors='ignore') pandas\tests\indexes\datetimes\test_tools.py:152: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas\util\_decorators.py:188: in wrapper return func(*args, **kwargs) pandas\core\tools\datetimes.py:626: in to_datetime result = convert_listlike(np.array([arg]), box, format)[0] pandas\core\tools\datetimes.py:270: in _convert_listlike_datetimes arg, format, exact=exact, errors=errors) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > val[found.end():]) E TypeError: 'int' object is unsliceable pandas\_libs\tslibs\strptime.pyx:149: TypeError ================================================= 3 failed, 394 deselected in 2.40 seconds ================================================== ``` <details> INSTALLED VERSIONS ------------------ commit: 649ad5c91aabb95d7f200eec84b82cae1459fc65 python: 3.7.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.25.0.dev0+616.g7f0a7435e pytest: 4.3.0 pip: 18.1 setuptools: 40.6.2 Cython: 0.29 numpy: 1.16.4 scipy: 1.1.0 pyarrow: 0.11.1 xarray: None IPython: 7.5.0 sphinx: 1.8.2 patsy: None dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: None tables: 3.5.1 numexpr: 2.6.8 feather: None matplotlib: 3.0.1 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: None lxml.etree: 4.3.3 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None 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/26696/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26696/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26697
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26697/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26697/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26697/events
https://github.com/pandas-dev/pandas/pull/26697
453,242,518
MDExOlB1bGxSZXF1ZXN0Mjg1OTczMDM2
26,697
PERF: use python int in RangeIndex.get_loc
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "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": "e99695", "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" }
3
2019-06-06T21:18:16Z
2019-10-15T20:09:12Z
2019-06-07T11:35:18Z
CONTRIBUTOR
null
Follow-up to #26565. I didn't ensure a python int in ``RangeIndex.get_loc`` in the original PR, causing a slow performance when using a key with a wrong type: ```python In [1]: rng = pd.RangeIndex(1_000_000) In [2]: %timeit rng.get_loc(np.int64(900_000)) 156 ms Β± 1.03 ms per loop # master 478 ns Β± 6.3 ns per loop # this PR ``` Also some cleanups in ``__getitem__``.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26697/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26697/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26697.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26697", "merged_at": "2019-06-07T11:35:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26697.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26697" }
https://api.github.com/repos/pandas-dev/pandas/issues/26698
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26698/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26698/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26698/events
https://github.com/pandas-dev/pandas/pull/26698
453,305,697
MDExOlB1bGxSZXF1ZXN0Mjg2MDIzODI4
26,698
CI: Add print skipped tests into azure step
{ "avatar_url": "https://avatars.githubusercontent.com/u/11509423?v=4", "events_url": "https://api.github.com/users/xcz011/events{/privacy}", "followers_url": "https://api.github.com/users/xcz011/followers", "following_url": "https://api.github.com/users/xcz011/following{/other_user}", "gists_url": "https://api.github.com/users/xcz011/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xcz011", "id": 11509423, "login": "xcz011", "node_id": "MDQ6VXNlcjExNTA5NDIz", "organizations_url": "https://api.github.com/users/xcz011/orgs", "received_events_url": "https://api.github.com/users/xcz011/received_events", "repos_url": "https://api.github.com/users/xcz011/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xcz011/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xcz011/subscriptions", "type": "User", "url": "https://api.github.com/users/xcz011" }
[ { "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": "a2bca7", "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" }
12
2019-06-07T01:44:49Z
2019-06-10T23:09:33Z
2019-06-10T15:48:05Z
CONTRIBUTOR
null
- [x] closes #26695 - [ ] 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/26698/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26698/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26698.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26698", "merged_at": "2019-06-10T15:48:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26698.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26698" }
https://api.github.com/repos/pandas-dev/pandas/issues/26699
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26699/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26699/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26699/events
https://github.com/pandas-dev/pandas/issues/26699
453,353,718
MDU6SXNzdWU0NTMzNTM3MTg=
26,699
Replace flat columns with hierarchical while merge
{ "avatar_url": "https://avatars.githubusercontent.com/u/2182222?v=4", "events_url": "https://api.github.com/users/dinya/events{/privacy}", "followers_url": "https://api.github.com/users/dinya/followers", "following_url": "https://api.github.com/users/dinya/following{/other_user}", "gists_url": "https://api.github.com/users/dinya/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dinya", "id": 2182222, "login": "dinya", "node_id": "MDQ6VXNlcjIxODIyMjI=", "organizations_url": "https://api.github.com/users/dinya/orgs", "received_events_url": "https://api.github.com/users/dinya/received_events", "repos_url": "https://api.github.com/users/dinya/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dinya/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dinya/subscriptions", "type": "User", "url": "https://api.github.com/users/dinya" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": nu...
closed
false
null
[]
null
7
2019-06-07T06:12:52Z
2021-07-10T02:24:56Z
2021-07-10T02:24:56Z
NONE
null
Is there is any standard method to replace flat columns with hierarchical while merge the dataframes? I mean something like: ```python def columns_as_multiindex(df, inplace=False): """Replace flat (:obj:`pandas.Index`) columns with hierarchical (:obj:`pandas.MultiIndex`). Parameters ---------- df : pandas.DataFrame Dataframe wich contains the columns to be converted to MultiIndex. inplace : bool (default False) If ``True``, do operation inplace and return ``None``. Returns ------- pandas.DataFrame or None Returns dataframe with modifed columns or ``None`` (depends on `inplace` parameter value). Examples -------- >>> df0 = pd.DataFrame([[1,2], [10, 20], [100, 200]], columns=["A", "B"]) >>> df0 ... A B ... 0 1 2 ... 1 10 20 ... 2 100 200 >>> columns = pd.MultiIndex.from_tuples([("C", "C0"), ("D", "D0")]) >>> df1 = pd.DataFrame([[1,3], [10, 30], [100, 300]], columns=columns) >>> df1 ... C D ... C0 D0 ... 0 1 3 ... 1 10 30 ... 2 100 300 Merging ``df0`` with ``df1`` returns the dataframe contains tuples in the column names >>> df = pd.merge(df0, df1, left_on="A", right_on=[("C", "C0")]) >>> df ... A B (C, C0) (D, D0) ... 0 1 2 1 3 ... 1 10 20 10 30 ... 2 100 200 100 300 It's a bit ugly. Let's beautify the header >>> columns_as_multiindex(df) >>> df ... A B C D ... C0 D0 ... 0 1 2 1 3 ... 1 10 20 10 30 ... 2 100 200 100 300 """ columns = df.columns.tolist() columns = [(c,) if isinstance(c, str) or not np.iterable(c) else c for c in columns] max_len = max([len(c) for c in columns]) columns = [tuple(c + ("",) * (max_len - len(c))) for c in columns] columns = pd.MultiIndex.from_tuples(columns) if inplace: df.columns = columns else: df_new = df.copy() df_new.columns = columns return df_new ``` **UPD 2019-06-13** A bit more robust function on input data.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26699/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26699/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26700
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26700/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26700/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26700/events
https://github.com/pandas-dev/pandas/pull/26700
453,385,435
MDExOlB1bGxSZXF1ZXN0Mjg2MDg0MjMz
26,700
DOC: Not running clipboard examples in the doc
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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" }
11
2019-06-07T07:56:12Z
2019-06-09T12:07:27Z
2019-06-08T23:07:30Z
MEMBER
null
- [X] xref #26648, #26103 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The clipboard example in the docs is failing when building in azure (#26648), and had to be previously fixed in travis (#26103). I don't think there is any need to run those examples, and we can keep things simpler. This adds the same value to the doc reader, and doesn't require to set up a clipboard service in the doc builds. Also, we're thinking on having a doc build for windows (#26574) not sure if that could cause new problems. CC: @jorisvandenbossche
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26700/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26700/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26700.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26700", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26700.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26700" }
https://api.github.com/repos/pandas-dev/pandas/issues/26701
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26701/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26701/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26701/events
https://github.com/pandas-dev/pandas/issues/26701
453,400,493
MDU6SXNzdWU0NTM0MDA0OTM=
26,701
DataFrame(dataTuple) crashes
{ "avatar_url": "https://avatars.githubusercontent.com/u/48122976?v=4", "events_url": "https://api.github.com/users/arian-f/events{/privacy}", "followers_url": "https://api.github.com/users/arian-f/followers", "following_url": "https://api.github.com/users/arian-f/following{/other_user}", "gists_url": "https://api.github.com/users/arian-f/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arian-f", "id": 48122976, "login": "arian-f", "node_id": "MDQ6VXNlcjQ4MTIyOTc2", "organizations_url": "https://api.github.com/users/arian-f/orgs", "received_events_url": "https://api.github.com/users/arian-f/received_events", "repos_url": "https://api.github.com/users/arian-f/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arian-f/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arian-f/subscriptions", "type": "User", "url": "https://api.github.com/users/arian-f" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
1
2019-06-07T08:39:03Z
2019-06-07T10:34:42Z
2019-06-07T10:33:35Z
NONE
null
#### MWE ```python import pandas data = ([1, 2, 3], [4, 5, 6], [7, 8, 9]) pandas.DataFrame(data) # the whole process crashes ``` #### Problem description the whole python process crashes when pandas.DataFrame() is called with a tuple for the data argument. #### Expected Output ``` 1 2 3 0 1 2 3 1 4 5 6 2 7 8 9 ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: AMD64 Family 21 Model 19 Stepping 1, AuthenticAMD byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 pytest: 4.5.0 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.8 numpy: 1.16.4 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.5.0 sphinx: 2.0.1 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: 1.2.1 tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.1.0 openpyxl: 2.6.2 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.8 lxml.etree: 4.3.3 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.3 pymysql: 0.9.3 psycopg2: None jinja2: 2.10.1 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/26701/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26701/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26702
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26702/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26702/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26702/events
https://github.com/pandas-dev/pandas/pull/26702
453,403,521
MDExOlB1bGxSZXF1ZXN0Mjg2MDk4NjQz
26,702
PERF: restore DatetimeIndex.__iter__ performance by using non-EA implementation
{ "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": "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" }
8
2019-06-07T08:46:53Z
2019-06-07T19:35:04Z
2019-06-07T19:01:02Z
CONTRIBUTOR
null
The `timeseries.TimeIteration.time_iter` benchmark shows a `6.4x` regression here: https://qwhelan.github.io/pandas/#timeseries.Iteration.time_iter?p-time_index=%3Cfunction%20date_range%3E&commits=08395af4-fc24c2cd . An iteration of `asv find` blames https://github.com/pandas-dev/pandas/commit/1fc76b80#diff-26a6d2ca7adfca586aabbb1c9dd8bf36R74 . I believe what is happening is: - `pandas.core.indexes.datetimelike.ea_passthrough` was modified from calling `getattr()` to being passed a classmethod directly - The corresponding change in `DatetimeIndexOpsMixin.__init__` then implicitly changed `__iter__` from `DatetimeArray.__iter__` to `DatetimeLikeArrayMixin.__iter__`. The latter must assume an `ExtensionArray`, so is intrinsically slower. - This regression was then hidden in `asv` due to inadvertent inclusion of memory addresses when using certain parameters. This is resolved in https://github.com/airspeed-velocity/asv/pull/771 and explains why my `asv` results shows this regression while http://pandas.pydata.org/speed/pandas/#timeseries.Iteration.time_iter? does not Reverting back to old behavior yields a `7x` speedup: ``` $ asv compare HEAD^ HEAD --only-changed before after ratio [649ad5c9] [4d0c13cc] <any_all_fix> <datetime_iter> - 3.30Β±0.02s 469Β±6ms 0.14 timeseries.Iteration.time_iter(<function date_range>) - 34.7Β±1ms 11.2Β±0.2ms 0.32 timeseries.Iteration.time_iter_preexit(<function date_range>) ``` - [ ] 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/26702/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26702/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26702.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26702", "merged_at": "2019-06-07T19:01:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26702.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26702" }
https://api.github.com/repos/pandas-dev/pandas/issues/26703
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26703/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26703/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26703/events
https://github.com/pandas-dev/pandas/pull/26703
453,450,812
MDExOlB1bGxSZXF1ZXN0Mjg2MTM2OTQ3
26,703
Renaming asv setting build_cache_size
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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": "a2bca7", "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" }
7
2019-06-07T10:44:44Z
2019-06-10T22:28:20Z
2019-06-10T22:28:16Z
MEMBER
null
The CI job that is checking that the benchmarks don't break is reporting that an `asv` setting has been renamed. I think we've got a server where we run the benchmarks, not sure if we replicate the environment there at every run from `environment.yml`. Otherwise I guess we should do it manually before merging this. @TomAugspurger I think you manage that server? does this make sense?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26703/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26703/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26703.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26703", "merged_at": "2019-06-10T22:28:16Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26703.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26703" }
https://api.github.com/repos/pandas-dev/pandas/issues/26704
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26704/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26704/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26704/events
https://github.com/pandas-dev/pandas/pull/26704
453,466,512
MDExOlB1bGxSZXF1ZXN0Mjg2MTQ5ODk5
26,704
Convert Sparse ASVs
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "207de5", "default": false, "description": ...
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" }
11
2019-06-07T11:28:42Z
2019-06-16T14:32:18Z
2019-06-16T14:32:13Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26704/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26704/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26704.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26704", "merged_at": "2019-06-16T14:32:13Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26704.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26704" }
https://api.github.com/repos/pandas-dev/pandas/issues/26705
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26705/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26705/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26705/events
https://github.com/pandas-dev/pandas/issues/26705
453,510,633
MDU6SXNzdWU0NTM1MTA2MzM=
26,705
Deprecate Series.ftype / DataFrame.ftypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" }, { "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" }
6
2019-06-07T13:20:34Z
2019-06-11T00:18:58Z
2019-06-11T00:18:58Z
MEMBER
null
With the `ftype(s)` property, you could check if data was sparse: ``` In [26]: df = pd.DataFrame({'a': pd.SparseArray([1, np.nan, 1])}) In [27]: df Out[27]: a 0 1.0 1 NaN 2 1.0 In [28]: df.dtypes Out[28]: a Sparse[float64, nan] dtype: object In [29]: df.ftypes Out[29]: a float64:sparse dtype: object ``` But now that the dtype itself is a EA SparseDtype, I don't think those `ftype` and `ftypes` attributes serve any good purpose. So let's deprecate them.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26705/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26705/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26706
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26706/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26706/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26706/events
https://github.com/pandas-dev/pandas/issues/26706
453,514,291
MDU6SXNzdWU0NTM1MTQyOTE=
26,706
Recommended way to check for sparse data (DataFrame or Series)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "009800", "default": false, "description": "Sparse D...
open
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/oth...
null
35
2019-06-07T13:28:33Z
2021-07-10T02:28:27Z
null
MEMBER
null
Previously, you check for the SparseDataFrame class, but now we want people to store sparse data in normal DataFrames/Series. So for a library developer, what is the recommended way to check for sparse data? For a Series (or SparseArray), the `pd.api.types.is_sparse` still works on a plain Series with sparse data: ``` In [42]: df = pd.DataFrame({'a': pd.SparseArray([1, np.nan, 1])}) In [43]: s = df['a'] In [44]: type(s) Out[44]: pandas.core.series.Series In [45]: pd.api.types.is_sparse(s) Out[45]: True ``` but for a DataFrame that function does not work. So you could apply that method on each column/dtype, and check with `any` or `all` depending on your requirements: ``` In [56]: df = pd.DataFrame({'a': pd.SparseArray([1, np.nan, 1]), 'b': [1, 2, 3]}) In [57]: df.dtypes.apply(pd.api.types.is_sparse) Out[57]: a True b False dtype: bool In [58]: df.dtypes.apply(pd.api.types.is_sparse).any() Out[58]: True In [59]: df.dtypes.apply(pd.api.types.is_sparse).all() Out[59]: False ``` So that actually works quite OK, now I am writing it. Do we want to make this even easier somehow? Or document 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/26706/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26706/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26707
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26707/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26707/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26707/events
https://github.com/pandas-dev/pandas/pull/26707
453,543,980
MDExOlB1bGxSZXF1ZXN0Mjg2MjEyODg1
26,707
BUG: TDI/PI comparison with zero-dim array
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timedelta 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" }
3
2019-06-07T14:30:53Z
2019-06-07T16:03:10Z
2019-06-07T15:14:35Z
MEMBER
null
- [x] closes #26689 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The long-term solution to problems of this kind will be #23853.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26707/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26707/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26707.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26707", "merged_at": "2019-06-07T15:14:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26707.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26707" }
https://api.github.com/repos/pandas-dev/pandas/issues/26708
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26708/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26708/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26708/events
https://github.com/pandas-dev/pandas/pull/26708
453,547,450
MDExOlB1bGxSZXF1ZXN0Mjg2MjE1Njc5
26,708
set eval(engine="python") for python2
{ "avatar_url": "https://avatars.githubusercontent.com/u/8034156?v=4", "events_url": "https://api.github.com/users/shouldsee/events{/privacy}", "followers_url": "https://api.github.com/users/shouldsee/followers", "following_url": "https://api.github.com/users/shouldsee/following{/other_user}", "gists_url": "https://api.github.com/users/shouldsee/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shouldsee", "id": 8034156, "login": "shouldsee", "node_id": "MDQ6VXNlcjgwMzQxNTY=", "organizations_url": "https://api.github.com/users/shouldsee/orgs", "received_events_url": "https://api.github.com/users/shouldsee/received_events", "repos_url": "https://api.github.com/users/shouldsee/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shouldsee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shouldsee/subscriptions", "type": "User", "url": "https://api.github.com/users/shouldsee" }
[]
closed
false
null
[]
null
5
2019-06-07T14:37:59Z
2019-06-08T21:52:54Z
2019-06-08T21:52:53Z
NONE
null
see issue https://github.com/pandas-dev/pandas/issues/26549 - [ ] 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/26708/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26708/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26708.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26708", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26708.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26708" }
https://api.github.com/repos/pandas-dev/pandas/issues/26709
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26709/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26709/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26709/events
https://github.com/pandas-dev/pandas/issues/26709
453,598,969
MDU6SXNzdWU0NTM1OTg5Njk=
26,709
Broken benchmarks
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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": "009800", "default": false, "description": ...
closed
false
null
[]
null
2
2019-06-07T16:34:40Z
2019-06-07T20:34:08Z
2019-06-07T20:34:08Z
MEMBER
null
The benchmarks are currently broken, and are making red the CI of all PRs that modify something in `asv_bench` (we run the CI check for benchmarks when something is modified in that directory). This has probably been caused by #26225. But it's strange that the CI for that PR wasn't red, since it run the benchmark checks. This is blocking #26414, #26703. The error can be seen here: https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=12407 ``` [ 16.10%] Β·Β·Β· ...ervalIndexMethod.time_intersection_duplicate 1/3 failed [ 16.10%] Β·Β·Β· ========== ========== param1 ---------- ---------- 1000 1.76Β±0ms 100000 73.3Β±0ms 10000000 failed ========== ========== ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26709/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26709/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26710
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26710/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26710/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26710/events
https://github.com/pandas-dev/pandas/issues/26710
453,629,263
MDU6SXNzdWU0NTM2MjkyNjM=
26,710
New accessor API
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AD7FA8", "default": false, "description": null, ...
open
false
null
[]
null
17
2019-06-07T17:58:19Z
2021-07-10T02:32:49Z
null
MEMBER
null
Currently, to extend pandas `Series`, `DataFrame` and `Index` with user-defined methods, we use accessors in the next way: ```python @pandas.api.extensions.register_series_accessor('emoji') class Emoji: def __init__(self, data): self.data = data def is_monkey(self): """ This would create `Series().emoji.is_monkey` """ return self.data.isin(['πŸ™ˆ', 'πŸ™‰', 'πŸ™Š']) ``` While this works well, I think there are two problems with this approach: - The API looks somehow intimidating, and it's not well known. I think because `pandas.api.extensions.register_series_accessor` is too long and lives in `pandas.api`, separate of functionality most users know. - It's not possible to register methods directly (`Series().is_monkey` instead of `Series().emoji.is_monkey`) I think all the projects extending pandas I've seen, simply "inject" the methods (except the ones implemented by pandas maintainers). For example: - https://github.com/PatrikHlobil/Pandas-Bokeh/blob/master/pandas_bokeh/__init__.py#L20 - https://github.com/nalepae/pandarallel/blob/master/pandarallel/pandarallel.py#L52 What I propose is to have a easier/simpler API for the user. To be specific, this is the syntax I'd like when extending `Series`... ```python import pandas @pandas.Series.extend('emoji') class Emoji: def __init__(self, data): self.data = data def is_monkey(self): """ This would create `Series().emoji.is_monkey` """ return self.data.isin(['πŸ™ˆ', 'πŸ™‰', 'πŸ™Š']) @pandas.Series.extend(namespace='emoji') def is_monkey(data): """ This would also create `Series().emoji.is_monkey` """ return data.isin(['πŸ™ˆ', 'πŸ™‰', 'πŸ™Š']) @pandas.Series.extend class Emoji: def __init__(self, data): self.data = data def is_monkey(self): """ This would directly create `Series().is_monkey` """ return self.data.isin(['πŸ™ˆ', 'πŸ™‰', 'πŸ™Š']) @pandas.Series.extend def is_monkey(data): """ This would create `Series().emoji.is_monkey` """ return data.isin(['πŸ™ˆ', 'πŸ™‰', 'πŸ™Š']) ``` This would make things much easier for the user, because: - The name `pandas.Series.extend` is much easier to remember - A single function can be used (without creating a class) - A direct method of `Series`... can be created CC: @pandas-dev/pandas-core
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26710/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26710/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26711
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26711/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26711/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26711/events
https://github.com/pandas-dev/pandas/pull/26711
453,654,805
MDExOlB1bGxSZXF1ZXN0Mjg2MzAyMTU3
26,711
PERF: perform a unique intersection with IntervalIndex if at least one side is unique
{ "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": "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" }
6
2019-06-07T19:08:56Z
2019-07-20T09:39:54Z
2019-06-10T22:20:53Z
CONTRIBUTOR
null
Resolves https://github.com/pandas-dev/pandas/issues/26709 ``` before after ratio [3ff4f38f] [30bd5369] <datetime_iter~1> - 749Β±100ΞΌs 365Β±70ΞΌs 0.49 index_object.IntervalIndexMethod.time_intersection_duplicate(1000) - 59.6Β±3ms 8.04Β±0.2ms 0.13 index_object.IntervalIndexMethod.time_intersection_duplicate(100000) failed 2.50Β±0.01s n/a index_object.IntervalIndexMethod.time_intersection_duplicate(10000000) ``` - [ ] 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/26711/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26711/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26711.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26711", "merged_at": "2019-06-10T22:20:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26711.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26711" }
https://api.github.com/repos/pandas-dev/pandas/issues/26712
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26712/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26712/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26712/events
https://github.com/pandas-dev/pandas/pull/26712
453,657,592
MDExOlB1bGxSZXF1ZXN0Mjg2MzA0NDMy
26,712
ASV: remove large IntervalIndex benchmark
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "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-06-07T19:17:00Z
2019-06-07T20:37:18Z
2019-06-07T20:34:08Z
CONTRIBUTOR
null
Closes #26709 The `setup` for that `N` took 30s+ on my machine. I doubt that was intended.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26712/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26712/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26712.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26712", "merged_at": "2019-06-07T20:34:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26712.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26712" }