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/35317
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35317/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35317/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35317/events
https://github.com/pandas-dev/pandas/pull/35317
658,742,349
MDExOlB1bGxSZXF1ZXN0NDUwNjY5MjE2
35,317
DOC: Rst Formatting, make sure continuation prompt are used.
{ "avatar_url": "https://avatars.githubusercontent.com/u/335567?v=4", "events_url": "https://api.github.com/users/Carreau/events{/privacy}", "followers_url": "https://api.github.com/users/Carreau/followers", "following_url": "https://api.github.com/users/Carreau/following{/other_user}", "gists_url": "https://api.github.com/users/Carreau/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Carreau", "id": 335567, "login": "Carreau", "node_id": "MDQ6VXNlcjMzNTU2Nw==", "organizations_url": "https://api.github.com/users/Carreau/orgs", "received_events_url": "https://api.github.com/users/Carreau/received_events", "repos_url": "https://api.github.com/users/Carreau/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Carreau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Carreau/subscriptions", "type": "User", "url": "https://api.github.com/users/Carreau" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-07-17T01:46:44Z
2020-09-10T18:53:46Z
2020-09-10T18:53:41Z
CONTRIBUTOR
null
Without the `...` for some tools it may look like `with ExcelWriter('path_to_file.xlsx',` is an input and `date...` is the output. I initially thought that I could use the hanging indent to separate code continuation from output but `pandas/core/indexing.py` proved me wrong as the example just after the one I fixed have the first line of the output be indented.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35317/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35317/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35317.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35317", "merged_at": "2020-09-10T18:53:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35317.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35317" }
https://api.github.com/repos/pandas-dev/pandas/issues/35318
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35318/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35318/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35318/events
https://github.com/pandas-dev/pandas/pull/35318
658,827,097
MDExOlB1bGxSZXF1ZXN0NDUwNzQ1MTc5
35,318
Update multi.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/9131265?v=4", "events_url": "https://api.github.com/users/zky001/events{/privacy}", "followers_url": "https://api.github.com/users/zky001/followers", "following_url": "https://api.github.com/users/zky001/following{/other_user}", "gists_url": "https://api.github.com/users/zky001/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zky001", "id": 9131265, "login": "zky001", "node_id": "MDQ6VXNlcjkxMzEyNjU=", "organizations_url": "https://api.github.com/users/zky001/orgs", "received_events_url": "https://api.github.com/users/zky001/received_events", "repos_url": "https://api.github.com/users/zky001/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zky001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zky001/subscriptions", "type": "User", "url": "https://api.github.com/users/zky001" }
[]
closed
false
null
[]
null
3
2020-07-17T04:03:11Z
2020-07-20T06:04:31Z
2020-07-20T06:04:31Z
NONE
null
fix bugs be metioned on issue #35301 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35318/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35318/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35318.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35318", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35318.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35318" }
https://api.github.com/repos/pandas-dev/pandas/issues/35319
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35319/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35319/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35319/events
https://github.com/pandas-dev/pandas/pull/35319
658,954,825
MDExOlB1bGxSZXF1ZXN0NDUwODU4NjE4
35,319
Update multi.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/9131265?v=4", "events_url": "https://api.github.com/users/zky001/events{/privacy}", "followers_url": "https://api.github.com/users/zky001/followers", "following_url": "https://api.github.com/users/zky001/following{/other_user}", "gists_url": "https://api.github.com/users/zky001/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zky001", "id": 9131265, "login": "zky001", "node_id": "MDQ6VXNlcjkxMzEyNjU=", "organizations_url": "https://api.github.com/users/zky001/orgs", "received_events_url": "https://api.github.com/users/zky001/received_events", "repos_url": "https://api.github.com/users/zky001/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zky001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zky001/subscriptions", "type": "User", "url": "https://api.github.com/users/zky001" }
[]
closed
false
null
[]
null
0
2020-07-17T07:19:33Z
2020-07-17T07:21:12Z
2020-07-17T07:21:12Z
NONE
null
fix bugs be metioned on issue #35301 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35319/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35319/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35319.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35319", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35319.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35319" }
https://api.github.com/repos/pandas-dev/pandas/issues/35320
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35320/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35320/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35320/events
https://github.com/pandas-dev/pandas/issues/35320
658,970,534
MDU6SXNzdWU2NTg5NzA1MzQ=
35,320
BUG:New epoch in matplotlib 3.3 causes plotting issues
{ "avatar_url": "https://avatars.githubusercontent.com/u/831833?v=4", "events_url": "https://api.github.com/users/selasley/events{/privacy}", "followers_url": "https://api.github.com/users/selasley/followers", "following_url": "https://api.github.com/users/selasley/following{/other_user}", "gists_url": "https://api.github.com/users/selasley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/selasley", "id": 831833, "login": "selasley", "node_id": "MDQ6VXNlcjgzMTgzMw==", "organizations_url": "https://api.github.com/users/selasley/orgs", "received_events_url": "https://api.github.com/users/selasley/received_events", "repos_url": "https://api.github.com/users/selasley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/selasley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/selasley/subscriptions", "type": "User", "url": "https://api.github.com/users/selasley" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
3
2020-07-17T07:39:40Z
2020-08-21T17:04:38Z
2020-07-23T15:42:09Z
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd import matplotlib.pyplot as plt ndx = pd.to_datetime(['2020-07-1 04:01:34', '2020-07-2 04:03:33', '2020-07-3 04:05:33', '2020-07-4 04:07:35', '2020-07-5 04:09:35']) df = pd.DataFrame(index=ndx, data={'Vsw': [389.4, 388.5, 384.5, 384.7, 386.6]}) print(df.info()) ax1 = df['Vsw'].plot(xlim=['2020-7-1', '2020-7-6']) print(ax1.get_xlim(), '\n\n\n') plt.show() # plot without specifying x limits ax2 = df['Vsw'].plot() print(ax2.get_xlim(), '\n\n\n') plt.show() # plot from a DataFrame with a pd.date_range index df = pd.DataFrame(index=pd.date_range('2020-7-1', '2020-7-5', freq='D'), data={'Vsw': [389.4, 388.5, 384.5, 384.7, 386.6]}) print(df.info()) ax3 = df['Vsw'].plot(xlim=['2020-7-1', '2020-7-6']) print(ax3.get_xlim()) plt.show() ``` #### Problem description See https://matplotlib.org/3.3.0/users/whats_new.html#dates-use-a-modern-epoch The first plot is blank. get_xlim returns (18444.0, 18449.0) The second plot contains the values being plotted and get_xlim returns (737606.9674762732, 737611.3736001157). The third plot shows the plotted values and get_xlim returns (18444.0, 18449.0). If the epoch is set to the old epoch value with import matplotlib.dates as mpld mpld.set_epoch('0000-12-31T00:00:00') all three plots show the plotted values. get_xlim returns (737607.0, 737612.0) for the first plot, (737606.9674762732, 737611.3736001157) for the second and (18444.0, 18449.0) for the third. #### Expected Output The three plots should show the values being plotted whether or not xlim is specified in the plot() command or the DatetimeIndex has a Freq value #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 65090286608602ba6d67ca4a29cf0535156cd509 python : 3.8.4.final.0 python-bits : 64 OS : Darwin OS-release : 19.6.0 Version : Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.0.dev0+2131.g650902866 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1 Cython : 0.29.20 pytest : None hypothesis : None sphinx : 3.1.1 blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : 4.5.1 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.3.2 fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.0 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None numba : 0.50.1 </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/35320/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35320/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35321
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35321/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35321/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35321/events
https://github.com/pandas-dev/pandas/issues/35321
659,113,960
MDU6SXNzdWU2NTkxMTM5NjA=
35,321
BUG: clip does not accept numpy's arguments
{ "avatar_url": "https://avatars.githubusercontent.com/u/1324881?v=4", "events_url": "https://api.github.com/users/vfilimonov/events{/privacy}", "followers_url": "https://api.github.com/users/vfilimonov/followers", "following_url": "https://api.github.com/users/vfilimonov/following{/other_user}", "gists_url": "https://api.github.com/users/vfilimonov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vfilimonov", "id": 1324881, "login": "vfilimonov", "node_id": "MDQ6VXNlcjEzMjQ4ODE=", "organizations_url": "https://api.github.com/users/vfilimonov/orgs", "received_events_url": "https://api.github.com/users/vfilimonov/received_events", "repos_url": "https://api.github.com/users/vfilimonov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vfilimonov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vfilimonov/subscriptions", "type": "User", "url": "https://api.github.com/users/vfilimonov" }
[ { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
8
2020-07-17T10:19:37Z
2020-07-18T17:40:06Z
null
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python x = pd.Series(np.random.randn(100)) x.clip(lower=0) # Works x.clip(lower=0, min=0) # TypeError: clip() got an unexpected keyword argument 'min' ``` #### Problem description Documentation of `clip` ([dataframe](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.clip.html), [series](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.clip.html)) states the method signature: ```python Series.clip(self: ~ FrameOrSeries, lower=None, upper=None, axis=None, inplace: bool = False, *args, **kwargs) ``` and explains about `**kwargs`: ``` *args, **kwargs Additional keywords have no effect but might be accepted for compatibility with numpy. ``` However `min` or `max` arguments of numpy are not accepted and raised `TypeError`. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.1.final.0 python-bits : 64 OS : Darwin OS-release : 18.7.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.2 pytz : 2019.3 dateutil : 2.8.1 pip : 20.1.1 setuptools : 42.0.1.post20191125 Cython : None pytest : 5.3.0 hypothesis : None sphinx : 2.2.0 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.1 html5lib : None pymysql : 0.9.3 psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : 7.13.0 pandas_datareader: None bs4 : 4.6.3 bottleneck : None fastparquet : 0.3.2 gcsfs : None lxml.etree : 4.4.1 matplotlib : 3.1.3 numexpr : 2.7.0 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.17.1 pytables : None pytest : 5.3.0 pyxlsb : None s3fs : 0.4.2 scipy : 1.5.1 sqlalchemy : 1.3.13 tables : 3.4.4 tabulate : 0.8.7 xarray : 0.15.1 xlrd : 1.1.0 xlwt : None xlsxwriter : None numba : 0.46.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35321/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35321/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35322
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35322/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35322/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35322/events
https://github.com/pandas-dev/pandas/pull/35322
659,222,658
MDExOlB1bGxSZXF1ZXN0NDUxMDk1NzI2
35,322
DOC: add contributors
{ "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" }
[]
closed
false
null
[]
null
1
2020-07-17T12:39:05Z
2020-11-28T14:56:39Z
2020-07-17T17:16:28Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35322/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35322/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35322.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35322", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35322.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35322" }
https://api.github.com/repos/pandas-dev/pandas/issues/35323
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35323/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35323/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35323/events
https://github.com/pandas-dev/pandas/pull/35323
659,240,714
MDExOlB1bGxSZXF1ZXN0NDUxMTExMjY3
35,323
Remove deprecated warn kwarg for matplotlib use
{ "avatar_url": "https://avatars.githubusercontent.com/u/1186124?v=4", "events_url": "https://api.github.com/users/saulshanabrook/events{/privacy}", "followers_url": "https://api.github.com/users/saulshanabrook/followers", "following_url": "https://api.github.com/users/saulshanabrook/following{/other_user}", "gists_url": "https://api.github.com/users/saulshanabrook/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/saulshanabrook", "id": 1186124, "login": "saulshanabrook", "node_id": "MDQ6VXNlcjExODYxMjQ=", "organizations_url": "https://api.github.com/users/saulshanabrook/orgs", "received_events_url": "https://api.github.com/users/saulshanabrook/received_events", "repos_url": "https://api.github.com/users/saulshanabrook/repos", "site_admin": false, "starred_url": "https://api.github.com/users/saulshanabrook/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/saulshanabrook/subscriptions", "type": "User", "url": "https://api.github.com/users/saulshanabrook" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-07-17T13:04:46Z
2020-08-17T22:04:24Z
2020-07-17T16:24:15Z
CONTRIBUTOR
null
The warn param has been deprecated in 3.2.1: https://matplotlib.org/3.2.1/api/prev_api_changes/api_changes_3.2.0.html#matplotlib-use On the most recent matplotlib, this is failing for me with ``` TypeError: use() got an unexpected keyword argument 'warn' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35323/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35323/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35323.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35323", "merged_at": "2020-07-17T16:24:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35323.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35323" }
https://api.github.com/repos/pandas-dev/pandas/issues/35324
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35324/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35324/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35324/events
https://github.com/pandas-dev/pandas/pull/35324
659,270,336
MDExOlB1bGxSZXF1ZXN0NDUxMTM2MzA1
35,324
Fix AttributeError when groupby as_index=False on empty DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/46143571?v=4", "events_url": "https://api.github.com/users/salem3358/events{/privacy}", "followers_url": "https://api.github.com/users/salem3358/followers", "following_url": "https://api.github.com/users/salem3358/following{/other_user}", "gists_url": "https://api.github.com/users/salem3358/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/salem3358", "id": 46143571, "login": "salem3358", "node_id": "MDQ6VXNlcjQ2MTQzNTcx", "organizations_url": "https://api.github.com/users/salem3358/orgs", "received_events_url": "https://api.github.com/users/salem3358/received_events", "repos_url": "https://api.github.com/users/salem3358/repos", "site_admin": false, "starred_url": "https://api.github.com/users/salem3358/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/salem3358/subscriptions", "type": "User", "url": "https://api.github.com/users/salem3358" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-17T13:46:10Z
2020-07-17T18:49:55Z
2020-07-17T18:49:54Z
CONTRIBUTOR
null
- [x] closes #35246 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35324/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35324/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35324.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35324", "merged_at": "2020-07-17T18:49:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35324.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35324" }
https://api.github.com/repos/pandas-dev/pandas/issues/35325
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35325/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35325/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35325/events
https://github.com/pandas-dev/pandas/issues/35325
659,307,145
MDU6SXNzdWU2NTkzMDcxNDU=
35,325
BUG: Combination of groupby.resample.interpolate() fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/13063485?v=4", "events_url": "https://api.github.com/users/clamydo/events{/privacy}", "followers_url": "https://api.github.com/users/clamydo/followers", "following_url": "https://api.github.com/users/clamydo/following{/other_user}", "gists_url": "https://api.github.com/users/clamydo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/clamydo", "id": 13063485, "login": "clamydo", "node_id": "MDQ6VXNlcjEzMDYzNDg1", "organizations_url": "https://api.github.com/users/clamydo/orgs", "received_events_url": "https://api.github.com/users/clamydo/received_events", "repos_url": "https://api.github.com/users/clamydo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/clamydo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/clamydo/subscriptions", "type": "User", "url": "https://api.github.com/users/clamydo" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-07-17T14:35:14Z
2020-08-19T20:22:59Z
2020-08-19T20:22:59Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python d = {'price': [10, 11, 9, 13, 14, 18, 17, 19], 'volume': [50, 60, 40, 100, 50, 100, 40, 50]} df = pd.DataFrame(d) df['week_starting'] = pd.date_range('01/01/2018', periods=8, freq='W') df \ .set_index("week_starting") \ .groupby("volume") \ .resample("1D") \ .interpolate(method="linear") ``` Error: ``` TypeError Traceback (most recent call last) ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/groupby.py in apply(self, func, *args, **kwargs) 735 try: --> 736 result = self._python_apply_general(f) 737 except TypeError: ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/groupby.py in _python_apply_general(self, f) 751 def _python_apply_general(self, f): --> 752 keys, values, mutated = self.grouper.apply(f, self._selected_obj, self.axis) 753 ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/ops.py in apply(self, f, data, axis) 205 group_axes = group.axes --> 206 res = f(group) 207 if not _is_indexed_like(res, group_axes): ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in func(x) 988 --> 989 return x.apply(f, *args, **kwargs) 990 ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in aggregate(self, func, *args, **kwargs) 284 grouper = None --> 285 result = self._groupby_and_aggregate(how, grouper, *args, **kwargs) 286 ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in _groupby_and_aggregate(self, how, grouper, *args, **kwargs) 360 else: --> 361 result = grouped.aggregate(how, *args, **kwargs) 362 except DataError: ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/generic.py in aggregate(self, func, *args, **kwargs) 923 # nicer error message --> 924 raise TypeError("Must provide 'func' or tuples of '(column, aggfunc).") 925 TypeError: Must provide 'func' or tuples of '(column, aggfunc). During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) <ipython-input-15-5d08bff36e4d> in <module> ----> 1 df = df \ 2 .set_index("week_starting") \ 3 .groupby("volume") \ 4 .resample("1D") \ 5 .interpolate(method="linear") ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in interpolate(self, method, axis, limit, inplace, limit_direction, limit_area, downcast, **kwargs) 797 Interpolate values according to different methods. 798 """ --> 799 result = self._upsample(None) 800 return result.interpolate( 801 method=method, ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in _apply(self, f, grouper, *args, **kwargs) 989 return x.apply(f, *args, **kwargs) 990 --> 991 result = self._groupby.apply(func) 992 return self._wrap_result(result) 993 ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/groupby.py in apply(self, func, *args, **kwargs) 745 746 with _group_selection_context(self): --> 747 return self._python_apply_general(f) 748 749 return result ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/groupby.py in _python_apply_general(self, f) 750 751 def _python_apply_general(self, f): --> 752 keys, values, mutated = self.grouper.apply(f, self._selected_obj, self.axis) 753 754 return self._wrap_applied_output( ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/ops.py in apply(self, f, data, axis) 204 # group might be modified 205 group_axes = group.axes --> 206 res = f(group) 207 if not _is_indexed_like(res, group_axes): 208 mutated = True ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in func(x) 987 return getattr(x, f)(**kwargs) 988 --> 989 return x.apply(f, *args, **kwargs) 990 991 result = self._groupby.apply(func) ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in aggregate(self, func, *args, **kwargs) 283 how = func 284 grouper = None --> 285 result = self._groupby_and_aggregate(how, grouper, *args, **kwargs) 286 287 result = self._apply_loffset(result) ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/resample.py in _groupby_and_aggregate(self, how, grouper, *args, **kwargs) 359 result = grouped._aggregate_item_by_item(how, *args, **kwargs) 360 else: --> 361 result = grouped.aggregate(how, *args, **kwargs) 362 except DataError: 363 # we have a non-reducing function; try to evaluate ~/.cache/pypoetry/virtualenvs/lagps-6BuXYM4Y-py3.8/lib/python3.8/site-packages/pandas/core/groupby/generic.py in aggregate(self, func, *args, **kwargs) 922 elif func is None: 923 # nicer error message --> 924 raise TypeError("Must provide 'func' or tuples of '(column, aggfunc).") 925 926 func = _maybe_mangle_lambdas(func) TypeError: Must provide 'func' or tuples of '(column, aggfunc). ``` On master the error is raised in line 86 of the same file. #### Problem description The combination of `groupby`, `resample`, and `interpolate` leads to an `TypeError: Must provide 'func' or tuples of '(column, aggfunc).` [0]. Other functions like `ffill`, or `bfill` work without issues. #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Linux OS-release : 4.4.0-18362-Microsoft machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.0.2 setuptools : 44.0.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : None bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details> [0], btw, there is a quote missing in the error message.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35325/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35325/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35326
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35326/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35326/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35326/events
https://github.com/pandas-dev/pandas/issues/35326
659,315,534
MDU6SXNzdWU2NTkzMTU1MzQ=
35,326
BUG: multiindex reindex doesn't work properly
{ "avatar_url": "https://avatars.githubusercontent.com/u/22490931?v=4", "events_url": "https://api.github.com/users/chloe-wang/events{/privacy}", "followers_url": "https://api.github.com/users/chloe-wang/followers", "following_url": "https://api.github.com/users/chloe-wang/following{/other_user}", "gists_url": "https://api.github.com/users/chloe-wang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chloe-wang", "id": 22490931, "login": "chloe-wang", "node_id": "MDQ6VXNlcjIyNDkwOTMx", "organizations_url": "https://api.github.com/users/chloe-wang/orgs", "received_events_url": "https://api.github.com/users/chloe-wang/received_events", "repos_url": "https://api.github.com/users/chloe-wang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chloe-wang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chloe-wang/subscriptions", "type": "User", "url": "https://api.github.com/users/chloe-wang" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
null
1
2020-07-17T14:45:50Z
2020-07-24T11:09:24Z
2020-07-24T11:09:00Z
NONE
null
- [ ] I have checked that this issue has not already been reported. - [ ] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd a = pd.DataFrame([[1,2,3,4],[5,6,7,8]], index=[['a','a'], ['x', 'y']]) a.reindex(['x','z'], level=1) # 0 1 2 3 #a x 1 2 3 4 ``` #### Problem description pandas doesn't work properly for multiindex reindexing. It drops the index that didn't appear in the original dataset directly. #### Expected Output we expect pandas will reindex the second level of the multiindex to ['x' , 'z']. But it drops 'z' directly. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-109-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.1 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.1.1 setuptools : 45.2.0.post20200210 Cython : 0.29.15 pytest : 5.3.5 hypothesis : 5.5.4 sphinx : 2.4.0 blosc : None feather : None xlsxwriter : 1.2.7 lxml.etree : 4.5.0 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.12.0 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.1.3 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.5 pyxlsb : 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/35326/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35326/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35327
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35327/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35327/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35327/events
https://github.com/pandas-dev/pandas/pull/35327
659,333,919
MDExOlB1bGxSZXF1ZXN0NDUxMTkwMzgy
35,327
Doc fixups
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-07-17T15:08:57Z
2020-07-17T16:39:31Z
2020-07-17T16:30:41Z
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/35327/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35327/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35327.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35327", "merged_at": "2020-07-17T16:30:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35327.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35327" }
https://api.github.com/repos/pandas-dev/pandas/issues/35328
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35328/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35328/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35328/events
https://github.com/pandas-dev/pandas/pull/35328
659,368,611
MDExOlB1bGxSZXF1ZXN0NDUxMjIwMzg0
35,328
Optimize array_equivalent for NDFrame.equals
{ "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-17T15:51:14Z
2020-07-17T18:58:31Z
2020-07-17T18:49:29Z
CONTRIBUTOR
null
Closes #35249 ```python In [1]: import numpy as np In [2]: import pandas as pd In [3]: N = 10**3 In [4]: float_df = pd.DataFrame(np.random.randn(N, N)) # 1.0.5 1.52 ms ± 94 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # master 83.6 ms ± 1.15 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # branch 31.2 ms ± 2.06 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) ``` And proof of this being better for short-circuiting: ```python In [4]: N = 10**3 In [5]: a = pd.DataFrame(np.random.randn(N, N)) In [6]: b = pd.DataFrame(np.random.randn(N, N)) In [7]: %timeit a.equals(b) # 1.0.5 1.97 ms ± 127 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) In [10]: %timeit a.equals(b) 56.4 µs ± 1.67 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` Discussion: the key thing here is that `BlockManager.equals` requires that the dtypes of `left` and `right` match. If they don't then we've already returned False. That lets us do a few things 1. Avoid many `is_foo_dtype` checks. 2. Use optimized checks like `np.isnan` 3. Avoid the slow case of considering `np.array([1, 2])` equivalent to `np.array([1.0, 2.0])`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35328/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35328/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35328.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35328", "merged_at": "2020-07-17T18:49:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35328.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35328" }
https://api.github.com/repos/pandas-dev/pandas/issues/35329
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35329/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35329/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35329/events
https://github.com/pandas-dev/pandas/pull/35329
659,410,453
MDExOlB1bGxSZXF1ZXN0NDUxMjU2ODk3
35,329
More whatsnew cleanup.
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-17T16:38:08Z
2020-07-17T17:32:59Z
2020-07-17T17:32:56Z
CONTRIBUTOR
null
Closes https://github.com/pandas-dev/pandas/issues/35276
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35329/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35329/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35329.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35329", "merged_at": "2020-07-17T17:32:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35329.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35329" }
https://api.github.com/repos/pandas-dev/pandas/issues/35330
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35330/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35330/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35330/events
https://github.com/pandas-dev/pandas/pull/35330
659,426,633
MDExOlB1bGxSZXF1ZXN0NDUxMjcxNDA2
35,330
REF: remove special casing from Index.equals (always dispatch to subclass)
{ "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": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" } ]
closed
false
null
[]
{ "closed_at": "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" }
6
2020-07-17T16:56:27Z
2020-08-04T08:55:57Z
2020-08-03T23:30:25Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35330/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35330/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35330.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35330", "merged_at": "2020-08-03T23:30:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35330.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35330" }
https://api.github.com/repos/pandas-dev/pandas/issues/35331
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35331/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35331/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35331/events
https://github.com/pandas-dev/pandas/issues/35331
659,652,619
MDU6SXNzdWU2NTk2NTI2MTk=
35,331
BUG: np.argwhere on pandas series
{ "avatar_url": "https://avatars.githubusercontent.com/u/1268991?v=4", "events_url": "https://api.github.com/users/rossbar/events{/privacy}", "followers_url": "https://api.github.com/users/rossbar/followers", "following_url": "https://api.github.com/users/rossbar/following{/other_user}", "gists_url": "https://api.github.com/users/rossbar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rossbar", "id": 1268991, "login": "rossbar", "node_id": "MDQ6VXNlcjEyNjg5OTE=", "organizations_url": "https://api.github.com/users/rossbar/orgs", "received_events_url": "https://api.github.com/users/rossbar/received_events", "repos_url": "https://api.github.com/users/rossbar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rossbar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rossbar/subscriptions", "type": "User", "url": "https://api.github.com/users/rossbar" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
open
false
null
[]
null
2
2020-07-17T21:28:32Z
2021-07-16T16:04:25Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- numpy/numpy#15555 reports an issue with `np.argwhere` on pandas Series. Reporting here for visibility. MRE: ```python >>> import numpy as np >>> import pandas as pd >>> s = pd.Series(np.random.randn(5), index=['a', 'b', 'c', 'd', 'e']) >>> np.argwhere(s < 0) ``` which, with `numpy.__version__ ==1.20.0.dev0+046a736` gives: **pd.__version__ == 0.25.3:** ``` FutureWarning: Series.nonzero() is deprecated and will be removed in a future version.Use Series.to_numpy().nonzero() instead array([[3]]) ``` **pd.__version__ == 1.0.5:** ``` ValueError: Length of passed values is 1, index implies 5. ```
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35331/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35331/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35332
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35332/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35332/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35332/events
https://github.com/pandas-dev/pandas/issues/35332
659,665,799
MDU6SXNzdWU2NTk2NjU3OTk=
35,332
DOC: [Errno 2] No such file or directory
{ "avatar_url": "https://avatars.githubusercontent.com/u/29245410?v=4", "events_url": "https://api.github.com/users/alik604/events{/privacy}", "followers_url": "https://api.github.com/users/alik604/followers", "following_url": "https://api.github.com/users/alik604/following{/other_user}", "gists_url": "https://api.github.com/users/alik604/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alik604", "id": 29245410, "login": "alik604", "node_id": "MDQ6VXNlcjI5MjQ1NDEw", "organizations_url": "https://api.github.com/users/alik604/orgs", "received_events_url": "https://api.github.com/users/alik604/received_events", "repos_url": "https://api.github.com/users/alik604/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alik604/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alik604/subscriptions", "type": "User", "url": "https://api.github.com/users/alik604" }
[ { "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": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
2
2020-07-17T21:50:47Z
2020-09-04T15:21:48Z
2020-09-04T15:21:47Z
NONE
null
#### Location of the documentation inline in the code #### Documentation problem the following is due to filename length, not _"No such file or directory"_ > FileNotFoundError: [Errno 2] No such file or directory: 'Queried Data - search_index__foo_sourcetype__foo_token_typetoken_typetoken_typetoken_typetotoken_typetoken_typetoken_token_typetytoken_typepetoken_typepetoken_SDSDDDypepeX_from_02-41-PM_July_17.csv' #### Suggested fix for documentation It appears to me there should be a `if len(myString) > 177, throw FileNameTooLong` here is a example ``` file_description = "search index = foo sourcetype = foo token_typetoken_typetoken_typetoken_typetotoken_typetoken_typetoken_token_typetytoken_typepetoken_typepetoken_SDSDDDypepe" file_description += " from " + datetime.datetime.now().strftime("%I-%M-%p %B %d") file_description = str(file_description).strip().replace(' ', '_') file_description = re.sub(r'(?u)[^-\w.]', '', file_description) file_description len(file_description) X_train.to_csv("Queried Data - " + file_description + ".csv") ``` > search_index__foo_sourcetype__foo_token_typetoken_typetoken_typetoken_typetotoken_typetoken_typetoken_token_typetytoken_typepetoken_typepetoken_SDSDDDypepe_from_02-41-PM_July_17' > 177 *Works as intended* --- if you add a letter to the end of `file_description`, length will be `178`. we get the following ```text --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-176-8fb818e0c708> in <module> 7 8 len(file_description) ----> 9 X_train.to_csv("Queried Data - " + file_description + ".csv") ~\Anaconda3\lib\site-packages\pandas\core\generic.py in to_csv(self, path_or_buf, sep, na_rep, float_format, columns, header, index, index_label, mode, encoding, compression, quoting, quotechar, line_terminator, chunksize, date_format, doublequote, escapechar, decimal) 3202 decimal=decimal, 3203 ) -> 3204 formatter.save() 3205 3206 if path_or_buf is None: ~\Anaconda3\lib\site-packages\pandas\io\formats\csvs.py in save(self) 186 self.mode, 187 encoding=self.encoding, --> 188 compression=dict(self.compression_args, method=self.compression), 189 ) 190 close = True ~\Anaconda3\lib\site-packages\pandas\io\common.py in get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text) 426 if encoding: 427 # Encoding --> 428 f = open(path_or_buf, mode, encoding=encoding, newline="") 429 elif is_text: 430 # No explicit encoding FileNotFoundError: [Errno 2] No such file or directory: 'Queried Data - search_index__foo_sourcetype__foo_token_typetoken_typetoken_typetoken_typetotoken_typetoken_typetoken_token_typetytoken_typepetoken_typepetoken_SDSDDDypepeX_from_02-41-PM_July_17.csv' ``` ## outtake I suggest a better error message to be used the file name is too long getting a `No such file or directory` caused me to waste time, as it was wrong. The file name was too long
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35332/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35332/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35333
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35333/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35333/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35333/events
https://github.com/pandas-dev/pandas/pull/35333
659,902,541
MDExOlB1bGxSZXF1ZXN0NDUxNzAzOTU5
35,333
Fix MPL dt conversion (epoch2num deprecation) #34850
{ "avatar_url": "https://avatars.githubusercontent.com/u/23288150?v=4", "events_url": "https://api.github.com/users/misantroop/events{/privacy}", "followers_url": "https://api.github.com/users/misantroop/followers", "following_url": "https://api.github.com/users/misantroop/following{/other_user}", "gists_url": "https://api.github.com/users/misantroop/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/misantroop", "id": 23288150, "login": "misantroop", "node_id": "MDQ6VXNlcjIzMjg4MTUw", "organizations_url": "https://api.github.com/users/misantroop/orgs", "received_events_url": "https://api.github.com/users/misantroop/received_events", "repos_url": "https://api.github.com/users/misantroop/repos", "site_admin": false, "starred_url": "https://api.github.com/users/misantroop/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/misantroop/subscriptions", "type": "User", "url": "https://api.github.com/users/misantroop" }
[]
closed
false
null
[]
null
3
2020-07-18T04:52:53Z
2020-07-22T02:30:02Z
2020-07-22T02:30:02Z
NONE
null
Fix datetime conversion after matplotlib (3.3.0 update) deprecating epoch2num. - [ ] closes #34850 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35333/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35333/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35333.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35333", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35333.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35333" }
https://api.github.com/repos/pandas-dev/pandas/issues/35334
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35334/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35334/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35334/events
https://github.com/pandas-dev/pandas/pull/35334
660,072,845
MDExOlB1bGxSZXF1ZXN0NDUxODYwOTQ0
35,334
REGR: np.argwhere on pd.Series raises ValueError
{ "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": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
null
6
2020-07-18T10:47:19Z
2020-07-29T15:48:31Z
2020-07-29T15:48:30Z
MEMBER
null
- [ ] closes #35331 not sure what behaviour we want (will add tests after discussion). We should be thinking of removing \_\_array_wrap__ in favour of \_\_array_ufunc__ and \_\_array_function__ anyhow. from https://numpy.org/doc/stable/user/basics.subclassing.html?highlight=__array_wrap__#array-wrap-for-ufuncs-and-other-functions > It is hoped to eventually deprecate these, but __array_wrap__ is also used by other numpy functions and methods, such as squeeze, so at the present time is still needed for full functionality. in 0.25.3 we returned the NumPy array (albeit with a warning) ``` >>> pd.__version__ '0.25.3' >>> >>> s = pd.Series(np.random.randn(5), index=["a", "b", "c", "d", "e"]) >>> s a 1.640847 b 0.316918 c -0.193584 d 1.473205 e 0.357223 dtype: float64 >>> >>> np.argwhere(s < 0) C:\Users\simon\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py:61: FutureWarning: Series.nonzero() is deprecated and will be removed in a future version.Use Series.to_numpy().nonzero() instead return bound(*args, **kwds) array([[2]], dtype=int64) >>> ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35334/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35334/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35334.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35334", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35334.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35334" }
https://api.github.com/repos/pandas-dev/pandas/issues/35335
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35335/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35335/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35335/events
https://github.com/pandas-dev/pandas/issues/35335
660,191,467
MDU6SXNzdWU2NjAxOTE0Njc=
35,335
BUG: Inconsistent resampling behaviour
{ "avatar_url": "https://avatars.githubusercontent.com/u/68470814?v=4", "events_url": "https://api.github.com/users/LazyTrader/events{/privacy}", "followers_url": "https://api.github.com/users/LazyTrader/followers", "following_url": "https://api.github.com/users/LazyTrader/following{/other_user}", "gists_url": "https://api.github.com/users/LazyTrader/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LazyTrader", "id": 68470814, "login": "LazyTrader", "node_id": "MDQ6VXNlcjY4NDcwODE0", "organizations_url": "https://api.github.com/users/LazyTrader/orgs", "received_events_url": "https://api.github.com/users/LazyTrader/received_events", "repos_url": "https://api.github.com/users/LazyTrader/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LazyTrader/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LazyTrader/subscriptions", "type": "User", "url": "https://api.github.com/users/LazyTrader" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
4
2020-07-18T14:48:37Z
2020-07-23T16:36:07Z
2020-07-23T16:36:07Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- Attached below is my code for extracting processing financial tick data from the MetaTrader5 application: ```python def CollectTicks(Year, Month, Day, Hour, Minute, CurrencyPair, Digits, ResampleOffset = None): StartTime = datetime.datetime(Year, Month, Day, Hour, Minute).timestamp() #Convert the start time to epoch time EndTime = StartTime + 604800 #Add 1 week to the start time and set the result as the end time Ticks = mt5.copy_ticks_range(CurrencyPair, StartTime, EndTime, mt5.COPY_TICKS_ALL) #Retrieve the ticks from the start time until the end time BreakFlag = False #Set the break flag to false while(True): StartTime = EndTime #Set the prevous end time as the new start time EndTime = StartTime + 604800 #Add 1 week to the new start time and set the result as the new end time if(EndTime > time.time()): #If the end time is more than the current time EndTime = time.time() #Set the end time as the current time BreakFlag = True #Set the break flag to true NewTicks = mt5.copy_ticks_range(CurrencyPair, StartTime, EndTime, mt5.COPY_TICKS_ALL) #Retrive the new ticks with the new start time and new end time Ticks = np.hstack((Ticks, NewTicks)) #Cocatenate the newly retrieved ticks with the previously retrieved ticks if(BreakFlag == True): #If the break flag is set to true break #Exit the loop TickDataframe = pd.DataFrame(Ticks) #Covert the ticks array to a dataframe TickDataframe.drop(["time", "last", "volume", "flags", "volume_real"], axis = 1, inplace = True) #Drop the unwanted columns from the dataframe TickDataframe["time_msc"] = pd.to_datetime(TickDataframe["time_msc"], unit = "ms") #Convert the milisecond timestap to the epoch date time TickDataframe.set_index("time_msc", inplace = True) #Set the milisecond time column as the dataframe's index TickDataframe.round(Digits) #Round all values in the dataframe to the desired number of digits TickDataframe["mid"] = round(((TickDataframe["bid"] + TickDataframe["ask"]) / 2.0), Digits) #Generate the mid dataframe and round it to (Digits) figures if(ResampleOffset != None): #If the ResampleOffset input is not None CandleCloses = {} #Instantiate a dictionary CandleCloses["Bid Closes"] = TickDataframe["bid"].resample(ResampleOffset).ohlc().close.dropna().to_numpy() #Resample the bid ticks to create bid candles based on the resample offset and convert it into a numpy array CandleCloses["Ask Closes"] = TickDataframe["ask"].resample(ResampleOffset).ohlc().close.dropna().to_numpy() #Resample the ask ticks to create ask candles based on the resample offset and convert it into a numpy array CandleCloses["Mid Closes"] = TickDataframe["mid"].resample(ResampleOffset).ohlc().close.dropna().to_numpy() #Resample the mid ticks to create mid candles based on the resample offset and convert it into a numpy array return CandleCloses #Return the dictionary containing candle closes else: #If the ResampleOffset input is None return TickDataframe #Return the dataframe of ticks ``` #### Problem description After resampling the collected tick data with the "1Min" offset, the resampled data for 2 different instruments have a different number of candles even when their time indexes cover the same date range. #### Additional Observations The other offsets do not have this inconsistent behaviour, the issue only happens with the "1Min" resample offset. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.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 : English_Singapore.1252 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200714 Cython : None pytest : None hypothesis : None sphinx : 3.1.2 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35335/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35335/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35336
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35336/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35336/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35336/events
https://github.com/pandas-dev/pandas/issues/35336
660,202,247
MDU6SXNzdWU2NjAyMDIyNDc=
35,336
DOC: Unable to install pre-release
{ "avatar_url": "https://avatars.githubusercontent.com/u/6193977?v=4", "events_url": "https://api.github.com/users/ginward/events{/privacy}", "followers_url": "https://api.github.com/users/ginward/followers", "following_url": "https://api.github.com/users/ginward/following{/other_user}", "gists_url": "https://api.github.com/users/ginward/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ginward", "id": 6193977, "login": "ginward", "node_id": "MDQ6VXNlcjYxOTM5Nzc=", "organizations_url": "https://api.github.com/users/ginward/orgs", "received_events_url": "https://api.github.com/users/ginward/received_events", "repos_url": "https://api.github.com/users/ginward/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ginward/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ginward/subscriptions", "type": "User", "url": "https://api.github.com/users/ginward" }
[ { "color": "006b75", "default": false, "description": null, "id": 131473665, "name": "Release", "node_id": "MDU6TGFiZWwxMzE0NzM2NjU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release" } ]
closed
false
null
[]
null
3
2020-07-18T15:09:49Z
2020-07-19T14:32:23Z
2020-07-19T14:32:23Z
NONE
null
#### Location of the documentation ["https://github.com/pandas-dev/pandas/releases/tag/v1.1.0rc0"] #### Documentation problem It seems that I am not able to install the v1.1.0 version of the Pandas package using the following commands: ``` python -m pip install --upgrade --pre pandas==1.1.0rc0 conda install -c conda-forge/label/rc pandas==1.1.0rc0 ``` It says that: PackagesNotFoundError: The following packages are not available from current channels: - pandas==1.1.0rc0 Current channels: ``` - https://conda.anaconda.org/conda-forge/label/rc/osx-64 - https://conda.anaconda.org/conda-forge/label/rc/noarch - https://repo.anaconda.com/pkgs/main/osx-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/osx-64 - https://repo.anaconda.com/pkgs/r/noarch ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35336/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35336/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35337
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35337/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35337/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35337/events
https://github.com/pandas-dev/pandas/pull/35337
660,331,350
MDExOlB1bGxSZXF1ZXN0NDUyMDk3MzM0
35,337
DOC: Improve DataFrame.dropna subset example
{ "avatar_url": "https://avatars.githubusercontent.com/u/5317080?v=4", "events_url": "https://api.github.com/users/TyMick/events{/privacy}", "followers_url": "https://api.github.com/users/TyMick/followers", "following_url": "https://api.github.com/users/TyMick/following{/other_user}", "gists_url": "https://api.github.com/users/TyMick/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TyMick", "id": 5317080, "login": "TyMick", "node_id": "MDQ6VXNlcjUzMTcwODA=", "organizations_url": "https://api.github.com/users/TyMick/orgs", "received_events_url": "https://api.github.com/users/TyMick/received_events", "repos_url": "https://api.github.com/users/TyMick/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TyMick/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TyMick/subscriptions", "type": "User", "url": "https://api.github.com/users/TyMick" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-07-18T19:25:08Z
2020-07-31T15:58:44Z
2020-07-29T09:13:53Z
CONTRIBUTOR
null
In the examples for [DataFrame.dropna](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dropna.html), which begin like so: ```pycon >>> df = pd.DataFrame({"name": ['Alfred', 'Batman', 'Catwoman'], ... "toy": [np.nan, 'Batmobile', 'Bullwhip'], ... "born": [pd.NaT, pd.Timestamp("1940-04-25"), ... pd.NaT]}) >>> df name toy born 0 Alfred NaN NaT 1 Batman Batmobile 1940-04-25 2 Catwoman Bullwhip NaT ``` the example that uses the `subset` parameter, ```pycon >>> df.dropna(subset=['name', 'born']) name toy born 1 Batman Batmobile 1940-04-25 ``` yields the same output as the example that doesn't pass in any arguments, ```pycon >>> df.dropna() name toy born 1 Batman Batmobile 1940-04-25 ``` I think changing the `subset` example to ```pycon >>> df.dropna(subset=['name', 'toy']) name toy born 1 Batman Batmobile 1940-04-25 2 Catwoman Bullwhip NaT ``` would better illustrate the concept, as its result contains a row with one missing value, just in a column that wasn't specified in `subset`. ----- I'm not able to test the docstring locally at the moment, but I ran the code in my console up to the new example, and it worked as expected. ```pycon >>> import pandas as pd >>> import numpy as np >>> df = pd.DataFrame({"name": ['Alfred', 'Batman', 'Catwoman'], ... "toy": [np.nan, 'Batmobile', 'Bullwhip'], ... "born": [pd.NaT, pd.Timestamp("1940-04-25"), ... pd.NaT]}) >>> df name toy born 0 Alfred NaN NaT 1 Batman Batmobile 1940-04-25 2 Catwoman Bullwhip NaT >>> df.dropna() name toy born 1 Batman Batmobile 1940-04-25 >>> df.dropna(axis='columns') name 0 Alfred 1 Batman 2 Catwoman >>> df.dropna(how='all') name toy born 0 Alfred NaN NaT 1 Batman Batmobile 1940-04-25 2 Catwoman Bullwhip NaT >>> df.dropna(thresh=2) name toy born 1 Batman Batmobile 1940-04-25 2 Catwoman Bullwhip NaT >>> df.dropna(subset=['name', 'toy']) name toy born 1 Batman Batmobile 1940-04-25 2 Catwoman Bullwhip NaT ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35337/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35337/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35337.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35337", "merged_at": "2020-07-29T09:13:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35337.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35337" }
https://api.github.com/repos/pandas-dev/pandas/issues/35338
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35338/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35338/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35338/events
https://github.com/pandas-dev/pandas/pull/35338
660,345,939
MDExOlB1bGxSZXF1ZXN0NDUyMTEwNzc4
35,338
BUG: assign consensus name to index union in array case GH13475
{ "avatar_url": "https://avatars.githubusercontent.com/u/953300?v=4", "events_url": "https://api.github.com/users/iamlemec/events{/privacy}", "followers_url": "https://api.github.com/users/iamlemec/followers", "following_url": "https://api.github.com/users/iamlemec/following{/other_user}", "gists_url": "https://api.github.com/users/iamlemec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/iamlemec", "id": 953300, "login": "iamlemec", "node_id": "MDQ6VXNlcjk1MzMwMA==", "organizations_url": "https://api.github.com/users/iamlemec/orgs", "received_events_url": "https://api.github.com/users/iamlemec/received_events", "repos_url": "https://api.github.com/users/iamlemec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/iamlemec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iamlemec/subscriptions", "type": "User", "url": "https://api.github.com/users/iamlemec" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e99695", "default": false, "description": "Related to the Index class or subclasses", "id": 1218227310, "name": "Index", "node_id": "MDU6TGFiZWwxMjE4MjI3MzEw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index" }, { "color": "d4c5f9", "default": false, "description": "Series/DataFrame/Index/pd.array Constructors", "id": 1465286368, "name": "Constructors", "node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
12
2020-07-18T19:53:49Z
2020-08-07T22:23:03Z
2020-08-07T22:22:57Z
CONTRIBUTOR
null
- [x] closes #13475 - [x] tests added / passed (except known datetime64 issue in #35080) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35338/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35338/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35338.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35338", "merged_at": "2020-08-07T22:22:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35338.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35338" }
https://api.github.com/repos/pandas-dev/pandas/issues/35339
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35339/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35339/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35339/events
https://github.com/pandas-dev/pandas/pull/35339
660,366,334
MDExOlB1bGxSZXF1ZXN0NDUyMTI5MzEy
35,339
CLN: resolve isort mypy import confilict test_algos
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-07-18T20:36:07Z
2020-07-29T16:45:22Z
2020-07-29T09:15:18Z
MEMBER
null
Part of #35134 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35339/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35339/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35339.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35339", "merged_at": "2020-07-29T09:15:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35339.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35339" }
https://api.github.com/repos/pandas-dev/pandas/issues/35340
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35340/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35340/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35340/events
https://github.com/pandas-dev/pandas/issues/35340
660,760,403
MDU6SXNzdWU2NjA3NjA0MDM=
35,340
ENH: Select numeric ExtensionDtypes with DataFrame.select_dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/13157776?v=4", "events_url": "https://api.github.com/users/andrewgsavage/events{/privacy}", "followers_url": "https://api.github.com/users/andrewgsavage/followers", "following_url": "https://api.github.com/users/andrewgsavage/following{/other_user}", "gists_url": "https://api.github.com/users/andrewgsavage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andrewgsavage", "id": 13157776, "login": "andrewgsavage", "node_id": "MDQ6VXNlcjEzMTU3Nzc2", "organizations_url": "https://api.github.com/users/andrewgsavage/orgs", "received_events_url": "https://api.github.com/users/andrewgsavage/received_events", "repos_url": "https://api.github.com/users/andrewgsavage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andrewgsavage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrewgsavage/subscriptions", "type": "User", "url": "https://api.github.com/users/andrewgsavage" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2020-07-19T10:51:22Z
2020-12-14T17:58:22Z
2020-12-14T17:58:22Z
NONE
null
#### Is your feature request related to a problem? I would like to plot ExtensionArrays. DataFrame.select_dtypes(np.number) is called when plotting, which filters out ExtensionArrays. #### Describe the solution you'd like DataFrame.select_dtypes(np.number) should select columns where ExtensionDtype._is_numeric is True, suggested here https://github.com/pandas-dev/pandas/issues/26173#issuecomment-503761441 #### API breaking implications Not considered. #### Describe alternatives you've considered Not considered. #### Additional context N/A
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35340/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35340/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35341
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35341/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35341/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35341/events
https://github.com/pandas-dev/pandas/pull/35341
660,761,068
MDExOlB1bGxSZXF1ZXN0NDUyNDk0MTc5
35,341
ENH: Select numeric ExtensionDtypes with DataFrame.select_dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/13157776?v=4", "events_url": "https://api.github.com/users/andrewgsavage/events{/privacy}", "followers_url": "https://api.github.com/users/andrewgsavage/followers", "following_url": "https://api.github.com/users/andrewgsavage/following{/other_user}", "gists_url": "https://api.github.com/users/andrewgsavage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andrewgsavage", "id": 13157776, "login": "andrewgsavage", "node_id": "MDQ6VXNlcjEzMTU3Nzc2", "organizations_url": "https://api.github.com/users/andrewgsavage/orgs", "received_events_url": "https://api.github.com/users/andrewgsavage/received_events", "repos_url": "https://api.github.com/users/andrewgsavage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andrewgsavage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrewgsavage/subscriptions", "type": "User", "url": "https://api.github.com/users/andrewgsavage" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" }, { "color": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
4
2020-07-19T10:52:44Z
2020-12-02T18:57:44Z
2020-12-02T18:57:43Z
NONE
null
- [x] closes #35340 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35341/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35341/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35341.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35341", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35341.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35341" }
https://api.github.com/repos/pandas-dev/pandas/issues/35342
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35342/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35342/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35342/events
https://github.com/pandas-dev/pandas/issues/35342
660,825,941
MDU6SXNzdWU2NjA4MjU5NDE=
35,342
BUG: date_range returns wrong output in some cases
{ "avatar_url": "https://avatars.githubusercontent.com/u/9385410?v=4", "events_url": "https://api.github.com/users/tnnmk/events{/privacy}", "followers_url": "https://api.github.com/users/tnnmk/followers", "following_url": "https://api.github.com/users/tnnmk/following{/other_user}", "gists_url": "https://api.github.com/users/tnnmk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tnnmk", "id": 9385410, "login": "tnnmk", "node_id": "MDQ6VXNlcjkzODU0MTA=", "organizations_url": "https://api.github.com/users/tnnmk/orgs", "received_events_url": "https://api.github.com/users/tnnmk/received_events", "repos_url": "https://api.github.com/users/tnnmk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tnnmk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tnnmk/subscriptions", "type": "User", "url": "https://api.github.com/users/tnnmk" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
open
false
null
[]
null
5
2020-07-19T13:05:10Z
2021-02-11T18:00:00Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd print(pd.date_range('2020-02-01 15:00', '2020-05-12 13:00', freq='MS')) # wrong output print(pd.date_range('2020-02-01 15:00', '2020-05-12 15:00', freq='MS')) # correct output print(pd.date_range('2020-02-01 15:00', '2020-05-12 16:00', freq='MS')) # correct output print(pd.date_range('2020-02-01 15:00', '2020-05-01 01:00', freq='MS')) # wrong output print(pd.date_range('2020-02-01 15:00', '2020-05-01 23:00', freq='MS')) # correct output print(pd.date_range('2020-01-21 15:00', '2020-05-12 13:00', freq='MS')) # correct output ``` Currently outputs: ``` DatetimeIndex(['2020-02-01 15:00:00', '2020-03-01 15:00:00', '2020-04-01 15:00:00'], dtype='datetime64[ns]', freq='MS') DatetimeIndex(['2020-02-01 15:00:00', '2020-03-01 15:00:00', '2020-04-01 15:00:00', '2020-05-01 15:00:00'], dtype='datetime64[ns]', freq='MS') DatetimeIndex(['2020-02-01 15:00:00', '2020-03-01 15:00:00', '2020-04-01 15:00:00', '2020-05-01 15:00:00'], dtype='datetime64[ns]', freq='MS') DatetimeIndex(['2020-02-01 15:00:00', '2020-03-01 15:00:00', '2020-04-01 15:00:00'], dtype='datetime64[ns]', freq='MS') DatetimeIndex(['2020-02-01 15:00:00', '2020-03-01 15:00:00', '2020-04-01 15:00:00', '2020-05-01 15:00:00'], dtype='datetime64[ns]', freq='MS') DatetimeIndex(['2020-02-01 15:00:00', '2020-03-01 15:00:00', '2020-04-01 15:00:00', '2020-05-01 15:00:00'], dtype='datetime64[ns]', freq='MS') ``` #### Problem description Seems that if `freq`='MS', the date of `start` is the first day of a month, and the time of `start` is after the time of `end`, then the last month is missing from the output. The same problems seems to also occur if `freq`='M' and the date of `start` is the last day of a month (and the time of `start` is after the time of `end`), as demonstrated below. (Perhaps the problem could occur also with other values of the `freq` parameter. However, I only tested with 'MS' and 'M'.) #### Expected Output I would expect every code line above to produce the following output: ``` DatetimeIndex(['2020-02-01 15:00:00', '2020-03-01 15:00:00', '2020-04-01 15:00:00', '2020-05-01 15:00:00'], dtype='datetime64[ns]', freq='MS') ``` #### Another code Sample, a copy-pastable example Here is an example with `freq`='M'. ```python import pandas as pd print(pd.date_range('2020-01-31 15:00', '2020-05-12 13:00', freq='M')) # wrong output print(pd.date_range('2020-01-31 17:00', '2020-05-12 17:00', freq='M')) # correct output print(pd.date_range('2020-01-30 15:00', '2020-05-12 13:00', freq='M')) # correct output ``` #### Expected Output Here the expect output of each code line above is: ``` DatetimeIndex(['2020-01-31 17:00:00', '2020-02-29 17:00:00', '2020-03-31 17:00:00', '2020-04-30 17:00:00'], dtype='datetime64[ns]', freq='M') ``` #### Output of ``pd.show_versions()`` <details> (While the below output reports pandas version 1.0.3, i have also tested with version 1.0.5 with same results.) INSTALLED VERSIONS ------------------ commit : None python : 3.6.9.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-62-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : fi_FI.UTF-8 LOCALE : fi_FI.UTF-8 pandas : 1.0.3 numpy : 1.19.0 pytz : 2019.3 dateutil : 2.8.1 pip : 9.0.1 setuptools : 46.1.3 Cython : 0.29.20 pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 0.9.6 lxml.etree : 4.2.1 html5lib : 0.999999999 pymysql : None psycopg2 : None jinja2 : 2.10 IPython : 5.5.0 pandas_datareader: None bs4 : 4.6.0 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.2.1 matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.5.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.1.0 xlwt : None xlsxwriter : 0.9.6 numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35342/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35342/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35343
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35343/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35343/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35343/events
https://github.com/pandas-dev/pandas/issues/35343
660,858,124
MDU6SXNzdWU2NjA4NTgxMjQ=
35,343
ENH: change sort behavior in stack() so it's user-directed
{ "avatar_url": "https://avatars.githubusercontent.com/u/3721813?v=4", "events_url": "https://api.github.com/users/pmberkeley/events{/privacy}", "followers_url": "https://api.github.com/users/pmberkeley/followers", "following_url": "https://api.github.com/users/pmberkeley/following{/other_user}", "gists_url": "https://api.github.com/users/pmberkeley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pmberkeley", "id": 3721813, "login": "pmberkeley", "node_id": "MDQ6VXNlcjM3MjE4MTM=", "organizations_url": "https://api.github.com/users/pmberkeley/orgs", "received_events_url": "https://api.github.com/users/pmberkeley/received_events", "repos_url": "https://api.github.com/users/pmberkeley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pmberkeley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pmberkeley/subscriptions", "type": "User", "url": "https://api.github.com/users/pmberkeley" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "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
11
2020-07-19T14:09:36Z
2020-07-20T12:23:56Z
2020-07-19T18:20:07Z
NONE
null
https://github.com/pandas-dev/pandas/blob/bfac13628394ac7317bb94833319bd6bf87603af/pandas/core/reshape/reshape.py#L623 **Is your feature request related to a problem?** I need a multiindex dataframe to stack in a specific order. I also need the columns to fail the `this.columns.is_lexsorted()` test (the duplicated column names are how I'm merging the data while stacking it, as a workaround to not being able to get a `linspace` result out of the `rolling` method). Currently, the `sort_index` method is causing the dataframe to reorder alphabetically, which is *not* the order I need it to stack in. **Describe the solution you'd like** One of the following (preferably not the last): 1. be able to choose the index/column order by passing in a list or set of list 2. be able to choose to keep the input order of the stacking indexes/columns (or to have it default to keeping the input order; this seems the easiest) 3. receive a warning or be provided with documentation that indicates all indexes/columns will be reordered alphabetically if they have any duplicated labels, and to name their secondary sorting indexes/columns accordingly. **API breaking implications** Unsure about option 1, but the default suggested in option 2 should be fine. **Describe alternatives you've considered** This is already a workaround for the `rolling` method not working with non-scalar outputs. I'll be renaming the columns in the short term, but this seems hacky. **Additional context** This issues is closely related to the functionality of `rolling`. The `stack` method is being used/suggested as a workaround for the inability to use `rolling` to output linear results. `MultiIndex` is the pandas way of dealing with additional dimensionality of data; when the rolling method doesn't play nice with adding a dimension to the data set, the user then ends up trying to recreate a `rolling` method equivalent via `stack` (and other means); in order for `stack` and other methods to work well in this context, sorting behavior has to be explicit.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35343/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35343/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35344
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35344/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35344/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35344/events
https://github.com/pandas-dev/pandas/pull/35344
660,875,767
MDExOlB1bGxSZXF1ZXN0NDUyNTk5MjM0
35,344
TYP: remove # type: ignore for unpacking compression_args
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
2
2020-07-19T14:43:11Z
2020-07-29T10:42:52Z
2020-07-29T09:16:25Z
MEMBER
null
eg. compresslevel for GzipFile is an int and compression in get_handle is Optional[Union[str, Mapping[str, Any]]] = None once we adopt TypedDict, then maybe we could be more explicit here, but for now Any is appropriate. the ignored message for GZipFile is `error: Argument 2 to "GzipFile" has incompatible type **Dict[str, str]"; expected "int"`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35344/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35344/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35344.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35344", "merged_at": "2020-07-29T09:16:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35344.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35344" }
https://api.github.com/repos/pandas-dev/pandas/issues/35345
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35345/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35345/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35345/events
https://github.com/pandas-dev/pandas/issues/35345
661,025,447
MDU6SXNzdWU2NjEwMjU0NDc=
35,345
DOC: expand "using a Docker container" section
{ "avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4", "events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}", "followers_url": "https://api.github.com/users/MarcoGorelli/followers", "following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}", "gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarcoGorelli", "id": 33491632, "login": "MarcoGorelli", "node_id": "MDQ6VXNlcjMzNDkxNjMy", "organizations_url": "https://api.github.com/users/MarcoGorelli/orgs", "received_events_url": "https://api.github.com/users/MarcoGorelli/received_events", "repos_url": "https://api.github.com/users/MarcoGorelli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions", "type": "User", "url": "https://api.github.com/users/MarcoGorelli" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/24970830?v=4", "events_url": "https://api.github.com/users/alexhlim/events{/privacy}", "followers_url": "https://api.github.com/users/alexhlim/followers", "following_url": "https://api.github.com/users/alexhlim/following{/other_user}", "gists_url": "https://api.github.com/users/alexhlim/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexhlim", "id": 24970830, "login": "alexhlim", "node_id": "MDQ6VXNlcjI0OTcwODMw", "organizations_url": "https://api.github.com/users/alexhlim/orgs", "received_events_url": "https://api.github.com/users/alexhlim/received_events", "repos_url": "https://api.github.com/users/alexhlim/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexhlim/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexhlim/subscriptions", "type": "User", "url": "https://api.github.com/users/alexhlim" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/24970830?v=4", "events_url": "https://api.github.com/users/alexhlim/events{/privacy}", "followers_url": "https://api.github.com/users/alexhlim/followers", "following_url": "https://api.github.com/users/alexhlim/following{/other_user}", "gists_url": "https://api.github.com/users/alexhlim/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexhlim", "id": 24970830, "login": "alexhlim", "node_id": "MDQ6VXNlcjI0OTcwODMw", "organizations_url": "https://api.github.com/users/alexhlim/orgs", "received_events_url": "https://api.github.com/users/alexhlim/received_events", "repos_url": "https://api.github.com/users/alexhlim/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexhlim/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexhlim/subscriptions", "type": "User", "url": "https://api.github.com/users/alexhlim" } ]
{ "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" }
2
2020-07-19T19:38:12Z
2020-08-01T13:11:02Z
2020-08-01T13:10:24Z
MEMBER
null
#### Location of the documentation https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#using-a-docker-container #### Documentation problem Someone unfamiliar with Docker would be confused reading this. #### Suggested fix for documentation The expansion needed is quite small, just: 1. link to the Docker installation instructions 2. link to how to develop in a container using PyCharm (current docs only link to vs code instructions) 3. mention that you might still need to rebuild the C extensions if/when you merge with upstream/master with ``` python setup.py build_ext --inplace -j 4 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35345/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35345/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35346
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35346/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35346/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35346/events
https://github.com/pandas-dev/pandas/issues/35346
661,072,495
MDU6SXNzdWU2NjEwNzI0OTU=
35,346
ENH: `.to_timedelta` method for `PeriodIndex` and `Period` objects
{ "avatar_url": "https://avatars.githubusercontent.com/u/4106013?v=4", "events_url": "https://api.github.com/users/rwijtvliet/events{/privacy}", "followers_url": "https://api.github.com/users/rwijtvliet/followers", "following_url": "https://api.github.com/users/rwijtvliet/following{/other_user}", "gists_url": "https://api.github.com/users/rwijtvliet/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rwijtvliet", "id": 4106013, "login": "rwijtvliet", "node_id": "MDQ6VXNlcjQxMDYwMTM=", "organizations_url": "https://api.github.com/users/rwijtvliet/orgs", "received_events_url": "https://api.github.com/users/rwijtvliet/received_events", "repos_url": "https://api.github.com/users/rwijtvliet/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rwijtvliet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rwijtvliet/subscriptions", "type": "User", "url": "https://api.github.com/users/rwijtvliet" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
open
false
null
[]
null
3
2020-07-19T21:11:18Z
2021-08-08T17:10:04Z
null
NONE
null
#### Is your feature request related to a problem? I oftentimes find myself needing the duration of a `Period` or `PeriodIndex`, which I calculate with ``` timedelta = (p+1).start_time - p.start_time ``` It seems useful and commonly used enough to be included as a standard method. #### Describe the solution you'd like Additional `.to_timedelta` method, just as there exists a `.to_timestamp` method on these objects. #### API breaking implications None afaics. #### Describe alternatives you've considered Use a `.duration` attribute instead, which does the conversion from timedelta to seconds `((p+1).start_time - p.start_time).total_seconds()`, but that makes little sense. #### Additional context Sample: ```python pi = pd.period_range('2019', periods=3, freq='Y') pi PeriodIndex(['2019', '2020', '2021'], dtype='period[A-DEC]', freq='A-DEC') tdi = ((pi+1).start_time - pi.start_time) #now tdi = pi.to_timedelta() #as suggested tdi TimedeltaIndex(['365 days', '366 days', '365 days'], dtype='timedelta64[ns]', freq=None) # finding the middle of a period mid_ts = pi.start_time + 0.5*((pi+1).start_time - pi.start_time) #now mid_ts = pi.start_time + 0.5*pi.to_timedelta() #as suggested mid_ts DatetimeIndex(['2019-07-02 12:00:00', '2020-07-02 00:00:00', '2021-07-02 12:00:00'], dtype='datetime64[ns]', freq='8772H') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35346/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35346/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35347
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35347/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35347/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35347/events
https://github.com/pandas-dev/pandas/issues/35347
661,160,802
MDU6SXNzdWU2NjExNjA4MDI=
35,347
BUG/FEATURE: to_sql data types not reflecting types accurately
{ "avatar_url": "https://avatars.githubusercontent.com/u/23286051?v=4", "events_url": "https://api.github.com/users/danieldjewell/events{/privacy}", "followers_url": "https://api.github.com/users/danieldjewell/followers", "following_url": "https://api.github.com/users/danieldjewell/following{/other_user}", "gists_url": "https://api.github.com/users/danieldjewell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/danieldjewell", "id": 23286051, "login": "danieldjewell", "node_id": "MDQ6VXNlcjIzMjg2MDUx", "organizations_url": "https://api.github.com/users/danieldjewell/orgs", "received_events_url": "https://api.github.com/users/danieldjewell/received_events", "repos_url": "https://api.github.com/users/danieldjewell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/danieldjewell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danieldjewell/subscriptions", "type": "User", "url": "https://api.github.com/users/danieldjewell" }
[ { "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": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
open
false
null
[]
null
2
2020-07-19T23:31:24Z
2021-06-24T15:46:39Z
null
NONE
null
I'm not sure whether or not this falls into a feature/bug or perhaps an "unfulfilled/unrealistic assumption". Further, my experience here might be "the tip of the iceberg" on a bigger underlying issue with to_sql() (or it could be a red herring that is only a problem for me :grin:) ### Conditions DataFrame with multiple dtypes - my example has 200+ columns with dtypes of: ```{dtype('O'), dtype('int16'), dtype('uint8'), dtype('uint16'), dtype('uint32'), dtype('float64')}```. My test case is using Postgres 12 as the destination DB. ### Current Behavior ```DataFrame.to_sql(...)``` *does* work to Postgres. **However**, from the various dtypes listed above, only 3 Postgres column types are created: 1. bigint (for all integers) * equivalent to int64 (64-bit / 8-byte precision integer) 2. double precision (for all floats) * techncially not directly equivalent (I'm not having an issue, but others might) 3. text (for all objects) See: [Postgres Numeric Data Types](https://www.postgresql.org/docs/12/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL) for reference. ### The Issue/Effects The ultimate issue is that the created table, although it appears to work, does not really conform to the data types in the DataFrame. Specifically, with regard to integer types. Postgres (unlike MySQL) doesn't have unsigned integer types but does have (generally) 3 integer types: * smallint (2-bytes / 16-bit integer) * integer (4-bytes / 32-bit integer) * bigint (8-bytes / 64-bit integer) I'm still reading through the to_sql() code but if the docstring (quoted below) from SQLTable() is accurate, it would appear that Pandas is relying on SQLAlchemy to handle the conversion? If so, the assumption that SQLAlchemy is doing the conversion correctly/well looks to be unfounded. https://github.com/pandas-dev/pandas/blob/bfac13628394ac7317bb94833319bd6bf87603af/pandas/io/sql.py#L663-L669 ### Some of the Impacts Bigger tables. Presumably longer insert times. Potentially conversion issues (I haven't tried feeding to_sql() a uint64 .... ) ### Thoughts If my understanding is correct that Pandas is relying on SQLAlchemy to do the type conversions, I guess this could be seen as either a Pandas issue or an SQLAlchemy issue: A. As an SQLAlchemy Issue * Pandas is feeding the data to SQLAlchemy with the assumption that it will properly convert the datatypes into various dialects (e.g. PGSQL, MySQL, SQLITE, etc.) correctly * Therefore, SQLAlchemy needs to do a better job of converting the input data B. As a Pandas issue * AFAIK, SQLAlchemy was never designed with the plethora of "fully functional" data types provided by Numpy and which Pandas uses - it was designed around Python data types which are much simpler. So, SQLAlchemy can't be expected to make intelligent/informed decisions based on Numpy data types. * Therefore, Pandas needs to either provide SQLAlchemy with more metadata (I'm not sure this is possible) and/or not assume that SQLAlchemy is going to do the conversion properly ### Potential Further Impacts I'm really not well versed enough in the Pandas/Numpy/SQLAlchemy code base to understand the potential impacts. However, I'm especially curious about the handling of float values and also about the interaction with other database engines. (For example, something that seems absolutely crazy to me about SQLite3: column data types aren't strict, [they are more of a suggestion](https://www.sqlite.org/datatype3.html) ... ) ### Summary/The Bottom Line/TL;DR; I'd like to see to_sql() create a table with the *best* (e.g. smallest/most appropriate) data type - preferably a close match to the DataFrame.dtype. Currently, at least in the case of Postgres, it does not. Finally, perhaps someone with more knowledge than I could double check to see if the assumption that SQLAlchemy *is actually* reliably converting *all* datatypes is correct?
{ "+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/35347/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35347/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35348
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35348/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35348/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35348/events
https://github.com/pandas-dev/pandas/pull/35348
661,472,132
MDExOlB1bGxSZXF1ZXN0NDUzMTQxNjUw
35,348
fix generate_range function in datetimes.py file
{ "avatar_url": "https://avatars.githubusercontent.com/u/9131265?v=4", "events_url": "https://api.github.com/users/zky001/events{/privacy}", "followers_url": "https://api.github.com/users/zky001/followers", "following_url": "https://api.github.com/users/zky001/following{/other_user}", "gists_url": "https://api.github.com/users/zky001/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zky001", "id": 9131265, "login": "zky001", "node_id": "MDQ6VXNlcjkxMzEyNjU=", "organizations_url": "https://api.github.com/users/zky001/orgs", "received_events_url": "https://api.github.com/users/zky001/received_events", "repos_url": "https://api.github.com/users/zky001/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zky001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zky001/subscriptions", "type": "User", "url": "https://api.github.com/users/zky001" }
[ { "color": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
6
2020-07-20T07:18:49Z
2020-09-26T15:45:47Z
2020-09-26T15:45:47Z
NONE
null
change some issues be metioned at #35342 - [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35348/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35348/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35348.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35348", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35348.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35348" }
https://api.github.com/repos/pandas-dev/pandas/issues/35349
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35349/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35349/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35349/events
https://github.com/pandas-dev/pandas/issues/35349
661,485,596
MDU6SXNzdWU2NjE0ODU1OTY=
35,349
Non-intuitive behavior when multi-indexing a Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/2629945?v=4", "events_url": "https://api.github.com/users/konstantinmiller/events{/privacy}", "followers_url": "https://api.github.com/users/konstantinmiller/followers", "following_url": "https://api.github.com/users/konstantinmiller/following{/other_user}", "gists_url": "https://api.github.com/users/konstantinmiller/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/konstantinmiller", "id": 2629945, "login": "konstantinmiller", "node_id": "MDQ6VXNlcjI2Mjk5NDU=", "organizations_url": "https://api.github.com/users/konstantinmiller/orgs", "received_events_url": "https://api.github.com/users/konstantinmiller/received_events", "repos_url": "https://api.github.com/users/konstantinmiller/repos", "site_admin": false, "starred_url": "https://api.github.com/users/konstantinmiller/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/konstantinmiller/subscriptions", "type": "User", "url": "https://api.github.com/users/konstantinmiller" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "8dd5fc", "default": false, "description": "Series data structure", "id": 1357732944, "name": "Series", "node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2020-07-20T07:37:09Z
2021-01-28T00:59:52Z
2021-01-28T00:59:52Z
NONE
null
Most likely that is not a bug but intended behavior but I find it quite confusing. Consider the following example ``` idx = pd.IndexSlice s = pd.Series(index=pd.MultiIndex.from_tuples([('A', '0'), ('A', '1'), ('B', '0')]), data=[21, 22, 23]) s.loc[idx['A', :], :] ``` which gives ``` A 0 21 1 22 B 0 23 dtype: int64 ``` while intuitively, one would expect ``` A 0 21 1 22 dtype: int64 ``` I would expect the latter because that's what you would get with a `pd.DataFrame` where the second `:` is referring to the column index. Not paying attention that the object is a series, gives you a completely different result than if you would have a data frame.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35349/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35349/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35350
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35350/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35350/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35350/events
https://github.com/pandas-dev/pandas/issues/35350
661,777,212
MDU6SXNzdWU2NjE3NzcyMTI=
35,350
BUG: register_matplotlib_converters leads to wrong datetime interpretation with matplotlib 3.3
{ "avatar_url": "https://avatars.githubusercontent.com/u/10481491?v=4", "events_url": "https://api.github.com/users/ZahlGraf/events{/privacy}", "followers_url": "https://api.github.com/users/ZahlGraf/followers", "following_url": "https://api.github.com/users/ZahlGraf/following{/other_user}", "gists_url": "https://api.github.com/users/ZahlGraf/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ZahlGraf", "id": 10481491, "login": "ZahlGraf", "node_id": "MDQ6VXNlcjEwNDgxNDkx", "organizations_url": "https://api.github.com/users/ZahlGraf/orgs", "received_events_url": "https://api.github.com/users/ZahlGraf/received_events", "repos_url": "https://api.github.com/users/ZahlGraf/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ZahlGraf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ZahlGraf/subscriptions", "type": "User", "url": "https://api.github.com/users/ZahlGraf" }
[ { "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": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
7
2020-07-20T12:42:00Z
2020-07-23T22:06:04Z
2020-07-23T22:06:04Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import datetime import matplotlib import matplotlib.pyplot as plt from matplotlib.dates import DateFormatter from pandas.plotting import register_matplotlib_converters register_matplotlib_converters() t = [ datetime.datetime(2022, 12, 31, 0, 0), datetime.datetime(2022, 11, 30, 0, 0), datetime.datetime(2022, 10, 31, 0, 0), ] s = [0.0, 0.1, 0.2] fig, ax = plt.subplots() ax.plot_date(x=t, y=s) ax.xaxis.set_major_formatter(DateFormatter("%b '%y")) plt.xticks(rotation=90) plt.show() ``` #### Problem description The years in the plot are now 91 and 92. ![grafik](https://user-images.githubusercontent.com/10481491/87938044-387f6680-ca96-11ea-9e33-b43be7af9bd0.png) **Note**: With `matplotlib 3.2.2` (the last stable release) the error is not there. So I guess this is a bug due to an api change inside `matplotlib 3.3.0`. #### Expected Output I expects the year 22 and 23 like in this image: ![grafik](https://user-images.githubusercontent.com/10481491/87938153-6664ab00-ca96-11ea-9948-9863545e8a0d.png) The second image can be produced by deleting the call to `register_matplotlib_converters()` #### Output of ``pd.show_versions()`` ``` INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 19.2.3 setuptools : 41.2.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.3.0 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None ```
{ "+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/35350/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35350/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35351
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35351/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35351/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35351/events
https://github.com/pandas-dev/pandas/issues/35351
661,887,193
MDU6SXNzdWU2NjE4ODcxOTM=
35,351
BUG: multiindex slice 1.1.0rc0
{ "avatar_url": "https://avatars.githubusercontent.com/u/10853125?v=4", "events_url": "https://api.github.com/users/leo4183/events{/privacy}", "followers_url": "https://api.github.com/users/leo4183/followers", "following_url": "https://api.github.com/users/leo4183/following{/other_user}", "gists_url": "https://api.github.com/users/leo4183/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/leo4183", "id": 10853125, "login": "leo4183", "node_id": "MDQ6VXNlcjEwODUzMTI1", "organizations_url": "https://api.github.com/users/leo4183/orgs", "received_events_url": "https://api.github.com/users/leo4183/received_events", "repos_url": "https://api.github.com/users/leo4183/repos", "site_admin": false, "starred_url": "https://api.github.com/users/leo4183/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leo4183/subscriptions", "type": "User", "url": "https://api.github.com/users/leo4183" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-07-20T14:26:22Z
2020-07-21T11:20:01Z
2020-07-21T11:20:01Z
NONE
null
mulitindex slicing returns different (from pandas<=1.0.x) results in pandas 1.1.0rc0 ``` df = pd.DataFrame( data=[[0,1,'a',1],[1,0,'a',0],[1,1,'b',1],[1,1,'c',2]], columns=['index','date','author','price'] ) # to keep the most recent date for every index (could happen in practice) idx = df.drop_duplicates('index',keep='last').set_index(['index','date']).index df.set_index(['index','date']).loc[idx,:].reset_index() ``` df  index | date  | author | price -- | -- | -- | -- 0|1|a | 1 1|0|a | 0 1|1|b | 1 1|1|c | 2 Result | | author | price -- | -- | -- (0, 1) | a | 1 (1, 1) | b | 1 (1, 1) | c | 2
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35351/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35351/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35352
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35352/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35352/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35352/events
https://github.com/pandas-dev/pandas/issues/35352
661,940,296
MDU6SXNzdWU2NjE5NDAyOTY=
35,352
to_sql functionality not working on python
{ "avatar_url": "https://avatars.githubusercontent.com/u/48495622?v=4", "events_url": "https://api.github.com/users/cdu2620/events{/privacy}", "followers_url": "https://api.github.com/users/cdu2620/followers", "following_url": "https://api.github.com/users/cdu2620/following{/other_user}", "gists_url": "https://api.github.com/users/cdu2620/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cdu2620", "id": 48495622, "login": "cdu2620", "node_id": "MDQ6VXNlcjQ4NDk1NjIy", "organizations_url": "https://api.github.com/users/cdu2620/orgs", "received_events_url": "https://api.github.com/users/cdu2620/received_events", "repos_url": "https://api.github.com/users/cdu2620/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cdu2620/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cdu2620/subscriptions", "type": "User", "url": "https://api.github.com/users/cdu2620" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
3
2020-07-20T15:15:36Z
2020-08-09T11:09:39Z
2020-08-09T11:09:39Z
NONE
null
Whenever I try to insert a pandas DF into my database, I get this error: <img width="844" alt="Screen Shot 2020-07-20 at 11 13 28 AM" src="https://user-images.githubusercontent.com/48495622/87954278-255e9d80-ca7a-11ea-90aa-12316ef8b105.png"> It happens with any dataframe I try, even dataframes I had successfully inserted before. The specific test dataframe I was trying to insert is this: <img width="208" alt="Screen Shot 2020-07-20 at 11 14 49 AM" src="https://user-images.githubusercontent.com/48495622/87954346-41623f00-ca7a-11ea-9ba6-04b1e3709c1e.png">
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35352/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35352/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35353
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35353/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35353/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35353/events
https://github.com/pandas-dev/pandas/pull/35353
662,009,125
MDExOlB1bGxSZXF1ZXN0NDUzNjExODA2
35,353
REGR: MultiIndex Indexing
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
6
2020-07-20T16:22:31Z
2020-07-21T11:30:10Z
2020-07-21T11:20:02Z
MEMBER
null
- [ ] closes #35351 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35353/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35353/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35353.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35353", "merged_at": "2020-07-21T11:20:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35353.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35353" }
https://api.github.com/repos/pandas-dev/pandas/issues/35354
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35354/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35354/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35354/events
https://github.com/pandas-dev/pandas/issues/35354
662,078,803
MDU6SXNzdWU2NjIwNzg4MDM=
35,354
QST: How to provide regular expression in na_values ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/47145350?v=4", "events_url": "https://api.github.com/users/Vishnuhp01/events{/privacy}", "followers_url": "https://api.github.com/users/Vishnuhp01/followers", "following_url": "https://api.github.com/users/Vishnuhp01/following{/other_user}", "gists_url": "https://api.github.com/users/Vishnuhp01/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Vishnuhp01", "id": 47145350, "login": "Vishnuhp01", "node_id": "MDQ6VXNlcjQ3MTQ1MzUw", "organizations_url": "https://api.github.com/users/Vishnuhp01/orgs", "received_events_url": "https://api.github.com/users/Vishnuhp01/received_events", "repos_url": "https://api.github.com/users/Vishnuhp01/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Vishnuhp01/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Vishnuhp01/subscriptions", "type": "User", "url": "https://api.github.com/users/Vishnuhp01" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "be21f2", "default": false, "description": "May be closeable, needs more eyeballs", "id": 2365504893, "name": "Closing Candidate", "node_id": "MDU6TGFiZWwyMzY1NTA0ODkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate" } ]
closed
false
null
[]
null
6
2020-07-20T17:36:56Z
2021-03-13T13:17:59Z
2021-03-13T13:17:58Z
NONE
null
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [x] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- #### Question about pandas **Note**: If you'd still like to submit a question, please read [this guide]( https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your question. ```python # Your code here, if applicable ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35354/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35354/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35355
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35355/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35355/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35355/events
https://github.com/pandas-dev/pandas/pull/35355
662,090,298
MDExOlB1bGxSZXF1ZXN0NDUzNjgzNTg2
35,355
DOC: Fix small spelling mistake in style docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/9593883?v=4", "events_url": "https://api.github.com/users/flrs/events{/privacy}", "followers_url": "https://api.github.com/users/flrs/followers", "following_url": "https://api.github.com/users/flrs/following{/other_user}", "gists_url": "https://api.github.com/users/flrs/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flrs", "id": 9593883, "login": "flrs", "node_id": "MDQ6VXNlcjk1OTM4ODM=", "organizations_url": "https://api.github.com/users/flrs/orgs", "received_events_url": "https://api.github.com/users/flrs/received_events", "repos_url": "https://api.github.com/users/flrs/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flrs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flrs/subscriptions", "type": "User", "url": "https://api.github.com/users/flrs" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-07-20T17:49:30Z
2020-07-29T09:12:42Z
2020-07-29T09:12:22Z
CONTRIBUTOR
null
This pull request fixes a small spelling mistake in the pandas style user guide. I believe this change does not justify a whatsnew entry, since it is extremely small. It does not refer to a particular issue on GitHub. I have not run `black` or `flake8`, since I believe the change is out of scope for these tools. - [ ] ~~closes #xxxx~~ - [ ] ~~tests added / passed~~ - [ ] ~~passes `black pandas`~~ - [ ] ~~passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~ - [ ] ~~whatsnew entry~~
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35355/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35355/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35355.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35355", "merged_at": "2020-07-29T09:12:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35355.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35355" }
https://api.github.com/repos/pandas-dev/pandas/issues/35356
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35356/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35356/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35356/events
https://github.com/pandas-dev/pandas/pull/35356
662,158,342
MDExOlB1bGxSZXF1ZXN0NDUzNzQzNTk4
35,356
REF: Avoid post-processing in blockwise op
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
0
2020-07-20T19:04:37Z
2020-08-08T17:30:51Z
2020-08-08T14:51:40Z
MEMBER
null
Small step towards #34714 cc @TomAugspurger IIRC you implemented split_frames/split_items, which this removes
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35356/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35356/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35356.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35356", "merged_at": "2020-08-08T14:51:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35356.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35356" }
https://api.github.com/repos/pandas-dev/pandas/issues/35357
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35357/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35357/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35357/events
https://github.com/pandas-dev/pandas/pull/35357
662,223,593
MDExOlB1bGxSZXF1ZXN0NDUzODAyMDE3
35,357
PERF: BlockManager.equals blockwise
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-07-20T20:19:40Z
2020-08-07T21:32:41Z
2020-08-07T21:03:01Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35357/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35357/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35357.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35357", "merged_at": "2020-08-07T21:03:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35357.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35357" }
https://api.github.com/repos/pandas-dev/pandas/issues/35358
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35358/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35358/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35358/events
https://github.com/pandas-dev/pandas/pull/35358
662,241,105
MDExOlB1bGxSZXF1ZXN0NDUzODE3Nzg3
35,358
CI: pin matplotlib for doc build
{ "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" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-20T20:39:45Z
2020-07-21T11:16:24Z
2020-07-20T22:17:51Z
CONTRIBUTOR
null
Should fix the doc build. We have https://github.com/pandas-dev/pandas/issues/34850 to fix 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/35358/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35358/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35358.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35358", "merged_at": "2020-07-20T22:17:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35358.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35358" }
https://api.github.com/repos/pandas-dev/pandas/issues/35359
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35359/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35359/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35359/events
https://github.com/pandas-dev/pandas/pull/35359
662,288,253
MDExOlB1bGxSZXF1ZXN0NDUzODYwMDcx
35,359
REF: implement _apply_blockwise
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" }, { "color": "fbca04", "default": false, "description": "Apply, Aggregate, Transform", "id": 697792067, "name": "Apply", "node_id": "MDU6TGFiZWw2OTc3OTIwNjc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply" } ]
closed
false
null
[]
{ "closed_at": "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" }
4
2020-07-20T21:35:19Z
2020-08-06T23:54:44Z
2020-08-06T23:50:50Z
MEMBER
null
Preliminary pushing towards #34714
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35359/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35359/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35359.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35359", "merged_at": "2020-08-06T23:50:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35359.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35359" }
https://api.github.com/repos/pandas-dev/pandas/issues/35360
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35360/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35360/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35360/events
https://github.com/pandas-dev/pandas/pull/35360
662,312,812
MDExOlB1bGxSZXF1ZXN0NDUzODgxODQ0
35,360
fix bug when combining groupby with resample and interpolate with dat…
{ "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CloseChoice", "id": 31857876, "login": "CloseChoice", "node_id": "MDQ6VXNlcjMxODU3ODc2", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "repos_url": "https://api.github.com/users/CloseChoice/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "type": "User", "url": "https://api.github.com/users/CloseChoice" }
[ { "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": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-07-20T22:06:37Z
2020-08-20T00:09:38Z
2020-08-19T20:23:00Z
MEMBER
null
…etime-index (GH 35325) - [x] closes #35325 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35360/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35360/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35360.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35360", "merged_at": "2020-08-19T20:22:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35360.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35360" }
https://api.github.com/repos/pandas-dev/pandas/issues/35361
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35361/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35361/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35361/events
https://github.com/pandas-dev/pandas/pull/35361
662,318,921
MDExOlB1bGxSZXF1ZXN0NDUzODg3MjYy
35,361
FIX: remove dependence on matplotlib.dates.epoch2num
{ "avatar_url": "https://avatars.githubusercontent.com/u/1562854?v=4", "events_url": "https://api.github.com/users/jklymak/events{/privacy}", "followers_url": "https://api.github.com/users/jklymak/followers", "following_url": "https://api.github.com/users/jklymak/following{/other_user}", "gists_url": "https://api.github.com/users/jklymak/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jklymak", "id": 1562854, "login": "jklymak", "node_id": "MDQ6VXNlcjE1NjI4NTQ=", "organizations_url": "https://api.github.com/users/jklymak/orgs", "received_events_url": "https://api.github.com/users/jklymak/received_events", "repos_url": "https://api.github.com/users/jklymak/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jklymak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jklymak/subscriptions", "type": "User", "url": "https://api.github.com/users/jklymak" }
[]
closed
false
null
[]
null
3
2020-07-20T22:14:23Z
2020-07-23T15:54:32Z
2020-07-23T15:44:57Z
CONTRIBUTOR
null
- [ ] closes #34850 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry `converter._dt_to_float_ordinal(dt)` special cased `datetime64` objects, and used `matplotlib.dates.epoch2num`. However, matplotlib has supported `datetime64` natively since Matplotlib 2.2 (https://github.com/matplotlib/matplotlib/pull/9779), so this special casing shouldn't be necessary (unless there is a subtlety I'm missing). Matplotlib would also prefer to deprecate `epoch2num`, so this would help us streamline. I didn't check your support policy - if you need to support pre MPL 2.2, then I guess some try/except logic will need to go in here. ping @TomAugspurger @dstansby
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35361/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35361/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35361.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35361", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35361.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35361" }
https://api.github.com/repos/pandas-dev/pandas/issues/35362
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35362/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35362/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35362/events
https://github.com/pandas-dev/pandas/issues/35362
662,521,267
MDU6SXNzdWU2NjI1MjEyNjc=
35,362
Pandas is the most difficult data processing tool in Python, which is very inhumane and difficult to use
{ "avatar_url": "https://avatars.githubusercontent.com/u/27483364?v=4", "events_url": "https://api.github.com/users/wanghuqiang123/events{/privacy}", "followers_url": "https://api.github.com/users/wanghuqiang123/followers", "following_url": "https://api.github.com/users/wanghuqiang123/following{/other_user}", "gists_url": "https://api.github.com/users/wanghuqiang123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wanghuqiang123", "id": 27483364, "login": "wanghuqiang123", "node_id": "MDQ6VXNlcjI3NDgzMzY0", "organizations_url": "https://api.github.com/users/wanghuqiang123/orgs", "received_events_url": "https://api.github.com/users/wanghuqiang123/received_events", "repos_url": "https://api.github.com/users/wanghuqiang123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wanghuqiang123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wanghuqiang123/subscriptions", "type": "User", "url": "https://api.github.com/users/wanghuqiang123" }
[ { "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
0
2020-07-21T03:13:55Z
2020-08-21T17:04:39Z
2020-07-21T03:14:48Z
NONE
null
Pandas is the most difficult data processing tool in Python, which is very inhumane and difficult to use
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35362/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35362/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35363
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35363/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35363/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35363/events
https://github.com/pandas-dev/pandas/issues/35363
662,697,849
MDU6SXNzdWU2NjI2OTc4NDk=
35,363
API: quantile function over columns transposes dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/5146834?v=4", "events_url": "https://api.github.com/users/tomvansteijn/events{/privacy}", "followers_url": "https://api.github.com/users/tomvansteijn/followers", "following_url": "https://api.github.com/users/tomvansteijn/following{/other_user}", "gists_url": "https://api.github.com/users/tomvansteijn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tomvansteijn", "id": 5146834, "login": "tomvansteijn", "node_id": "MDQ6VXNlcjUxNDY4MzQ=", "organizations_url": "https://api.github.com/users/tomvansteijn/orgs", "received_events_url": "https://api.github.com/users/tomvansteijn/received_events", "repos_url": "https://api.github.com/users/tomvansteijn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tomvansteijn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomvansteijn/subscriptions", "type": "User", "url": "https://api.github.com/users/tomvansteijn" }
[ { "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": "quantile method", "id": 1631984902, "name": "quantile", "node_id": "MDU6TGFiZWwxNjMxOTg0OTAy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/quantile" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2020-07-21T07:35:14Z
2021-08-08T17:11:08Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. --- #### Code snippet ``` import pandas as pd import numpy as np df = pd.DataFrame(data={'a': np.arange(100), 'b': np.arange(100),}) df = df.quantile([0.2, 0.5, 0.8], axis=1) ``` #### Problem description Using `DataFrame.quantile` over axis=1 with multiple values for q transposes the dataframe. I would expect the quantiles to appear over the specified axis, so along the columns axis when axis = 1, and along rows when axis = 0. Ofcourse, an easy fix is a call to `DataFrame.transpose`. Ideally this should not be necessary in my opinion. #### Expected Output Quantile values over the specified axis without transposing the dataframe. #### Output of ``pd.show_versions()`` <details> C:\Anaconda64\lib\site-packages\setuptools\distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first. "Distutils was imported before Setuptools. This usage is discouraged " INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : nl_NL.UTF-8 LOCALE : None.None pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200712 Cython : 0.29.21 pytest : 5.4.3 hypothesis : 5.19.3 sphinx : 3.1.2 blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : 4.5.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.2 matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.4 pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.3.1 sqlalchemy : 1.3.18 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.9 numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35363/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35363/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35364
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35364/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35364/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35364/events
https://github.com/pandas-dev/pandas/issues/35364
662,744,882
MDU6SXNzdWU2NjI3NDQ4ODI=
35,364
DOC: `to_pickle` arguments for `compression` have a mistake (easy-fix)
{ "avatar_url": "https://avatars.githubusercontent.com/u/273210?v=4", "events_url": "https://api.github.com/users/ianozsvald/events{/privacy}", "followers_url": "https://api.github.com/users/ianozsvald/followers", "following_url": "https://api.github.com/users/ianozsvald/following{/other_user}", "gists_url": "https://api.github.com/users/ianozsvald/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ianozsvald", "id": 273210, "login": "ianozsvald", "node_id": "MDQ6VXNlcjI3MzIxMA==", "organizations_url": "https://api.github.com/users/ianozsvald/orgs", "received_events_url": "https://api.github.com/users/ianozsvald/received_events", "repos_url": "https://api.github.com/users/ianozsvald/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ianozsvald/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ianozsvald/subscriptions", "type": "User", "url": "https://api.github.com/users/ianozsvald" }
[ { "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": 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" }
2
2020-07-21T08:30:09Z
2020-12-02T17:05:38Z
2020-12-02T03:00:11Z
CONTRIBUTOR
null
#### Location of the documentation https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_pickle.html #### Documentation problem `compression{‘infer’, ‘gzip’, ‘bz2’, ‘zip’, ‘xz’, None}, default ‘infer’` notes that `gzip` is a valid extension, this is wrong, the extension checked for is `gz`. The documentation for `to_csv` is correct with `... detect compression mode from the following extensions: ‘.gz’, ‘.bz2’, ‘.zip’ or ‘.xz’` and should act as a guide: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html #### Suggested fix for documentation `compression{‘infer’, ‘gz’, ‘bz2’, ‘zip’, ‘xz’, None}, default ‘infer’` to match the code implementation: https://github.com/pandas-dev/pandas/blob/v1.0.5/pandas/io/common.py#L223 There _may_ be an argument to extending the `_compression_to_extension` code to accept both `gzip` and `gz`for gzip compression, whoever reads this might decide this is worth escalating. For me making sure we fix the docs in line with the code is the priority.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35364/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35364/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35365
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35365/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35365/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35365/events
https://github.com/pandas-dev/pandas/issues/35365
662,907,258
MDU6SXNzdWU2NjI5MDcyNTg=
35,365
BUG: read_csv fails with float_precision="round_trip" and decimal=","
{ "avatar_url": "https://avatars.githubusercontent.com/u/4716745?v=4", "events_url": "https://api.github.com/users/ales-erjavec/events{/privacy}", "followers_url": "https://api.github.com/users/ales-erjavec/followers", "following_url": "https://api.github.com/users/ales-erjavec/following{/other_user}", "gists_url": "https://api.github.com/users/ales-erjavec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ales-erjavec", "id": 4716745, "login": "ales-erjavec", "node_id": "MDQ6VXNlcjQ3MTY3NDU=", "organizations_url": "https://api.github.com/users/ales-erjavec/orgs", "received_events_url": "https://api.github.com/users/ales-erjavec/received_events", "repos_url": "https://api.github.com/users/ales-erjavec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ales-erjavec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ales-erjavec/subscriptions", "type": "User", "url": "https://api.github.com/users/ales-erjavec" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-07-21T11:27:45Z
2020-08-11T00:36:27Z
2020-08-11T00:36:27Z
CONTRIBUTOR
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. --- #### Code Sample, a copy-pastable example ```python import io import pandas as pd content = """\ 6,5;3,3 3,4;1,0 """ pd.read_csv(io.StringIO(content), delimiter=";", header=None, dtype=float, decimal=",", float_precision="round_trip") ``` #### Problem description read_csv fails if using `float_precision="round_trip"` and `decimal=","` (or any other decimal and thousands separator). It raises an ``` Traceback (most recent call last): File "pandas/_libs/parsers.pyx", line 1152, in pandas._libs.parsers.TextReader._convert_tokens TypeError: Cannot cast array from dtype('O') to dtype('float64') according to the rule 'safe' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 10, in <module> File "/Users/aleserjavec/virtual/py37/lib/python3.7/site-packages/pandas/io/parsers.py", line 676, in parser_f return _read(filepath_or_buffer, kwds) File "/Users/aleserjavec/virtual/py37/lib/python3.7/site-packages/pandas/io/parsers.py", line 454, in _read data = parser.read(nrows) File "/Users/aleserjavec/virtual/py37/lib/python3.7/site-packages/pandas/io/parsers.py", line 1133, in read ret = self._engine.read(nrows) File "/Users/aleserjavec/virtual/py37/lib/python3.7/site-packages/pandas/io/parsers.py", line 2037, in read data = self._reader.read(nrows) File "pandas/_libs/parsers.pyx", line 860, in pandas._libs.parsers.TextReader.read File "pandas/_libs/parsers.pyx", line 875, in pandas._libs.parsers.TextReader._read_low_memory File "pandas/_libs/parsers.pyx", line 952, in pandas._libs.parsers.TextReader._read_rows File "pandas/_libs/parsers.pyx", line 1084, in pandas._libs.parsers.TextReader._convert_column_data File "pandas/_libs/parsers.pyx", line 1158, in pandas._libs.parsers.TextReader._convert_tokens ValueError: could not convert string to float: '6,5' ``` #### Expected Output ``` 0 1 0 6.5 3.3 1 3.4 1.0 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Darwin OS-release : 18.7.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.16.2 pytz : 2018.3 dateutil : 2.6.1 pip : 20.1.1 setuptools : 39.0.1 Cython : 0.29.13 pytest : 3.7.1 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.1.5 lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 6.2.1 pandas_datareader: None bs4 : 4.6.0 bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.3.0 numexpr : 2.6.6 odfpy : None openpyxl : 3.0.2 pandas_gbq : None pyarrow : None pytables : None pytest : 3.7.1 pyxlsb : None s3fs : None scipy : 1.1.0 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.1.0 xlwt : None xlsxwriter : 1.1.5 numba : 0.41.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35365/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35365/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35366
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35366/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35366/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35366/events
https://github.com/pandas-dev/pandas/issues/35366
663,061,292
MDU6SXNzdWU2NjMwNjEyOTI=
35,366
ENH: Allow to group by an empty list
{ "avatar_url": "https://avatars.githubusercontent.com/u/1951567?v=4", "events_url": "https://api.github.com/users/tomjaguarpaw/events{/privacy}", "followers_url": "https://api.github.com/users/tomjaguarpaw/followers", "following_url": "https://api.github.com/users/tomjaguarpaw/following{/other_user}", "gists_url": "https://api.github.com/users/tomjaguarpaw/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tomjaguarpaw", "id": 1951567, "login": "tomjaguarpaw", "node_id": "MDQ6VXNlcjE5NTE1Njc=", "organizations_url": "https://api.github.com/users/tomjaguarpaw/orgs", "received_events_url": "https://api.github.com/users/tomjaguarpaw/received_events", "repos_url": "https://api.github.com/users/tomjaguarpaw/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tomjaguarpaw/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomjaguarpaw/subscriptions", "type": "User", "url": "https://api.github.com/users/tomjaguarpaw" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
open
false
null
[]
null
11
2020-07-21T14:29:35Z
2021-01-14T11:41:16Z
null
NONE
null
#### Is your feature request related to a problem? Yes, I cannot group by an empty list. #### Describe the solution you'd like I would like to be able to group by an empty list of columns. At the moment I get an error. ``` >>> DataFrame([{"a":1, "b":2}, {"a":3, "b":4}]).groupby([]).agg(aagg=('a', 'sum'), bagg=('b', 'sum')) Traceback (most recent call last): ... ValueError: No group keys passed! ``` I would prefer to see ``` >>> DataFrame([{"a":1, "b":2}, {"a":3, "b":4}]).groupby([]).agg(aagg=('a', 'sum'), bagg=('b', 'sum')) aagg bagg 4 6 ``` which would generalise grouping by a non-empty list, which works fine. ``` >>> DataFrame([{"a":1, "b":2}, {"a":3, "b":4}]).groupby(["a", "b"]).agg(aagg=('a', 'sum'), bagg=('b', 'sum')) aagg bagg a b 1 2 1 2 3 4 3 4 ``` ``` >>> DataFrame([{"a":1, "b":2}, {"a":3, "b":4}]).groupby(["a"]).agg(aagg=('a', 'sum'), bagg=('b', 'sum')) aagg bagg a 1 1 2 3 3 4 ``` It seems to me this would be reasonable behaviour. Is there a particular reason it is not supported? #### API breaking implications None that I know of. #### Describe alternatives you've considered A partial workaround is to cook up a grouping function for simulating the behaviour I want, but this lacks uniformity. ``` >>> DataFrame([{"a":1, "b":2}, {"a":3, "b":4}]).groupby(lambda _: "Only row").agg(aagg=('a', 'sum'), bagg=('b', 'sum')) aagg bagg Only row 4 6 ``` But I don't really want `"Only row"` to be there. I just want ``` >>> DataFrame([{"a":1, "b":2}, {"a":3, "b":4}]).groupby([]).agg(aagg=('a', 'sum'), bagg=('b', 'sum')) aagg bagg 4 6 ```
{ "+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/35366/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35366/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35367
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35367/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35367/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35367/events
https://github.com/pandas-dev/pandas/issues/35367
663,131,496
MDU6SXNzdWU2NjMxMzE0OTY=
35,367
DOC: Rethink recommending eval/query in "Enhancing performance" section of user guide
{ "avatar_url": "https://avatars.githubusercontent.com/u/87697?v=4", "events_url": "https://api.github.com/users/tebeka/events{/privacy}", "followers_url": "https://api.github.com/users/tebeka/followers", "following_url": "https://api.github.com/users/tebeka/following{/other_user}", "gists_url": "https://api.github.com/users/tebeka/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tebeka", "id": 87697, "login": "tebeka", "node_id": "MDQ6VXNlcjg3Njk3", "organizations_url": "https://api.github.com/users/tebeka/orgs", "received_events_url": "https://api.github.com/users/tebeka/received_events", "repos_url": "https://api.github.com/users/tebeka/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tebeka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tebeka/subscriptions", "type": "User", "url": "https://api.github.com/users/tebeka" }
[ { "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": "f3afff", "default": false, "description": "pd.eval, query", "id": 1631985267, "name": "expressions", "node_id": "MDU6TGFiZWwxNjMxOTg1MjY3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions" } ]
open
false
null
[]
null
3
2020-07-21T16:02:48Z
2020-09-02T23:56:11Z
null
NONE
null
#### Location of the documentation https://pandas.pydata.org/pandas-docs/stable/user_guide/enhancingperf.html#expression-evaluation-via-eval #### Documentation problem It seems that `eval` and `query` are not faster than boolean indexing in latest versions of Pandas. See [here](https://stackoverflow.com/questions/49936557/pandas-dataframe-loc-vs-query-performance) for example and [my own experience](https://groups.google.com/forum/#!topic/pydata/Bwj5Vd00yiI) is the same. #### Suggested fix for documentation Remove this section from "Ehnancing perfromance".
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35367/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35367/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35368
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35368/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35368/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35368/events
https://github.com/pandas-dev/pandas/pull/35368
663,284,364
MDExOlB1bGxSZXF1ZXN0NDU0NzI2MjM2
35,368
DOC: Fix heading capitalization in doc/source/whatsnew - part6 (#32550) (open PR again due to branch removed)
{ "avatar_url": "https://avatars.githubusercontent.com/u/24496267?v=4", "events_url": "https://api.github.com/users/cleconte987/events{/privacy}", "followers_url": "https://api.github.com/users/cleconte987/followers", "following_url": "https://api.github.com/users/cleconte987/following{/other_user}", "gists_url": "https://api.github.com/users/cleconte987/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleconte987", "id": 24496267, "login": "cleconte987", "node_id": "MDQ6VXNlcjI0NDk2MjY3", "organizations_url": "https://api.github.com/users/cleconte987/orgs", "received_events_url": "https://api.github.com/users/cleconte987/received_events", "repos_url": "https://api.github.com/users/cleconte987/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleconte987/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleconte987/subscriptions", "type": "User", "url": "https://api.github.com/users/cleconte987" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
2
2020-07-21T20:22:21Z
2020-08-07T09:35:56Z
2020-08-07T09:35:40Z
CONTRIBUTOR
null
- [ ] Modify files v0.22.0.rst, v0.23.1.rst, v0.19.0.rst, v0.24.0.rst, v0.24.2.rst -[ ] Add exceptions in 'validate_rst_title_capitalization.py'
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35368/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35368/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35368.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35368", "merged_at": "2020-08-07T09:35:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35368.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35368" }
https://api.github.com/repos/pandas-dev/pandas/issues/35369
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35369/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35369/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35369/events
https://github.com/pandas-dev/pandas/issues/35369
663,298,844
MDU6SXNzdWU2NjMyOTg4NDQ=
35,369
BUG: df reassignment following reorder_categories changed behavior in 1.1.0rc0
{ "avatar_url": "https://avatars.githubusercontent.com/u/13831112?v=4", "events_url": "https://api.github.com/users/MaozGelbart/events{/privacy}", "followers_url": "https://api.github.com/users/MaozGelbart/followers", "following_url": "https://api.github.com/users/MaozGelbart/following{/other_user}", "gists_url": "https://api.github.com/users/MaozGelbart/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MaozGelbart", "id": 13831112, "login": "MaozGelbart", "node_id": "MDQ6VXNlcjEzODMxMTEy", "organizations_url": "https://api.github.com/users/MaozGelbart/orgs", "received_events_url": "https://api.github.com/users/MaozGelbart/received_events", "repos_url": "https://api.github.com/users/MaozGelbart/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MaozGelbart/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MaozGelbart/subscriptions", "type": "User", "url": "https://api.github.com/users/MaozGelbart" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-21T20:48:11Z
2020-07-27T14:12:36Z
2020-07-27T14:12:35Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd h = pd.Series(list("mn")).astype("category") df = pd.DataFrame({"h":h}) df.h = df.h.cat.reorder_categories(["n", "m"]) print(df.h.cat.categories) h = h.cat.reorder_categories(["n","m"]) print(h.cat.categories) ``` #### Problem description Output with 1.1.0rc0: ``` Index(['m', 'n'], dtype='object') Index(['n', 'm'], dtype='object') ``` The assignment of the reordered series back into the dataframe seems to remove the new order. This has changed from 1.0.5 but I could not find a note on this under the release notes. #### Expected Output As with 1.0.5: ``` Index(['n', 'm'], dtype='object') Index(['n', 'm'], dtype='object') ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : bfac13628394ac7317bb94833319bd6bf87603af python : 3.8.3.final.0 python-bits : 64 OS : Darwin OS-release : 19.5.0 Version : Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : None.UTF-8 pandas : 1.1.0rc0 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200712 Cython : None pytest : 5.4.3 hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.15.0 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.0 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35369/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35369/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35370
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35370/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35370/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35370/events
https://github.com/pandas-dev/pandas/issues/35370
663,320,569
MDU6SXNzdWU2NjMzMjA1Njk=
35,370
BUG: Categorical data is not correctly plotted with its associated value when using plt.plot.
{ "avatar_url": "https://avatars.githubusercontent.com/u/12875240?v=4", "events_url": "https://api.github.com/users/trenton3983/events{/privacy}", "followers_url": "https://api.github.com/users/trenton3983/followers", "following_url": "https://api.github.com/users/trenton3983/following{/other_user}", "gists_url": "https://api.github.com/users/trenton3983/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/trenton3983", "id": 12875240, "login": "trenton3983", "node_id": "MDQ6VXNlcjEyODc1MjQw", "organizations_url": "https://api.github.com/users/trenton3983/orgs", "received_events_url": "https://api.github.com/users/trenton3983/received_events", "repos_url": "https://api.github.com/users/trenton3983/repos", "site_admin": false, "starred_url": "https://api.github.com/users/trenton3983/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/trenton3983/subscriptions", "type": "User", "url": "https://api.github.com/users/trenton3983" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
null
4
2020-07-21T21:28:57Z
2021-08-08T18:51:49Z
2021-08-08T18:51:49Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- ### Bug report **Bug summary** - If a column is set as categorical with [`pd.Categorical`][1], the categorical column is not correctly plotted with the associated value, when using `plt.plot`, as shown below. - This issue was reported here [Why is a column of categorical data not correctly plotted with its associated values?][2] - I tweeted the issue @matplotlib and the response was _Ack, please open an issue! This looks like it might be a bug in our **units/categorical machinery** Confused face_ - A workaround is to sort the `label` column with `df.sort_values('label', inplace=True)`, which leads to a correct plot when using `plt.plot(df.label, df.value, "o")`. - The bug was originally posted to [matplotlib][3]. **Code for reproduction** ```python import pandas as pd import matplotlib.pyplot as plt labels = ["b", "b", "a", "b", "a"] values = [10, 11, 1, 12, 2] df = pd.DataFrame([{"label": label, "value": v} for label, v in zip(labels, values)]) df.label = pd.Categorical(df.label, categories=["a", "b"], ordered=True) # display(df) label value 0 b 10 1 b 11 2 a 1 3 b 12 4 a 2 # plot plt.plot(df.label, df.value, "o") ``` **Actual outcome** ![image](https://user-images.githubusercontent.com/12875240/88105677-21557d00-cb59-11ea-8344-d145ee9c091e.png) **Expected outcome** ```python plt.scatter(df.label, df.value) ``` ![image](https://user-images.githubusercontent.com/12875240/88105856-6aa5cc80-cb59-11ea-82db-579b799cdc66.png) **Matplotlib version** <!--Please specify your platform and versions of the relevant libraries you are using:--> * Operating system: Windows 10 64-bit * Matplotlib version: 3.2.2 * Matplotlib backend (`print(matplotlib.get_backend())`): `module://ipykernel.pylab.backend_inline` * Python version: 3.7.7 * Jupyter Lab version (if applicable): 2.1.5 - matplotlib was installed with Anaconda and updated way `conda update conda` & `conda update --all` - I don't know these details for the person who reported the issue on stack overflow [1]: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Categorical.html#pandas-categorical [2]: https://stackoverflow.com/questions/63013321 [3]: https://github.com/matplotlib/matplotlib/issues/18005
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35370/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35370/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35371
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35371/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35371/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35371/events
https://github.com/pandas-dev/pandas/issues/35371
663,378,609
MDU6SXNzdWU2NjMzNzg2MDk=
35,371
BUG: to_parquet doesn't reliably support file:// URI
{ "avatar_url": "https://avatars.githubusercontent.com/u/566650?v=4", "events_url": "https://api.github.com/users/impredicative/events{/privacy}", "followers_url": "https://api.github.com/users/impredicative/followers", "following_url": "https://api.github.com/users/impredicative/following{/other_user}", "gists_url": "https://api.github.com/users/impredicative/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/impredicative", "id": 566650, "login": "impredicative", "node_id": "MDQ6VXNlcjU2NjY1MA==", "organizations_url": "https://api.github.com/users/impredicative/orgs", "received_events_url": "https://api.github.com/users/impredicative/received_events", "repos_url": "https://api.github.com/users/impredicative/repos", "site_admin": false, "starred_url": "https://api.github.com/users/impredicative/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/impredicative/subscriptions", "type": "User", "url": "https://api.github.com/users/impredicative" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
2
2020-07-21T23:55:12Z
2020-07-23T10:55:31Z
2020-07-22T14:53:55Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd pd.__version__ '1.0.5' df = pd.DataFrame() # Any dataframe is fine for this issue. df.to_parquet('file:///tmp/df.parquet') # DOESN'T WORK! Raises urllib.error.URLError: <urlopen error [Errno 2] No such file or directory: '/tmp/df.parquet'> df.to_parquet('/tmp/df.parquet') # Works fine. df.to_parquet('file:///tmp/df.parquet') # Works given that the file now exists. ``` #### Problem description It is important to correctly support file URIs so users can interchangeably write to S3 or local files, both of which I represent as a URI. With Pandas 1.0.5, `to_parquet` works with a file URI only if the file already exists. #### Expected Output `to_parquet` should work with a file URI independent of whether the file already exists. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.4.final.0 python-bits : 64 OS : Darwin OS-release : 19.3.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1.post20200622 Cython : None pytest : 5.4.3 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.1 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : None pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : 0.4.1 gcsfs : None lxml.etree : 4.5.1 matplotlib : None numexpr : None odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : 0.17.1 pytables : None pytest : 5.4.3 pyxlsb : None s3fs : 0.4.2 scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35371/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35371/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35372
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35372/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35372/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35372/events
https://github.com/pandas-dev/pandas/issues/35372
663,393,759
MDU6SXNzdWU2NjMzOTM3NTk=
35,372
BUG: Pandas Read_html can't get values from table td data-sort-values
{ "avatar_url": "https://avatars.githubusercontent.com/u/17945426?v=4", "events_url": "https://api.github.com/users/riyadfebrian/events{/privacy}", "followers_url": "https://api.github.com/users/riyadfebrian/followers", "following_url": "https://api.github.com/users/riyadfebrian/following{/other_user}", "gists_url": "https://api.github.com/users/riyadfebrian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/riyadfebrian", "id": 17945426, "login": "riyadfebrian", "node_id": "MDQ6VXNlcjE3OTQ1NDI2", "organizations_url": "https://api.github.com/users/riyadfebrian/orgs", "received_events_url": "https://api.github.com/users/riyadfebrian/received_events", "repos_url": "https://api.github.com/users/riyadfebrian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/riyadfebrian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/riyadfebrian/subscriptions", "type": "User", "url": "https://api.github.com/users/riyadfebrian" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
2
2020-07-22T00:45:13Z
2020-09-04T15:29:03Z
2020-09-04T15:29:03Z
NONE
null
- [ ✔] I have checked that this issue has not already been reported. - [✔ ] I have confirmed this bug exists on the latest version of pandas. --- #### URL Example [https://en.wikipedia.org/wiki/Comparison_of_text_editors](https://en.wikipedia.org/wiki/Comparison_of_text_editors) ```python df = pd.read_html(url, flavor='bs4') ``` #### Problem description I'm trying to scrape first table from WIkipedia, the column 'Open Source' and 'CLI available' are displaying the data with ✔ images to refer 'Yes' and ❌ for 'No'. if we inspect the HTML code. ```html <td data-sort-value="Yes" style="background: #D2FFD2; color: black; vertical-align: middle; text-align: center;" class="table-yes2"><img alt="Yes" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/13px-Green_check.svg.png" decoding="async" title="Yes" width="13" height="13" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/20px-Green_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/26px-Green_check.svg.png 2x" data-file-width="600" data-file-height="600"> </td> ``` The value is embedded in `data-sort-value` but `pandas.read_html` maybe read the column value as image and return NaN #### Output of ``pd.show_versions()`` <details> commit : None python : 3.8.3.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_Indonesia.1252 pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.15.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.2 matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35372/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35372/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35373
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35373/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35373/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35373/events
https://github.com/pandas-dev/pandas/pull/35373
663,450,869
MDExOlB1bGxSZXF1ZXN0NDU0ODYxNzMx
35,373
ENH: Add validation checks for non-unique merge keys
{ "avatar_url": "https://avatars.githubusercontent.com/u/16354488?v=4", "events_url": "https://api.github.com/users/LewisDavies/events{/privacy}", "followers_url": "https://api.github.com/users/LewisDavies/followers", "following_url": "https://api.github.com/users/LewisDavies/following{/other_user}", "gists_url": "https://api.github.com/users/LewisDavies/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LewisDavies", "id": 16354488, "login": "LewisDavies", "node_id": "MDQ6VXNlcjE2MzU0NDg4", "organizations_url": "https://api.github.com/users/LewisDavies/orgs", "received_events_url": "https://api.github.com/users/LewisDavies/received_events", "repos_url": "https://api.github.com/users/LewisDavies/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LewisDavies/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LewisDavies/subscriptions", "type": "User", "url": "https://api.github.com/users/LewisDavies" }
[ { "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": "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": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
5
2020-07-22T03:44:53Z
2020-09-26T15:44:19Z
2020-09-26T15:44:19Z
NONE
null
- [x] closes #27430 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` After implementing the suggestion in #27430 I realized it should also apply to `1:m` and `m:1` merges. When any type of `many` merge is specified, an error will be raised if the `many` side is actually unique.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35373/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35373/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35373.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35373", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35373.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35373" }
https://api.github.com/repos/pandas-dev/pandas/issues/35374
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35374/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35374/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35374/events
https://github.com/pandas-dev/pandas/pull/35374
663,490,595
MDExOlB1bGxSZXF1ZXN0NDU0ODk0MTU1
35,374
Change defaults for rolling/expanding.apply engine kwargs to None
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-22T05:42:56Z
2020-07-22T16:34:10Z
2020-07-22T10:45:41Z
MEMBER
null
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This change was supposed to be apart of https://github.com/pandas-dev/pandas/pull/35182 but was overlooked. Since 1.1 isn't out, this doesn't need to be backported correct?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35374/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35374/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35374.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35374", "merged_at": "2020-07-22T10:45:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35374.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35374" }
https://api.github.com/repos/pandas-dev/pandas/issues/35375
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35375/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35375/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35375/events
https://github.com/pandas-dev/pandas/issues/35375
663,537,954
MDU6SXNzdWU2NjM1Mzc5NTQ=
35,375
ENH: Collation argument to to_sql
{ "avatar_url": "https://avatars.githubusercontent.com/u/33196375?v=4", "events_url": "https://api.github.com/users/MislavSag/events{/privacy}", "followers_url": "https://api.github.com/users/MislavSag/followers", "following_url": "https://api.github.com/users/MislavSag/following{/other_user}", "gists_url": "https://api.github.com/users/MislavSag/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MislavSag", "id": 33196375, "login": "MislavSag", "node_id": "MDQ6VXNlcjMzMTk2Mzc1", "organizations_url": "https://api.github.com/users/MislavSag/orgs", "received_events_url": "https://api.github.com/users/MislavSag/received_events", "repos_url": "https://api.github.com/users/MislavSag/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MislavSag/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MislavSag/subscriptions", "type": "User", "url": "https://api.github.com/users/MislavSag" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2020-07-22T07:23:23Z
2020-07-28T15:35:46Z
2020-07-28T14:22:14Z
NONE
null
#### Is your feature request related to a problem? I would like to be able to set Collation when sending the data to sql table. #### Describe the solution you'd like Now when I use pandas function `to_sql` to send data to mysql I would use `df.to_sql(table_name, engine, if_exists='replace', index=False, chunksize=100)` where engine is pymsql engine. But this doesn't work if my data contains utf-8 (Croatian characters). It converts č and ć characters to ?. #### API breaking implications It wouldn't affect API. #### Describe alternatives you've considered I tried to change collation manually.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35375/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35375/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35376
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35376/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35376/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35376/events
https://github.com/pandas-dev/pandas/issues/35376
663,620,223
MDU6SXNzdWU2NjM2MjAyMjM=
35,376
BUG: inconsistent replace
{ "avatar_url": "https://avatars.githubusercontent.com/u/65553311?v=4", "events_url": "https://api.github.com/users/qlieumontadv/events{/privacy}", "followers_url": "https://api.github.com/users/qlieumontadv/followers", "following_url": "https://api.github.com/users/qlieumontadv/following{/other_user}", "gists_url": "https://api.github.com/users/qlieumontadv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qlieumontadv", "id": 65553311, "login": "qlieumontadv", "node_id": "MDQ6VXNlcjY1NTUzMzEx", "organizations_url": "https://api.github.com/users/qlieumontadv/orgs", "received_events_url": "https://api.github.com/users/qlieumontadv/received_events", "repos_url": "https://api.github.com/users/qlieumontadv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qlieumontadv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qlieumontadv/subscriptions", "type": "User", "url": "https://api.github.com/users/qlieumontadv" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "01a886", "default": false, "description": "replace method", "id": 1652721180, "name": "replace", "node_id": "MDU6TGFiZWwxNjUyNzIxMTgw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace" } ]
closed
false
null
[]
{ "closed_at": "2020-10-05T18:41:57Z", "closed_issues": 106, "created_at": "2020-09-07T09:13:14Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-29T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/77", "id": 5850626, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels", "node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==", "number": 77, "open_issues": 0, "state": "closed", "title": "1.1.3", "updated_at": "2020-10-29T13:15:36Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77" }
21
2020-07-22T09:37:32Z
2020-09-26T01:25:20Z
2020-09-26T01:25:20Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Problem description ```python >>> pd.DataFrame([[1,1.0],[2,2.0]]).replace(1.0, 5) 0 1 0 1 5.0 1 2 2.0 >>> pd.DataFrame([[1,1.0],[2,2.0]]).replace(1, 5) 0 1 0 5 5.0 1 2 2.0 ``` #### Problem description Maybe I don't understand somethink or this is just non-sens #### Expected Output ```python >>> pd.DataFrame([[1,1.0],[2,2.0]]).replace(1.0, 5) 0 1 0 1 5.0 1 2 2.0 >>> pd.DataFrame([[1,1.0],[2,2.0]]).replace(1, 5) 0 1 0 5 1.0 1 2 2.0 ``` Or ```python >>> pd.DataFrame([[1,1.0],[2,2.0]]).replace(1.0, 5) 0 1 0 5 5.0 1 2 2.0 >>> pd.DataFrame([[1,1.0],[2,2.0]]).replace(1, 5) 0 1 0 5 5.0 1 2 2.0 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.9.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-62-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0 Cython : None pytest : 5.4.3 hypothesis : None sphinx : 3.1.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.15.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : 0.6.2 lxml.etree : None matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.17.1 pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.5.1 sqlalchemy : None tables : 3.6.1 tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35376/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35376/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35377
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35377/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35377/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35377/events
https://github.com/pandas-dev/pandas/pull/35377
663,691,722
MDExOlB1bGxSZXF1ZXN0NDU1MDYwMzMy
35,377
[FIX] Handle decimal and thousand separator in 'round_trip' converer
{ "avatar_url": "https://avatars.githubusercontent.com/u/4716745?v=4", "events_url": "https://api.github.com/users/ales-erjavec/events{/privacy}", "followers_url": "https://api.github.com/users/ales-erjavec/followers", "following_url": "https://api.github.com/users/ales-erjavec/following{/other_user}", "gists_url": "https://api.github.com/users/ales-erjavec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ales-erjavec", "id": 4716745, "login": "ales-erjavec", "node_id": "MDQ6VXNlcjQ3MTY3NDU=", "organizations_url": "https://api.github.com/users/ales-erjavec/orgs", "received_events_url": "https://api.github.com/users/ales-erjavec/received_events", "repos_url": "https://api.github.com/users/ales-erjavec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ales-erjavec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ales-erjavec/subscriptions", "type": "User", "url": "https://api.github.com/users/ales-erjavec" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
5
2020-07-22T11:32:33Z
2020-08-11T00:36:31Z
2020-08-11T00:36:27Z
CONTRIBUTOR
null
- [x] closes #35365 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry In case of non c-locale decimal and tsep, copy and fixup the source string before passing it to PyOS_string_to_double
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35377/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35377/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35377.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35377", "merged_at": "2020-08-11T00:36:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35377.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35377" }
https://api.github.com/repos/pandas-dev/pandas/issues/35378
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35378/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35378/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35378/events
https://github.com/pandas-dev/pandas/issues/35378
663,694,786
MDU6SXNzdWU2NjM2OTQ3ODY=
35,378
DOC: Data Editing Samples/Guide
{ "avatar_url": "https://avatars.githubusercontent.com/u/5131271?v=4", "events_url": "https://api.github.com/users/achapkowski/events{/privacy}", "followers_url": "https://api.github.com/users/achapkowski/followers", "following_url": "https://api.github.com/users/achapkowski/following{/other_user}", "gists_url": "https://api.github.com/users/achapkowski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/achapkowski", "id": 5131271, "login": "achapkowski", "node_id": "MDQ6VXNlcjUxMzEyNzE=", "organizations_url": "https://api.github.com/users/achapkowski/orgs", "received_events_url": "https://api.github.com/users/achapkowski/received_events", "repos_url": "https://api.github.com/users/achapkowski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/achapkowski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/achapkowski/subscriptions", "type": "User", "url": "https://api.github.com/users/achapkowski" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
open
false
null
[]
{ "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" }
4
2020-07-22T11:38:02Z
2020-08-03T09:29:32Z
null
NONE
null
#### Location of the documentation N/A #### Documentation problem There seems to be general community confusion over when the use `iloc`, `loc`, `at`, `iat` or the other methods that allow you to update rows and columns. What is the best way to add a single new row? Multiple rows `pd.concat` something else? It would be nice if a guide or doc was created to point to the best practices for data editing on a DataFrame.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35378/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35378/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35379
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35379/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35379/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35379/events
https://github.com/pandas-dev/pandas/pull/35379
663,798,839
MDExOlB1bGxSZXF1ZXN0NDU1MTQ4OTYz
35,379
DOC: Expanded Using a Docker Container section
{ "avatar_url": "https://avatars.githubusercontent.com/u/24970830?v=4", "events_url": "https://api.github.com/users/alexhlim/events{/privacy}", "followers_url": "https://api.github.com/users/alexhlim/followers", "following_url": "https://api.github.com/users/alexhlim/following{/other_user}", "gists_url": "https://api.github.com/users/alexhlim/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexhlim", "id": 24970830, "login": "alexhlim", "node_id": "MDQ6VXNlcjI0OTcwODMw", "organizations_url": "https://api.github.com/users/alexhlim/orgs", "received_events_url": "https://api.github.com/users/alexhlim/received_events", "repos_url": "https://api.github.com/users/alexhlim/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexhlim/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexhlim/subscriptions", "type": "User", "url": "https://api.github.com/users/alexhlim" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
5
2020-07-22T14:18:12Z
2020-08-01T16:27:54Z
2020-08-01T13:10:25Z
MEMBER
null
- [x] closes #35345 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added Docker installation link, Docker commands, and PyCharm sections.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35379/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35379/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35379.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35379", "merged_at": "2020-08-01T13:10:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35379.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35379" }
https://api.github.com/repos/pandas-dev/pandas/issues/35380
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35380/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35380/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35380/events
https://github.com/pandas-dev/pandas/pull/35380
663,839,651
MDExOlB1bGxSZXF1ZXN0NDU1MTgyNjM1
35,380
CLN: resolve isort mypy import confilict test_join
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-07-22T15:12:29Z
2020-07-29T16:45:38Z
2020-07-29T14:33:44Z
MEMBER
null
Part of #35134 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35380/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35380/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35380.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35380", "merged_at": "2020-07-29T14:33:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35380.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35380" }
https://api.github.com/repos/pandas-dev/pandas/issues/35381
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35381/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35381/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35381/events
https://github.com/pandas-dev/pandas/pull/35381
663,864,841
MDExOlB1bGxSZXF1ZXN0NDU1MjAzMjgx
35,381
Storage options
{ "avatar_url": "https://avatars.githubusercontent.com/u/6042212?v=4", "events_url": "https://api.github.com/users/martindurant/events{/privacy}", "followers_url": "https://api.github.com/users/martindurant/followers", "following_url": "https://api.github.com/users/martindurant/following{/other_user}", "gists_url": "https://api.github.com/users/martindurant/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/martindurant", "id": 6042212, "login": "martindurant", "node_id": "MDQ6VXNlcjYwNDIyMTI=", "organizations_url": "https://api.github.com/users/martindurant/orgs", "received_events_url": "https://api.github.com/users/martindurant/received_events", "repos_url": "https://api.github.com/users/martindurant/repos", "site_admin": false, "starred_url": "https://api.github.com/users/martindurant/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/martindurant/subscriptions", "type": "User", "url": "https://api.github.com/users/martindurant" }
[ { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "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" } ]
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" }
17
2020-07-22T15:47:31Z
2020-08-10T15:19:27Z
2020-08-10T15:19:25Z
CONTRIBUTOR
null
- [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35381/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35381/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35381.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35381", "merged_at": "2020-08-10T15:19:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35381.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35381" }
https://api.github.com/repos/pandas-dev/pandas/issues/35382
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35382/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35382/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35382/events
https://github.com/pandas-dev/pandas/issues/35382
663,867,959
MDU6SXNzdWU2NjM4Njc5NTk=
35,382
BUG: Inconsistent ordering of rows when merging with how=left and how=right
{ "avatar_url": "https://avatars.githubusercontent.com/u/68654702?v=4", "events_url": "https://api.github.com/users/pandamatic/events{/privacy}", "followers_url": "https://api.github.com/users/pandamatic/followers", "following_url": "https://api.github.com/users/pandamatic/following{/other_user}", "gists_url": "https://api.github.com/users/pandamatic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pandamatic", "id": 68654702, "login": "pandamatic", "node_id": "MDQ6VXNlcjY4NjU0NzAy", "organizations_url": "https://api.github.com/users/pandamatic/orgs", "received_events_url": "https://api.github.com/users/pandamatic/received_events", "repos_url": "https://api.github.com/users/pandamatic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pandamatic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pandamatic/subscriptions", "type": "User", "url": "https://api.github.com/users/pandamatic" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
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" }
1
2020-07-22T15:51:50Z
2020-11-21T22:23:27Z
2020-11-21T22:23:27Z
NONE
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd df = pd.DataFrame({'a': [1, 0, 1]}) df.merge(df, on='a', how='left', sort=False) a 0 1 1 1 2 0 3 1 4 1 df.merge(df, on='a', how='right', sort=False) a 0 1 1 1 2 1 3 1 4 0 ``` #### Problem description Order of output rows should be the same for how=left and how=right in this case. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Linux OS-release : 4.14.181-140.257.amzn2.x86_64 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : fr_FR.UTF-8 LOCALE : fr_FR.UTF-8 pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 19.2.3 setuptools : 41.2.0 Cython : None pytest : 5.4.3 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.17.1 pytables : None pytest : 5.4.3 pyxlsb : None s3fs : 0.4.2 scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35382/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35382/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35383
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35383/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35383/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35383/events
https://github.com/pandas-dev/pandas/issues/35383
663,871,050
MDU6SXNzdWU2NjM4NzEwNTA=
35,383
Drop similar rows of dataframe except for one column
{ "avatar_url": "https://avatars.githubusercontent.com/u/38130299?v=4", "events_url": "https://api.github.com/users/paulthemagno/events{/privacy}", "followers_url": "https://api.github.com/users/paulthemagno/followers", "following_url": "https://api.github.com/users/paulthemagno/following{/other_user}", "gists_url": "https://api.github.com/users/paulthemagno/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/paulthemagno", "id": 38130299, "login": "paulthemagno", "node_id": "MDQ6VXNlcjM4MTMwMjk5", "organizations_url": "https://api.github.com/users/paulthemagno/orgs", "received_events_url": "https://api.github.com/users/paulthemagno/received_events", "repos_url": "https://api.github.com/users/paulthemagno/repos", "site_admin": false, "starred_url": "https://api.github.com/users/paulthemagno/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/paulthemagno/subscriptions", "type": "User", "url": "https://api.github.com/users/paulthemagno" }
[ { "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
3
2020-07-22T15:56:12Z
2020-08-21T17:04:40Z
2020-07-23T16:30:50Z
NONE
null
It seems a trivial question, but I don't find anything on the web. I have a dataframe with **inconsistent rows**. In the example below `primary_key` is the primary key so it has to be once in dataset, while `info` is an information of `primary_key`. While for **exactly repeated rows** I want to keep only one of them using a function like `df.drop_duplicates(keep = 'first')`, I don't know which keep in the case in which primary keys (`primary_key`) are the same so refer to the same item, but `info` is different, because they are inconsistent information. In this case I'd like to remove all of these rows with a function like `df.drop_duplicates(subset = "primary_key" , keep = False)`. I don't know how to do this kind of filter because I want to keep 1 row if one case and 0 rows in the other, depending on the values of a specific column within groups of _similar rows_. ### Desired behaviour In: ```bash primary_key info 0 a 1 1 a 1 #duplicated row of index 0 2 a 2 #similar row of indexes 0 and 1 but inconsistent with info field 3 b 1 4 b 1 #duplicated row of index 3 ``` Out: ```bash primary_key info 1 b 1 #the only primary key with the same value on info field ``` Thank you
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35383/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35383/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35384
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35384/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35384/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35384/events
https://github.com/pandas-dev/pandas/issues/35384
663,949,340
MDU6SXNzdWU2NjM5NDkzNDA=
35,384
ENH: The parameter merge_cells parameter in function to_excel should take a 2-tuple one for index and one for columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/8286820?v=4", "events_url": "https://api.github.com/users/soumitrakp/events{/privacy}", "followers_url": "https://api.github.com/users/soumitrakp/followers", "following_url": "https://api.github.com/users/soumitrakp/following{/other_user}", "gists_url": "https://api.github.com/users/soumitrakp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/soumitrakp", "id": 8286820, "login": "soumitrakp", "node_id": "MDQ6VXNlcjgyODY4MjA=", "organizations_url": "https://api.github.com/users/soumitrakp/orgs", "received_events_url": "https://api.github.com/users/soumitrakp/received_events", "repos_url": "https://api.github.com/users/soumitrakp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/soumitrakp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/soumitrakp/subscriptions", "type": "User", "url": "https://api.github.com/users/soumitrakp" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
1
2020-07-22T18:03:22Z
2020-07-22T20:09:55Z
null
NONE
null
Currently pandas `to_excel` function has one parameter named `merge_cells`: if `True` it merges all cells in the excel sheet corresponding to the index and columns. However, if there are many levels of the index and many values for the higher levels, then as we scroll on the sheet, values of the higher levels in index become invisible. One way to keep the repeated values is to set `merge_cells = False`. However, in that case the column levels are also affected. It would be great to have a way to control this aspect of index and columns separately. One way would be to let `merge_cells` to take a 2-tuple of which one value is for the index and the other for the columns.
{ "+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/35384/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35384/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35385
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35385/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35385/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35385/events
https://github.com/pandas-dev/pandas/pull/35385
664,061,173
MDExOlB1bGxSZXF1ZXN0NDU1MzY0NDk1
35,385
BUG: ValueError: Cannot convert non-finite values (NA or inf) to integer only when DF exceed certain size
{ "avatar_url": "https://avatars.githubusercontent.com/u/8053809?v=4", "events_url": "https://api.github.com/users/ben-arnao/events{/privacy}", "followers_url": "https://api.github.com/users/ben-arnao/followers", "following_url": "https://api.github.com/users/ben-arnao/following{/other_user}", "gists_url": "https://api.github.com/users/ben-arnao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ben-arnao", "id": 8053809, "login": "ben-arnao", "node_id": "MDQ6VXNlcjgwNTM4MDk=", "organizations_url": "https://api.github.com/users/ben-arnao/orgs", "received_events_url": "https://api.github.com/users/ben-arnao/received_events", "repos_url": "https://api.github.com/users/ben-arnao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ben-arnao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ben-arnao/subscriptions", "type": "User", "url": "https://api.github.com/users/ben-arnao" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
5
2020-07-22T21:27:46Z
2021-05-19T21:24:58Z
2020-11-04T08:28:38Z
NONE
null
- [ ] closes #35227 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35385/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35385/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35385.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35385", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35385.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35385" }
https://api.github.com/repos/pandas-dev/pandas/issues/35386
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35386/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35386/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35386/events
https://github.com/pandas-dev/pandas/pull/35386
664,065,531
MDExOlB1bGxSZXF1ZXN0NDU1MzY4MTYz
35,386
CLN: resolve isort mypy import confilict test_transform
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-07-22T21:37:04Z
2020-07-29T16:46:03Z
2020-07-29T14:33:03Z
MEMBER
null
Part of #35134 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35386/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35386/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35386.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35386", "merged_at": "2020-07-29T14:33:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35386.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35386" }
https://api.github.com/repos/pandas-dev/pandas/issues/35387
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35387/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35387/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35387/events
https://github.com/pandas-dev/pandas/issues/35387
664,104,280
MDU6SXNzdWU2NjQxMDQyODA=
35,387
Display dataframe name or title when using display()
{ "avatar_url": "https://avatars.githubusercontent.com/u/18335708?v=4", "events_url": "https://api.github.com/users/spizwhiz/events{/privacy}", "followers_url": "https://api.github.com/users/spizwhiz/followers", "following_url": "https://api.github.com/users/spizwhiz/following{/other_user}", "gists_url": "https://api.github.com/users/spizwhiz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spizwhiz", "id": 18335708, "login": "spizwhiz", "node_id": "MDQ6VXNlcjE4MzM1NzA4", "organizations_url": "https://api.github.com/users/spizwhiz/orgs", "received_events_url": "https://api.github.com/users/spizwhiz/received_events", "repos_url": "https://api.github.com/users/spizwhiz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spizwhiz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spizwhiz/subscriptions", "type": "User", "url": "https://api.github.com/users/spizwhiz" }
[ { "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
4
2020-07-22T23:12:58Z
2020-08-21T17:04:40Z
2020-07-27T16:10:07Z
NONE
null
Requesting ability to display name of dataframe above dataframe when using display(df) I have tried df.name = "Name" and display(df, display_id = "Name") Neither results in any kind of identifier for the dataframe when using the display() function in Jupyter Notebook.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35387/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35387/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35388
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35388/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35388/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35388/events
https://github.com/pandas-dev/pandas/issues/35388
664,156,158
MDU6SXNzdWU2NjQxNTYxNTg=
35,388
BUG: pd.date_range with DST-crossing has incorrect freq attribute
{ "avatar_url": "https://avatars.githubusercontent.com/u/4106013?v=4", "events_url": "https://api.github.com/users/rwijtvliet/events{/privacy}", "followers_url": "https://api.github.com/users/rwijtvliet/followers", "following_url": "https://api.github.com/users/rwijtvliet/following{/other_user}", "gists_url": "https://api.github.com/users/rwijtvliet/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rwijtvliet", "id": 4106013, "login": "rwijtvliet", "node_id": "MDQ6VXNlcjQxMDYwMTM=", "organizations_url": "https://api.github.com/users/rwijtvliet/orgs", "received_events_url": "https://api.github.com/users/rwijtvliet/received_events", "repos_url": "https://api.github.com/users/rwijtvliet/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rwijtvliet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rwijtvliet/subscriptions", "type": "User", "url": "https://api.github.com/users/rwijtvliet" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
open
false
null
[]
null
3
2020-07-23T02:07:01Z
2021-08-08T18:53:23Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd i = pd.date_range('2020-03-28', periods=4, freq='D', tz='Europe/Berlin') i # DatetimeIndex(['2020-03-28 00:00:00+01:00', '2020-03-29 00:00:00+01:00', '2020-03-30 00:00:00+02:00', '2020-03-31 00:00:00+02:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D') i[0] + i.freq == i[1] #True i[2] + i.freq == i[3] #True i[1] + i.freq == i[2] #False (!) ``` #### Problem description Variably-spaced timestamps are not handled well, if the variation is caused by DST. The result of `i[1] + i.freq` is `Timestamp('2020-03-30 01:00:00+0200', tz='Europe/Berlin', freq='D')`, whereas `Timestamp('2020-03-30 00:00:00+0200', tz='Europe/Berlin', freq='D')` was expected. This is in contrast to timestamps where the variation is caused by e.g. months being different lengths, which *are* handled correctly. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.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 : de_DE.cp1252 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200714 Cython : None pytest : 5.4.3 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.2 numexpr : None odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35388/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35388/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35389
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35389/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35389/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35389/events
https://github.com/pandas-dev/pandas/issues/35389
664,285,018
MDU6SXNzdWU2NjQyODUwMTg=
35,389
ENH: Request for `Index.to_string` & `MultiIndex.to_string`
{ "avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4", "events_url": "https://api.github.com/users/galipremsagar/events{/privacy}", "followers_url": "https://api.github.com/users/galipremsagar/followers", "following_url": "https://api.github.com/users/galipremsagar/following{/other_user}", "gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/galipremsagar", "id": 11664259, "login": "galipremsagar", "node_id": "MDQ6VXNlcjExNjY0MjU5", "organizations_url": "https://api.github.com/users/galipremsagar/orgs", "received_events_url": "https://api.github.com/users/galipremsagar/received_events", "repos_url": "https://api.github.com/users/galipremsagar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions", "type": "User", "url": "https://api.github.com/users/galipremsagar" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
1
2020-07-23T08:16:13Z
2021-08-08T18:53:51Z
null
NONE
null
#### Is your feature request related to a problem? I'd like to request `to_string` API support in `Index` & `MultiIndex`, functionality being similar to the existing `DataFrame.to_string` & `Series.to_string`. #### Describe the solution you'd like `to_string` provides flexibility to modify/control the string representation of pandas objects, we can do this currently with `DataFrame` & `Series` but the API support is not yet there for `Index` & `MultiIndex`. https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_string.html https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.to_string.html
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35389/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35389/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35390
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35390/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35390/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35390/events
https://github.com/pandas-dev/pandas/issues/35390
664,407,963
MDU6SXNzdWU2NjQ0MDc5NjM=
35,390
QST: DatetimeIndex changes
{ "avatar_url": "https://avatars.githubusercontent.com/u/54742110?v=4", "events_url": "https://api.github.com/users/mboldin-temple/events{/privacy}", "followers_url": "https://api.github.com/users/mboldin-temple/followers", "following_url": "https://api.github.com/users/mboldin-temple/following{/other_user}", "gists_url": "https://api.github.com/users/mboldin-temple/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mboldin-temple", "id": 54742110, "login": "mboldin-temple", "node_id": "MDQ6VXNlcjU0NzQyMTEw", "organizations_url": "https://api.github.com/users/mboldin-temple/orgs", "received_events_url": "https://api.github.com/users/mboldin-temple/received_events", "repos_url": "https://api.github.com/users/mboldin-temple/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mboldin-temple/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mboldin-temple/subscriptions", "type": "User", "url": "https://api.github.com/users/mboldin-temple" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2020-07-23T11:44:45Z
2020-07-23T12:38:53Z
2020-07-23T12:38:15Z
NONE
null
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- #### Question about pandas In version 1.0.5, DatetimeIndex seems greatly changed from earlier versions Was this intentional and documented in the version changes? Many statsmodels forecasting steps now break For example, the code below no longer works dx = pd.DatetimeIndex(start ='2020-01-01 00:00', freq ='M', periods = 12) I get TypeError: __new__() got an unexpected keyword argument 'start' The documentation has these arguments class pandas.DatetimeIndex(data=None, freq=None, tz=None, normalize=False, closed=None, ambiguous='raise', dayfirst=False, yearfirst=False, dtype=None, copy=False, name=None)[source] with little explanation or usefulness IMHO I see old Pandas has def __new__(cls, data=None, freq=None, start=None, end=None, periods=None, tz=None, normalize=False, closed=None, ambiguous='raise', dayfirst=False, yearfirst=False, dtype=None, copy=False, name=None, verify_integrity=True): ```python # Your code here, if applicable # Create the DatetimeIndex dx = pd.DatetimeIndex(start ='2020-01-01 00:00', freq ='M', periods = 12) ## expect TypeError: __new__() got an unexpected keyword argument 'start' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35390/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35390/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35391
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35391/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35391/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35391/events
https://github.com/pandas-dev/pandas/issues/35391
664,449,098
MDU6SXNzdWU2NjQ0NDkwOTg=
35,391
BUG: Recursion error when querying empty df
{ "avatar_url": "https://avatars.githubusercontent.com/u/13602468?v=4", "events_url": "https://api.github.com/users/klieret/events{/privacy}", "followers_url": "https://api.github.com/users/klieret/followers", "following_url": "https://api.github.com/users/klieret/following{/other_user}", "gists_url": "https://api.github.com/users/klieret/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/klieret", "id": 13602468, "login": "klieret", "node_id": "MDQ6VXNlcjEzNjAyNDY4", "organizations_url": "https://api.github.com/users/klieret/orgs", "received_events_url": "https://api.github.com/users/klieret/received_events", "repos_url": "https://api.github.com/users/klieret/repos", "site_admin": false, "starred_url": "https://api.github.com/users/klieret/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/klieret/subscriptions", "type": "User", "url": "https://api.github.com/users/klieret" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "f3afff", "default": false, "description": "pd.eval, query", "id": 1631985267, "name": "expressions", "node_id": "MDU6TGFiZWwxNjMxOTg1MjY3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/expressions" } ]
closed
false
null
[]
null
5
2020-07-23T12:52:50Z
2020-07-23T13:38:34Z
2020-07-23T13:38:15Z
CONTRIBUTOR
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd df = pd.DataFrame(columns=["a", "b"]) df.query("(a+b)==1") ``` **NOTE**: Under some circumstances the same might happen when the colums only contain ``np.nan``s but I couldn't get a MWE yet. #### Problem description Throws recursion error. #### Expected Output Empty df. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-62-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.1 pytz : 2019.2 dateutil : 2.7.3 pip : 18.1 setuptools : 41.1.0 Cython : None pytest : 5.3.2 hypothesis : None sphinx : 3.0.0 blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 5.8.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.2.1 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.2 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.16 tables : 3.6.1 tabulate : 0.8.7 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35391/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35391/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35392
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35392/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35392/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35392/events
https://github.com/pandas-dev/pandas/issues/35392
664,493,734
MDU6SXNzdWU2NjQ0OTM3MzQ=
35,392
BUG: Index.get_indexer_non_unique misbehaves when index contains multiple nan
{ "avatar_url": "https://avatars.githubusercontent.com/u/2016449?v=4", "events_url": "https://api.github.com/users/mhabets/events{/privacy}", "followers_url": "https://api.github.com/users/mhabets/followers", "following_url": "https://api.github.com/users/mhabets/following{/other_user}", "gists_url": "https://api.github.com/users/mhabets/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mhabets", "id": 2016449, "login": "mhabets", "node_id": "MDQ6VXNlcjIwMTY0NDk=", "organizations_url": "https://api.github.com/users/mhabets/orgs", "received_events_url": "https://api.github.com/users/mhabets/received_events", "repos_url": "https://api.github.com/users/mhabets/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mhabets/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhabets/subscriptions", "type": "User", "url": "https://api.github.com/users/mhabets" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": 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" }
3
2020-07-23T13:53:57Z
2021-08-05T11:51:18Z
2021-08-05T11:51:18Z
NONE
null
#### Code Sample, a copy-pastable example ```python axis = pd.Index([np.nan, 'var1', np.nan]) axis.get_indexer_for([np.nan]) ``` #### Current Output `array([-1], dtype=int64)` Meaning that `np.nan` is not in axis which is incorrect and makes `df.drop(columns=[np.nan])` to fail when columns contains multiple `nan`. #### Expected Output `array([0, 2], dtype=int64)` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : en LOCALE : None.None pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200714 Cython : 0.29.21 pytest : 5.4.3 hypothesis : 5.20.3 sphinx : 3.1.2 blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : 4.5.2 html5lib : 1.1 pymysql : None psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.2 matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.9 numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35392/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35392/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35393
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35393/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35393/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35393/events
https://github.com/pandas-dev/pandas/pull/35393
664,550,156
MDExOlB1bGxSZXF1ZXN0NDU1NzczNDY2
35,393
Matplotlib 3.3 compatibility fixups
{ "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": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-23T15:00:41Z
2020-07-23T22:06:10Z
2020-07-23T22:06:05Z
CONTRIBUTOR
null
Closes #34850 Closes https://github.com/pandas-dev/pandas/issues/35350 Haven't tested with matplotlib's older than 3.2 yet. We'll see what CI says.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35393/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35393/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35393.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35393", "merged_at": "2020-07-23T22:06:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35393.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35393" }
https://api.github.com/repos/pandas-dev/pandas/issues/35394
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35394/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35394/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35394/events
https://github.com/pandas-dev/pandas/issues/35394
664,603,279
MDU6SXNzdWU2NjQ2MDMyNzk=
35,394
BUG: UnboundLocalError on `df.to_string(max_rows=0)`
{ "avatar_url": "https://avatars.githubusercontent.com/u/528754?v=4", "events_url": "https://api.github.com/users/jjhale/events{/privacy}", "followers_url": "https://api.github.com/users/jjhale/followers", "following_url": "https://api.github.com/users/jjhale/following{/other_user}", "gists_url": "https://api.github.com/users/jjhale/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jjhale", "id": 528754, "login": "jjhale", "node_id": "MDQ6VXNlcjUyODc1NA==", "organizations_url": "https://api.github.com/users/jjhale/orgs", "received_events_url": "https://api.github.com/users/jjhale/received_events", "repos_url": "https://api.github.com/users/jjhale/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jjhale/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jjhale/subscriptions", "type": "User", "url": "https://api.github.com/users/jjhale" }
[ { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
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" }
4
2020-07-23T16:13:12Z
2021-09-01T18:08:25Z
2021-09-01T18:08:25Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd d = {'col1': [1, 2], 'col2': [3, 4]} df = pd.DataFrame(data=d) df.to_string(max_rows=0) ``` example running it: ```python >>> import pandas as pd >>> d = {'col1': [1, 2], 'col2': [3, 4]} >>> df = pd.DataFrame(data=d) >>> df.to_string() ' col1 col2\n0 1 3\n1 2 4' >>> df.to_string(max_rows=1) ' col1 col2\n0 1 3\n.. ... ...' >>> df.to_string(max_rows=0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/pandas/core/frame.py", line 818, in to_string line_width=line_width, File "/usr/local/lib/python3.7/site-packages/pandas/io/formats/format.py", line 612, in __init__ self._chk_truncate() File "/usr/local/lib/python3.7/site-packages/pandas/io/formats/format.py", line 640, in _chk_truncate n_add_rows = self.header + dot_row + show_dimension_rows + prompt_row UnboundLocalError: local variable 'show_dimension_rows' referenced before assignment ``` #### Problem description Throwing an unchecked exception on a valid input. The variable `show_dimension_rows` is only conditionally defined here: https://github.com/pandas-dev/pandas/blob/v1.0.5/pandas/io/formats/format.py#L636 A simple fix could be to include an else block and set it to zero. #### Expected Output Ideally it would output no data rows (if the df did have some rows): ```python >>> df.to_string(max_rows=0) ' col1 col2\n.. ... ...' ``` or the standard empty data frame message if it had zero rows: ```python >>> d = {'col1': [], 'col2': []} >>> df = pd.DataFrame(data=d) >>> df.to_string(max_rows=0) 'Empty DataFrame\nColumns: [col1, col2]\nIndex: []' ``` In the simple fix case, it would assume that it was in the terminal and output as if max_rows had not been set, which would probably be better than the exception. ```python >>> d = {'col1': [1, 2], 'col2': [3, 4]} >>> df = pd.DataFrame(data=d) >>> df.to_string(max_rows=0) ' col1 col2\n0 1 3\n1 2 4' >>> df.to_string() ' col1 col2\n0 1 3\n1 2 4' ``` #### Output of ``pd.show_versions()`` <details> ``` >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Darwin OS-release : 19.6.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.0 pip : 19.3.1 setuptools : 42.0.2 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35394/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35394/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35395
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35395/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35395/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35395/events
https://github.com/pandas-dev/pandas/issues/35395
664,617,406
MDU6SXNzdWU2NjQ2MTc0MDY=
35,395
Random Sample Not Working
{ "avatar_url": "https://avatars.githubusercontent.com/u/47517229?v=4", "events_url": "https://api.github.com/users/TanushGoel/events{/privacy}", "followers_url": "https://api.github.com/users/TanushGoel/followers", "following_url": "https://api.github.com/users/TanushGoel/following{/other_user}", "gists_url": "https://api.github.com/users/TanushGoel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TanushGoel", "id": 47517229, "login": "TanushGoel", "node_id": "MDQ6VXNlcjQ3NTE3MjI5", "organizations_url": "https://api.github.com/users/TanushGoel/orgs", "received_events_url": "https://api.github.com/users/TanushGoel/received_events", "repos_url": "https://api.github.com/users/TanushGoel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TanushGoel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TanushGoel/subscriptions", "type": "User", "url": "https://api.github.com/users/TanushGoel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
1
2020-07-23T16:36:29Z
2020-08-21T17:04:40Z
2020-07-23T20:32:09Z
NONE
null
I think there's an issue with the sample function. It displays the randomized dataframe with a different heading, but when you actually get the value of the dataframe at a certain index, it displays the same value as before the random sample. <img width="651" alt="Screen Shot 2020-07-23 at 9 30 38 AM" src="https://user-images.githubusercontent.com/47517229/88312776-68fa1700-ccc7-11ea-94fc-00087cc743e7.png"> <img width="693" alt="Screen Shot 2020-07-23 at 9 31 49 AM" src="https://user-images.githubusercontent.com/47517229/88312788-6dbecb00-ccc7-11ea-9a6a-353951e56fca.png"> How can I fix 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/35395/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35395/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35396
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35396/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35396/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35396/events
https://github.com/pandas-dev/pandas/pull/35396
664,663,221
MDExOlB1bGxSZXF1ZXN0NDU1ODY3MzIz
35,396
PKG: Set max pin for Cython
{ "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": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-23T17:56:06Z
2020-07-23T19:41:13Z
2020-07-23T19:10:34Z
CONTRIBUTOR
null
We know that pandas doesn't work with Cython 3.0 (https://github.com/pandas-dev/pandas/issues/34213, https://github.com/pandas-dev/pandas/issues/34014) This sets the maximum supported version of Cython in our pyproject.toml to ensure that pandas 1.1.0 can continue to be built from source without Cython pre-installed after Cython 3.0 is released.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35396/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35396/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35396.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35396", "merged_at": "2020-07-23T19:10:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35396.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35396" }
https://api.github.com/repos/pandas-dev/pandas/issues/35397
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35397/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35397/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35397/events
https://github.com/pandas-dev/pandas/pull/35397
664,781,580
MDExOlB1bGxSZXF1ZXN0NDU1OTY1NTQz
35,397
CLN: Remove leftover partial-result code from apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/25847554?v=4", "events_url": "https://api.github.com/users/alonme/events{/privacy}", "followers_url": "https://api.github.com/users/alonme/followers", "following_url": "https://api.github.com/users/alonme/following{/other_user}", "gists_url": "https://api.github.com/users/alonme/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alonme", "id": 25847554, "login": "alonme", "node_id": "MDQ6VXNlcjI1ODQ3NTU0", "organizations_url": "https://api.github.com/users/alonme/orgs", "received_events_url": "https://api.github.com/users/alonme/received_events", "repos_url": "https://api.github.com/users/alonme/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alonme/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alonme/subscriptions", "type": "User", "url": "https://api.github.com/users/alonme" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-07-23T21:38:32Z
2020-07-24T12:47:03Z
2020-07-24T12:46:55Z
CONTRIBUTOR
null
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35397/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35397/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35397.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35397", "merged_at": "2020-07-24T12:46:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35397.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35397" }
https://api.github.com/repos/pandas-dev/pandas/issues/35398
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35398/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35398/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35398/events
https://github.com/pandas-dev/pandas/pull/35398
664,806,386
MDExOlB1bGxSZXF1ZXN0NDU1OTg1NTQ2
35,398
DOC: Fixed formatting and errors in whatsnew v1.1.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "followers_url": "https://api.github.com/users/rhshadrach/followers", "following_url": "https://api.github.com/users/rhshadrach/following{/other_user}", "gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhshadrach", "id": 45562402, "login": "rhshadrach", "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "repos_url": "https://api.github.com/users/rhshadrach/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "type": "User", "url": "https://api.github.com/users/rhshadrach" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-23T22:35:25Z
2020-07-25T14:49:01Z
2020-07-24T13:06:26Z
MEMBER
null
cc @TomAugspurger Minor fixes for formatting, spelling, and grammar. Please let me know if any of this is too nit-picky, I can revert to just the definite spelling/syntax errors.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35398/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35398/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35398.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35398", "merged_at": "2020-07-24T13:06:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35398.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35398" }
https://api.github.com/repos/pandas-dev/pandas/issues/35399
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35399/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35399/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35399/events
https://github.com/pandas-dev/pandas/pull/35399
664,942,198
MDExOlB1bGxSZXF1ZXN0NDU2MDk4MDM2
35,399
API: read_csv, to_csv line_terminator keyword inconsistency
{ "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" } ]
closed
false
null
[]
null
17
2020-07-24T06:12:53Z
2020-09-12T17:52:26Z
2020-09-10T19:06:39Z
MEMBER
null
- [x] closes #9568 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry (pending 1.2) I followed discussion in #9568. The aim of this PR is to allow both `line_terminator` and `lineterminator` keyword args to `read_csv` and `to_csv` but only document `line_terminator`. As per @jorisvandenbossche's suggestion we preserve `lineterminator` to stay compatible with `csv` dialects.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35399/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35399/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35399.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35399", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35399.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35399" }
https://api.github.com/repos/pandas-dev/pandas/issues/35400
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35400/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35400/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35400/events
https://github.com/pandas-dev/pandas/issues/35400
664,955,775
MDU6SXNzdWU2NjQ5NTU3NzU=
35,400
BUG: Groupby Is Changing Date Format
{ "avatar_url": "https://avatars.githubusercontent.com/u/58146004?v=4", "events_url": "https://api.github.com/users/marekre90/events{/privacy}", "followers_url": "https://api.github.com/users/marekre90/followers", "following_url": "https://api.github.com/users/marekre90/following{/other_user}", "gists_url": "https://api.github.com/users/marekre90/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/marekre90", "id": 58146004, "login": "marekre90", "node_id": "MDQ6VXNlcjU4MTQ2MDA0", "organizations_url": "https://api.github.com/users/marekre90/orgs", "received_events_url": "https://api.github.com/users/marekre90/received_events", "repos_url": "https://api.github.com/users/marekre90/repos", "site_admin": false, "starred_url": "https://api.github.com/users/marekre90/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/marekre90/subscriptions", "type": "User", "url": "https://api.github.com/users/marekre90" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
0
2020-07-24T06:49:08Z
2020-08-21T17:04:41Z
2020-07-24T09:52:39Z
NONE
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ``` df = pd.read_csv("Uk-Orders.csv",parse_dates=['WO Created']) df=df.rename(columns={"WO Created":"WO-Created","Sale Price":"Sale-Price"}) df['Sale-Price']=df['Sale-Price'].str.replace(',', '').astype('float64') df['WO-Created'] = pd.to_datetime(df['WO-Created']).dt.normalize() df=df.groupby('WO-Created',sort=False)['Sale-Price'].sum().reset_index() ``` #### Problem description I have a dataset that has two columns. WO created as starting on 04-01-2016 and are populated until 06-29-2020. After running df=df.groupby('WO-Created',sort=False)['Sale-Price'].sum().reset_index(), the last row is giving me dates like 2020-12-06, which is incorrect, because there is no such date range in my report (no December in my dataset). I suppose it has something to do with date formatting, but I am not sure how to fix it. #### Expected Output I would expect dates to be summarized correctly. #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35400/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35400/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35401
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35401/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35401/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35401/events
https://github.com/pandas-dev/pandas/pull/35401
665,127,767
MDExOlB1bGxSZXF1ZXN0NDU2MjUzMDUw
35,401
use a try block in _expand_user instead of a typing condition
{ "avatar_url": "https://avatars.githubusercontent.com/u/14075922?v=4", "events_url": "https://api.github.com/users/neutrinoceros/events{/privacy}", "followers_url": "https://api.github.com/users/neutrinoceros/followers", "following_url": "https://api.github.com/users/neutrinoceros/following{/other_user}", "gists_url": "https://api.github.com/users/neutrinoceros/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/neutrinoceros", "id": 14075922, "login": "neutrinoceros", "node_id": "MDQ6VXNlcjE0MDc1OTIy", "organizations_url": "https://api.github.com/users/neutrinoceros/orgs", "received_events_url": "https://api.github.com/users/neutrinoceros/received_events", "repos_url": "https://api.github.com/users/neutrinoceros/repos", "site_admin": false, "starred_url": "https://api.github.com/users/neutrinoceros/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neutrinoceros/subscriptions", "type": "User", "url": "https://api.github.com/users/neutrinoceros" }
[]
closed
false
null
[]
null
10
2020-07-24T12:13:11Z
2020-09-19T07:22:39Z
2020-09-19T07:22:39Z
CONTRIBUTOR
null
Noticed that `_expand_user`'s docstrings stated that expansion was performed "if possible", while the actual implementation was only applying expansion to str objects. With a try block it should work with str, os.Pathlike and bytes objects (and everything else supported by `os.path.expanduser` in the future). I except this change may be undesirable since it will force the output type to `str`. In this case I can replace this with a docstring update. I'll complete the checklist with tests and whatsnew entry if the change is deemed desirable. - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35401/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35401/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35401.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35401", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35401.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35401" }
https://api.github.com/repos/pandas-dev/pandas/issues/35402
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35402/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35402/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35402/events
https://github.com/pandas-dev/pandas/issues/35402
665,135,293
MDU6SXNzdWU2NjUxMzUyOTM=
35,402
BUG: DateTime Index format bug when importing from .csv file
{ "avatar_url": "https://avatars.githubusercontent.com/u/6236646?v=4", "events_url": "https://api.github.com/users/filipporemonato/events{/privacy}", "followers_url": "https://api.github.com/users/filipporemonato/followers", "following_url": "https://api.github.com/users/filipporemonato/following{/other_user}", "gists_url": "https://api.github.com/users/filipporemonato/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/filipporemonato", "id": 6236646, "login": "filipporemonato", "node_id": "MDQ6VXNlcjYyMzY2NDY=", "organizations_url": "https://api.github.com/users/filipporemonato/orgs", "received_events_url": "https://api.github.com/users/filipporemonato/received_events", "repos_url": "https://api.github.com/users/filipporemonato/repos", "site_admin": false, "starred_url": "https://api.github.com/users/filipporemonato/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/filipporemonato/subscriptions", "type": "User", "url": "https://api.github.com/users/filipporemonato" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "5319e7", "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
[]
null
2
2020-07-24T12:28:23Z
2020-07-27T05:29:12Z
2020-07-24T14:16:23Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python data = pd.read_csv(file_path, engine='python', sep=';') data = data.set_index('timestamp_utc') data.index = pd.to_datetime(data.index, utc=True) ``` #### Problem description I am sorry but I cannot provide a mwe because time is against me, but I still want to report the problem. I have loaded a .csv file which has a column called "timestamp_utc" containing the full timestamp, date+time. I have then set the timestamp_utc column as my index, and converted it to datetime object. My code was not working because some dates were apparently missing while, by hand inspectyion of the .csv file, they were present. The .csv file has all dates in dd/mm/yyyy format, from 02/12/2019 to 03/06/2020, but after running the code above and checking the index in the dataframe, this was shown (see screenshot): ![image](https://user-images.githubusercontent.com/6236646/88389825-85757c80-cdb7-11ea-8c66-0dca1e691b35.png) so the index jumps from 2019/12/02 (which is yyyy/dd/mm format) to 2019/02/13 (which is yyyy/mm/dd format)! #### Expected Output I do not mind much if Pandas choses to import something as yyyy/dd/mm or yyyy/mm/dd, I know that I can use the "dayfirst" option in case, but at least Pandas should be consistent. This simply breaks the logic of indexes, which should always be increasing values. I find it quite surprising that no warning was given during the set_index operation. These kind of issues happen on a daily basis when working with Pandas and in my group several tens of hours are spent debugging what should be a straightforward thing. My suggestion to avoid these problems in the future is that Pandas should expect and treat dates as if they were dd/mm/yyyy or yyyy/mm/dd format, throwing (at least) a warning when a date in mm/dd/yyyy format is found, so that the user can correct the import. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : None.None pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200714 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.16.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35402/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35402/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35403
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35403/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35403/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35403/events
https://github.com/pandas-dev/pandas/issues/35403
665,166,565
MDU6SXNzdWU2NjUxNjY1NjU=
35,403
ENH: Please provide `register_groupBy_accessor`
{ "avatar_url": "https://avatars.githubusercontent.com/u/10041819?v=4", "events_url": "https://api.github.com/users/talegari/events{/privacy}", "followers_url": "https://api.github.com/users/talegari/followers", "following_url": "https://api.github.com/users/talegari/following{/other_user}", "gists_url": "https://api.github.com/users/talegari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/talegari", "id": 10041819, "login": "talegari", "node_id": "MDQ6VXNlcjEwMDQxODE5", "organizations_url": "https://api.github.com/users/talegari/orgs", "received_events_url": "https://api.github.com/users/talegari/received_events", "repos_url": "https://api.github.com/users/talegari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/talegari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/talegari/subscriptions", "type": "User", "url": "https://api.github.com/users/talegari" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
open
false
null
[]
null
2
2020-07-24T13:24:01Z
2021-08-08T18:56:02Z
null
NONE
null
Thanks for providing the option to create custom accessors via [pandas.api.extensions](https://pandas.pydata.org/pandas-docs/stable/development/extending.html). This is prefereable method to extend pandas dataframes over inheritance/sub-classing. Currently, this supports these: dataframe, series, index. Please extend this support for [groupBy](https://pandas.pydata.org/pandas-docs/stable/reference/groupby.html) objects.
{ "+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/35403/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35403/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35404
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35404/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35404/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35404/events
https://github.com/pandas-dev/pandas/issues/35404
665,249,784
MDU6SXNzdWU2NjUyNDk3ODQ=
35,404
QST:module 'pandas.core.indexing' has no attribute 'get_indexers_list'
{ "avatar_url": "https://avatars.githubusercontent.com/u/11691791?v=4", "events_url": "https://api.github.com/users/ziwang-com/events{/privacy}", "followers_url": "https://api.github.com/users/ziwang-com/followers", "following_url": "https://api.github.com/users/ziwang-com/following{/other_user}", "gists_url": "https://api.github.com/users/ziwang-com/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ziwang-com", "id": 11691791, "login": "ziwang-com", "node_id": "MDQ6VXNlcjExNjkxNzkx", "organizations_url": "https://api.github.com/users/ziwang-com/orgs", "received_events_url": "https://api.github.com/users/ziwang-com/received_events", "repos_url": "https://api.github.com/users/ziwang-com/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ziwang-com/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ziwang-com/subscriptions", "type": "User", "url": "https://api.github.com/users/ziwang-com" }
[ { "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
2020-07-24T15:35:29Z
2020-08-04T11:23:20Z
2020-07-24T16:11:34Z
NONE
null
- [ ] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- #### Question about pandas **Note**: If you'd still like to submit a question, please read [this guide]( https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your question. ```python # Your code here, if applicable ``` n [1]: runfile('D:/zwPython/demo/zw005xver.py', wdir='D:/zwPython/demo') Traceback (most recent call last): File "D:\zwPython\demo\zw005xver.py", line 29, in <module> import zipline File "D:\zwPython\py3\python-3.8.3.amd64\lib\site-packages\zipline\__init__.py", line 24, in <module> from . import finance File "D:\zwPython\py3\python-3.8.3.amd64\lib\site-packages\zipline\finance\__init__.py", line 16, in <module> from . import execution, trading File "D:\zwPython\py3\python-3.8.3.amd64\lib\site-packages\zipline\finance\trading.py", line 20, in <module> from zipline.utils.pandas_utils import normalize_date File "D:\zwPython\py3\python-3.8.3.amd64\lib\site-packages\zipline\utils\pandas_utils.py", line 223, in <module> '_' + name for (name, _) in pd.core.indexing.get_indexers_list() AttributeError: module 'pandas.core.indexing' has no attribute 'get_indexers_list'
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35404/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35404/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35405
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35405/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35405/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35405/events
https://github.com/pandas-dev/pandas/pull/35405
665,272,652
MDExOlB1bGxSZXF1ZXN0NDU2MzcyODM0
35,405
DOC: Add compose ecosystem docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/12969559?v=4", "events_url": "https://api.github.com/users/jeff-hernandez/events{/privacy}", "followers_url": "https://api.github.com/users/jeff-hernandez/followers", "following_url": "https://api.github.com/users/jeff-hernandez/following{/other_user}", "gists_url": "https://api.github.com/users/jeff-hernandez/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeff-hernandez", "id": 12969559, "login": "jeff-hernandez", "node_id": "MDQ6VXNlcjEyOTY5NTU5", "organizations_url": "https://api.github.com/users/jeff-hernandez/orgs", "received_events_url": "https://api.github.com/users/jeff-hernandez/received_events", "repos_url": "https://api.github.com/users/jeff-hernandez/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeff-hernandez/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeff-hernandez/subscriptions", "type": "User", "url": "https://api.github.com/users/jeff-hernandez" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-07-24T16:14:25Z
2020-08-06T23:37:30Z
2020-08-06T23:37:25Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35405/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35405/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35405.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35405", "merged_at": "2020-08-06T23:37:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35405.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35405" }
https://api.github.com/repos/pandas-dev/pandas/issues/35406
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35406/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35406/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35406/events
https://github.com/pandas-dev/pandas/issues/35406
665,274,277
MDU6SXNzdWU2NjUyNzQyNzc=
35,406
BUG: Creating a Series from a Series results in all NaN values
{ "avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4", "events_url": "https://api.github.com/users/bashtage/events{/privacy}", "followers_url": "https://api.github.com/users/bashtage/followers", "following_url": "https://api.github.com/users/bashtage/following{/other_user}", "gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bashtage", "id": 5585221, "login": "bashtage", "node_id": "MDQ6VXNlcjU1ODUyMjE=", "organizations_url": "https://api.github.com/users/bashtage/orgs", "received_events_url": "https://api.github.com/users/bashtage/received_events", "repos_url": "https://api.github.com/users/bashtage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bashtage/subscriptions", "type": "User", "url": "https://api.github.com/users/bashtage" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/11210290?v=4", "events_url": "https://api.github.com/users/TAJD/events{/privacy}", "followers_url": "https://api.github.com/users/TAJD/followers", "following_url": "https://api.github.com/users/TAJD/following{/other_user}", "gists_url": "https://api.github.com/users/TAJD/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TAJD", "id": 11210290, "login": "TAJD", "node_id": "MDQ6VXNlcjExMjEwMjkw", "organizations_url": "https://api.github.com/users/TAJD/orgs", "received_events_url": "https://api.github.com/users/TAJD/received_events", "repos_url": "https://api.github.com/users/TAJD/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TAJD/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TAJD/subscriptions", "type": "User", "url": "https://api.github.com/users/TAJD" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/11210290?v=4", "events_url": "https://api.github.com/users/TAJD/events{/privacy}", "followers_url": "https://api.github.com/users/TAJD/followers", "following_url": "https://api.github.com/users/TAJD/following{/other_user}", "gists_url": "https://api.github.com/users/TAJD/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TAJD", "id": 11210290, "login": "TAJD", "node_id": "MDQ6VXNlcjExMjEwMjkw", "organizations_url": "https://api.github.com/users/TAJD/orgs", "received_events_url": "https://api.github.com/users/TAJD/received_events", "repos_url": "https://api.github.com/users/TAJD/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TAJD/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TAJD/subscriptions", "type": "User", "url": "https://api.github.com/users/TAJD" } ]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
4
2020-07-24T16:17:08Z
2020-09-05T14:44:27Z
2020-09-05T14:44:27Z
CONTRIBUTOR
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [X] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import numpy as np import pandas as pd pd.Series(pd.Series(np.random.randn(100)),index=pd.date_range("1980-1-1",periods=100,freq="D")) ``` output ``` 1980-01-01 NaN 1980-01-02 NaN 1980-01-03 NaN ... ``` #### Problem description Series accepts array-like, and Series is array-like. #### Expected Output A Series with the same values and my new index. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200714 Cython : 0.29.21 pytest : 5.4.3 hypothesis : None sphinx : 3.1.2 blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.1 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: v0.10.0dev0+6.g642bd7b bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.1 matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : None tables : 3.6.1 tabulate : 0.8.7 xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : None numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35406/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35406/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35407
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35407/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35407/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35407/events
https://github.com/pandas-dev/pandas/issues/35407
665,344,871
MDU6SXNzdWU2NjUzNDQ4NzE=
35,407
Deprecate Series / DataFrame.append
{ "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": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
open
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/1748562?v=4", "events_url": "https://api.github.com/users/neinkeinkaffee/events{/privacy}", "followers_url": "https://api.github.com/users/neinkeinkaffee/followers", "following_url": "https://api.github.com/users/neinkeinkaffee/following{/other_user}", "gists_url": "https://api.github.com/users/neinkeinkaffee/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/neinkeinkaffee", "id": 1748562, "login": "neinkeinkaffee", "node_id": "MDQ6VXNlcjE3NDg1NjI=", "organizations_url": "https://api.github.com/users/neinkeinkaffee/orgs", "received_events_url": "https://api.github.com/users/neinkeinkaffee/received_events", "repos_url": "https://api.github.com/users/neinkeinkaffee/repos", "site_admin": false, "starred_url": "https://api.github.com/users/neinkeinkaffee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neinkeinkaffee/subscriptions", "type": "User", "url": "https://api.github.com/users/neinkeinkaffee" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/1748562?v=4", "events_url": "https://api.github.com/users/neinkeinkaffee/events{/privacy}", "followers_url": "https://api.github.com/users/neinkeinkaffee/followers", "following_url": "https://api.github.com/users/neinkeinkaffee/following{/other_user}", "gists_url": "https://api.github.com/users/neinkeinkaffee/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/neinkeinkaffee", "id": 1748562, "login": "neinkeinkaffee", "node_id": "MDQ6VXNlcjE3NDg1NjI=", "organizations_url": "https://api.github.com/users/neinkeinkaffee/orgs", "received_events_url": "https://api.github.com/users/neinkeinkaffee/received_events", "repos_url": "https://api.github.com/users/neinkeinkaffee/repos", "site_admin": false, "starred_url": "https://api.github.com/users/neinkeinkaffee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/neinkeinkaffee/subscriptions", "type": "User", "url": "https://api.github.com/users/neinkeinkaffee" } ]
null
19
2020-07-24T18:35:02Z
2021-11-19T12:02:08Z
null
CONTRIBUTOR
null
I think that we should deprecate `Series.append` and `DataFrame.append`. They're making an analogy to `list.append`, but it's a poor analogy since the behavior isn't (and can't be) in place. The data for the index and values needs to be copied to create the result. These are also apparently popular methods. DataFrame.append is around the 10th most visited page in our API docs. Unless I'm mistaken, users are always better off building up a list of values and passing them to the constructor, or building up a list of NDFrames followed by a single `concat`.
{ "+1": 12, "-1": 2, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 14, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35407/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35407/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35408
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35408/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35408/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35408/events
https://github.com/pandas-dev/pandas/pull/35408
665,518,764
MDExOlB1bGxSZXF1ZXN0NDU2NTY4NTky
35,408
DOC: update DataFrame.to_feather docstring
{ "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" }
[ { "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": "78bced", "default": false, "description": "Waiting for review/response from a maintainer.", "id": 2324533627, "name": "Needs Review", "node_id": "MDU6TGFiZWwyMzI0NTMzNjI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Review" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-07-25T05:27:28Z
2020-09-13T23:11:01Z
2020-09-13T23:10:57Z
MEMBER
null
- [x] closes #29532 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The issue was that `DataFrame.to_feather` had an `fname` argument which in fact could be either a filename or a buffer. Most of the work to close #29532 was done in #30338 where `fname` argument was deprecated in favor of `path`. Here I update the docstring to let users know that they can use a buffer.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35408/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35408/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35408.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35408", "merged_at": "2020-09-13T23:10:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35408.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35408" }
https://api.github.com/repos/pandas-dev/pandas/issues/35409
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35409/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35409/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35409/events
https://github.com/pandas-dev/pandas/issues/35409
665,559,232
MDU6SXNzdWU2NjU1NTkyMzI=
35,409
DOC: Inconsistent return type documentation for functions with "inplace" option
{ "avatar_url": "https://avatars.githubusercontent.com/u/59748593?v=4", "events_url": "https://api.github.com/users/Chris-Kimmel/events{/privacy}", "followers_url": "https://api.github.com/users/Chris-Kimmel/followers", "following_url": "https://api.github.com/users/Chris-Kimmel/following{/other_user}", "gists_url": "https://api.github.com/users/Chris-Kimmel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Chris-Kimmel", "id": 59748593, "login": "Chris-Kimmel", "node_id": "MDQ6VXNlcjU5NzQ4NTkz", "organizations_url": "https://api.github.com/users/Chris-Kimmel/orgs", "received_events_url": "https://api.github.com/users/Chris-Kimmel/received_events", "repos_url": "https://api.github.com/users/Chris-Kimmel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Chris-Kimmel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Chris-Kimmel/subscriptions", "type": "User", "url": "https://api.github.com/users/Chris-Kimmel" }
[ { "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/59748593?v=4", "events_url": "https://api.github.com/users/Chris-Kimmel/events{/privacy}", "followers_url": "https://api.github.com/users/Chris-Kimmel/followers", "following_url": "https://api.github.com/users/Chris-Kimmel/following{/other_user}", "gists_url": "https://api.github.com/users/Chris-Kimmel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Chris-Kimmel", "id": 59748593, "login": "Chris-Kimmel", "node_id": "MDQ6VXNlcjU5NzQ4NTkz", "organizations_url": "https://api.github.com/users/Chris-Kimmel/orgs", "received_events_url": "https://api.github.com/users/Chris-Kimmel/received_events", "repos_url": "https://api.github.com/users/Chris-Kimmel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Chris-Kimmel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Chris-Kimmel/subscriptions", "type": "User", "url": "https://api.github.com/users/Chris-Kimmel" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/26526439?v=4", "events_url": "https://api.github.com/users/junjunjunk/events{/privacy}", "followers_url": "https://api.github.com/users/junjunjunk/followers", "following_url": "https://api.github.com/users/junjunjunk/following{/other_user}", "gists_url": "https://api.github.com/users/junjunjunk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/junjunjunk", "id": 26526439, "login": "junjunjunk", "node_id": "MDQ6VXNlcjI2NTI2NDM5", "organizations_url": "https://api.github.com/users/junjunjunk/orgs", "received_events_url": "https://api.github.com/users/junjunjunk/received_events", "repos_url": "https://api.github.com/users/junjunjunk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/junjunjunk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/junjunjunk/subscriptions", "type": "User", "url": "https://api.github.com/users/junjunjunk" }, { "avatar_url": "https://avatars.githubusercontent.com/u/59748593?v=4", "events_url": "https://api.github.com/users/Chris-Kimmel/events{/privacy}", "followers_url": "https://api.github.com/users/Chris-Kimmel/followers", "following_url": "https://api.github.com/users/Chris-Kimmel/following{/other_user}", "gists_url": "https://api.github.com/users/Chris-Kimmel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Chris-Kimmel", "id": 59748593, "login": "Chris-Kimmel", "node_id": "MDQ6VXNlcjU5NzQ4NTkz", "organizations_url": "https://api.github.com/users/Chris-Kimmel/orgs", "received_events_url": "https://api.github.com/users/Chris-Kimmel/received_events", "repos_url": "https://api.github.com/users/Chris-Kimmel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Chris-Kimmel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Chris-Kimmel/subscriptions", "type": "User", "url": "https://api.github.com/users/Chris-Kimmel" } ]
{ "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" }
10
2020-07-25T10:17:59Z
2020-10-10T19:41:57Z
2020-10-10T19:41:57Z
NONE
null
#### Location of the documentation This proposal concerns all methods with the `inplace` keyword argument. Three examples: 1 (Return type described as "blah-blah-type or `None` if `inplace=True`) https://pandas.pydata.org/docs/dev/reference/api/pandas.CategoricalIndex.add_categories.html?highlight=inplace 2 (Return type specified, but doesn't mention `None`) https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.interpolate.html?highlight=inplace #### Documentation problem Many methods in pandas have keyword argument `inplace`. When `inplace=True` is supplied, the method updates `self` and returns `None`. When `inplace=False` is supplied, the method does not affect `self` and returns a changed copy of `self`. Some of these functions' return types are documented as "Returns blah-type if inplace=True". Others just say "Returns blah-type". This is confusing because it suggests inconsistencies in *behavior* that are not really there. #### Suggested fix for documentation Find all methods with the `inplace` keyword argument. Change the "returns" section of their docstrings to this form: ``` Returns ------- Series or DataFrame Returns the same object type as the caller, interpolated at some or all ``NaN`` values. (Or return `None` if `inplace=True`.) ``` Also change all the formal return type signatures to the form "--> Optional[Foo]" if they aren't all already like that.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35409/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35409/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35410
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35410/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35410/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35410/events
https://github.com/pandas-dev/pandas/issues/35410
665,588,287
MDU6SXNzdWU2NjU1ODgyODc=
35,410
BUG: Wrong Custom Formatters applied when displaying trancated frames
{ "avatar_url": "https://avatars.githubusercontent.com/u/9642454?v=4", "events_url": "https://api.github.com/users/ipcoder/events{/privacy}", "followers_url": "https://api.github.com/users/ipcoder/followers", "following_url": "https://api.github.com/users/ipcoder/following{/other_user}", "gists_url": "https://api.github.com/users/ipcoder/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ipcoder", "id": 9642454, "login": "ipcoder", "node_id": "MDQ6VXNlcjk2NDI0NTQ=", "organizations_url": "https://api.github.com/users/ipcoder/orgs", "received_events_url": "https://api.github.com/users/ipcoder/received_events", "repos_url": "https://api.github.com/users/ipcoder/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ipcoder/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ipcoder/subscriptions", "type": "User", "url": "https://api.github.com/users/ipcoder" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2020-07-25T13:48:04Z
2020-08-16T18:40:33Z
null
NONE
null
#### Problem description I am providing custom formatters for specific columns as dict. If frame is large enough and some columns are truncated - then wrong formatters are applied to the columns. (In my case that leads to crushes as wrong data type is received by the formatter). Please notice, that behavior changes depending on the width of the console window as different columns are displayed. #### Problem investigation I have examined the code of my version of panda (1.0.5) and compared with the last version in GitHub - the bug seems to be still there. The source of the problem starts with this method (`DataFrameFormatter._to_str_columns`), when frame is set to truncated ` frame = self.tr_frame` and then `self._format_col(i)` is called with __index of the column in the TRUNCATED frame__: ```python def _to_str_columns(self) -> List[List[str]]: """ Render a DataFrame to a list of columns (as lists of strings). """ # this method is not used by to_html where self.col_space # could be a string so safe to cast self.col_space = cast(int, self.col_space) frame = self.tr_frame # may include levels names also str_index = self._get_formatted_index(frame) if not is_list_like(self.header) and not self.header: stringified = [] for i, c in enumerate(frame): fmt_values = self._format_col(i) ``` Then this "truncated" column index is passed to `self._get_formatter`: ```python def _format_col(self, i: int) -> List[str]: frame = self.tr_frame formatter = self._get_formatter(i) # the problem is HERE? _get_formatter(frame.columns[i]) ? ``` which uses __full frame columns__ to retrieve formatter __using index `i` which corresponds to the columns of the truncated frame__: ```python # ... else: if is_integer(i) and i not in self.columns: i = self.columns[i] return self.formatters.get(i, None) ``` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.10.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-37-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.5 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 46.0.0.post20200309 Cython : 0.29.15 pytest : 5.4.1 hypothesis : 5.19.3 sphinx : 2.4.0 blosc : None feather : None xlsxwriter : 1.2.8 lxml.etree : 4.5.0 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.16.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.1 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.15 tables : 3.4.4 tabulate : 0.8.3 xarray : 0.15.0 xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.8 numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35410/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35410/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35411
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35411/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35411/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35411/events
https://github.com/pandas-dev/pandas/pull/35411
665,593,320
MDExOlB1bGxSZXF1ZXN0NDU2NjIwOTMw
35,411
CLN: clarify TypeError for IndexSlice argument to pd.xs
{ "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
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" }
2
2020-07-25T14:20:48Z
2020-08-07T17:19:12Z
2020-08-07T16:58:25Z
MEMBER
null
- [x] closes #35301 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry As per discussion in #35301 we do not support `IndexSlice` arguments to `xs`. This PR aims to clarify the `TypeError` thrown when that happens. I created a separate issue to house the discussion re: functionality of `loc` vs `xs` (#35418).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35411/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35411/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35411.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35411", "merged_at": "2020-08-07T16:58:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35411.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35411" }
https://api.github.com/repos/pandas-dev/pandas/issues/35412
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35412/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35412/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35412/events
https://github.com/pandas-dev/pandas/pull/35412
665,651,687
MDExOlB1bGxSZXF1ZXN0NDU2NjYzMTEw
35,412
CLN: _wrap_applied_output
{ "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "followers_url": "https://api.github.com/users/rhshadrach/followers", "following_url": "https://api.github.com/users/rhshadrach/following{/other_user}", "gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhshadrach", "id": 45562402, "login": "rhshadrach", "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "repos_url": "https://api.github.com/users/rhshadrach/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "type": "User", "url": "https://api.github.com/users/rhshadrach" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "color": "fbca04", "default": false, "description": "Apply, Aggregate, Transform", "id": 697792067, "name": "Apply", "node_id": "MDU6TGFiZWw2OTc3OTIwNjc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply" } ]
closed
false
null
[]
null
2
2020-07-25T20:03:20Z
2020-09-10T00:07:45Z
2020-08-18T21:47:16Z
MEMBER
null
The majority of this change is the result of three operations: 1. Move code that returns up top, to avoid the heavily nested structure. 2. Move variable creation as close as possible to where they are used. Previously, in certain cases computations were being done and then going unused. 3. Combine duplicated code. There are two sections that I was able to entirely remove: ```` ping = self.grouper.groupings[0] if len(keys) == ping.ngroups: key_index = ping.group_index key_index.name = key_names[0] key_lookup = Index(keys) indexer = key_lookup.get_indexer(key_index) # reorder the values values = [values[i] for i in indexer] # update due to the potential reorder first_not_none = next(com.not_none(*values), None) ```` and ```` # GH5788 instead of stacking; concat gets the # dtypes correct from pandas.core.reshape.concat import concat result = concat( values, keys=key_index, names=key_index.names, axis=self.axis, ).unstack() result.columns = index ```` For the single test that I touched, it was checking that the categorical dtype of an index was being dropped after a groupby. I don't believe that is the correct behavior - that the categorical dtype should remain. I checked groupby/categorical bugs and didn't find any issues this closes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35412/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35412/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35412.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35412", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35412.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35412" }
https://api.github.com/repos/pandas-dev/pandas/issues/35413
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35413/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35413/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35413/events
https://github.com/pandas-dev/pandas/issues/35413
665,666,953
MDU6SXNzdWU2NjU2NjY5NTM=
35,413
BUG: When plotting a pandas dataframe year is wrong
{ "avatar_url": "https://avatars.githubusercontent.com/u/28095296?v=4", "events_url": "https://api.github.com/users/smeznaric/events{/privacy}", "followers_url": "https://api.github.com/users/smeznaric/followers", "following_url": "https://api.github.com/users/smeznaric/following{/other_user}", "gists_url": "https://api.github.com/users/smeznaric/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smeznaric", "id": 28095296, "login": "smeznaric", "node_id": "MDQ6VXNlcjI4MDk1Mjk2", "organizations_url": "https://api.github.com/users/smeznaric/orgs", "received_events_url": "https://api.github.com/users/smeznaric/received_events", "repos_url": "https://api.github.com/users/smeznaric/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smeznaric/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smeznaric/subscriptions", "type": "User", "url": "https://api.github.com/users/smeznaric" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
6
2020-07-25T21:55:56Z
2020-08-21T17:04:41Z
2020-07-29T13:10:01Z
NONE
null
- [ x] I have checked that this issue has not already been reported. - [x ] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd import matplotlib.pyplot as plt # Save the attached file somewhere and open it as follows file_name = 'your_path' df = pd.read_csv(file_name, index_col = 'date', parse_dates = True) df.plot() plt.show() ``` #### Problem description The year is displayed as in 3900s. See picture: ![image](https://user-images.githubusercontent.com/28095296/88466980-e68d7500-cec9-11ea-9155-3400112e7c01.png) I have noticed a few things: - Generating random data and keeping the index the same does not resolve the issue - Trying to recreate the index from scratch but using the same date does not resolve the issue - Plotting using plotly backend resolves the issue - Doing df.to_period('D').plot() also seems to resolve the issue #### Expected Output Year should not be in 3900s. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.2.final.0 python-bits : 64 OS : Linux OS-release : 4.19.104-microsoft-standard machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.0.2 setuptools : 44.0.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.2 html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.16.1 pandas_datareader: 0.9.0 bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.2 matplotlib : 3.3.0 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : None tables : 3.6.1 tabulate : None xarray : 0.16.0 xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35413/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35413/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35414
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35414/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35414/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35414/events
https://github.com/pandas-dev/pandas/issues/35414
665,802,816
MDU6SXNzdWU2NjU4MDI4MTY=
35,414
BUG: `freq` attribute sometimes lost when concatenating series that are tz-aware
{ "avatar_url": "https://avatars.githubusercontent.com/u/4106013?v=4", "events_url": "https://api.github.com/users/rwijtvliet/events{/privacy}", "followers_url": "https://api.github.com/users/rwijtvliet/followers", "following_url": "https://api.github.com/users/rwijtvliet/following{/other_user}", "gists_url": "https://api.github.com/users/rwijtvliet/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rwijtvliet", "id": 4106013, "login": "rwijtvliet", "node_id": "MDQ6VXNlcjQxMDYwMTM=", "organizations_url": "https://api.github.com/users/rwijtvliet/orgs", "received_events_url": "https://api.github.com/users/rwijtvliet/received_events", "repos_url": "https://api.github.com/users/rwijtvliet/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rwijtvliet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rwijtvliet/subscriptions", "type": "User", "url": "https://api.github.com/users/rwijtvliet" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
2
2020-07-26T15:27:09Z
2020-09-04T15:31:53Z
2020-09-04T15:31:53Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python s1 = pd.Series([1, 2, 3], index=pd.date_range('2020-03-29 00:00:00', periods=3, freq='D', tz='Europe/Berlin')) s2 = pd.Series([4, 5], pd.date_range(s1.index[-1]+s1.index.freq, periods=2, freq=s1.index.freq)) r = pd.concat([s1, s2]) s1.index, s2.index, r.index DatetimeIndex(['2020-03-29 00:00:00+01:00', '2020-03-30 00:00:00+02:00', '2020-03-31 00:00:00+02:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D'), DatetimeIndex(['2020-04-01 00:00:00+02:00', '2020-04-02 00:00:00+02:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D'), DatetimeIndex(['2020-03-29 00:00:00+01:00', '2020-03-30 00:00:00+02:00', '2020-03-31 00:00:00+02:00', '2020-04-01 00:00:00+02:00', '2020-04-02 00:00:00+02:00'], dtype='datetime64[ns, Europe/Berlin]', freq=None) ``` #### Problem description s1 and s2 have indices are in the same time zone with the same fixed frequency. This also hold when they are concatenated, however, the freq attribute is lost in the result, see above. Expected would be, to have `freq='D'`. The problem does not always occur. * When the DST change is not included, it seems to work: ``` #Same code, change 2020-03-29 to 2020-03-01 DatetimeIndex(['2020-03-01 00:00:00+01:00', '2020-03-02 00:00:00+01:00', '2020-03-03 00:00:00+01:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D'), DatetimeIndex(['2020-03-04 00:00:00+01:00', '2020-03-05 00:00:00+01:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D'), DatetimeIndex(['2020-03-01 00:00:00+01:00', '2020-03-02 00:00:00+01:00', '2020-03-03 00:00:00+01:00', '2020-03-04 00:00:00+01:00', '2020-03-05 00:00:00+01:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D') ``` * When DST is included incorrectly (see [here](https://github.com/pandas-dev/pandas/issues/35388)), and all timestamps are 24h apart, it also works: ``` #Same code, change 2020-03-29 to 2020-03-27 DatetimeIndex(['2020-03-27 00:00:00+01:00', '2020-03-28 00:00:00+01:00', '2020-03-29 00:00:00+01:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D'), DatetimeIndex(['2020-03-30 01:00:00+02:00', '2020-03-31 01:00:00+02:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D'), DatetimeIndex(['2020-03-27 00:00:00+01:00', '2020-03-28 00:00:00+01:00', '2020-03-29 00:00:00+01:00', '2020-03-30 01:00:00+02:00', '2020-03-31 01:00:00+02:00'], dtype='datetime64[ns, Europe/Berlin]', freq='D') ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.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 : de_DE.cp1252 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.2.0.post20200714 Cython : None pytest : 5.4.3 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.2 numexpr : None odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35414/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35414/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35415
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35415/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35415/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35415/events
https://github.com/pandas-dev/pandas/issues/35415
665,831,395
MDU6SXNzdWU2NjU4MzEzOTU=
35,415
QST: Subclassing and concat
{ "avatar_url": "https://avatars.githubusercontent.com/u/22417720?v=4", "events_url": "https://api.github.com/users/EmilianoJordan/events{/privacy}", "followers_url": "https://api.github.com/users/EmilianoJordan/followers", "following_url": "https://api.github.com/users/EmilianoJordan/following{/other_user}", "gists_url": "https://api.github.com/users/EmilianoJordan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/EmilianoJordan", "id": 22417720, "login": "EmilianoJordan", "node_id": "MDQ6VXNlcjIyNDE3NzIw", "organizations_url": "https://api.github.com/users/EmilianoJordan/orgs", "received_events_url": "https://api.github.com/users/EmilianoJordan/received_events", "repos_url": "https://api.github.com/users/EmilianoJordan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/EmilianoJordan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/EmilianoJordan/subscriptions", "type": "User", "url": "https://api.github.com/users/EmilianoJordan" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "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": "abf98b", "default": false, "description": "Subclassing pandas objects", "id": 2559562239, "name": "Subclassing", "node_id": "MDU6TGFiZWwyNTU5NTYyMjM5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Subclassing" } ]
open
false
null
[]
null
4
2020-07-26T18:04:17Z
2021-10-22T22:25:04Z
null
CONTRIBUTOR
null
I was looking into `df.astype` not respecting subclassed objects and noticed the issue had been resolved by modifying `pd.concat` to respect subclassed objects using the following code: ```python cons = self.objs[0]._constructor ``` [Line 464](https://github.com/pandas-dev/pandas/blob/04e9e0afd476b1b8bed930e47bf60ee20fa78f38/pandas/core/reshape/concat.py#L464) PR #29627 ```python cons = self.objs[0]._constructor_expanddim ``` [Line 477](https://github.com/pandas-dev/pandas/blob/04e9e0afd476b1b8bed930e47bf60ee20fa78f38/pandas/core/reshape/concat.py#L477) PR #33884 (Set to be released on 1.1.0) This assumes homogeneous object types, or at the very least that the first object is representative. My assumption was that functions on the pandas namespace did not respect subclassing and only methods on the objects did. Leaving developers to implement their own special use cases for subclassing. This seemed like a good delimitation to me, both logically and programmatically. But, now diving deeper into functions I don't regularly use I see I was mistaken as `merge` and `merge_ordered` both respect the `left` arg's subclassing. With this in mind, I have some questions. 1. Should there be more documentation around subclassing? This would include how `concat`, `merge`, `merge_ordered` etc handle subclassing. 2. If functions on the pandas names space are going to implement varying degrees of support for subclassing then, should there be a `constructor` kwarg added to functions like `read_sql` and `read_csv`? 3. Does `to_hdf` not working with subclassing need to be fixed?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35415/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35415/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35416
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35416/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35416/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35416/events
https://github.com/pandas-dev/pandas/issues/35416
665,863,196
MDU6SXNzdWU2NjU4NjMxOTY=
35,416
ENH: Auto Detect engine in read_excel
{ "avatar_url": "https://avatars.githubusercontent.com/u/2265504?v=4", "events_url": "https://api.github.com/users/fzumstein/events{/privacy}", "followers_url": "https://api.github.com/users/fzumstein/followers", "following_url": "https://api.github.com/users/fzumstein/following{/other_user}", "gists_url": "https://api.github.com/users/fzumstein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fzumstein", "id": 2265504, "login": "fzumstein", "node_id": "MDQ6VXNlcjIyNjU1MDQ=", "organizations_url": "https://api.github.com/users/fzumstein/orgs", "received_events_url": "https://api.github.com/users/fzumstein/received_events", "repos_url": "https://api.github.com/users/fzumstein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fzumstein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fzumstein/subscriptions", "type": "User", "url": "https://api.github.com/users/fzumstein" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4", "events_url": "https://api.github.com/users/lithomas1/events{/privacy}", "followers_url": "https://api.github.com/users/lithomas1/followers", "following_url": "https://api.github.com/users/lithomas1/following{/other_user}", "gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lithomas1", "id": 47963215, "login": "lithomas1", "node_id": "MDQ6VXNlcjQ3OTYzMjE1", "organizations_url": "https://api.github.com/users/lithomas1/orgs", "received_events_url": "https://api.github.com/users/lithomas1/received_events", "repos_url": "https://api.github.com/users/lithomas1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions", "type": "User", "url": "https://api.github.com/users/lithomas1" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4", "events_url": "https://api.github.com/users/lithomas1/events{/privacy}", "followers_url": "https://api.github.com/users/lithomas1/followers", "following_url": "https://api.github.com/users/lithomas1/following{/other_user}", "gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lithomas1", "id": 47963215, "login": "lithomas1", "node_id": "MDQ6VXNlcjQ3OTYzMjE1", "organizations_url": "https://api.github.com/users/lithomas1/orgs", "received_events_url": "https://api.github.com/users/lithomas1/received_events", "repos_url": "https://api.github.com/users/lithomas1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions", "type": "User", "url": "https://api.github.com/users/lithomas1" } ]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
8
2020-07-26T21:26:31Z
2021-01-03T16:48:19Z
2021-01-03T16:48:19Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example This works: ```python import pandas as pd df = pd.read_excel('Book2.xlsb', engine='pyxlsb') ``` This doesn't: ```python import pandas as pd df = pd.read_excel('Book2.xlsb') ``` #### Problem description All supported Excel formats (`xls`, `xlsx`, `xlsm`) have a default engine based on the extension, so you can simply do: ``` df = pd.read_excel('Book2.xlsx') ``` For `xlsb`, when you do `df = pd.read_excel('Book2.xlsb')`, you get this error: ``` XLRDError: Excel 2007 xlsb file; not supported ``` #### Expected Output No error, i.e. it should figure out that for `xlsb` extensions, `pyxlsb` is the default engine. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None pandas : 1.0.5 numpy : 1.18.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.0.2 setuptools : 49.2.0.post20200714 Cython : None pytest : 5.4.3 hypothesis : None sphinx : 2.4.0 blosc : None feather : None xlsxwriter : 1.2.7 lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.3 numexpr : None odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : 0.17.1 pytables : None pytest : 5.4.3 pyxlsb : 1.0.6 s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : 0.8.7 xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.7 numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35416/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35416/timeline
null
null
null