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/35617
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35617/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35617/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35617/events
https://github.com/pandas-dev/pandas/pull/35617
675,338,649
MDExOlB1bGxSZXF1ZXN0NDY0ODczOTAx
35,617
Backport PR #35473 on branch 1.1.x (REGR: Fix conversion of mixed dtype DataFrame to numpy str)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "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": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
1
2020-08-07T23:17:28Z
2020-08-08T09:46:39Z
2020-08-08T09:46:38Z
NONE
null
Backport PR #35473: REGR: Fix conversion of mixed dtype DataFrame to numpy str
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35617/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35617/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35617.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35617", "merged_at": "2020-08-08T09:46:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35617.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35617" }
https://api.github.com/repos/pandas-dev/pandas/issues/35618
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35618/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35618/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35618/events
https://github.com/pandas-dev/pandas/issues/35618
675,425,653
MDU6SXNzdWU2NzU0MjU2NTM=
35,618
tp_print is deprecated error
{ "avatar_url": "https://avatars.githubusercontent.com/u/56479219?v=4", "events_url": "https://api.github.com/users/shyamsantoki/events{/privacy}", "followers_url": "https://api.github.com/users/shyamsantoki/followers", "following_url": "https://api.github.com/users/shyamsantoki/following{/other_user}", "gists_url": "https://api.github.com/users/shyamsantoki/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shyamsantoki", "id": 56479219, "login": "shyamsantoki", "node_id": "MDQ6VXNlcjU2NDc5MjE5", "organizations_url": "https://api.github.com/users/shyamsantoki/orgs", "received_events_url": "https://api.github.com/users/shyamsantoki/received_events", "repos_url": "https://api.github.com/users/shyamsantoki/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shyamsantoki/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shyamsantoki/subscriptions", "type": "User", "url": "https://api.github.com/users/shyamsantoki" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "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": "SAS: read_sas", "id": 258745163, "name": "IO SAS", "node_id": "MDU6TGFiZWwyNTg3NDUxNjM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS" } ]
closed
false
null
[]
null
3
2020-08-08T04:23:52Z
2020-08-10T13:22:25Z
2020-08-10T13:08:01Z
NONE
null
# tp_print is deprecated I'm getting ```tp_print is deprecated``` whenever I try to install Pandas on Termux. Here's few lines of error I'm getting ``` /data/data/com.termux/files/usr/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated he Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); ^ /data/data/com.termux/files/usr/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ pandas/io/sas/sas.c:20655:3: error: 'tp_print' is deprecated [-Werror,-Wdeprecated-declarations] 0, /*tp_print*/ ^ /data/data/com.termux/files/usr/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated he Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); ^ /data/data/com.termux/files/usr/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ 5 errors generated. building 'pandas._libs.json' extension creating build/temp.linux-aarch64-3.8/pandas/_libs/src/ujson creating build/temp.linux-aarch64-3.8/pandas/_libs/src/ujson/python creating build/temp.linux-aarch64-3.8/pandas/_libs/src/ujson/lib aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-st aarch64-linux-android-clang -shared -L/data/data/com.termux/files/usr/lib -Wl,-rpath=/data/data/com.termux/files/usr/lib -Wl,--enab error: command 'aarch64-linux-android-clang' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for pandas Failed to build pandas ``` However rolling back cython didn't work for me, I was still getting error. So I tried to rollback Pandas to 1.0.5 and it worked. So I think there's some bug in Pandas package from your side which results above error. ``` pip list Package Version ------------------ --------- appdirs 1.4.4 argon2-cffi 20.1.0 asv 0.4.2 attrs 19.3.0 backcall 0.2.0 black 19.10b0 bleach 3.1.5 certifi 2020.6.20 cffi 1.14.1 chardet 3.0.4 click 7.1.2 Cython 0.29.21 decorator 4.4.2 defusedxml 0.6.0 entrypoints 0.3 idna 2.10 ipykernel 5.3.4 ipython 7.17.0 ipython-genutils 0.2.0 ipywidgets 7.5.1 jedi 0.17.2 Jinja2 2.11.2 jsonschema 3.2.0 jupyter 1.0.0 jupyter-client 6.1.6 jupyter-console 6.1.0 jupyter-core 4.6.3 lxml 4.5.2 MarkupSafe 1.1.1 mistune 0.8.4 nbconvert 5.6.1 nbformat 5.0.7 notebook 6.1.1 numpy 1.19.1 packaging 20.4 pandas 1.0.5 pandocfilters 1.4.2 parso 0.7.1 pathspec 0.8.0 pexpect 4.8.0 pickleshare 0.7.5 pip 20.2.1 prometheus-client 0.8.0 prompt-toolkit 3.0.5 ptyprocess 0.6.0 pycparser 2.20 Pygments 2.6.1 pymongo 3.11.0 pyparsing 2.4.7 pyrsistent 0.16.0 python-dateutil 2.8.1 pytz 2020.1 pyzmq 19.0.2 qtconsole 4.7.5 QtPy 1.9.0 regex 2020.7.14 requests 2.24.0 Send2Trash 1.5.0 setuptools 49.2.1 six 1.15.0 terminado 0.8.3 testpath 0.4.4 toml 0.10.1 tornado 6.0.4 traitlets 4.3.3 typed-ast 1.4.1 urllib3 1.25.10 wcwidth 0.2.5 webencodings 0.5.1 wheel 0.34.2 widgetsnbextension 3.5.1 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35618/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35618/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35619
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35619/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35619/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35619/events
https://github.com/pandas-dev/pandas/pull/35619
675,485,343
MDExOlB1bGxSZXF1ZXN0NDY1MDAzMDc3
35,619
Backport PR #35588 on branch 1.1.x (BUG: fix styler cell_ids arg so that blank style is ignored on False)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "006b75", "default": false, "description": "conditional formatting using DataFrame.style", "id": 1728592794, "name": "Styler", "node_id": "MDU6TGFiZWwxNzI4NTkyNzk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
1
2020-08-08T08:13:08Z
2020-08-08T09:21:19Z
2020-08-08T09:21:19Z
NONE
null
Backport PR #35588: BUG: fix styler cell_ids arg so that blank style is ignored on False
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35619/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35619/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35619.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35619", "merged_at": "2020-08-08T09:21:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35619.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35619" }
https://api.github.com/repos/pandas-dev/pandas/issues/35620
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35620/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35620/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35620/events
https://github.com/pandas-dev/pandas/issues/35620
675,491,372
MDU6SXNzdWU2NzU0OTEzNzI=
35,620
CI: Linux py36_locale failures with pytest DeprecationWarning
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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-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-08-08T09:01:27Z
2020-08-19T17:42:48Z
2020-08-19T17:42:48Z
MEMBER
null
tests using `async_mark` are failing cc @alimcmaster1 ``` =========================== short test summary info ============================ ERROR pandas/tests/arrays/categorical/test_warnings.py::TestCategoricalWarnings ERROR pandas/tests/arrays/categorical/test_warnings.py::TestCategoricalWarnings ERROR pandas/tests/frame/test_api.py::TestDataFrameMisc - pytest.PytestDeprec... ERROR pandas/tests/frame/test_api.py::TestDataFrameMisc - pytest.PytestDeprec... ERROR pandas/tests/indexes/test_base.py::TestIndex - pytest.PytestDeprecation... ERROR pandas/tests/indexes/test_base.py::TestIndex - pytest.PytestDeprecation... ERROR pandas/tests/resample/test_resampler_grouper.py - pytest.PytestDeprecat... ERROR pandas/tests/resample/test_resampler_grouper.py - pytest.PytestDeprecat... ERROR pandas/tests/series/test_api.py::TestSeriesMisc - pytest.PytestDeprecat... ERROR pandas/tests/series/test_api.py::TestSeriesMisc - pytest.PytestDeprecat... = 71242 passed, 1936 skipped, 1024 xfailed, 156 warnings, 10 errors in 655.85s (0:10:55) = ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35620/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35620/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35621
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35621/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35621/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35621/events
https://github.com/pandas-dev/pandas/pull/35621
675,492,741
MDExOlB1bGxSZXF1ZXN0NDY1MDA4MjE1
35,621
CI: Linux py36_locale failures with pytest DeprecationWarning
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
2
2020-08-08T09:11:12Z
2020-08-08T09:50:57Z
2020-08-08T09:47:44Z
MEMBER
null
xref #35620
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35621/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35621/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35621.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35621", "merged_at": "2020-08-08T09:47:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35621.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35621" }
https://api.github.com/repos/pandas-dev/pandas/issues/35622
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35622/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35622/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35622/events
https://github.com/pandas-dev/pandas/issues/35622
675,495,799
MDU6SXNzdWU2NzU0OTU3OTk=
35,622
BUG: error: may be used uninitialized. In alpine
{ "avatar_url": "https://avatars.githubusercontent.com/u/9448754?v=4", "events_url": "https://api.github.com/users/NikSays/events{/privacy}", "followers_url": "https://api.github.com/users/NikSays/followers", "following_url": "https://api.github.com/users/NikSays/following{/other_user}", "gists_url": "https://api.github.com/users/NikSays/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/NikSays", "id": 9448754, "login": "NikSays", "node_id": "MDQ6VXNlcjk0NDg3NTQ=", "organizations_url": "https://api.github.com/users/NikSays/orgs", "received_events_url": "https://api.github.com/users/NikSays/received_events", "repos_url": "https://api.github.com/users/NikSays/repos", "site_admin": false, "starred_url": "https://api.github.com/users/NikSays/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/NikSays/subscriptions", "type": "User", "url": "https://api.github.com/users/NikSays" }
[ { "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": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
8
2020-08-08T09:35:02Z
2020-11-18T01:16:38Z
2020-08-17T18:27:45Z
NONE
null
- [ x ] I have checked that this issue has not already been reported. (Not as a separate issue) - [ 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. --- #### Problem description In an alpine contarner, running `pip3 install pandas=1.1.0`, results in error: ``` '__pyx_v_year' may be used uninitialized in this function` 7787 | __pyx_v_year = (__pyx_v_year - 1); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors error: command 'gcc' failed with exit status 1 ``` #### Expected Output Successful install
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35622/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35622/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35623
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35623/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35623/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35623/events
https://github.com/pandas-dev/pandas/pull/35623
675,497,786
MDExOlB1bGxSZXF1ZXN0NDY1MDExNzE3
35,623
Backport PR #35621 on branch 1.1.x (CI: Linux py36_locale failures with pytest DeprecationWarning)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "a2bca7", "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
0
2020-08-08T09:50:46Z
2020-08-08T12:23:06Z
2020-08-08T12:23:06Z
NONE
null
Backport PR #35621: CI: Linux py36_locale failures with pytest DeprecationWarning
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35623/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35623/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35623.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35623", "merged_at": "2020-08-08T12:23:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35623.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35623" }
https://api.github.com/repos/pandas-dev/pandas/issues/35624
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35624/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35624/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35624/events
https://github.com/pandas-dev/pandas/pull/35624
675,500,779
MDExOlB1bGxSZXF1ZXN0NDY1MDEzODcw
35,624
DOC: Fixed docstring for mode()
{ "avatar_url": "https://avatars.githubusercontent.com/u/3389134?v=4", "events_url": "https://api.github.com/users/MarianD/events{/privacy}", "followers_url": "https://api.github.com/users/MarianD/followers", "following_url": "https://api.github.com/users/MarianD/following{/other_user}", "gists_url": "https://api.github.com/users/MarianD/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarianD", "id": 3389134, "login": "MarianD", "node_id": "MDQ6VXNlcjMzODkxMzQ=", "organizations_url": "https://api.github.com/users/MarianD/orgs", "received_events_url": "https://api.github.com/users/MarianD/received_events", "repos_url": "https://api.github.com/users/MarianD/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarianD/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarianD/subscriptions", "type": "User", "url": "https://api.github.com/users/MarianD" }
[ { "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-08-08T10:14:59Z
2020-08-24T08:07:17Z
2020-08-22T16:03:21Z
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/35624/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35624/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35624.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35624", "merged_at": "2020-08-22T16:03:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35624.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35624" }
https://api.github.com/repos/pandas-dev/pandas/issues/35625
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35625/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35625/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35625/events
https://github.com/pandas-dev/pandas/issues/35625
675,516,324
MDU6SXNzdWU2NzU1MTYzMjQ=
35,625
BUG: Groupby rolling count slower than rolling mean & sum (v1.1.0)
{ "avatar_url": "https://avatars.githubusercontent.com/u/26452178?v=4", "events_url": "https://api.github.com/users/nrcjea001/events{/privacy}", "followers_url": "https://api.github.com/users/nrcjea001/followers", "following_url": "https://api.github.com/users/nrcjea001/following{/other_user}", "gists_url": "https://api.github.com/users/nrcjea001/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nrcjea001", "id": 26452178, "login": "nrcjea001", "node_id": "MDQ6VXNlcjI2NDUyMTc4", "organizations_url": "https://api.github.com/users/nrcjea001/orgs", "received_events_url": "https://api.github.com/users/nrcjea001/received_events", "repos_url": "https://api.github.com/users/nrcjea001/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nrcjea001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nrcjea001/subscriptions", "type": "User", "url": "https://api.github.com/users/nrcjea001" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "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": 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-08-08T12:13:17Z
2020-11-08T17:15:24Z
2020-10-05T13:01:37Z
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 # Your code here import pandas as pd # Generate sample df df = pd.DataFrame({'column1': range(600), 'group': 5*['l'+str(i) for i in range(120)]}) # sort by group for easy/efficient joining of new columns to df df=df.sort_values('group',kind='mergesort').reset_index(drop=True) # timing of groupby rolling count, sum and mean %timeit df['mean']=df.groupby('group').rolling(3,min_periods=1)['column1'].mean().values %timeit df['sum']=df.groupby('group').rolling(3,min_periods=1)['column1'].sum().values %timeit df['count']=df.groupby('group').rolling(3,min_periods=1)['column1'].count().values ### Output 6.14 ms ± 812 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) 5.61 ms ± 179 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) 76.1 ms ± 4.78 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) ``` #### Problem description I am running a groupby rolling count, sum & mean using Pandas v1.1.0 and I notice that the rolling count is considerably slower than the rolling mean & sum. This seems counter intuitive as we can derive the count from the mean and sum and save time. #### Expected Output Expecting more efficient computation of groupby rolling count ``` ### df Output for illustration print(df.head(10)) column1 group mean sum count 0 0 l0 0.0 0.0 1.0 1 120 l0 60.0 120.0 2.0 2 240 l0 120.0 360.0 3.0 3 360 l0 240.0 720.0 3.0 4 480 l0 360.0 1080.0 3.0 5 1 l1 1.0 1.0 1.0 6 121 l1 61.0 122.0 2.0 7 241 l1 121.0 363.0 3.0 8 361 l1 241.0 723.0 3.0 9 481 l1 361.0 1083.0 3.0 ``` #### Output of ``pd.show_versions()`` <details> commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.8.5.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.18362 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 11, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_United States.1252 pandas : 1.1.0 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.1 setuptools : 49.2.1.post20200802 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.17.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fsspec : 0.8.0 fastparquet : None gcsfs : None matplotlib : 3.3.0 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 1.0.0 pytables : None pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : 0.48.0 </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35625/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35625/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35626
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35626/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35626/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35626/events
https://github.com/pandas-dev/pandas/pull/35626
675,516,353
MDExOlB1bGxSZXF1ZXN0NDY1MDI1MDI0
35,626
DEPR: Deprecate inplace param in MultiIndex.set_codes and MultiIndex.set_levels
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-08T12:13:30Z
2020-08-10T17:52:24Z
2020-08-10T13:18:54Z
CONTRIBUTOR
null
Deprecates ``inplace`` parameter in ``MultiIndex.set_codes`` and ``MultiIndex.set_levels``. Allowing inplace ops in indexes makes them more complicated wtr. caching etc. After ``inplace`` is removed, ``MultiIndex`` will be immutable, except the ``names`` attribute, similarly to other index classes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35626/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35626/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35626.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35626", "merged_at": "2020-08-10T13:18:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35626.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35626" }
https://api.github.com/repos/pandas-dev/pandas/issues/35627
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35627/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35627/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35627/events
https://github.com/pandas-dev/pandas/issues/35627
675,527,643
MDU6SXNzdWU2NzU1Mjc2NDM=
35,627
ENH: change to_sql default from Text to UnicodeText
{ "avatar_url": "https://avatars.githubusercontent.com/u/15894006?v=4", "events_url": "https://api.github.com/users/gordthompson/events{/privacy}", "followers_url": "https://api.github.com/users/gordthompson/followers", "following_url": "https://api.github.com/users/gordthompson/following{/other_user}", "gists_url": "https://api.github.com/users/gordthompson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gordthompson", "id": 15894006, "login": "gordthompson", "node_id": "MDQ6VXNlcjE1ODk0MDA2", "organizations_url": "https://api.github.com/users/gordthompson/orgs", "received_events_url": "https://api.github.com/users/gordthompson/received_events", "repos_url": "https://api.github.com/users/gordthompson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gordthompson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gordthompson/subscriptions", "type": "User", "url": "https://api.github.com/users/gordthompson" }
[ { "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
3
2020-08-08T13:43:57Z
2020-09-02T23:05:32Z
null
NONE
null
#### Is your feature request related to a problem? Yes. Databases that differentiate between Unicode and SBCS columns (notably Microsoft SQL Server `nvarchar` vs. `varchar`) can fail simple round-trips when using `to_sql` to write columns with Unicode strings. #### Describe the solution you'd like Change the default column `dtype` from `Text` ... https://github.com/pandas-dev/pandas/blob/a9cb64ad105f8f7051f9d77b66e1bfe7c09d386f/pandas/io/sql.py#L1080 ... to `UnicodeText`. #### API breaking implications None that I can see. #### Describe alternatives you've considered An alternative would be to modify the behaviour of `Text` in SQLAlchemy's mssql dialect, but SQLA already has `UnicodeText` and it solves the problem. #### Additional context ```python import pandas as pd import sqlalchemy as sa engine = sa.create_engine("mssql+pyodbc://@mssqlLocal") df = pd.DataFrame( [("English", "CHEERS!"), ("Greek", "ΟΠΑ!")], columns=["language", "toast"] ) df.to_sql("pd_test", engine, index=False, if_exists="replace") print(pd.read_sql_query("SELECT * FROM pd_test", engine)) """console output: language toast 0 English CHEERS! 1 Greek ???! """ ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35627/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35627/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35628
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35628/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35628/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35628/events
https://github.com/pandas-dev/pandas/pull/35628
675,528,763
MDExOlB1bGxSZXF1ZXN0NDY1MDMzNjgw
35,628
TYP: update setup.cfg
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-08T13:52:21Z
2020-08-08T18:03:00Z
2020-08-08T17:49: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/35628/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35628/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35628.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35628", "merged_at": "2020-08-08T17:49:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35628.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35628" }
https://api.github.com/repos/pandas-dev/pandas/issues/35629
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35629/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35629/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35629/events
https://github.com/pandas-dev/pandas/pull/35629
675,530,911
MDExOlB1bGxSZXF1ZXN0NDY1MDM1MTk2
35,629
DOC: docstrings for __array_wrap__
{ "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": "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-08-08T14:08:27Z
2020-08-08T16:33:26Z
2020-08-08T14:52:21Z
MEMBER
null
non-code changes broken-off #35334
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35629/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35629/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35629.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35629", "merged_at": "2020-08-08T14:52:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35629.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35629" }
https://api.github.com/repos/pandas-dev/pandas/issues/35630
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35630/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35630/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35630/events
https://github.com/pandas-dev/pandas/pull/35630
675,536,103
MDExOlB1bGxSZXF1ZXN0NDY1MDM4Nzk0
35,630
TST: add test for agg on ordered categorical cols
{ "avatar_url": "https://avatars.githubusercontent.com/u/22126205?v=4", "events_url": "https://api.github.com/users/mathurk1/events{/privacy}", "followers_url": "https://api.github.com/users/mathurk1/followers", "following_url": "https://api.github.com/users/mathurk1/following{/other_user}", "gists_url": "https://api.github.com/users/mathurk1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mathurk1", "id": 22126205, "login": "mathurk1", "node_id": "MDQ6VXNlcjIyMTI2MjA1", "organizations_url": "https://api.github.com/users/mathurk1/orgs", "received_events_url": "https://api.github.com/users/mathurk1/received_events", "repos_url": "https://api.github.com/users/mathurk1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mathurk1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mathurk1/subscriptions", "type": "User", "url": "https://api.github.com/users/mathurk1" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-08T14:44:51Z
2020-08-21T22:34:57Z
2020-08-21T22:34:52Z
CONTRIBUTOR
null
- [x] closes #27800 - [x] tests added / passed - [x] 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/35630/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35630/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35630.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35630", "merged_at": "2020-08-21T22:34:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35630.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35630" }
https://api.github.com/repos/pandas-dev/pandas/issues/35631
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35631/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35631/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35631/events
https://github.com/pandas-dev/pandas/issues/35631
675,540,135
MDU6SXNzdWU2NzU1NDAxMzU=
35,631
skiprows function adding extra column in pandas
{ "avatar_url": "https://avatars.githubusercontent.com/u/54501149?v=4", "events_url": "https://api.github.com/users/ajinkya976/events{/privacy}", "followers_url": "https://api.github.com/users/ajinkya976/followers", "following_url": "https://api.github.com/users/ajinkya976/following{/other_user}", "gists_url": "https://api.github.com/users/ajinkya976/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ajinkya976", "id": 54501149, "login": "ajinkya976", "node_id": "MDQ6VXNlcjU0NTAxMTQ5", "organizations_url": "https://api.github.com/users/ajinkya976/orgs", "received_events_url": "https://api.github.com/users/ajinkya976/received_events", "repos_url": "https://api.github.com/users/ajinkya976/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ajinkya976/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ajinkya976/subscriptions", "type": "User", "url": "https://api.github.com/users/ajinkya976" }
[ { "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-08-08T15:12:20Z
2020-08-21T17:04:44Z
2020-08-08T15:24:19Z
NONE
null
I am new to python. I am trying to read excel files and merge into master excel. I want to skip first 3 rows in my excel which contains heading and just take rest of rows. i am using skiprows=3 in pd.read_excel() method, it is skipping first 3 rows but the problem is, it is including one extra column with name 2 in my excel. if i mention skiprows=2 then that extra column (2) is not coming. but empty row in excel is getting added with "Unnamed". if i mention skiprows=3 it is not adding "Unamed" row but adding extra column with name 2. can someone please help me out in this. below is my code. ``` import os import pandas as pd if os.path.isfile('total_sales.xlsx'): os.remove('total_sales.xlsx') cwd = os.path.abspath('') files = os.listdir(cwd) df = pd.DataFrame() #create an empty dataframe df for storing the data for master spreadsheet cols = [0,1,2,3,4,6,7,8,9,10,11] for file in files: if file.endswith('.xlsx'): df=df.append(pd.read_excel(file,skiprows=3,usecols=cols)) print(cwd) print(df.head()) print(df.shape) df.to_excel('total_sales.xlsx') ``` please find below master excel with output. [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/Y3MNB.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/35631/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35631/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35632
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35632/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35632/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35632/events
https://github.com/pandas-dev/pandas/pull/35632
675,562,407
MDExOlB1bGxSZXF1ZXN0NDY1MDU2ODg0
35,632
REF: _cython_agg_blocks follow patterns similar to _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" } ]
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-08-08T17:48:52Z
2020-08-12T22:49:04Z
2020-08-12T22:15:36Z
MEMBER
null
Follows #35535 This isn't yet identical to apply_blockwise, because both this and apply_blockwise have some odd behaviors that need to get standardized before they get combined into a BlockManager method, but this is a move in that direction.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35632/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35632/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35632.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35632", "merged_at": "2020-08-12T22:15:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35632.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35632" }
https://api.github.com/repos/pandas-dev/pandas/issues/35633
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35633/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35633/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35633/events
https://github.com/pandas-dev/pandas/pull/35633
675,563,401
MDExOlB1bGxSZXF1ZXN0NDY1MDU3NTUx
35,633
BUG: DataFrame.apply with func altering row in-place
{ "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": "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": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
4
2020-08-08T17:55:50Z
2020-08-11T08:40:19Z
2020-08-11T00:01:58Z
MEMBER
null
closes #35462 closes #35634 - [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/35633/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35633/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35633.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35633", "merged_at": "2020-08-11T00:01:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35633.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35633" }
https://api.github.com/repos/pandas-dev/pandas/issues/35634
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35634/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35634/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35634/events
https://github.com/pandas-dev/pandas/issues/35634
675,565,195
MDU6SXNzdWU2NzU1NjUxOTU=
35,634
BUG: Pandas 1.1.0 apply function with axis=1 seems to mishandle the rows
{ "avatar_url": "https://avatars.githubusercontent.com/u/37022146?v=4", "events_url": "https://api.github.com/users/arshad171/events{/privacy}", "followers_url": "https://api.github.com/users/arshad171/followers", "following_url": "https://api.github.com/users/arshad171/following{/other_user}", "gists_url": "https://api.github.com/users/arshad171/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arshad171", "id": 37022146, "login": "arshad171", "node_id": "MDQ6VXNlcjM3MDIyMTQ2", "organizations_url": "https://api.github.com/users/arshad171/orgs", "received_events_url": "https://api.github.com/users/arshad171/received_events", "repos_url": "https://api.github.com/users/arshad171/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arshad171/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arshad171/subscriptions", "type": "User", "url": "https://api.github.com/users/arshad171" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
1
2020-08-08T18:08:39Z
2020-08-10T13:21:13Z
2020-08-10T13:13:23Z
NONE
null
### The functionality of the **apply(func, axis=1)** in the newly released pandas==1.1.0 is not working as expected. Pandas seems to be overwriting all the rows in the data frame with the 1st row present. This is happening specifically when introducing a new column in the data frame when running **func** method on each of the rows. This working in pandas==1.0.5, but seems to be a bug in pandas=1.10. I am attaching a sample script and the logs captured for pandas==1.0.5 and pandas==1.10. ### Attachments: 1. sample script to reproduce the issue (rename to .py before running) --> [script.txt](https://github.com/pandas-dev/pandas/files/5045977/script.txt) 2. output 1 (pandas==1.0.5) - working as expected --> [out_pandas_1.0.5.log](https://github.com/pandas-dev/pandas/files/5045978/out_pandas_1.0.5.log) 3. output 2 (pandas==1.1.0) - **buggy** --> [out_pandas_1.1.0.log](https://github.com/pandas-dev/pandas/files/5045980/out_pandas_1.1.0.log) As you can see in the *out_pandas_1.1.0.log* log, after preprocessing the data frame using ``` df = df.apply(process_text, axis=1) ``` all the rows in the data frame have been overwritten with the 1st row. This was not the case with pandas==1.0.5, check the **out_pandas_1.0.5.log** log. ### Environment - OS: Ubuntu 20.04 - Python: 3.7.7 (anaconda env)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35634/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35634/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35635
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35635/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35635/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35635/events
https://github.com/pandas-dev/pandas/issues/35635
675,576,117
MDU6SXNzdWU2NzU1NzYxMTc=
35,635
ENH: to_sql support DB-API other than sqlite3/sqlalchemy (eg peewee ORM)
{ "avatar_url": "https://avatars.githubusercontent.com/u/6799242?v=4", "events_url": "https://api.github.com/users/wilberh/events{/privacy}", "followers_url": "https://api.github.com/users/wilberh/followers", "following_url": "https://api.github.com/users/wilberh/following{/other_user}", "gists_url": "https://api.github.com/users/wilberh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wilberh", "id": 6799242, "login": "wilberh", "node_id": "MDQ6VXNlcjY3OTkyNDI=", "organizations_url": "https://api.github.com/users/wilberh/orgs", "received_events_url": "https://api.github.com/users/wilberh/received_events", "repos_url": "https://api.github.com/users/wilberh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wilberh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wilberh/subscriptions", "type": "User", "url": "https://api.github.com/users/wilberh" }
[ { "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" } ]
closed
false
null
[]
null
3
2020-08-08T19:28:22Z
2020-09-04T16:37:29Z
2020-09-04T16:37:29Z
NONE
null
#### Is your feature request related to a problem? I can't use, to_sql, api to insert data to a database table that complies with DB-API (pep-249) v2. #### Describe the solution you'd like I would like to use, to_sql, to insert data to a database table that complis with DB-API (pep-249) v2. Example, I use peewee ORM (not sqlalchemy / sqlite3 connections) to interact with a database that has a DB-API v2 driver. #### Describe alternatives you've considered I'm pulling each row of the dataframe to do inserts using threading. But I'd like this api to support connections other than sqlalchemy and sqlite3.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35635/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35635/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35636
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35636/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35636/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35636/events
https://github.com/pandas-dev/pandas/pull/35636
675,576,122
MDExOlB1bGxSZXF1ZXN0NDY1MDY2MTIx
35,636
CLN: consistent signatures for equals methods
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-08T19:28:27Z
2020-08-14T11:13:43Z
2020-08-12T12:22:55Z
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/35636/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35636/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35636.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35636", "merged_at": "2020-08-12T12:22:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35636.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35636" }
https://api.github.com/repos/pandas-dev/pandas/issues/35637
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35637/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35637/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35637/events
https://github.com/pandas-dev/pandas/pull/35637
675,576,677
MDExOlB1bGxSZXF1ZXN0NDY1MDY2NTMw
35,637
ENH: Make explode work for sets
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "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" } ]
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-08-08T19:33:06Z
2020-09-05T22:36:46Z
2020-09-05T22:36:43Z
MEMBER
null
- [x] closes #35614 - [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/35637/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35637/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35637.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35637", "merged_at": "2020-09-05T22:36:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35637.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35637" }
https://api.github.com/repos/pandas-dev/pandas/issues/35638
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35638/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35638/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35638/events
https://github.com/pandas-dev/pandas/pull/35638
675,576,953
MDExOlB1bGxSZXF1ZXN0NDY1MDY2NzI4
35,638
DOC: Mention NA for missing data in README
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-08T19:35:27Z
2020-08-24T12:52:01Z
2020-08-24T06:50:12Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35638/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35638/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35638.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35638", "merged_at": "2020-08-24T06:50:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35638.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35638" }
https://api.github.com/repos/pandas-dev/pandas/issues/35639
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35639/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35639/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35639/events
https://github.com/pandas-dev/pandas/pull/35639
675,645,541
MDExOlB1bGxSZXF1ZXN0NDY1MTEzNDQ5
35,639
BUG: RollingGroupby with closed and column selection no longer raises ValueError
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
2
2020-08-09T06:21:50Z
2020-08-10T15:26:24Z
2020-08-10T13:13:31Z
MEMBER
null
- [x] closes #35549 - [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/35639/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35639/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35639.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35639", "merged_at": "2020-08-10T13:13:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35639.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35639" }
https://api.github.com/repos/pandas-dev/pandas/issues/35640
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35640/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35640/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35640/events
https://github.com/pandas-dev/pandas/pull/35640
675,666,043
MDExOlB1bGxSZXF1ZXN0NDY1MTI3ODUy
35,640
DOC: Add specific Visual Studio Installer instructions
{ "avatar_url": "https://avatars.githubusercontent.com/u/15697539?v=4", "events_url": "https://api.github.com/users/bdforbes/events{/privacy}", "followers_url": "https://api.github.com/users/bdforbes/followers", "following_url": "https://api.github.com/users/bdforbes/following{/other_user}", "gists_url": "https://api.github.com/users/bdforbes/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bdforbes", "id": 15697539, "login": "bdforbes", "node_id": "MDQ6VXNlcjE1Njk3NTM5", "organizations_url": "https://api.github.com/users/bdforbes/orgs", "received_events_url": "https://api.github.com/users/bdforbes/received_events", "repos_url": "https://api.github.com/users/bdforbes/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bdforbes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bdforbes/subscriptions", "type": "User", "url": "https://api.github.com/users/bdforbes" }
[ { "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-08-09T09:12:42Z
2020-08-31T18:47:35Z
2020-08-31T18:47:26Z
CONTRIBUTOR
null
- [ ] further improves #28316 - Currently the 'Contributing to pandas', 'Installing a C compiler' section advises to install Build Tools for Visual Studio 2017 but doesn't specify which components to install. Notes: - The first time I installed the Build Tools it didn't seem to get everything needed, and I had to search around for a while before I could figure out what I'd missed. - The advice at [python.org](https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.2_standalone:_Build_Tools_for_Visual_Studio_2019_.28x86.2C_x64.2C_ARM.2C_ARM64.29) is more specific, so I have added that in here. I'm fairly sure that's the minimum required, 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/35640/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35640/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35640.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35640", "merged_at": "2020-08-31T18:47:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35640.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35640" }
https://api.github.com/repos/pandas-dev/pandas/issues/35641
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35641/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35641/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35641/events
https://github.com/pandas-dev/pandas/pull/35641
675,668,665
MDExOlB1bGxSZXF1ZXN0NDY1MTI5NjY4
35,641
REF/PERF: Move MultiIndex._tuples to MultiIndex._cache
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "207de5", "default": false, "description": 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-08-09T09:33:24Z
2020-08-10T23:00:12Z
2020-08-10T22:52:08Z
CONTRIBUTOR
null
Currently, the heavy-to-calculate ``MultiIndex.values`` attribute is cached in ``MultiIndex._tuples``. It would be more dogmatic to store it in ``MultiIndex._cache`` IMO, which is what this PR does. This has the added benefit of ``._values`` getting copied over to new copies of the MultiIndex, so also gives a performance boost in cases where copying is needed: ```python >>> n = 100_000; >>> df = pd.DataFrame({'a': ['a', 'b'] * int(n / 2), 'b': range(n), 'c': range(20, n + 20)}) >>> mi = pd.MultiIndex.from_frame(df) >>> mi.values # also caches mi._values in mi._cache array([('a', 0, 20), ('b', 1, 21), ('a', 2, 22), ..., ('b', 99997, 100017), ('a', 99998, 100018), ('b', 99999, 100019)], dtype=object) >>> %timeit mi._shallow_copy().values 22.8 ms ± 3.43 ms per loop # master 34.6 µs ± 997 ns per loop # this PR ```
{ "+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/35641/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35641/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35641.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35641", "merged_at": "2020-08-10T22:52:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35641.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35641" }
https://api.github.com/repos/pandas-dev/pandas/issues/35642
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35642/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35642/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35642/events
https://github.com/pandas-dev/pandas/issues/35642
675,686,341
MDU6SXNzdWU2NzU2ODYzNDE=
35,642
BUG:Resample with groupby & agg()
{ "avatar_url": "https://avatars.githubusercontent.com/u/31469379?v=4", "events_url": "https://api.github.com/users/BassKot/events{/privacy}", "followers_url": "https://api.github.com/users/BassKot/followers", "following_url": "https://api.github.com/users/BassKot/following{/other_user}", "gists_url": "https://api.github.com/users/BassKot/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BassKot", "id": 31469379, "login": "BassKot", "node_id": "MDQ6VXNlcjMxNDY5Mzc5", "organizations_url": "https://api.github.com/users/BassKot/orgs", "received_events_url": "https://api.github.com/users/BassKot/received_events", "repos_url": "https://api.github.com/users/BassKot/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BassKot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BassKot/subscriptions", "type": "User", "url": "https://api.github.com/users/BassKot" }
[ { "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" } ]
closed
false
null
[]
null
4
2020-08-09T11:50:34Z
2020-08-11T11:08:40Z
2020-08-11T11:08:24Z
NONE
null
- [ X] I have checked that this issue has not already been reported. - [ all versions] 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 numpy as np data = pd.DataFrame({ 'cat': ['cat_1', 'cat_1', 'cat_2', 'cat_1', 'cat_2', 'cat_1', 'cat_2', 'cat_1'], 'num': [5,20,22,3,4,30,10,50], 'date': ['2019-2-1', '2018-02-03','2020-3-11','2019-2-2', '2019-2-2', '2018-12-4','2020-3-11', '2020-12-12'] }) data['date'] = pd.to_datetime(data['date']) aggreg = data.groupby('cat').resample('Y', on='date') summ_ = aggreg.sum() agg_summ_ = aggreg.agg({'num': 'sum'}) summ_ agg_summ_ ``` #### Problem description When I want aggregate all columns by sum, example with summ_ calculates normal, but if I do example with agg it calculates incorrect. #### Expected Output summ_ #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.7.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 : en_US.UTF-8 LANG : ru_RU.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.0 numpy : 1.18.4 pytz : 2019.3 dateutil : 2.8.0 pip : 20.0.2 setuptools : 41.4.0 Cython : 0.29.13 pytest : 5.2.1 hypothesis : None sphinx : 2.2.0 blosc : None feather : None xlsxwriter : 1.2.1 lxml.etree : 4.4.1 html5lib : 1.0.1 pymysql : 0.9.3 psycopg2 : None jinja2 : 2.11.2 IPython : 7.8.0 pandas_datareader: None bs4 : 4.8.0 bottleneck : 1.2.1 fsspec : 0.5.2 fastparquet : None gcsfs : None matplotlib : 3.2.1 numexpr : 2.7.0 odfpy : None openpyxl : 3.0.0 pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.9 tables : 3.5.2 tabulate : 0.8.7 xarray : 0.16.0 xlrd : 1.2.0 xlwt : 1.3.0 numba : 0.45.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/35642/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35642/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35643
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35643/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35643/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35643/events
https://github.com/pandas-dev/pandas/pull/35643
675,693,396
MDExOlB1bGxSZXF1ZXN0NDY1MTQ3NDQz
35,643
ENH: Styler tooltips feature
{ "avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4", "events_url": "https://api.github.com/users/attack68/events{/privacy}", "followers_url": "https://api.github.com/users/attack68/followers", "following_url": "https://api.github.com/users/attack68/following{/other_user}", "gists_url": "https://api.github.com/users/attack68/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/attack68", "id": 24256554, "login": "attack68", "node_id": "MDQ6VXNlcjI0MjU2NTU0", "organizations_url": "https://api.github.com/users/attack68/orgs", "received_events_url": "https://api.github.com/users/attack68/received_events", "repos_url": "https://api.github.com/users/attack68/repos", "site_admin": false, "starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/attack68/subscriptions", "type": "User", "url": "https://api.github.com/users/attack68" }
[ { "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": "conditional formatting using DataFrame.style", "id": 1728592794, "name": "Styler", "node_id": "MDU6TGFiZWwxNzI4NTkyNzk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler" }, { "color": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
{ "closed_at": "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" }
14
2020-08-09T12:41:11Z
2021-01-21T06:46:55Z
2021-01-17T15:46:56Z
CONTRIBUTOR
null
- [x] closes #21266 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is a draft PR to address 21266: Tooltips for DataFrames in Styler. This PR has the following objectives: 1) Add functionality whilst being completely (almost) decoupled from the rest of the HTML rendering process 2) Be fully backwards compatible and have no impact at all on previous Styler's that have never used tooltips. 3) Use pseudo CSS class rendering via `table_styles` to control the visualisation of the tooltips. To address 1) the architecture was simple: - If `tooltips` are detected then an additional HTML element is added to every data cell: `<span class="pd-t"></span>`. If `tooltips` are not detected (by default) nothing is done. - Add generic table level CSS for the tooltip class, hiding tooltips by default but positioning, sizing, and coloring them. - Loop through a tooltips DataFrame and based on the row and col index add additional content to the <span> element using the ::after pseudo-element targeting the exact cell id. This is table level also. Rendering is performed as the last step. To address 2) default values ensure the functions make no changes unless `set_tooltips` has been called. ## Extensions The very simple architecture requires a DataFrame of tooltips to be supplied. This requires the user to have constructed it privately (possibly using the regular DataFrame.apply and DataFrame.applymap) methods. These could be incorporated. It would also be better to only add extra HTML <span> elements to data cells that have tooltips. This requires conditional looping of the render dict, which I haven't included here to save on initial complexity. For small dataframes it is also irrelevant. However, given my time constraints I would rather leave this to a more available and more competent developer!! Comments welcome..
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35643/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35643/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35643.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35643", "merged_at": "2021-01-17T15:46:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35643.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35643" }
https://api.github.com/repos/pandas-dev/pandas/issues/35644
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35644/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35644/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35644/events
https://github.com/pandas-dev/pandas/issues/35644
675,735,238
MDU6SXNzdWU2NzU3MzUyMzg=
35,644
BUG: `Series.sum` & `Series.mean` are inconsitent for `timedelta64` dtype
{ "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" }
[]
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-08-09T17:05:34Z
2020-09-02T13:06:44Z
2020-09-01T23:26: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. --- #### Code Sample, a copy-pastable example ```python >>> import pandas as pd >>> pd.__version__ '1.1.0' >>> s = pd.Series([None, None], dtype='timedelta64[ns]') >>> s 0 NaT 1 NaT dtype: timedelta64[ns] >>> s.sum() Timedelta('0 days 00:00:00') >>> s.mean() NaT >>> s.sum() / 2 # Mean Timedelta('0 days 00:00:00') ``` #### Problem description When there are `NaT` values in the series, the sum in the above case to returns `0`, which will result in incorrect/inconsistent calculations if other calculations rely on the result of `sum`, for instance if we try calculating a mean from the result of sum, we get `0` instead of correct result `NaT`(as returned by `Series.mean`). #### Expected Output When there are `NaT` values in the series, I'd expect the sum in the above case to return `NaT`, as `Series.mean` returns `NaT` as expected. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.7.3.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 : None LOCALE : en_US.UTF-8 pandas : 1.1.0 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.1.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 : 2.11.2 IPython : None pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : None 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/35644/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35644/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35645
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35645/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35645/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35645/events
https://github.com/pandas-dev/pandas/pull/35645
675,736,122
MDExOlB1bGxSZXF1ZXN0NDY1MTc3NDMw
35,645
BUG/ENH: consistent gzip compression arguments
{ "avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4", "events_url": "https://api.github.com/users/twoertwein/events{/privacy}", "followers_url": "https://api.github.com/users/twoertwein/followers", "following_url": "https://api.github.com/users/twoertwein/following{/other_user}", "gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/twoertwein", "id": 6618166, "login": "twoertwein", "node_id": "MDQ6VXNlcjY2MTgxNjY=", "organizations_url": "https://api.github.com/users/twoertwein/orgs", "received_events_url": "https://api.github.com/users/twoertwein/received_events", "repos_url": "https://api.github.com/users/twoertwein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions", "type": "User", "url": "https://api.github.com/users/twoertwein" }
[ { "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": "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" }
8
2020-08-09T17:11:31Z
2020-08-13T22:04:56Z
2020-08-13T22:04:50Z
CONTRIBUTOR
null
- [x] closes #28103 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry `to_csv` let's the user set all keyword arguments for gzip. Depending on whether the user provides a filename or a file object different keyword arguments can be set (`gzip.open` vs `gzip.GzipFile`). This PR always uses `gzip.GzipFile`. The additional keyword arguments valid for `gzip.open` but not valid for `gzip.GzipFile` (`encoding`, `errors`, and ~~`newline`~~) are still accessible: https://github.com/pandas-dev/pandas/blob/aefae55e1960a718561ae0369e83605e3038f292/pandas/io/common.py#L512 Using `gzip.GzipFile`, also allows us to set `mtime` to create reproducible gzip archives.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35645/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35645/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35645.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35645", "merged_at": "2020-08-13T22:04:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35645.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35645" }
https://api.github.com/repos/pandas-dev/pandas/issues/35646
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35646/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35646/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35646/events
https://github.com/pandas-dev/pandas/issues/35646
675,827,015
MDU6SXNzdWU2NzU4MjcwMTU=
35,646
BUG: groupby(..., dropna=False).indices with single group key does not include nan group
{ "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": "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" } ]
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-08-10T02:31:36Z
2020-11-04T02:59:03Z
2020-11-04T02:59:03Z
MEMBER
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 # Your code here In [9]: data = {'group':['g1', 'g1', 'g1', np.nan, 'g1', 'g1', 'g2', 'g2', 'g2', 'g2', np.nan], ...: 'A':[3, 1, 8, 2, 6, -1, 0, 13, -4, 0, 1], ...: 'B':[5, 2, 3, 7, 11, -1, 4,-1, 1, 0, 2]} ...: df = pd.DataFrame(data) ...: df.groupby('group',dropna=True).indices Out[9]: {'g1': array([0, 1, 2, 4, 5]), 'g2': array([6, 7, 8, 9])} In [10]: df.groupby('group',dropna=False).indices Out[10]: {'g1': array([0, 1, 2, 4, 5]), 'g2': array([6, 7, 8, 9])} In [11]: pd.__version__ Out[11]: '1.2.0.dev0+67.gaefae55e1' ``` #### Problem description The grouping codes + indices are determined for a single group by key here https://github.com/pandas-dev/pandas/blob/aefae55e1960a718561ae0369e83605e3038f292/pandas/core/groupby/grouper.py#L559 And `Categorical` does not support `nan` as a label (only a missing -1 code) This works correctly if multiple group keys are passed Once this issue is addressed, https://github.com/pandas-dev/pandas/issues/35542 will be fixed #### Expected Output ``` In [10]: df.groupby('group',dropna=False).indices Out[10]: {'g1': array([0, 1, 2, 4, 5]), 'g2': array([6, 7, 8, 9]), np.nan: array([3, 10]} ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35646/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35646/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35647
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35647/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35647/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35647/events
https://github.com/pandas-dev/pandas/pull/35647
675,916,613
MDExOlB1bGxSZXF1ZXN0NDY1MzE4Njkx
35,647
BUG: Support custom BaseIndexers in groupby.rolling
{ "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": "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": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
2
2020-08-10T07:01:01Z
2020-08-13T06:14:05Z
2020-08-12T22:14:31Z
MEMBER
null
- [x] closes #35557 - [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/35647/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35647/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35647.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35647", "merged_at": "2020-08-12T22:14:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35647.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35647" }
https://api.github.com/repos/pandas-dev/pandas/issues/35648
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35648/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35648/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35648/events
https://github.com/pandas-dev/pandas/issues/35648
675,918,658
MDU6SXNzdWU2NzU5MTg2NTg=
35,648
BUG: Reading files fails when option use_inf_as_na is set to True
{ "avatar_url": "https://avatars.githubusercontent.com/u/7723080?v=4", "events_url": "https://api.github.com/users/Khris777/events{/privacy}", "followers_url": "https://api.github.com/users/Khris777/followers", "following_url": "https://api.github.com/users/Khris777/following{/other_user}", "gists_url": "https://api.github.com/users/Khris777/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Khris777", "id": 7723080, "login": "Khris777", "node_id": "MDQ6VXNlcjc3MjMwODA=", "organizations_url": "https://api.github.com/users/Khris777/orgs", "received_events_url": "https://api.github.com/users/Khris777/received_events", "repos_url": "https://api.github.com/users/Khris777/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Khris777/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Khris777/subscriptions", "type": "User", "url": "https://api.github.com/users/Khris777" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
1
2020-08-10T07:05:20Z
2020-08-10T08:44:01Z
2020-08-10T08:43:51Z
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 pd.set_option("use_inf_as_na", True) pd.read_csv(some_csv_file) ``` #### Problem description When the option `use_inf_as_na` is set to `True` reading any csv-file fails with this error: ``` File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\io\parsers.py", line 686, in read_csv return _read(filepath_or_buffer, kwds) File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\io\parsers.py", line 458, in _read data = parser.read(nrows) File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\io\parsers.py", line 1201, in read df = DataFrame(col_dict, columns=columns, index=index) File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\frame.py", line 467, in __init__ mgr = init_dict(data, index, columns, dtype=dtype) File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\internals\construction.py", line 250, in init_dict missing = arrays.isna() File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\series.py", line 4795, in isna return super().isna() File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\generic.py", line 7109, in isna return isna(self).__finalize__(self, method="isna") File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\dtypes\missing.py", line 124, in isna return _isna(obj) File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\dtypes\missing.py", line 157, in _isna return _isna_ndarraylike(obj, inf_as_na=inf_as_na) File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\dtypes\missing.py", line 218, in _isna_ndarraylike result = _isna_string_dtype(values, dtype, inf_as_na=inf_as_na) File "C:\Users\My.Name\AppData\Local\Continuum\miniconda3\envs\main\lib\site-packages\pandas\core\dtypes\missing.py", line 246, in _isna_string_dtype vec = libmissing.isnaobj_old(values.ravel()) File "pandas\_libs\missing.pyx", line 160, in pandas._libs.missing.isnaobj_old ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() ``` EDIT 1: Error also happens with `read_table()` and when feeding a `StringIO` object to `read_csv()`. EDIT 2: `read_excel()` fails as well. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.7.8.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.19041 machine : AMD64 processor : Intel64 Family 6 Model 79 Stepping 1, GenuineIntel byteorder : little LC_ALL : None LANG : en LOCALE : None.None pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.1 setuptools : 49.2.1.post20200802 Cython : 0.29.21 pytest : None hypothesis : None sphinx : 3.1.2 blosc : None feather : None xlsxwriter : 1.3.1 lxml.etree : 4.5.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.17.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fsspec : 0.8.0 fastparquet : 0.4.1 gcsfs : None matplotlib : 3.3.0 numexpr : None odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : 1.0.0 pytables : None pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : None tabulate : 0.8.7 xarray : None xlrd : 1.2.0 xlwt : 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/35648/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35648/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35649
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35649/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35649/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35649/events
https://github.com/pandas-dev/pandas/pull/35649
675,925,933
MDExOlB1bGxSZXF1ZXN0NDY1MzI2NTIx
35,649
Refactor tables latex
{ "avatar_url": "https://avatars.githubusercontent.com/u/23078199?v=4", "events_url": "https://api.github.com/users/SylvainLan/events{/privacy}", "followers_url": "https://api.github.com/users/SylvainLan/followers", "following_url": "https://api.github.com/users/SylvainLan/following{/other_user}", "gists_url": "https://api.github.com/users/SylvainLan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SylvainLan", "id": 23078199, "login": "SylvainLan", "node_id": "MDQ6VXNlcjIzMDc4MTk5", "organizations_url": "https://api.github.com/users/SylvainLan/orgs", "received_events_url": "https://api.github.com/users/SylvainLan/received_events", "repos_url": "https://api.github.com/users/SylvainLan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SylvainLan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SylvainLan/subscriptions", "type": "User", "url": "https://api.github.com/users/SylvainLan" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "006b75", "default": false, "description": "to_latex", "id": 251382258, "name": "IO LaTeX", "node_id": "MDU6TGFiZWwyNTEzODIyNTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX" } ]
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-08-10T07:21:07Z
2020-08-14T06:13:01Z
2020-08-13T18:17:39Z
CONTRIBUTOR
null
- [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry As suggested [here](https://github.com/pandas-dev/pandas/pull/35284#issuecomment-665273834), utils fonctions which begin or end tables / tabulars / longtables environments could be merged.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35649/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35649/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35649.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35649", "merged_at": "2020-08-13T18:17:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35649.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35649" }
https://api.github.com/repos/pandas-dev/pandas/issues/35650
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35650/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35650/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35650/events
https://github.com/pandas-dev/pandas/issues/35650
675,987,834
MDU6SXNzdWU2NzU5ODc4MzQ=
35,650
BUG: pd.factorize with read-only datetime64 numpy array raises ValueError
{ "avatar_url": "https://avatars.githubusercontent.com/u/10705513?v=4", "events_url": "https://api.github.com/users/ruchirgarg05/events{/privacy}", "followers_url": "https://api.github.com/users/ruchirgarg05/followers", "following_url": "https://api.github.com/users/ruchirgarg05/following{/other_user}", "gists_url": "https://api.github.com/users/ruchirgarg05/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ruchirgarg05", "id": 10705513, "login": "ruchirgarg05", "node_id": "MDQ6VXNlcjEwNzA1NTEz", "organizations_url": "https://api.github.com/users/ruchirgarg05/orgs", "received_events_url": "https://api.github.com/users/ruchirgarg05/received_events", "repos_url": "https://api.github.com/users/ruchirgarg05/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ruchirgarg05/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ruchirgarg05/subscriptions", "type": "User", "url": "https://api.github.com/users/ruchirgarg05" }
[ { "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
[]
null
4
2020-08-10T09:14:21Z
2020-08-26T12:44:25Z
2020-08-26T12:44: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 In [1]: pandas.__version__ [PYFLYBY] import pandas Out[1]: u'0.24.2' In [2]: arr = numpy.array([numpy.datetime64('2015-11-20T15:06:58.000')]) In [3]: arr.dtype Out[3]: dtype('<M8[ms]') In [4]: arr.flags.writeable = False [PYFLYBY] import pandas as pd In [5]: pd.factorize(arr) ``` #### Problem description [Construction with non-mutable datetime64 strings] #### Expected Output (array([0]), array(['2015-11-20T15:06:58.000000000'], dtype='datetime64[ns]')) #### Output of ``pd.show_versions()`` <details> pandas/_libs/tslibs/conversion.pyx in pandas._libs.tslibs.conversion.ensure_datetime64ns() /usr/local/python/python-2.7/std/lib/python2.7/site-packages/pandas/_libs/tslibs/conversion.so in View.MemoryView.memoryview_cwrapper() /usr/local/python/python-2.7/std/lib/python2.7/site-packages/pandas/_libs/tslibs/conversion.so in View.MemoryView.memoryview.__cinit__() ValueError: buffer source array is read-only </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/35650/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35650/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35651
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35651/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35651/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35651/events
https://github.com/pandas-dev/pandas/pull/35651
676,139,806
MDExOlB1bGxSZXF1ZXN0NDY1NTAyOTQ0
35,651
Backport PR #35639 on branch 1.1.x (BUG: RollingGroupby with closed and column selection no longer raises ValueError)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
0
2020-08-10T13:32:34Z
2020-08-10T14:48:34Z
2020-08-10T14:48:34Z
NONE
null
Backport PR #35639: BUG: RollingGroupby with closed and column selection no longer raises ValueError
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35651/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35651/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35651.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35651", "merged_at": "2020-08-10T14:48:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35651.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35651" }
https://api.github.com/repos/pandas-dev/pandas/issues/35652
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35652/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35652/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35652/events
https://github.com/pandas-dev/pandas/pull/35652
676,140,006
MDExOlB1bGxSZXF1ZXN0NDY1NTAzMTIx
35,652
Backport PR #35522 on branch 1.1.x (BUG: Fix assert_equal when check_exact=True for non-numeric dtypes #3…)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
0
2020-08-10T13:32:51Z
2020-08-10T14:54:15Z
2020-08-10T14:53:32Z
NONE
null
Backport PR #35522: BUG: Fix assert_equal when check_exact=True for non-numeric dtypes #3…
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35652/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35652/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35652.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35652", "merged_at": "2020-08-10T14:53:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35652.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35652" }
https://api.github.com/repos/pandas-dev/pandas/issues/35653
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35653/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35653/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35653/events
https://github.com/pandas-dev/pandas/issues/35653
676,202,533
MDU6SXNzdWU2NzYyMDI1MzM=
35,653
QST: How to select the week data from a given DataFrame?
{ "avatar_url": "https://avatars.githubusercontent.com/u/59202862?v=4", "events_url": "https://api.github.com/users/Monsieurvishal/events{/privacy}", "followers_url": "https://api.github.com/users/Monsieurvishal/followers", "following_url": "https://api.github.com/users/Monsieurvishal/following{/other_user}", "gists_url": "https://api.github.com/users/Monsieurvishal/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Monsieurvishal", "id": 59202862, "login": "Monsieurvishal", "node_id": "MDQ6VXNlcjU5MjAyODYy", "organizations_url": "https://api.github.com/users/Monsieurvishal/orgs", "received_events_url": "https://api.github.com/users/Monsieurvishal/received_events", "repos_url": "https://api.github.com/users/Monsieurvishal/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Monsieurvishal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Monsieurvishal/subscriptions", "type": "User", "url": "https://api.github.com/users/Monsieurvishal" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2020-08-10T14:59:18Z
2020-08-10T16:40:57Z
2020-08-10T16:40:57Z
NONE
null
Question about pandas For the given DataFrame How do I select data between two weeks? Date Open High Low Close 0 01-08-2019 97.85 98.45 96.40 97.25 1 02-08-2019 97.15 98.95 96.75 98.15 2 05-08-2019 98.30 98.70 94.30 95.65 3 06-08-2019 95.75 97.75 95.20 97.05 4 07-08-2019 96.80 97.70 96.05 96.90 5 08-08-2019 97.40 98.90 96.55 97.40 6 09-08-2019 97.20 98.10 96.65 97.30 7 12-08-2019 97.20 97.25 93.40 93.75 8 13-08-2019 93.70 96.60 93.15 96.35 9 14-08-2019 95.85 96.40 94.00 94.45 August 01-08-2019 ,02-08-2019 is one week. August 05-08-2019, 06-08-2019, 07-08-2019, 08-08-2019, 09-08-2019 is second week I want data in dataframe should be grouped according to week. ![august-2019-calendar](https://user-images.githubusercontent.com/59202862/89797048-0cf91480-db48-11ea-8a90-e7b96ca33f7e.png) I want to group the week data for whole year?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35653/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35653/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35654
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35654/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35654/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35654/events
https://github.com/pandas-dev/pandas/pull/35654
676,208,659
MDExOlB1bGxSZXF1ZXN0NDY1NTYwMDc1
35,654
BUG: GH-35558 merge_asof tolerance error
{ "avatar_url": "https://avatars.githubusercontent.com/u/4068610?v=4", "events_url": "https://api.github.com/users/ikedaosushi/events{/privacy}", "followers_url": "https://api.github.com/users/ikedaosushi/followers", "following_url": "https://api.github.com/users/ikedaosushi/following{/other_user}", "gists_url": "https://api.github.com/users/ikedaosushi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ikedaosushi", "id": 4068610, "login": "ikedaosushi", "node_id": "MDQ6VXNlcjQwNjg2MTA=", "organizations_url": "https://api.github.com/users/ikedaosushi/orgs", "received_events_url": "https://api.github.com/users/ikedaosushi/received_events", "repos_url": "https://api.github.com/users/ikedaosushi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ikedaosushi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ikedaosushi/subscriptions", "type": "User", "url": "https://api.github.com/users/ikedaosushi" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
3
2020-08-10T15:07:53Z
2020-08-13T10:17:17Z
2020-08-13T10:15:52Z
CONTRIBUTOR
null
- [x] closes #35558 - [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/35654/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35654/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35654.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35654", "merged_at": "2020-08-13T10:15:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35654.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35654" }
https://api.github.com/repos/pandas-dev/pandas/issues/35655
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35655/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35655/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35655/events
https://github.com/pandas-dev/pandas/pull/35655
676,232,008
MDExOlB1bGxSZXF1ZXN0NDY1NTc5NzEx
35,655
Moto server
{ "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": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "e4a5f1", "default": false, "description": "Local or Cloud (AWS, GCS, etc.) IO Issues", "id": 49381477, "name": "IO Network", "node_id": "MDU6TGFiZWw0OTM4MTQ3Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Network" } ]
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" }
8
2020-08-10T15:40:01Z
2020-08-22T19:26:28Z
2020-08-21T20:14:03Z
CONTRIBUTOR
null
Changes moto for s3 tests from monkeypatched/mocking to server mode. This allows aiobotocore exceptions to raise correctly, needed for tests to pass; the change is required by the upcoming async release of s3fs, but also works for old sync (botocore) version. A release of s3fs without this change would break pandas tests. Note: since I now need to pass storage_options to the various s3 calls in the tests to make them pass (giving the endpoint of the moto s3 server), I needed to also plumb storage_options through the excel IO, which was previously missing, and update the excel tests. - [ ] 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": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35655/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35655/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35655.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35655", "merged_at": "2020-08-21T20:14:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35655.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35655" }
https://api.github.com/repos/pandas-dev/pandas/issues/35656
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35656/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35656/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35656/events
https://github.com/pandas-dev/pandas/issues/35656
676,242,685
MDU6SXNzdWU2NzYyNDI2ODU=
35,656
ENH: Uniformised the boolean results in Pandas
{ "avatar_url": "https://avatars.githubusercontent.com/u/29739087?v=4", "events_url": "https://api.github.com/users/ExarKun64/events{/privacy}", "followers_url": "https://api.github.com/users/ExarKun64/followers", "following_url": "https://api.github.com/users/ExarKun64/following{/other_user}", "gists_url": "https://api.github.com/users/ExarKun64/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ExarKun64", "id": 29739087, "login": "ExarKun64", "node_id": "MDQ6VXNlcjI5NzM5MDg3", "organizations_url": "https://api.github.com/users/ExarKun64/orgs", "received_events_url": "https://api.github.com/users/ExarKun64/received_events", "repos_url": "https://api.github.com/users/ExarKun64/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ExarKun64/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ExarKun64/subscriptions", "type": "User", "url": "https://api.github.com/users/ExarKun64" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "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
[]
null
5
2020-08-10T15:56:08Z
2021-08-08T19:57:10Z
null
NONE
null
Hello everybody, I'm not completely sure this issue has not been submitted earlier, please accept my apologies if so. It is also possible that what I saw results from an incorrect use of the Pandas package. It seems that boolean answers are not always rigourosly the same in Pandas, which is really disturbing, and can involve errors when developping scripts using Pandas. Here are examples of the problem (realized with Python 3.8.5 and Pandas 1.0.5). Let's imagine we have a DataFrame named "data", with a column "col1". We are first using the all() function: >>>data["col1"].all() Out: True >>>data["col1"].all() == True Out: True >>>data["col1"].all() is True False In this case, the checking of the value using the PEP recommended "is" return a wrong answer. Same idea with the "empty" function : >>>data["col1].empty Out: False >>>data["col1"].empty == False Out: True >>>data["col1"].empty is False Out: True This time, checking the value using the "is" statement works well. From what I understand, some boolean answers are of different "types" (Numpy logical booleans, ...). Maybe a uniformisation of the boolean answer would avoid these kinds of problems and could be an improvment for future Pandas versions ?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35656/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35656/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35657
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35657/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35657/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35657/events
https://github.com/pandas-dev/pandas/issues/35657
676,346,737
MDU6SXNzdWU2NzYzNDY3Mzc=
35,657
BUG: ValueError: cannot convert float NaN to integer - on dataframe.reset_index()
{ "avatar_url": "https://avatars.githubusercontent.com/u/2239771?v=4", "events_url": "https://api.github.com/users/capelastegui/events{/privacy}", "followers_url": "https://api.github.com/users/capelastegui/followers", "following_url": "https://api.github.com/users/capelastegui/following{/other_user}", "gists_url": "https://api.github.com/users/capelastegui/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/capelastegui", "id": 2239771, "login": "capelastegui", "node_id": "MDQ6VXNlcjIyMzk3NzE=", "organizations_url": "https://api.github.com/users/capelastegui/orgs", "received_events_url": "https://api.github.com/users/capelastegui/received_events", "repos_url": "https://api.github.com/users/capelastegui/repos", "site_admin": false, "starred_url": "https://api.github.com/users/capelastegui/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/capelastegui/subscriptions", "type": "User", "url": "https://api.github.com/users/capelastegui" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
4
2020-08-10T18:58:43Z
2020-08-14T01:50:52Z
2020-08-14T01:50:52Z
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 ```python import pandas as pd df = pd.DataFrame( dict(c1=[10.], c2=['a'], c3=pd.to_datetime('2020-01-01'))) # Triggering conditions: multiindex with date, empty dataframe # Multiindex without date works df.set_index(['c1', 'c2']).head(0).reset_index() # Regular index with date also works df.set_index(['c3']).head(0).reset_index() # Multiindex with date crashes... df.set_index(['c2', 'c3']).head(0).reset_index() # >> ValueError: cannot convert float NaN to integer # This used to work on pandas 1.0.3, but breaks on pandas 1.1.0 # Though the error doesn't trigger if the dataframe is empty before # calling set_index() df.head(0).set_index(['c2', 'c3']).reset_index() # I originally observed the bug in a groupby call df.head(0).groupby(['c2', 'c3'])[['c1']].sum().reset_index() # >> ValueError: cannot convert float NaN to integer # This used to work on pandas 1.0.3, but breaks on pandas 1.1.0 ``` #### Problem description On pandas 1.1.0, I'm getting a ValueError exception when calling dataframe.reset_index() under the following conditions: - Input dataframe is empty - Multiindex from multiple columns, at least one of which is a datetime The exception message is `ValueError: cannot convert float NaN to integer`. Error trace: ``` Error Traceback (most recent call last): df_out.reset_index() File "/Users/pec21/PycharmProjects/anp_voice_report/virtual/lib/python3.6/site-packages/pandas/core/frame.py", line 4848, in reset_index level_values = _maybe_casted_values(lev, lab) File "/Users/pec21/PycharmProjects/anp_voice_report/virtual/lib/python3.6/site-packages/pandas/core/frame.py", line 4782, in _maybe_casted_values fill_value, len(mask), dtype File "/Users/pec21/PycharmProjects/anp_voice_report/virtual/lib/python3.6/site-packages/pandas/core/dtypes/cast.py", line 1554, in construct_1d_arraylike_from_scalar subarr.fill(value) ValueError: cannot convert float NaN to integer ``` This error didn't happen on pandas 1.0.3 and earlier. I haven't tested any intermediate releases, nor the master branch. #### Expected Output No exception is raised, returns an empty dataframe. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.6.6.final.0 python-bits : 64 OS : Darwin OS-release : 18.6.0 Version : Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : en_GB.UTF-8 pandas : 1.1.0 numpy : 1.17.4 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 49.1.0 Cython : None pytest : 5.3.4 hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.2 html5lib : None pymysql : None psycopg2 : 2.8.4 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : None pandas_datareader: None bs4 : 4.8.1 bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : 3.0.2 pandas_gbq : None pyarrow : 0.15.1 pytables : None pyxlsb : None s3fs : None scipy : 1.3.3 sqlalchemy : 1.3.11 tables : None tabulate : None xarray : None xlrd : 1.2.0 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/35657/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35657/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35658
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35658/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35658/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35658/events
https://github.com/pandas-dev/pandas/issues/35658
676,430,855
MDU6SXNzdWU2NzY0MzA4NTU=
35,658
BUG: IntervalIndex cannot be round-tripped pickled
{ "avatar_url": "https://avatars.githubusercontent.com/u/4083697?v=4", "events_url": "https://api.github.com/users/benkrikler/events{/privacy}", "followers_url": "https://api.github.com/users/benkrikler/followers", "following_url": "https://api.github.com/users/benkrikler/following{/other_user}", "gists_url": "https://api.github.com/users/benkrikler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/benkrikler", "id": 4083697, "login": "benkrikler", "node_id": "MDQ6VXNlcjQwODM2OTc=", "organizations_url": "https://api.github.com/users/benkrikler/orgs", "received_events_url": "https://api.github.com/users/benkrikler/received_events", "repos_url": "https://api.github.com/users/benkrikler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/benkrikler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benkrikler/subscriptions", "type": "User", "url": "https://api.github.com/users/benkrikler" }
[ { "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": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" }, { "color": "6c1cdb", "default": false, "description": "read_pickle, to_pickle", "id": 1625435109, "name": "IO Pickle", "node_id": "MDU6TGFiZWwxNjI1NDM1MTA5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle" } ]
closed
false
null
[]
{ "closed_at": "2020-09-09T09:07:44Z", "closed_issues": 94, "created_at": "2020-08-17T19:11:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-08T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/76", "id": 5781056, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels", "node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==", "number": 76, "open_issues": 0, "state": "closed", "title": "1.1.2", "updated_at": "2020-10-02T11:57:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76" }
2
2020-08-10T21:34:50Z
2020-09-04T15:17:10Z
2020-09-04T15:17:10Z
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 numpy as np import pickle as pkl interval = pd.IntervalIndex.from_breaks(np.linspace(0, 100, 5+1), closed="left") print("original:", interval) print("pickle", pkl.loads(pkl.dumps(interval))) ``` ```output original: IntervalIndex([[0.0, 20.0), [20.0, 40.0), [40.0, 60.0), [60.0, 80.0), [80.0, 100.0)], closed='left', dtype='interval[float64]') pickle IntervalIndex([(0.0, 20.0], (20.0, 40.0], (40.0, 60.0], (60.0, 80.0], (80.0, 100.0]], closed='right', dtype='interval[float64]') ``` #### Problem description Having recently updated to v1.1.0 from v1.0.5, it seems IntervalIndex is no longer preserving the closure of the intervals as being left or right. When unpickling the IntervalIndex, the closure is reset to the default value of "right". This seems similar to the serialisation issues of #32037 and #35420, but those seem to be for older versions of the master branch. #### Expected Output ```output original: [IntervalIndex([[0.0, 20.0), [20.0, 40.0), [40.0, 60.0), [60.0, 80.0), [80.0, 100.0)], closed='left', dtype='interval[float64]')] pickle [IntervalIndex([[0.0, 20.0), [20.0, 40.0), [40.0, 60.0), [60.0, 80.0), [80.0, 100.0)], closed='left', dtype='interval[float64]')] ``` #### Output of ``pd.show_versions()`` <details> python -c "import pandas as pd; pd.show_versions()" INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.7.3.final.0 python-bits : 64 OS : Linux OS-release : 3.10.0-1062.7.1.el7.x86_64 Version : #1 SMP Mon Dec 2 17:33:29 UTC 2019 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 19.3.1 setuptools : 45.2.0 Cython : None pytest : 4.3.0 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.17.0 pandas_datareader: None bs4 : None bottleneck : None 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.4.1 sqlalchemy : None tables : 3.6.1 tabulate : None xarray : None xlrd : None xlwt : None numba : 0.48.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/35658/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35658/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35659
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35659/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35659/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35659/events
https://github.com/pandas-dev/pandas/issues/35659
676,463,249
MDU6SXNzdWU2NzY0NjMyNDk=
35,659
ENH: Making Pandas dataframe slicing syntax match R dataframe syntax.
{ "avatar_url": "https://avatars.githubusercontent.com/u/654554?v=4", "events_url": "https://api.github.com/users/jgbradley1/events{/privacy}", "followers_url": "https://api.github.com/users/jgbradley1/followers", "following_url": "https://api.github.com/users/jgbradley1/following{/other_user}", "gists_url": "https://api.github.com/users/jgbradley1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgbradley1", "id": 654554, "login": "jgbradley1", "node_id": "MDQ6VXNlcjY1NDU1NA==", "organizations_url": "https://api.github.com/users/jgbradley1/orgs", "received_events_url": "https://api.github.com/users/jgbradley1/received_events", "repos_url": "https://api.github.com/users/jgbradley1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgbradley1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgbradley1/subscriptions", "type": "User", "url": "https://api.github.com/users/jgbradley1" }
[ { "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": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": 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-08-10T22:52:14Z
2020-08-11T17:22:11Z
2020-08-10T23:58:27Z
NONE
null
I imagine the following request is popular enough that it has probably been asked before. I just couldn't find it. Feel free to close if the discussion has already occurred. Consider the following R example: ```r # R code > df <- data.frame(A=c(0:4), B=c("str0","str1","str2","str3","str4"), C=(1:5)) > df A B C 1 0 str0 1 2 1 str1 2 3 2 str2 3 4 3 str3 4 5 4 str4 5 ``` The equivalent Pandas syntax would be: ```python # python code > df = pd.DataFrame({ "A":range(0,5), "B":["str"+str(x) for x in range(0,5)], "C":range(1,6) }) > df A B C 0 0 str0 1 1 1 str1 2 2 2 str2 3 3 3 str3 4 4 4 str4 5 ``` Now when trying to slice a R dataframe, the syntax allows direct access with the brackets operator: ```r # R code > df[1,] A B C 1 0 str0 1 ``` The pandas equivalent would be: ```python # python code > df.iloc[0,] A 0 B str0 C 1 Name: 0, dtype: object ``` Disregarding the 0-index vs 1-index between the languages, I would like to propose adding a new slicing operation to the Pandas dataframe [`getitem()`](https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L2904) that overloads the brackets operator and matches the behavior of R-style syntax. It would allow for cleaner and less-verbose code (especially when chaining multiple slice operations). #### API breaking implications The API change would be a positive addition. No removal of current slicing operations (`iloc`, `loc`, etc.) #### Additional context The following slicing examples will error out in Pandas whereas it would be valid slicing in R: ```python # python code > df[0] > df[0, ] > df[0,0] > df[0, 1:2] ``` Note that calling `iloc` with the above commands would all succeed. What I'm suggesting is that the logic for `iloc` be copied/moved into Pandas dataframe `__getitem__()` function.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35659/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35659/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35660
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35660/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35660/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35660/events
https://github.com/pandas-dev/pandas/issues/35660
676,521,002
MDU6SXNzdWU2NzY1MjEwMDI=
35,660
BUG/CI: unreliable tests in `io\parser\test_common.py`
{ "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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "fbca04", "default": false, "description": "Windows OS", "id": 57186974, "name": "Windows", "node_id": "MDU6TGFiZWw1NzE4Njk3NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows" }, { "color": "5319e7", "default": false, "description": "Unit tests that occasionally fail", "id": 76939933, "name": "Unreliable Test", "node_id": "MDU6TGFiZWw3NjkzOTkzMw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unreliable%20Test" } ]
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-08-11T01:54:53Z
2020-08-17T20:50:14Z
2020-08-17T20:50:14Z
MEMBER
null
Those two tests ```bash pandas\tests\io\parser\test_common.py:test_chunks_have_consistent_numerical_type pandas\tests\io\parser\test_common.py:test_warn_if_chunks_have_mismatched_type ``` have been producing ResourceWarning occasionally on Windows-py37-np16 and travis-37. I think they might happen on other builds as well. I just haven't seen them yet. ```bash all_parsers = <pandas.tests.io.parser.conftest.PythonParser object at 0x0000016ADEAFB808> def test_chunks_have_consistent_numerical_type(all_parsers): parser = all_parsers integers = [str(i) for i in range(499999)] data = "a\n" + "\n".join(integers + ["1.0", "2.0"] + integers) # Coercions should work without warnings. with tm.assert_produces_warning(None): > result = parser.read_csv(StringIO(data)) pandas\tests\io\parser\test_common.py:1148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <contextlib._GeneratorContextManager object at 0x0000016AA37A05C8> type = None, value = None, traceback = None def __exit__(self, type, value, traceback): if type is None: try: > next(self.gen) E AssertionError: Caused unexpected warning(s): [('ResourceWarning', ResourceWarning("unclosed <socket.socket fd=2972, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('10.1.0.4', 1650), raddr=('169.254.169.254', 80)>"), 'D:\\a\\1\\s\\pandas\\io\\parsers.py', 3007)] C:\Miniconda\envs\pandas-dev\lib\contextlib.py:119: AssertionError ``` ```bash all_parsers = <pandas.tests.io.parser.conftest.PythonParser object at 0x000001F32E4A2748> def test_warn_if_chunks_have_mismatched_type(all_parsers): warning_type = None parser = all_parsers integers = [str(i) for i in range(499999)] data = "a\n" + "\n".join(integers + ["a", "b"] + integers) # see gh-3866: if chunks are different types and can't # be coerced using numerical types, then issue warning. if parser.engine == "c" and parser.low_memory: warning_type = DtypeWarning with tm.assert_produces_warning(warning_type): > df = parser.read_csv(StringIO(data)) pandas\tests\io\parser\test_common.py:1167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <contextlib._GeneratorContextManager object at 0x000001F3076E7948> type = None, value = None, traceback = None def __exit__(self, type, value, traceback): if type is None: try: > next(self.gen) E AssertionError: Caused unexpected warning(s): [('ResourceWarning', ResourceWarning("unclosed <socket.socket fd=6620, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('10.1.0.4', 1656), raddr=('169.254.169.254', 80)>"), 'D:\\a\\1\\s\\pandas\\io\\parsers.py', 3007)] C:\Miniconda\envs\pandas-dev\lib\contextlib.py:119: AssertionError ``` Those two tests don't fail everytime. And they are skipped for now.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35660/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35660/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35661
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35661/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35661/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35661/events
https://github.com/pandas-dev/pandas/issues/35661
676,522,261
MDU6SXNzdWU2NzY1MjIyNjE=
35,661
CI: DeprecationWarning in `tests/io/json/test_json_table_schema.py` and `tests/io/json/test_pandas.py`
{ "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": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
open
false
null
[]
null
3
2020-08-11T01:59:02Z
2021-06-11T12:59:13Z
null
MEMBER
null
On the NumPy dev build. The following tests: ```bash FAILED pandas/tests/io/json/test_json_table_schema.py::TestTableOrient::test_to_json FAILED pandas/tests/io/json/test_json_table_schema.py::TestTableOrient::test_date_format_raises FAILED pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_datetime_tz FAILED pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc[ts0] FAILED pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc[ts1] FAILED pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc[ts2] FAILED pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc[tz_range0] FAILED pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc[tz_range1] FAILED pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc[tz_range2] ``` raise `DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.` I filtered this warning for now.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35661/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35661/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35662
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35662/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35662/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35662/events
https://github.com/pandas-dev/pandas/pull/35662
676,563,272
MDExOlB1bGxSZXF1ZXN0NDY1ODUwNTU1
35,662
CI: troubleshoot ResourceWarnings
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[]
closed
false
null
[]
null
1
2020-08-11T04:06:37Z
2020-08-12T18:01:36Z
2020-08-12T18:01:16Z
MEMBER
null
There's a file being left open somewhere, trying to track it down.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35662/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35662/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35662.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35662", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35662.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35662" }
https://api.github.com/repos/pandas-dev/pandas/issues/35663
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35663/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35663/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35663/events
https://github.com/pandas-dev/pandas/issues/35663
676,624,209
MDU6SXNzdWU2NzY2MjQyMDk=
35,663
BUG: Styler `cells_ids` fails on second render
{ "avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4", "events_url": "https://api.github.com/users/attack68/events{/privacy}", "followers_url": "https://api.github.com/users/attack68/followers", "following_url": "https://api.github.com/users/attack68/following{/other_user}", "gists_url": "https://api.github.com/users/attack68/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/attack68", "id": 24256554, "login": "attack68", "node_id": "MDQ6VXNlcjI0MjU2NTU0", "organizations_url": "https://api.github.com/users/attack68/orgs", "received_events_url": "https://api.github.com/users/attack68/received_events", "repos_url": "https://api.github.com/users/attack68/repos", "site_admin": false, "starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/attack68/subscriptions", "type": "User", "url": "https://api.github.com/users/attack68" }
[ { "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
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
0
2020-08-11T06:39:47Z
2020-08-21T17:04:45Z
2020-08-14T12:36:10Z
CONTRIBUTOR
null
issue #35588 addressed the issue of `cell_ids` failing. This bug reports a failure on second render(), due to `ctx` object, as a `defaultdict`, having a key inserted when it is queried, which then impacts the programming logic the second time it is run. The solution is to move the query within conditional a few lines above.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35663/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35663/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35664
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35664/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35664/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35664/events
https://github.com/pandas-dev/pandas/pull/35664
676,626,541
MDExOlB1bGxSZXF1ZXN0NDY1OTAzNjky
35,664
BUG: Styler cell_ids fails on multiple renders
{ "avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4", "events_url": "https://api.github.com/users/attack68/events{/privacy}", "followers_url": "https://api.github.com/users/attack68/followers", "following_url": "https://api.github.com/users/attack68/following{/other_user}", "gists_url": "https://api.github.com/users/attack68/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/attack68", "id": 24256554, "login": "attack68", "node_id": "MDQ6VXNlcjI0MjU2NTU0", "organizations_url": "https://api.github.com/users/attack68/orgs", "received_events_url": "https://api.github.com/users/attack68/received_events", "repos_url": "https://api.github.com/users/attack68/repos", "site_admin": false, "starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/attack68/subscriptions", "type": "User", "url": "https://api.github.com/users/attack68" }
[ { "color": "006b75", "default": false, "description": "conditional formatting using DataFrame.style", "id": 1728592794, "name": "Styler", "node_id": "MDU6TGFiZWwxNzI4NTkyNzk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
6
2020-08-11T06:44:45Z
2020-08-15T16:28:19Z
2020-08-14T12:36:10Z
CONTRIBUTOR
null
- [x] closes #35663 - [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/35664/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35664/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35664.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35664", "merged_at": "2020-08-14T12:36:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35664.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35664" }
https://api.github.com/repos/pandas-dev/pandas/issues/35665
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35665/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35665/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35665/events
https://github.com/pandas-dev/pandas/issues/35665
676,663,285
MDU6SXNzdWU2NzY2NjMyODU=
35,665
BUG: iterrows encounters OverflowError with str and datetime64[ns] columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/6635995?v=4", "events_url": "https://api.github.com/users/allentsouhuang/events{/privacy}", "followers_url": "https://api.github.com/users/allentsouhuang/followers", "following_url": "https://api.github.com/users/allentsouhuang/following{/other_user}", "gists_url": "https://api.github.com/users/allentsouhuang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/allentsouhuang", "id": 6635995, "login": "allentsouhuang", "node_id": "MDQ6VXNlcjY2MzU5OTU=", "organizations_url": "https://api.github.com/users/allentsouhuang/orgs", "received_events_url": "https://api.github.com/users/allentsouhuang/received_events", "repos_url": "https://api.github.com/users/allentsouhuang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/allentsouhuang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/allentsouhuang/subscriptions", "type": "User", "url": "https://api.github.com/users/allentsouhuang" }
[ { "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": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" }, { "color": "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" } ]
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" }
5
2020-08-11T07:53:14Z
2021-08-09T11:44:18Z
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. --- **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 foo = pd.DataFrame({'some_string': ['612092d7-071f-467e832d-dd53e0f2b590-0006'], 'time': [pd.NaT]}) for _, row in foo.iterrows(): pass ``` #### Problem description The error `OverflowError: Python int too large to convert to C long`. I would expect the snippet to iterate just fine without any issue. #### Expected Output The snippet is not expected to show any output. #### Output of ``pd.show_versions()`` ``` INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.8.5.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 : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2 setuptools : 49.2.0.post20200712 Cython : 0.29.21 pytest : 6.0.1 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.17.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.5.2 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None ``` <details> ``` --------------------------------------------------------------------------- OverflowError Traceback (most recent call last) <ipython-input-7-d71373909082> in <module> 1 foo = pd.DataFrame({'some_string': ['612092d7-071f-467e832d-dd53e0f2b590-0006'], 'time': [pd.NaT]}) ----> 2 for _, row in foo.iterrows(): 3 pass ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/frame.py in iterrows(self) 1011 klass = self._constructor_sliced 1012 for k, v in zip(self.index, self.values): -> 1013 s = klass(v, index=columns, name=k) 1014 yield k, s 1015 ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/series.py in __init__(self, data, index, dtype, name, copy, fastpath) 325 data = data.copy() 326 else: --> 327 data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True) 328 329 data = SingleBlockManager.from_array(data, index) ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/construction.py in sanitize_array(data, index, dtype, copy, raise_cast_failure) 425 else: 426 # we will try to copy be-definition here --> 427 subarr = _try_cast(data, dtype, copy, raise_cast_failure) 428 429 elif isinstance(data, ABCExtensionArray): ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/construction.py in _try_cast(arr, dtype, copy, raise_cast_failure) 551 subarr = arr 552 else: --> 553 subarr = maybe_cast_to_datetime(arr, dtype) 554 555 # Take care in creating object arrays (but iterators are not ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/dtypes/cast.py in maybe_cast_to_datetime(value, dtype, errors) 1430 ) 1431 ): -> 1432 value = maybe_infer_to_datetimelike(value) 1433 1434 return value ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/dtypes/cast.py in maybe_infer_to_datetimelike(value, convert_dates) 1290 # try timedelta first to avoid spurious datetime conversions 1291 # e.g. '00:00:01' is a timedelta but technically is also a datetime -> 1292 value = try_timedelta(v) 1293 if lib.infer_dtype(value, skipna=False) in ["mixed"]: 1294 # cannot skip missing values, as NaT implies that the string ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/dtypes/cast.py in try_timedelta(v) 1266 1267 try: -> 1268 td_values = to_timedelta(v) 1269 except ValueError: 1270 return v.reshape(shape) ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/tools/timedeltas.py in to_timedelta(arg, unit, errors) 110 arg = arg.item() 111 elif is_list_like(arg) and getattr(arg, "ndim", 1) == 1: --> 112 return _convert_listlike(arg, unit=unit, errors=errors) 113 elif getattr(arg, "ndim", 1) > 1: 114 raise TypeError( ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/tools/timedeltas.py in _convert_listlike(arg, unit, errors, name) 149 150 try: --> 151 value = sequence_to_td64ns(arg, unit=unit, errors=errors, copy=False)[0] 152 except ValueError: 153 if errors == "ignore": ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/arrays/timedeltas.py in sequence_to_td64ns(data, copy, unit, errors) 926 if is_object_dtype(data.dtype) or is_string_dtype(data.dtype): 927 # no need to make a copy, need to convert if string-dtyped --> 928 data = objects_to_td64ns(data, unit=unit, errors=errors) 929 copy = False 930 ~/env/miniconda3/envs/data/lib/python3.8/site-packages/pandas/core/arrays/timedeltas.py in objects_to_td64ns(data, unit, errors) 1036 values = np.array(data, dtype=np.object_, copy=False) 1037 -> 1038 result = array_to_timedelta64(values, unit=unit, errors=errors) 1039 return result.view("timedelta64[ns]") 1040 pandas/_libs/tslibs/timedeltas.pyx in pandas._libs.tslibs.timedeltas.array_to_timedelta64() pandas/_libs/tslibs/timedeltas.pyx in pandas._libs.tslibs.timedeltas.parse_timedelta_string() pandas/_libs/tslibs/timedeltas.pyx in pandas._libs.tslibs.timedeltas.timedelta_from_spec() pandas/_libs/tslibs/conversion.pyx in pandas._libs.tslibs.conversion.cast_from_unit() OverflowError: Python int too large to convert to C long ``` </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/35665/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35665/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35666
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35666/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35666/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35666/events
https://github.com/pandas-dev/pandas/pull/35666
676,693,065
MDExOlB1bGxSZXF1ZXN0NDY1OTU4NzYy
35,666
Backport PR #35633 on branch 1.1.x (BUG: DataFrame.apply with func altering row in-place)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
1
2020-08-11T08:40:57Z
2020-08-11T09:41:03Z
2020-08-11T09:41:03Z
NONE
null
Backport PR #35633: BUG: DataFrame.apply with func altering row in-place
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35666/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35666/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35666.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35666", "merged_at": "2020-08-11T09:41:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35666.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35666" }
https://api.github.com/repos/pandas-dev/pandas/issues/35667
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35667/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35667/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35667/events
https://github.com/pandas-dev/pandas/issues/35667
676,717,359
MDU6SXNzdWU2NzY3MTczNTk=
35,667
DOC: document dropna kwarg of pd.factorize
{ "avatar_url": "https://avatars.githubusercontent.com/u/13617985?v=4", "events_url": "https://api.github.com/users/FlorianWetschoreck/events{/privacy}", "followers_url": "https://api.github.com/users/FlorianWetschoreck/followers", "following_url": "https://api.github.com/users/FlorianWetschoreck/following{/other_user}", "gists_url": "https://api.github.com/users/FlorianWetschoreck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/FlorianWetschoreck", "id": 13617985, "login": "FlorianWetschoreck", "node_id": "MDQ6VXNlcjEzNjE3OTg1", "organizations_url": "https://api.github.com/users/FlorianWetschoreck/orgs", "received_events_url": "https://api.github.com/users/FlorianWetschoreck/received_events", "repos_url": "https://api.github.com/users/FlorianWetschoreck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/FlorianWetschoreck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FlorianWetschoreck/subscriptions", "type": "User", "url": "https://api.github.com/users/FlorianWetschoreck" }
[ { "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-09-09T09:07:44Z", "closed_issues": 94, "created_at": "2020-08-17T19:11:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-08T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/76", "id": 5781056, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels", "node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==", "number": 76, "open_issues": 0, "state": "closed", "title": "1.1.2", "updated_at": "2020-10-02T11:57:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76" }
11
2020-08-11T09:18:43Z
2020-09-02T15:00:50Z
2020-09-02T15:00:50Z
NONE
null
#### Location of the documentation https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.factorize.html #### Documentation problem The docs show the existence of a kwarg "dropna" which does not exist #### Suggested fix for documentation Delete the kwarg "dropna"
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35667/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35667/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35668
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35668/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35668/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35668/events
https://github.com/pandas-dev/pandas/pull/35668
676,813,966
MDExOlB1bGxSZXF1ZXN0NDY2MDU1NzE4
35,668
ENH: Enable short_caption in to_latex
{ "avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4", "events_url": "https://api.github.com/users/ivanovmg/events{/privacy}", "followers_url": "https://api.github.com/users/ivanovmg/followers", "following_url": "https://api.github.com/users/ivanovmg/following{/other_user}", "gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ivanovmg", "id": 41443370, "login": "ivanovmg", "node_id": "MDQ6VXNlcjQxNDQzMzcw", "organizations_url": "https://api.github.com/users/ivanovmg/orgs", "received_events_url": "https://api.github.com/users/ivanovmg/received_events", "repos_url": "https://api.github.com/users/ivanovmg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions", "type": "User", "url": "https://api.github.com/users/ivanovmg" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "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" }, { "color": "006b75", "default": false, "description": "to_latex", "id": 251382258, "name": "IO LaTeX", "node_id": "MDU6TGFiZWwyNTEzODIyNTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX" } ]
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" }
10
2020-08-11T11:51:27Z
2020-11-06T15:34:10Z
2020-10-17T16:23:33Z
MEMBER
null
- [x] closes #36267 - [x] tests added / passed - [x] passes black pandas - [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff - [x] whatsnew entry Enable short_caption for ``DataFrame.to_latex`` by expanding the meaning of kwarg ``caption``. Optionally ``caption`` can be a ``Tuple[str, str] = full_caption, short_caption``. The final caption macro would look like this: ``` \caption[short_caption]{full_caption} ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35668/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35668/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35668.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35668", "merged_at": "2020-10-17T16:23:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35668.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35668" }
https://api.github.com/repos/pandas-dev/pandas/issues/35669
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35669/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35669/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35669/events
https://github.com/pandas-dev/pandas/issues/35669
676,925,351
MDU6SXNzdWU2NzY5MjUzNTE=
35,669
BUG: Groupby - apply - reset_index on a one row dataframe and with one categorical grouping column does not return the categorical column
{ "avatar_url": "https://avatars.githubusercontent.com/u/3613657?v=4", "events_url": "https://api.github.com/users/kevinadda/events{/privacy}", "followers_url": "https://api.github.com/users/kevinadda/followers", "following_url": "https://api.github.com/users/kevinadda/following{/other_user}", "gists_url": "https://api.github.com/users/kevinadda/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kevinadda", "id": 3613657, "login": "kevinadda", "node_id": "MDQ6VXNlcjM2MTM2NTc=", "organizations_url": "https://api.github.com/users/kevinadda/orgs", "received_events_url": "https://api.github.com/users/kevinadda/received_events", "repos_url": "https://api.github.com/users/kevinadda/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kevinadda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kevinadda/subscriptions", "type": "User", "url": "https://api.github.com/users/kevinadda" }
[ { "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": "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" } ]
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-08-11T14:29:03Z
2020-08-22T16:47:12Z
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. --- **Note**: Please read [this guide](as) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd def apply_func(group): return pd.DataFrame([{'cnt': group.b.sum()}]) def func(df): return df.groupby(['a']).apply(apply_func).reset_index(level=0) # OK : Apply the method to a one row dataframe with no category types func(pd.DataFrame([{'a': 1, 'b': 2}])) # As expected, output has column 'a' # KO : Apply method to a one row dataframe where grouping column is of category type df = pd.DataFrame([{'a': 1, 'b': 2}]) df.a = df.a.astype('category') func(df) # I expected column 'a' instead of column 'index' ``` #### Problem description As soon as the input dataframe is not empty, the method `func` should return a dataframe with column 'a'. This seems to happen in all the cases, except if the dataframe is only one row and the grouping column is categorical. *NB: this does not seem to happen when not using `apply` * #### Expected Output As shown, the result we expect for both method calls is the one we obtain when grouping column is not categorical: ```python # a cnt # 0 1 2 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.6.8.final.0 python-bits : 64 OS : Darwin OS-release : 17.7.0 Version : Darwin Kernel Version 17.7.0: Thu Jun 18 21:21:34 PDT 2020; root:xnu-4570.71.82.5~1/RELEASE_X86_64 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.1.0 numpy : 1.17.3 pytz : 2019.3 dateutil : 2.8.0 pip : 20.2 setuptools : 40.6.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 : 7.9.0 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 2.2.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.0.0 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/35669/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35669/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35670
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35670/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35670/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35670/events
https://github.com/pandas-dev/pandas/issues/35670
676,992,045
MDU6SXNzdWU2NzY5OTIwNDU=
35,670
BUG: surprising and possibly erroneous behavior of GroupBy.apply with an indexed series (index winds up duplicated)
{ "avatar_url": "https://avatars.githubusercontent.com/u/185075?v=4", "events_url": "https://api.github.com/users/aecay/events{/privacy}", "followers_url": "https://api.github.com/users/aecay/followers", "following_url": "https://api.github.com/users/aecay/following{/other_user}", "gists_url": "https://api.github.com/users/aecay/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aecay", "id": 185075, "login": "aecay", "node_id": "MDQ6VXNlcjE4NTA3NQ==", "organizations_url": "https://api.github.com/users/aecay/orgs", "received_events_url": "https://api.github.com/users/aecay/received_events", "repos_url": "https://api.github.com/users/aecay/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aecay/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aecay/subscriptions", "type": "User", "url": "https://api.github.com/users/aecay" }
[ { "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": "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" }, { "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-08-11T15:51:35Z
2020-09-04T18:04:10Z
2020-09-04T18:04:10Z
NONE
null
- [x] I have checked that this issue has not already been reported. - I can't find anything in the bug tracker that matches the symptoms I'm reporting here, although it's a bit difficult to search (I'm not totally sure how to describe it) - [x] I have confirmed this bug exists on the latest version of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd data = [{"label": l, "x" : x, "y": x + 1} for l in ("foo", "bar") for x in range(5)] df = pd.DataFrame(data) df = df.set_index(["label", "x"]) series = df["y"] series2 = series.groupby(["label"]).apply(lambda s: s[2:]) print(series2.index) # Output: MultiIndex([('bar', 'bar', 2), ('bar', 'bar', 3), ('bar', 'bar', 4), ('foo', 'foo', 2), ('foo', 'foo', 3), ('foo', 'foo', 4)], names=['label', 'label', 'x']) ``` #### Problem description The "label" field is duplicated in the index of the result #### Expected Output I expect the index after the apply to be the same as before, ie to only contain "label" once #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.8.0.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-42-generic Version : #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 19.3.1 setuptools : 42.0.1 Cython : 0.29.15 pytest : 5.4.0 hypothesis : None sphinx : 2.2.1 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.2 html5lib : None pymysql : None psycopg2 : 2.8.4 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.1 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.5.2 sqlalchemy : None tables : None tabulate : 0.8.6 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/35670/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35670/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35671
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35671/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35671/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35671/events
https://github.com/pandas-dev/pandas/issues/35671
677,007,140
MDU6SXNzdWU2NzcwMDcxNDA=
35,671
df[col].astype('interval') no longer works for interval string
{ "avatar_url": "https://avatars.githubusercontent.com/u/49573390?v=4", "events_url": "https://api.github.com/users/xiaofanyang002/events{/privacy}", "followers_url": "https://api.github.com/users/xiaofanyang002/followers", "following_url": "https://api.github.com/users/xiaofanyang002/following{/other_user}", "gists_url": "https://api.github.com/users/xiaofanyang002/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xiaofanyang002", "id": 49573390, "login": "xiaofanyang002", "node_id": "MDQ6VXNlcjQ5NTczMzkw", "organizations_url": "https://api.github.com/users/xiaofanyang002/orgs", "received_events_url": "https://api.github.com/users/xiaofanyang002/received_events", "repos_url": "https://api.github.com/users/xiaofanyang002/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xiaofanyang002/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xiaofanyang002/subscriptions", "type": "User", "url": "https://api.github.com/users/xiaofanyang002" }
[]
closed
false
null
[]
null
4
2020-08-11T16:11:17Z
2020-08-15T15:33:40Z
2020-08-15T15:33:40Z
NONE
null
We used the below code to roundtrip pd.Interval values in 0.25.3, but it throws TypeError in 1.0.5: ``` df = pd.DataFrame(data={'i': [pd.Interval(0, 2, closed='left')]}) df['i'] = df['i'].astype(str) df['i'].astype('interval') # throws: TypeError: type <class 'str'> with value [0, 2) is not an interval ``` We didn't use to_json/read_json because it is also not parsing pd.Interval back properly: ``` df = pd.DataFrame(data={'i': [pd.Interval(0, 2, closed='left')]}) value_json = df.to_json(orient='values') pd.read_json(value_json, orient='values').values # returns: array([[{'closed': 'left', 'closed_right': False, 'left': 0, 'mid': 1.0, 'open_right': True, 'right': 2}]], dtype=object) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35671/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35671/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35672
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35672/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35672/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35672/events
https://github.com/pandas-dev/pandas/pull/35672
677,015,595
MDExOlB1bGxSZXF1ZXN0NDY2MjE0MTgy
35,672
CI/TST: change skip to xfail #35660
{ "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": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-11T16:22:57Z
2020-08-19T17:37:41Z
2020-08-11T21:57:57Z
MEMBER
null
Followup of #35660
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35672/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35672/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35672.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35672", "merged_at": "2020-08-11T21:57:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35672.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35672" }
https://api.github.com/repos/pandas-dev/pandas/issues/35673
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35673/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35673/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35673/events
https://github.com/pandas-dev/pandas/pull/35673
677,016,637
MDExOlB1bGxSZXF1ZXN0NDY2MjE1MDAw
35,673
REGR: Dataframe.reset_index() on empty DataFrame with MI and datatime level
{ "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": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
2
2020-08-11T16:24:25Z
2020-08-14T10:23:32Z
2020-08-14T01:50:52Z
MEMBER
null
- [ ] closes #35606 - [ ] closes #35657 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+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/35673/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35673/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35673.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35673", "merged_at": "2020-08-14T01:50:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35673.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35673" }
https://api.github.com/repos/pandas-dev/pandas/issues/35674
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35674/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35674/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35674/events
https://github.com/pandas-dev/pandas/pull/35674
677,017,594
MDExOlB1bGxSZXF1ZXN0NDY2MjE1NzYy
35,674
Avoid redirect
{ "avatar_url": "https://avatars.githubusercontent.com/u/424822?v=4", "events_url": "https://api.github.com/users/chankeypathak/events{/privacy}", "followers_url": "https://api.github.com/users/chankeypathak/followers", "following_url": "https://api.github.com/users/chankeypathak/following{/other_user}", "gists_url": "https://api.github.com/users/chankeypathak/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chankeypathak", "id": 424822, "login": "chankeypathak", "node_id": "MDQ6VXNlcjQyNDgyMg==", "organizations_url": "https://api.github.com/users/chankeypathak/orgs", "received_events_url": "https://api.github.com/users/chankeypathak/received_events", "repos_url": "https://api.github.com/users/chankeypathak/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chankeypathak/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chankeypathak/subscriptions", "type": "User", "url": "https://api.github.com/users/chankeypathak" }
[ { "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" }
6
2020-08-11T16:25:43Z
2020-08-22T03:08:29Z
2020-08-22T03:08:19Z
CONTRIBUTOR
null
A minor change to avoid 301 redirect on link.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35674/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35674/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35674.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35674", "merged_at": "2020-08-22T03:08:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35674.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35674" }
https://api.github.com/repos/pandas-dev/pandas/issues/35675
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35675/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35675/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35675/events
https://github.com/pandas-dev/pandas/pull/35675
677,066,221
MDExOlB1bGxSZXF1ZXN0NDY2MjUzMzIw
35,675
Fix cython3
{ "avatar_url": "https://avatars.githubusercontent.com/u/199813?v=4", "events_url": "https://api.github.com/users/tacaswell/events{/privacy}", "followers_url": "https://api.github.com/users/tacaswell/followers", "following_url": "https://api.github.com/users/tacaswell/following{/other_user}", "gists_url": "https://api.github.com/users/tacaswell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tacaswell", "id": 199813, "login": "tacaswell", "node_id": "MDQ6VXNlcjE5OTgxMw==", "organizations_url": "https://api.github.com/users/tacaswell/orgs", "received_events_url": "https://api.github.com/users/tacaswell/received_events", "repos_url": "https://api.github.com/users/tacaswell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tacaswell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tacaswell/subscriptions", "type": "User", "url": "https://api.github.com/users/tacaswell" }
[]
closed
false
null
[]
null
4
2020-08-11T17:40:20Z
2020-09-09T22:57:57Z
2020-09-09T22:57:26Z
CONTRIBUTOR
null
I'm not sure if this actually works, but it gets cython to compile with py310. - [x] closes #34014 - [ ] 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/35675/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35675/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35675.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35675", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35675.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35675" }
https://api.github.com/repos/pandas-dev/pandas/issues/35676
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35676/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35676/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35676/events
https://github.com/pandas-dev/pandas/pull/35676
677,103,674
MDExOlB1bGxSZXF1ZXN0NDY2MjgyMTQw
35,676
PERF: make RangeIndex iterate over ._range
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "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-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-08-11T18:35:41Z
2020-08-13T18:27:18Z
2020-08-13T18:06:36Z
CONTRIBUTOR
null
Minor performance issue. By adding a custom ``__iter__`` method to ``RangeIndex``, we partly avoid needing to create/cache the expensive ``_data`` attribute and partly it's just faster to iterate over a ``range`` than a ``ndarray``: ```python >>> idx = pd.RangeIndex(100_000) >>> %%timeit ... for _ in idx: ... pass 10.9 ms ± 74.7 µs per loop # master 6.11 ms ± 48.8 µs per loop # this PR >>> "_data" in idx._cache True # master False # this PR ``` xref #35432, #26565.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35676/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35676/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35676.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35676", "merged_at": "2020-08-13T18:06:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35676.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35676" }
https://api.github.com/repos/pandas-dev/pandas/issues/35677
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35677/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35677/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35677/events
https://github.com/pandas-dev/pandas/issues/35677
677,118,946
MDU6SXNzdWU2NzcxMTg5NDY=
35,677
to_csv to Google Cloud Storage ignores compression
{ "avatar_url": "https://avatars.githubusercontent.com/u/8209940?v=4", "events_url": "https://api.github.com/users/VelizarVESSELINOV/events{/privacy}", "followers_url": "https://api.github.com/users/VelizarVESSELINOV/followers", "following_url": "https://api.github.com/users/VelizarVESSELINOV/following{/other_user}", "gists_url": "https://api.github.com/users/VelizarVESSELINOV/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/VelizarVESSELINOV", "id": 8209940, "login": "VelizarVESSELINOV", "node_id": "MDQ6VXNlcjgyMDk5NDA=", "organizations_url": "https://api.github.com/users/VelizarVESSELINOV/orgs", "received_events_url": "https://api.github.com/users/VelizarVESSELINOV/received_events", "repos_url": "https://api.github.com/users/VelizarVESSELINOV/repos", "site_admin": false, "starred_url": "https://api.github.com/users/VelizarVESSELINOV/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/VelizarVESSELINOV/subscriptions", "type": "User", "url": "https://api.github.com/users/VelizarVESSELINOV" }
[ { "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" }
9
2020-08-11T18:57:54Z
2020-09-03T03:06:18Z
2020-09-03T03:06:18Z
NONE
null
#### Code Sample, a copy-pastable example ```python dtf.to_csv('gs://mybucket/test1.csv.gz') dtf.to_csv('gs://mybucket/test2.csv.gz', compression='gzip') ``` #### Problem description Compression is not working for a file located on gs:// #### Expected Output Working as a local version. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.8.1.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 numpy : 1.18.5 pytz : 2019.3 dateutil : 2.8.1 pip : 20.2.1 setuptools : 41.2.0 Cython : None pytest : 5.4.3 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.2 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.13.0 pandas_datareader: 0.9.0 bs4 : None bottleneck : None fsspec : 0.8.0 fastparquet : None gcsfs : 0.6.2 matplotlib : 3.2.2 numexpr : None odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 0.7.10 tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35677/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35677/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35678
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35678/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35678/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35678/events
https://github.com/pandas-dev/pandas/issues/35678
677,178,440
MDU6SXNzdWU2NzcxNzg0NDA=
35,678
August 2020 Developer Meeting (August 12th)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "0bbec4", "default": false, "description": "Community topics (meetings, etc.)", "id": 2187005593, "name": "Community", "node_id": "MDU6TGFiZWwyMTg3MDA1NTkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Community" } ]
closed
false
null
[]
null
1
2020-08-11T20:33:00Z
2020-08-14T07:30:17Z
2020-08-14T07:30:17Z
MEMBER
null
The monthly dev meeting is Wednesday August 12th, at 18:00 UTC. Our calendar is at https://pandas.pydata.org/docs/development/meeting.html#calendar to check your local time. Video Call: https://zoom.us/j/942410248 Minutes: https://docs.google.com/document/u/1/d/1tGbTiYORHiSPgVMXawiweGJlBw5dOkVJLY-licoBmBU/edit?ouid=102771015311436394588&usp=docs_home&ths=true Please add items you'd like to see discussed to the agenda. All are welcome to attend. cc @pandas-dev/pandas-core @pandas-dev/pandas-triage
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35678/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35678/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35679
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35679/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35679/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35679/events
https://github.com/pandas-dev/pandas/issues/35679
677,208,170
MDU6SXNzdWU2NzcyMDgxNzA=
35,679
BUG: DataFrame.to_pickle(bytes_io_buffer) is automatically closed internally
{ "avatar_url": "https://avatars.githubusercontent.com/u/2804731?v=4", "events_url": "https://api.github.com/users/le1nux/events{/privacy}", "followers_url": "https://api.github.com/users/le1nux/followers", "following_url": "https://api.github.com/users/le1nux/following{/other_user}", "gists_url": "https://api.github.com/users/le1nux/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/le1nux", "id": 2804731, "login": "le1nux", "node_id": "MDQ6VXNlcjI4MDQ3MzE=", "organizations_url": "https://api.github.com/users/le1nux/orgs", "received_events_url": "https://api.github.com/users/le1nux/received_events", "repos_url": "https://api.github.com/users/le1nux/repos", "site_admin": false, "starred_url": "https://api.github.com/users/le1nux/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/le1nux/subscriptions", "type": "User", "url": "https://api.github.com/users/le1nux" }
[ { "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": "6c1cdb", "default": false, "description": "read_pickle, to_pickle", "id": 1625435109, "name": "IO Pickle", "node_id": "MDU6TGFiZWwxNjI1NDM1MTA5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle" } ]
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-08-11T21:25:40Z
2020-08-12T22:23:26Z
2020-08-12T22:23:26Z
NONE
null
#### Code Sample ```python import pandas as pd import io # create example DataFrame d = {'col1': [1, 2], 'col2': [3, 4]} df = pd.DataFrame(data=d) # load dataframe into bytesIO buffer = io.BytesIO() df.to_pickle(path=buffer) # make sure buffer is still open assert not buffer.closed ``` #### Problem description Instead of dumping the binarized DataFrame on disk as e.g., by passing a file path or a file handle, I want to store its byte stream into an in memory bytesIO buffer, as shown above. Unfortunately, inside of `to_pickle` the bytesIO stream is already closed, thus rendering it useless. As far as I know the Python io API does not let you reopen a stream once it was closed. #### Expected Output In my opinion it makes more sense to leave it to the user, when to close the buffer, e.g., by using a context manager: ```python with io.BytesIO() as f: df.to_pickle(path=buffer) # do something with f ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35679/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35679/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35680
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35680/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35680/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35680/events
https://github.com/pandas-dev/pandas/issues/35680
677,260,009
MDU6SXNzdWU2NzcyNjAwMDk=
35,680
BUG: Different results from Series.replace with compiled regex
{ "avatar_url": "https://avatars.githubusercontent.com/u/12817527?v=4", "events_url": "https://api.github.com/users/pLeBlanc93/events{/privacy}", "followers_url": "https://api.github.com/users/pLeBlanc93/followers", "following_url": "https://api.github.com/users/pLeBlanc93/following{/other_user}", "gists_url": "https://api.github.com/users/pLeBlanc93/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pLeBlanc93", "id": 12817527, "login": "pLeBlanc93", "node_id": "MDQ6VXNlcjEyODE3NTI3", "organizations_url": "https://api.github.com/users/pLeBlanc93/orgs", "received_events_url": "https://api.github.com/users/pLeBlanc93/received_events", "repos_url": "https://api.github.com/users/pLeBlanc93/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pLeBlanc93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pLeBlanc93/subscriptions", "type": "User", "url": "https://api.github.com/users/pLeBlanc93" }
[ { "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": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" }, { "color": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
2
2020-08-11T23:18:28Z
2020-08-17T11:23:54Z
2020-08-17T10:59:09Z
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. --- **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 # Your code here import re import pandas as pd print(pd.__version__) s = pd.Series(['a', 'aa', 'b']) regex = {'^a$': 1, '^b$': 2, '^aa$': 3} print(s.replace(regex, regex=True)) print(s.replace({re.compile(k): v for k,v in regex.items()}, regex=True)) ``` #### Problem description These two `.replace` calls are equivalent on pandas `1.0.5`. They are different on `1.1.0` and `master`. ``` 1.2.0.dev0+79.g3c87b019b 0 1 1 3 2 2 dtype: int64 0 a 1 aa 2 b dtype: object 1.0.5 0 1 1 3 2 2 dtype: int64 0 1 1 3 2 2 dtype: int64 ``` #### Expected Output #### 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 63 Stepping 2, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.5 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.1 setuptools : 49.3.1.post20200810 Cython : 0.29.21 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/35680/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35680/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35681
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35681/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35681/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35681/events
https://github.com/pandas-dev/pandas/pull/35681
677,311,281
MDExOlB1bGxSZXF1ZXN0NDY2NDQ4NzU4
35,681
BUG/ENH: compression for google cloud storage in to_csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4", "events_url": "https://api.github.com/users/twoertwein/events{/privacy}", "followers_url": "https://api.github.com/users/twoertwein/followers", "following_url": "https://api.github.com/users/twoertwein/following{/other_user}", "gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/twoertwein", "id": 6618166, "login": "twoertwein", "node_id": "MDQ6VXNlcjY2MTgxNjY=", "organizations_url": "https://api.github.com/users/twoertwein/orgs", "received_events_url": "https://api.github.com/users/twoertwein/received_events", "repos_url": "https://api.github.com/users/twoertwein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions", "type": "User", "url": "https://api.github.com/users/twoertwein" }
[ { "color": "0052cc", "default": false, "description": "pandas-gbq compatability", "id": 57351315, "name": "IO Google", "node_id": "MDU6TGFiZWw1NzM1MTMxNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google" }, { "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-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-08-12T01:38:04Z
2020-09-03T15:56:27Z
2020-09-03T03:06:19Z
CONTRIBUTOR
null
- [x] closes #35677, closes #26124, and closes #32392 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry By inferring the compression before converting the path to a file object `df.to_csv("gs://mybucket/test2.csv.gz", compression="infer", mode="wb")` works. By wrapping fsspec file-objects in a `TextIOWrapper` `df.to_csv("gs://mybucket/test2.csv", mode="wb")` works as well. Path-like objects that are internally converted to file-like objects (in `get_filepath_or_buffer`) are now always opened in binary mode (unless text mode is explicitly requested) and the potentially changed mode is returned (no need to specify `mode="wb"` for google cloud files). As long as the google file is opened in binary mode (which is now always the case), we also honor the requested `encoding`. This PR also fixes Zip compression for file objects not having a name.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35681/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35681/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35681.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35681", "merged_at": "2020-09-03T03:06:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35681.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35681" }
https://api.github.com/repos/pandas-dev/pandas/issues/35682
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35682/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35682/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35682/events
https://github.com/pandas-dev/pandas/issues/35682
677,363,347
MDU6SXNzdWU2NzczNjMzNDc=
35,682
QST: Such a behavior of DataFrameGroupBy.cumcount() is intended ??
{ "avatar_url": "https://avatars.githubusercontent.com/u/44108233?v=4", "events_url": "https://api.github.com/users/itholic/events{/privacy}", "followers_url": "https://api.github.com/users/itholic/followers", "following_url": "https://api.github.com/users/itholic/following{/other_user}", "gists_url": "https://api.github.com/users/itholic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/itholic", "id": 44108233, "login": "itholic", "node_id": "MDQ6VXNlcjQ0MTA4MjMz", "organizations_url": "https://api.github.com/users/itholic/orgs", "received_events_url": "https://api.github.com/users/itholic/received_events", "repos_url": "https://api.github.com/users/itholic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/itholic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/itholic/subscriptions", "type": "User", "url": "https://api.github.com/users/itholic" }
[ { "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-08-12T03:58:20Z
2020-08-17T14:54:06Z
2020-08-13T07:56:46Z
NONE
null
#### Question about pandas Let's say we have a `DataFrame` named by `pdf` like the below. ```python >>> pdf = pd.DataFrame([['a'], ['a'], ['a'], ['b'], ['b'], ['a']], columns=list('A')) >>> pdf A 0 a 1 a 2 a 3 b 4 b 5 a ``` For above `pdf`, `GroupBy.cum~` functions seems not work, but raise `DataError` ```python # GroupBy.cummax >>> pdf.groupby("A").cummax() Traceback (most recent call last): ... pandas.core.base.DataError: No numeric types to aggregate # GroupBy.cummin >>> pdf.groupby("A").cummin() Traceback (most recent call last): ... pandas.core.base.DataError: No numeric types to aggregate # GroupBy.cumprod >>> pdf.groupby("A").cumprod() Traceback (most recent call last): ... pandas.core.base.DataError: No numeric types to aggregate # GroupBy.cumsum >>> pdf.groupby("A").cumsum() Traceback (most recent call last): ... pandas.core.base.DataError: No numeric types to aggregate ``` And I thought that `GroupBy.cumcount()` also wouldn't work, but It's actually working like the below. ```python >>> pdf.groupby("A").cumcount() 0 0 1 1 2 2 3 0 4 1 5 3 dtype: int64 ``` Would someone let me know if Is it intended or unexpected behavior ? Thanks.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35682/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35682/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35683
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35683/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35683/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35683/events
https://github.com/pandas-dev/pandas/issues/35683
677,367,475
MDU6SXNzdWU2NzczNjc0NzU=
35,683
BUG: DataFrame.apply returns inconsistent index depending on applied function's return type
{ "avatar_url": "https://avatars.githubusercontent.com/u/11540050?v=4", "events_url": "https://api.github.com/users/BobbyBlue42/events{/privacy}", "followers_url": "https://api.github.com/users/BobbyBlue42/followers", "following_url": "https://api.github.com/users/BobbyBlue42/following{/other_user}", "gists_url": "https://api.github.com/users/BobbyBlue42/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BobbyBlue42", "id": 11540050, "login": "BobbyBlue42", "node_id": "MDQ6VXNlcjExNTQwMDUw", "organizations_url": "https://api.github.com/users/BobbyBlue42/orgs", "received_events_url": "https://api.github.com/users/BobbyBlue42/received_events", "repos_url": "https://api.github.com/users/BobbyBlue42/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BobbyBlue42/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BobbyBlue42/subscriptions", "type": "User", "url": "https://api.github.com/users/BobbyBlue42" }
[ { "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": "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" }, { "color": "370f77", "default": false, "description": "DataFrame data structure", "id": 1049312478, "name": "DataFrame", "node_id": "MDU6TGFiZWwxMDQ5MzEyNDc4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/DataFrame" }, { "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
[]
{ "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" }
12
2020-08-12T04:10:24Z
2020-12-20T11:09:06Z
2020-12-20T11:09:06Z
NONE
null
- [x] I have checked that this issue has not already been reported. - Possibly related to [this issue](https://github.com/pandas-dev/pandas/issues/35670), but from what I can see, it's not quite the same thing (might be different symptoms of the same problem) - [x] I have confirmed this bug exists on the latest version of pandas. --- #### Code Sample ```python import pandas as pd def func(col, _type): return _type() df = pd.DataFrame([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]], columns=['a', 'b']) for _type in [int, bool, float, str, list, tuple, dict, set]: type_lambda = lambda col: func(col, _type) print(f'Returning values of type {_type}:', df.apply(type_lambda).index) ``` With pandas 1.1.0, this outputs: ``` Returning values of type <class 'int'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'bool'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'float'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'str'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'list'>: RangeIndex(start=0, stop=0, step=1) Returning values of type <class 'tuple'>: RangeIndex(start=0, stop=0, step=1) Returning values of type <class 'dict'>: Int64Index([0, 1], dtype='int64') Traceback (most recent call last): File "test.py", line 12, in <module> print(f'Returning values of type {_type}:', df.apply(type_lambda).index) File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/frame.py", line 7541, in apply return op.get_result() File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/apply.py", line 180, in get_result return self.apply_standard() File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/apply.py", line 258, in apply_standard return self.wrap_results(results, res_index) File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/apply.py", line 299, in wrap_results return self.wrap_results_for_axis(results, res_index) File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/apply.py", line 352, in wrap_results_for_axis result = self.obj._constructor(data=results) File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/frame.py", line 467, in __init__ mgr = init_dict(data, index, columns, dtype=dtype) File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 283, in init_dict return arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype) File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 83, in arrays_to_mgr arrays = _homogenize(arrays, index, dtype) File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 352, in _homogenize val, index, dtype=dtype, copy=False, raise_cast_failure=False File "/home/louis/venvs/test/lib/python3.7/site-packages/pandas/core/construction.py", line 452, in sanitize_array raise TypeError("Set type is unordered") TypeError: Set type is unordered ``` #### Problem description As shown above, when different data types are turned by the applied function, the index of the result is changed. From what I have seen, this is neither documented behaviour, nor is it consistent with itself. Additionally, in previous versions of pandas, `apply` worked differently, as shown below. #### Expected Output This is the output when running with pandas 1.0.5 and pandas 1.0.4, and is what I would expect: ``` Returning values of type <class 'int'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'bool'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'float'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'str'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'list'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'tuple'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'dict'>: Index(['a', 'b'], dtype='object') Returning values of type <class 'set'>: Index(['a', 'b'], dtype='object') ``` #### Output of ``pd.show_versions()`` Environment with pandas 1.1.0: <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.7.5.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-42-generic Version : #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_NZ.UTF-8 LOCALE : en_NZ.UTF-8 pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.1 setuptools : 39.0.1 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 fsspec : 0.8.0 fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : 0.4.2 scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None </details> Environment with pandas 1.0.5: <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-42-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_NZ.UTF-8 LOCALE : en_NZ.UTF-8 pandas : 1.0.5 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.1 setuptools : 39.0.1 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 : 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/35683/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35683/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35684
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35684/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35684/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35684/events
https://github.com/pandas-dev/pandas/issues/35684
677,585,983
MDU6SXNzdWU2Nzc1ODU5ODM=
35,684
BUG: get UserWarning about FixedFormatter/FixedLocator in series.plot()
{ "avatar_url": "https://avatars.githubusercontent.com/u/25974092?v=4", "events_url": "https://api.github.com/users/WestXu/events{/privacy}", "followers_url": "https://api.github.com/users/WestXu/followers", "following_url": "https://api.github.com/users/WestXu/following{/other_user}", "gists_url": "https://api.github.com/users/WestXu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WestXu", "id": 25974092, "login": "WestXu", "node_id": "MDQ6VXNlcjI1OTc0MDky", "organizations_url": "https://api.github.com/users/WestXu/orgs", "received_events_url": "https://api.github.com/users/WestXu/received_events", "repos_url": "https://api.github.com/users/WestXu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WestXu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WestXu/subscriptions", "type": "User", "url": "https://api.github.com/users/WestXu" }
[ { "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" }, { "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-09-09T09:07:44Z", "closed_issues": 94, "created_at": "2020-08-17T19:11:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-08T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/76", "id": 5781056, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels", "node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==", "number": 76, "open_issues": 0, "state": "closed", "title": "1.1.2", "updated_at": "2020-10-02T11:57:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76" }
19
2020-08-12T10:39:47Z
2020-11-08T01:25:45Z
2020-09-05T19:50:44Z
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 pd.Series({"20190102": 10, "20190103": 10}).plot() ``` #### Problem description Got a UserWarning: ``` /home/.../miniconda3/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py:1192: UserWarning: FixedFormatter should only be used together with FixedLocator ``` And to catch the Warning: ```python import warnings with warnings.catch_warnings(): warnings.filterwarnings("error") pd.Series({"20190102": 10, "20190103": 10}).plot() ``` Got ``` --------------------------------------------------------------------------- UserWarning Traceback (most recent call last) <ipython-input-5-4339a8efd56e> in <module> 2 with warnings.catch_warnings(): 3 warnings.filterwarnings("error") ----> 4 pd.Series({"20190102": 10, "20190103": 10}).plot() ~/miniconda3/lib/python3.8/site-packages/pandas/plotting/_core.py in __call__(self, *args, **kwargs) 845 data.columns = label_name 846 --> 847 return plot_backend.plot(data, kind=kind, **kwargs) 848 849 __call__.__doc__ = __doc__ ~/miniconda3/lib/python3.8/site-packages/pandas/plotting/_matplotlib/__init__.py in plot(data, kind, **kwargs) 59 kwargs["ax"] = getattr(ax, "left_ax", ax) 60 plot_obj = PLOT_CLASSES[kind](data, **kwargs) ---> 61 plot_obj.generate() 62 plot_obj.draw() 63 return plot_obj.result ~/miniconda3/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py in generate(self) 268 for ax in self.axes: 269 self._post_plot_logic_common(ax, self.data) --> 270 self._post_plot_logic(ax, self.data) 271 272 def _args_adjust(self): ~/miniconda3/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py in _post_plot_logic(self, ax, data) 1190 xticks = ax.get_xticks() 1191 xticklabels = [get_label(x) for x in xticks] -> 1192 ax.set_xticklabels(xticklabels) 1193 ax.xaxis.set_major_locator(FixedLocator(xticks)) 1194 ~/miniconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py in wrapper(self, *args, **kwargs) 61 62 def wrapper(self, *args, **kwargs): ---> 63 return get_method(self)(*args, **kwargs) 64 65 wrapper.__module__ = owner.__module__ ~/miniconda3/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py in wrapper(*args, **kwargs) 449 "parameter will become keyword-only %(removal)s.", 450 name=name, obj_type=f"parameter of {func.__name__}()") --> 451 return func(*args, **kwargs) 452 453 return wrapper ~/miniconda3/lib/python3.8/site-packages/matplotlib/axis.py in _set_ticklabels(self, labels, fontdict, minor, **kwargs) 1791 if fontdict is not None: 1792 kwargs.update(fontdict) -> 1793 return self.set_ticklabels(labels, minor=minor, **kwargs) 1794 1795 @cbook._make_keyword_only("3.2", "minor") ~/miniconda3/lib/python3.8/site-packages/matplotlib/axis.py in set_ticklabels(self, ticklabels, minor, **kwargs) 1728 ticks = self.get_minor_ticks(len(locs)) 1729 else: -> 1730 self.set_major_formatter(formatter) 1731 locs = self.get_majorticklocs() 1732 ticks = self.get_major_ticks(len(locs)) ~/miniconda3/lib/python3.8/site-packages/matplotlib/axis.py in set_major_formatter(self, formatter) 1589 formatter : `~matplotlib.ticker.Formatter`, ``str``, or function 1590 """ -> 1591 self._set_formatter(formatter, self.major) 1592 1593 def set_minor_formatter(self, formatter): ~/miniconda3/lib/python3.8/site-packages/matplotlib/axis.py in _set_formatter(self, formatter, level) 1619 and len(formatter.seq) > 0 1620 and not isinstance(level.locator, mticker.FixedLocator)): -> 1621 cbook._warn_external('FixedFormatter should only be used together ' 1622 'with FixedLocator') 1623 ~/miniconda3/lib/python3.8/site-packages/matplotlib/cbook/__init__.py in _warn_external(message, category) 2088 break 2089 frame = frame.f_back -> 2090 warnings.warn(message, category, stacklevel) 2091 2092 UserWarning: FixedFormatter should only be used together with FixedLocator ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.5.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.2.1 setuptools : 49.3.1.post20200810 Cython : None pytest : 6.0.1 hypothesis : None sphinx : 3.2.0 blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.2 html5lib : None pymysql : 0.10.0 psycopg2 : None jinja2 : 2.11.2 IPython : 7.17.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.2 matplotlib : 3.3.0 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : 1.0.0 pytables : None pytest : 6.0.1 pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.18 tables : 3.6.1 tabulate : 0.8.7 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/35684/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35684/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35685
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35685/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35685/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35685/events
https://github.com/pandas-dev/pandas/issues/35685
677,607,197
MDU6SXNzdWU2Nzc2MDcxOTc=
35,685
DOC/DEV: document approach to bisect regressions
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "DDDDDD", "default": false, "description": "Administrative tasks related to the pandas project", "id": 32933285, "name": "Admin", "node_id": "MDU6TGFiZWwzMjkzMzI4NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Admin" } ]
open
false
null
[]
null
7
2020-08-12T11:17:29Z
2021-08-08T20:00:23Z
null
MEMBER
null
@simonjayhawkins you have been doing great work on finding the causes of bugs/regressions! To make it easier for other contributors to also do this, I think it would be nice to document this is the contributing docs (even though it is relying on git, using it with pandas (which needs to be rebuilt for each commit) requires a bit of custom setup I think?)
{ "+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/35685/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35685/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35686
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35686/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35686/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35686/events
https://github.com/pandas-dev/pandas/pull/35686
677,655,489
MDExOlB1bGxSZXF1ZXN0NDY2NzM5NDM0
35,686
BUG: to_pickle/read_pickle do not close user-provided file objects
{ "avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4", "events_url": "https://api.github.com/users/twoertwein/events{/privacy}", "followers_url": "https://api.github.com/users/twoertwein/followers", "following_url": "https://api.github.com/users/twoertwein/following{/other_user}", "gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/twoertwein", "id": 6618166, "login": "twoertwein", "node_id": "MDQ6VXNlcjY2MTgxNjY=", "organizations_url": "https://api.github.com/users/twoertwein/orgs", "received_events_url": "https://api.github.com/users/twoertwein/received_events", "repos_url": "https://api.github.com/users/twoertwein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions", "type": "User", "url": "https://api.github.com/users/twoertwein" }
[ { "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": "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" } ]
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-08-12T12:30:50Z
2020-08-12T22:30:28Z
2020-08-12T22:23:26Z
CONTRIBUTOR
null
- [x] closes #35679 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Do not close user-provided file-objects in `to_pickle` and `read_pickle`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35686/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35686/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35686.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35686", "merged_at": "2020-08-12T22:23:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35686.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35686" }
https://api.github.com/repos/pandas-dev/pandas/issues/35687
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35687/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35687/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35687/events
https://github.com/pandas-dev/pandas/issues/35687
677,670,250
MDU6SXNzdWU2Nzc2NzAyNTA=
35,687
ENH: Timedelta cannot span more than 293 years => implementation limitation
{ "avatar_url": "https://avatars.githubusercontent.com/u/10172392?v=4", "events_url": "https://api.github.com/users/xuancong84/events{/privacy}", "followers_url": "https://api.github.com/users/xuancong84/followers", "following_url": "https://api.github.com/users/xuancong84/following{/other_user}", "gists_url": "https://api.github.com/users/xuancong84/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xuancong84", "id": 10172392, "login": "xuancong84", "node_id": "MDQ6VXNlcjEwMTcyMzky", "organizations_url": "https://api.github.com/users/xuancong84/orgs", "received_events_url": "https://api.github.com/users/xuancong84/received_events", "repos_url": "https://api.github.com/users/xuancong84/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xuancong84/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xuancong84/subscriptions", "type": "User", "url": "https://api.github.com/users/xuancong84" }
[ { "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": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" }, { "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
6
2020-08-12T12:53:20Z
2021-02-22T23:21:36Z
null
NONE
null
The Pandas datetime arithmetic module is indeed very useful and it can be used for archeological research studies as well. Unfortunately, the limitation that Timedelta object cannot span more than 293 years puts a huge shame on this wonderful piece of data science library. With this limitation, it is not possible to go back for thousands or even more than 300 years in history. ``` >>> pd.to_timedelta('1Y')*5 Timedelta('1826 days 05:06:00') >>> pd.to_timedelta('1Y')*292 Timedelta('106650 days 19:26:24') >>> pd.to_timedelta('1Y')*293 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pandas/_libs/tslibs/timedeltas.pyx", line 1347, in pandas._libs.tslibs.timedeltas.Timedelta.__mul__ File "pandas/_libs/tslibs/timedeltas.pyx", line 1230, in pandas._libs.tslibs.timedeltas.Timedelta.__new__ File "pandas/_libs/tslibs/timedeltas.pyx", line 180, in pandas._libs.tslibs.timedeltas.convert_to_timedelta64 File "pandas/_libs/tslibs/timedeltas.pyx", line 308, in pandas._libs.tslibs.timedeltas.cast_from_unit OverflowError: Python int too large to convert to C long ``` In terms of practicality, time resolution and time span are always contradicting with each other. Nowadays, quantum physics often deals with time objects at a scale of nano (10**-9), pico (10**-12), or even femto(10**-15)-second. While archeology often deals with time objects at a span of thousands, millions, or even billions of years. If I remember correctly, pandas set the time counter base unit at nano-seconds, thus, the span will be short. The solution to cater for both high resolution and large span is to use floating point rather than a large integer, as the time counter base unit. The speed will be slightly slower for floating point. But if you take a look at Intel Architecture, on modern CPU, floating point arithmetic is almost the same as integer especially when SIMD is used.
{ "+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/35687/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35687/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35688
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35688/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35688/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35688/events
https://github.com/pandas-dev/pandas/pull/35688
677,708,170
MDExOlB1bGxSZXF1ZXN0NDY2NzgzNzE0
35,688
Fix GH-29442 DataFrame.groupby doesn't preserve _metadata
{ "avatar_url": "https://avatars.githubusercontent.com/u/468400?v=4", "events_url": "https://api.github.com/users/Japanuspus/events{/privacy}", "followers_url": "https://api.github.com/users/Japanuspus/followers", "following_url": "https://api.github.com/users/Japanuspus/following{/other_user}", "gists_url": "https://api.github.com/users/Japanuspus/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Japanuspus", "id": 468400, "login": "Japanuspus", "node_id": "MDQ6VXNlcjQ2ODQwMA==", "organizations_url": "https://api.github.com/users/Japanuspus/orgs", "received_events_url": "https://api.github.com/users/Japanuspus/received_events", "repos_url": "https://api.github.com/users/Japanuspus/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Japanuspus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Japanuspus/subscriptions", "type": "User", "url": "https://api.github.com/users/Japanuspus" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "0052cc", "default": false, "description": "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-10-31T15:14:04Z", "closed_issues": 94, "created_at": "2020-09-26T01:36:01Z", "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.1.x", "due_on": "2020-10-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/78", "id": 5919858, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels", "node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==", "number": 78, "open_issues": 0, "state": "closed", "title": "1.1.4", "updated_at": "2020-11-25T22:43:27Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78" }
25
2020-08-12T13:47:15Z
2020-10-14T19:50:59Z
2020-10-14T18:37:52Z
CONTRIBUTOR
null
This bug is a regression in v1.1.0 and was introduced by the fix for GH-34214 in commit [6f065b]. Underlying cause is that the `*Splitter` classes do not use the `._constructor` property and do not call `__finalize__`. Please note that the method name used for `__finalize__` calls was my best guess since documentation for the value has been hard to find. [6f065b]: https://github.com/pandas-dev/pandas/commit/6f065b6d423ea211d803e8be93c27f547541c372 - [x] closes #29442 - [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/35688/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35688/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35688.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35688", "merged_at": "2020-10-14T18:37:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35688.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35688" }
https://api.github.com/repos/pandas-dev/pandas/issues/35689
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35689/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35689/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35689/events
https://github.com/pandas-dev/pandas/issues/35689
677,772,446
MDU6SXNzdWU2Nzc3NzI0NDY=
35,689
ENH: Support PostgreSQL server-side cursors to prevent memory hog on large datasets
{ "avatar_url": "https://avatars.githubusercontent.com/u/2440892?v=4", "events_url": "https://api.github.com/users/cloud-rocket/events{/privacy}", "followers_url": "https://api.github.com/users/cloud-rocket/followers", "following_url": "https://api.github.com/users/cloud-rocket/following{/other_user}", "gists_url": "https://api.github.com/users/cloud-rocket/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cloud-rocket", "id": 2440892, "login": "cloud-rocket", "node_id": "MDQ6VXNlcjI0NDA4OTI=", "organizations_url": "https://api.github.com/users/cloud-rocket/orgs", "received_events_url": "https://api.github.com/users/cloud-rocket/received_events", "repos_url": "https://api.github.com/users/cloud-rocket/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cloud-rocket/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cloud-rocket/subscriptions", "type": "User", "url": "https://api.github.com/users/cloud-rocket" }
[ { "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
1
2020-08-12T15:11:27Z
2021-04-05T18:51:37Z
null
NONE
null
#### Is your feature request related to a problem? `pandas.read_sql_query` supports Python "generator" pattern when providing `chunksize` argument. It's not very helpful when working with large datasets, since the whole data is initially retrieved from DB into client-side memory and later chunked into separate frames based on `chunksize`. Large datasets will easily run into out-of-memory problems with this approach. #### Describe the solution you'd like Postgres/psycopg2 are addressing this problem with [server-side cursors](https://www.psycopg.org/docs/usage.html#server-side-cursors). But Pandas does not support it. #### API breaking implications `is_cursor` argument of `SQLDatabase` or `SQLiteDatabase` is not exposed in `pandas.read_sql_query` or `pandas.read_sql_table` without any reason. It should be exposed, this way named (server-side) cursor could be provided. #### Describe alternatives you've considered Instead of doing: ``` iter = sql.read_sql_query(sql, conn, index_col='col1', chunksize=chunksize) ``` I tried reimplementing it like this: ``` from pandas.io.sql import SQLiteDatabase curs = conn.cursor(name='cur_name') # server side cursor creation curs.itersize = chunksize pandas_sql = SQLiteDatabase(curs, is_cursor=True) iter = pandas_sql.read_query( sql, index_col='col1', chunksize=chunksize) ``` but it fails because `SQLiteDatabase` tries to access `cursor.description`, which is NULL for some reason with server-side cursors (and idea why?). #### Additional references * https://github.com/pandas-dev/pandas/issues/10693 * https://github.com/pandas-dev/pandas/issues/13168 * https://stackoverflow.com/posts/63378600/
{ "+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/35689/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35689/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35690
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35690/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35690/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35690/events
https://github.com/pandas-dev/pandas/issues/35690
677,814,465
MDU6SXNzdWU2Nzc4MTQ0NjU=
35,690
DatetimeIndex.get_slice_bound(...) raises TypeErrors for unexpected YYYY-MM-DD/datetime.date/Timestamp combinations
{ "avatar_url": "https://avatars.githubusercontent.com/u/85419?v=4", "events_url": "https://api.github.com/users/RhysU/events{/privacy}", "followers_url": "https://api.github.com/users/RhysU/followers", "following_url": "https://api.github.com/users/RhysU/following{/other_user}", "gists_url": "https://api.github.com/users/RhysU/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RhysU", "id": 85419, "login": "RhysU", "node_id": "MDQ6VXNlcjg1NDE5", "organizations_url": "https://api.github.com/users/RhysU/orgs", "received_events_url": "https://api.github.com/users/RhysU/received_events", "repos_url": "https://api.github.com/users/RhysU/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RhysU/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RhysU/subscriptions", "type": "User", "url": "https://api.github.com/users/RhysU" }
[ { "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": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/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" }
[ { "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" } ]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
7
2020-08-12T16:12:54Z
2020-09-02T21:36:38Z
2020-09-02T21:36:38Z
NONE
null
Below find a handful of reproducible observations in Pandas 1.0.5 re: `DatetimeIndex.get_slice_bound(...)` where I'm genuinely not sure what the correct behaviors should all be. Some of these appear related to #34077 in that `slice_locs(...)` uses `get_slice_bound(...)` under the covers. Observations inlined and expected behaviors discussed afterwards: ``` ######################################## OBSERVATIONS 1 using a UTC DatetimeIndex ######################################## import datetime import pandas as pd import pandas.util.testing as put # Generate a UTC-localized DatetimeIndex df = put.makeTimeDataFrame() df = df.tz_localize("utc") index = df.index # Show the generated DatetimeIndex, which should look like: # DatetimeIndex(['2000-01-03 00:00:00+00:00', '2000-01-04 00:00:00+00:00', # ... # '2000-02-10 00:00:00+00:00', '2000-02-11 00:00:00+00:00'], # dtype='datetime64[ns, UTC]', freq='B') print(index) # (A) When the date is inside the DatetimeIndex, this call completes. index.get_slice_bound(datetime.date(2000, 1, 7), kind="ix", side="left") # (B) Notice date before start of index # TypeError: searchsorted requires compatible dtype or scalar, not date index.get_slice_bound(datetime.date(2000, 1, 1), kind="ix", side="left") # (C) Notice date after end of index # TypeError: searchsorted requires compatible dtype or scalar, not date index.get_slice_bound(datetime.date(2020, 1, 1), kind="ix", side="left") # (D) When the Timestamp is inside the DatetimeIndex, this call completes index.get_slice_bound(pd.Timestamp("2000-01-07"), kind="ix", side="left") # (E) Notice Timestamp before start of index # TypeError: Cannot compare tz-naive and tz-aware datetime-like objects index.get_slice_bound(pd.Timestamp("2000-01-01"), kind="ix", side="left") # (F) Notice Timestamp after end of index # TypeError: Cannot compare tz-naive and tz-aware datetime-like objects index.get_slice_bound(pd.Timestamp("2020-01-01"), kind="ix", side="left") ``` Discussion: 1. Above, I do not know if (A)-(C) should behave as (E)-(F) or not. 2. Above, I suspect (D) should raise as (E)-(F) do. 3. I can see arguments where datetime.date's lacking tzinfo could be inferred to be the DatetimeIndex.tzinfo. Then (A)-(C) would not raise. 4. I can see arguments where Timestamps lacking tzinfo could be inferred to be the DatetimeIndex.tzinfo. Then (D)-(F) would not raise. 5. I don't expect any data-dependence, meaning that the specific YYYY-MM-DD should not impact if something raises. 6. I have not tested datetime.datetime under these circumstances. 7. I believe some of these behaviors may have changed since the 0.2-series. Again, observations inlined and expected behaviors discussed afterwards: ``` ######################################################## OBSERVATIONS 2 using a DatetimeIndex with tzinfo is None ######################################################## import datetime import pandas as pd import pandas.util.testing as put # Generate a non-localized DatetimeIndex df = put.makeTimeDataFrame() index = df.index assert index.tzinfo is None # Show the generated DatetimeIndex, which should look like: # DatetimeIndex(['2000-01-03', '2000-01-04', '2000-01-05', '2000-01-06', # ... # '2000-02-10', '2000-02-11'], # dtype='datetime64[ns]', freq='B') print(index) # (G) When the date is inside the DatetimeIndex, this call completes. index.get_slice_bound(datetime.date(2000, 1, 7), kind="ix", side="left") # (H) Notice date before start of index # TypeError: searchsorted requires compatible dtype or scalar, not date index.get_slice_bound(datetime.date(2000, 1, 1), kind="ix", side="left") # (I) Notice date after end of index # TypeError: searchsorted requires compatible dtype or scalar, not date index.get_slice_bound(datetime.date(2020, 1, 1), kind="ix", side="left") # (J) When the Timestamp is inside the DatetimeIndex, this call completes index.get_slice_bound(pd.Timestamp("2000-01-07"), kind="ix", side="left") # (K) Call completes for Timestamp before start of index index.get_slice_bound(pd.Timestamp("2000-01-01"), kind="ix", side="left") # (L) Call completes for Timestamp after end of index index.get_slice_bound(pd.Timestamp("2020-01-01"), kind="ix", side="left") ``` Discussion: 1. Above, I expect (H)-(I) to behave as (G). 2. Above, (J)-(K) appear correct to me. 3. I don't expect any data-dependence, meaning that the specific YYYY-MM-DD should not impact if something raises. 4. I have not tested datetime.datetime under these circumstances. 5. I believe some of these behaviors may have changed since the 0.2-series. ``` INSTALLED VERSIONS ------------------ commit : None python : 3.6.10.final.0 python-bits : 64 OS : Linux OS-release : 4.14.67-ts1 machine : x86_64 processor : byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.utf8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.16.6 pytz : 2019.2 dateutil : 2.8.0 pip : 19.0.3 setuptools : 40.8.0 Cython : 0.29.20 pytest : 5.3.1 hypothesis : 3.57.0 sphinx : 1.8.5 blosc : 1.5.1 feather : None xlsxwriter : 1.0.2 lxml.etree : 4.3.4 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.5.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.2.1 fastparquet : 0.3.3 gcsfs : None lxml.etree : 4.3.4 matplotlib : 3.0.3 numexpr : 2.6.4 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 1.0.0 pytables : None pytest : 5.3.1 pyxlsb : None s3fs : 0.4.2 scipy : 1.5.1 sqlalchemy : 1.2.1 tables : 3.5.2 tabulate : 0.8.3 xarray : 0.10.0 xlrd : 1.1.0 xlwt : 1.3.0 xlsxwriter : 1.0.2 numba : 0.50.1 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35690/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35690/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35691
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35691/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35691/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35691/events
https://github.com/pandas-dev/pandas/issues/35691
677,836,558
MDU6SXNzdWU2Nzc4MzY1NTg=
35,691
BUG: DatetimeIndex.get_loc failing when key is int (introduced in v1.1.0)
{ "avatar_url": "https://avatars.githubusercontent.com/u/41797673?v=4", "events_url": "https://api.github.com/users/maximemorariu/events{/privacy}", "followers_url": "https://api.github.com/users/maximemorariu/followers", "following_url": "https://api.github.com/users/maximemorariu/following{/other_user}", "gists_url": "https://api.github.com/users/maximemorariu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maximemorariu", "id": 41797673, "login": "maximemorariu", "node_id": "MDQ6VXNlcjQxNzk3Njcz", "organizations_url": "https://api.github.com/users/maximemorariu/orgs", "received_events_url": "https://api.github.com/users/maximemorariu/received_events", "repos_url": "https://api.github.com/users/maximemorariu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maximemorariu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maximemorariu/subscriptions", "type": "User", "url": "https://api.github.com/users/maximemorariu" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2020-08-12T16:49:14Z
2020-08-12T22:00:19Z
2020-08-12T22:00: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. In version 1.0.5 the below was running successfully, but in 1.1.0, this is now broken as `int` keys are not accepted anymore (a `KeyError` is raised because the type of the key is now unexpected). ``` import numpy as np from numpy import datetime64 from pandas import DatetimeIndex dt = datetime64("2020-08-12T00:00:00.000000000") dt_item = np.array(dt).item() index = DatetimeIndex(data=[dt]) print(index.get_loc(dt)) print(index.get_loc(dt_item)) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35691/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35691/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35692
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35692/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35692/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35692/events
https://github.com/pandas-dev/pandas/pull/35692
677,838,401
MDExOlB1bGxSZXF1ZXN0NDY2ODkxODQ5
35,692
ENH: GH-35611 Tests for top-level Pandas functions serializable
{ "avatar_url": "https://avatars.githubusercontent.com/u/4068610?v=4", "events_url": "https://api.github.com/users/ikedaosushi/events{/privacy}", "followers_url": "https://api.github.com/users/ikedaosushi/followers", "following_url": "https://api.github.com/users/ikedaosushi/following{/other_user}", "gists_url": "https://api.github.com/users/ikedaosushi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ikedaosushi", "id": 4068610, "login": "ikedaosushi", "node_id": "MDQ6VXNlcjQwNjg2MTA=", "organizations_url": "https://api.github.com/users/ikedaosushi/orgs", "received_events_url": "https://api.github.com/users/ikedaosushi/received_events", "repos_url": "https://api.github.com/users/ikedaosushi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ikedaosushi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ikedaosushi/subscriptions", "type": "User", "url": "https://api.github.com/users/ikedaosushi" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "6c1cdb", "default": false, "description": "read_pickle, to_pickle", "id": 1625435109, "name": "IO Pickle", "node_id": "MDU6TGFiZWwxNjI1NDM1MTA5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle" } ]
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-08-12T16:52:24Z
2020-08-19T18:03:00Z
2020-08-19T18:02:56Z
CONTRIBUTOR
null
- [x] closes #35611 - [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/35692/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35692/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35692.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35692", "merged_at": "2020-08-19T18:02:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35692.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35692" }
https://api.github.com/repos/pandas-dev/pandas/issues/35693
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35693/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35693/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35693/events
https://github.com/pandas-dev/pandas/pull/35693
677,851,782
MDExOlB1bGxSZXF1ZXN0NDY2OTAyOTcy
35,693
CI: avoid file leaks in sas_xport tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "5319e7", "default": false, "description": "SAS: read_sas", "id": 258745163, "name": "IO SAS", "node_id": "MDU6TGFiZWwyNTg3NDUxNjM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SAS" } ]
closed
false
null
[]
{ "closed_at": "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-08-12T17:15:52Z
2020-08-13T23:09:59Z
2020-08-13T19:18:48Z
MEMBER
null
Introduces a contextmanager version of td.check_file_leaks so we can do more targeted versions of those checks for debugging
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35693/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35693/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35693.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35693", "merged_at": "2020-08-13T19:18:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35693.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35693" }
https://api.github.com/repos/pandas-dev/pandas/issues/35694
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35694/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35694/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35694/events
https://github.com/pandas-dev/pandas/issues/35694
677,922,213
MDU6SXNzdWU2Nzc5MjIyMTM=
35,694
Converting DataFrame with nullable types to DataFrame with non-nullable types?
{ "avatar_url": "https://avatars.githubusercontent.com/u/3190405?v=4", "events_url": "https://api.github.com/users/shwina/events{/privacy}", "followers_url": "https://api.github.com/users/shwina/followers", "following_url": "https://api.github.com/users/shwina/following{/other_user}", "gists_url": "https://api.github.com/users/shwina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shwina", "id": 3190405, "login": "shwina", "node_id": "MDQ6VXNlcjMxOTA0MDU=", "organizations_url": "https://api.github.com/users/shwina/orgs", "received_events_url": "https://api.github.com/users/shwina/received_events", "repos_url": "https://api.github.com/users/shwina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shwina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shwina/subscriptions", "type": "User", "url": "https://api.github.com/users/shwina" }
[ { "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": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
open
false
null
[]
null
1
2020-08-12T19:24:57Z
2021-08-10T04:21:40Z
null
CONTRIBUTOR
null
Is there a way to convert DataFrames containing nullable types to DataFrames containing the equivalent non-nullable types? For example: ```python >>> import pandas as pd >>> a = pd.DataFrame() >>> a['a'] = pd.Series([1, None, 3], dtype="Int32") >>> a['b'] = pd.Series([True, False, None], dtype="boolean") >>> a a b 0 1 True 1 <NA> False 2 3 <NA> >>> a.dtypes a Int32 b boolean dtype: object ``` Is there a way to convert this to a DataFrame with `int32` and `bool` dtypes, assuming the user can specify `na_values` for those? Ideally, if there are no nulls in the input, then the user wouldn't even have to specify `na_value`. ### Context: cuDF is [moving in the direction](https://github.com/rapidsai/cudf/issues/5754) of returning nullable Pandas objects when the `.to_pandas()` method is called on cuDF objects. Our hope is that this is a step in the right direction of the community adopting arrow-like nullable types. In the near term, however, this will break user workflows (e.g., https://github.com/rapidsai/cudf/issues/5928) and it would be fantastic if we could point users to a convenient way to recover "classical" Pandas objects from what we return. cc: @brandon-b-miller @kkraus14
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35694/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35694/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35695
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35695/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35695/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35695/events
https://github.com/pandas-dev/pandas/issues/35695
677,999,851
MDU6SXNzdWU2Nzc5OTk4NTE=
35,695
BUG: df.query raises TypeError when a column is named datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/17522184?v=4", "events_url": "https://api.github.com/users/ganevgv/events{/privacy}", "followers_url": "https://api.github.com/users/ganevgv/followers", "following_url": "https://api.github.com/users/ganevgv/following{/other_user}", "gists_url": "https://api.github.com/users/ganevgv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ganevgv", "id": 17522184, "login": "ganevgv", "node_id": "MDQ6VXNlcjE3NTIyMTg0", "organizations_url": "https://api.github.com/users/ganevgv/orgs", "received_events_url": "https://api.github.com/users/ganevgv/received_events", "repos_url": "https://api.github.com/users/ganevgv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ganevgv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ganevgv/subscriptions", "type": "User", "url": "https://api.github.com/users/ganevgv" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "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
[]
{ "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-08-12T21:48:39Z
2021-08-10T04:22:20Z
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. - [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 # Your code here import pandas as pd col_name = "datetime" col_data = [0.1, 0.3, 0.5, 1] df = pd.DataFrame({col_name: col_data}) min_bound, max_bound = 0.25, 0.75 query = f"{min_bound} < {col_name} < {max_bound}" df.query(query) ``` #### Problem description I know this is a bit of an unfair issue but running the code above raises a TypeError (`TypeError: '<' not supported between instances of 'float' and 'type'`). Full error bellow: <details> ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-1-fe357c1c3e3c> in <module> 7 min_bound, max_bound = 0.25, 0.75 8 query = f"{min_bound} < {col_name} < {max_bound}" ----> 9 df.query(query) ~/personal/hackatlon/pandas/pandas/core/frame.py in query(self, expr, inplace, **kwargs) 3368 kwargs["level"] = kwargs.pop("level", 0) + 1 3369 kwargs["target"] = None -> 3370 res = self.eval(expr, **kwargs) 3371 3372 try: ~/personal/hackatlon/pandas/pandas/core/frame.py in eval(self, expr, inplace, **kwargs) 3498 kwargs["resolvers"] = kwargs.get("resolvers", ()) + tuple(resolvers) 3499 -> 3500 return _eval(expr, inplace=inplace, **kwargs) 3501 3502 def select_dtypes(self, include=None, exclude=None) -> "DataFrame": ~/personal/hackatlon/pandas/pandas/core/computation/eval.py in eval(expr, parser, engine, truediv, local_dict, global_dict, resolvers, level, target, inplace) 344 eng = _engines[engine] 345 eng_inst = eng(parsed_expr) --> 346 ret = eng_inst.evaluate() 347 348 if parsed_expr.assigner is None: ~/personal/hackatlon/pandas/pandas/core/computation/engines.py in evaluate(self) 125 126 def evaluate(self): --> 127 return self.expr() 128 129 def _evaluate(self) -> None: ~/personal/hackatlon/pandas/pandas/core/computation/expr.py in __call__(self) 792 793 def __call__(self): --> 794 return self.terms(self.env) 795 796 def __repr__(self) -> str: ~/personal/hackatlon/pandas/pandas/core/computation/ops.py in __call__(self, env) 394 """ 395 # recurse over the left/right nodes --> 396 left = self.lhs(env) 397 right = self.rhs(env) 398 ~/personal/hackatlon/pandas/pandas/core/computation/ops.py in __call__(self, env) 397 right = self.rhs(env) 398 --> 399 return self.func(left, right) 400 401 def evaluate(self, env, engine: str, parser, term_type, eval_in_python): TypeError: '<' not supported between instances of 'float' and 'type' ``` </details> I tried changing `col_name` to every value from the list bellow and only `datetime` raises an error. ``` ["float", "float64", "int", "int64", "category", "string", "object", "datetime"] ``` I get the same behaviour on pandas 1.1.0 and on the latest dev version 1.2.0.dev0+80.g59ffa2512. #### Expected Output ``` datetime 1 0.3 2 0.5 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 59ffa251269ddb8b561d8d88f631a5db21f660dc python : 3.8.5.final.0 python-bits : 64 OS : Darwin OS-release : 19.3.0 Version : Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.2.0.dev0+80.g59ffa2512 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.2 setuptools : 49.3.2 Cython : 0.29.21 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.17.0 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : None 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/35695/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35695/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35696
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35696/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35696/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35696/events
https://github.com/pandas-dev/pandas/pull/35696
678,082,836
MDExOlB1bGxSZXF1ZXN0NDY3MDk0MjMz
35,696
REF: implement reset_dropped_locs
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "fbca04", "default": false, "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" }
2
2020-08-13T01:32:19Z
2020-08-17T19:45:25Z
2020-08-17T18:28:28Z
MEMBER
null
We get to get rid of the comment `# really should be done in internals :<` Making the window.rolling usage use this helper method is the next step.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35696/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35696/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35696.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35696", "merged_at": "2020-08-17T18:28:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35696.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35696" }
https://api.github.com/repos/pandas-dev/pandas/issues/35697
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35697/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35697/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35697/events
https://github.com/pandas-dev/pandas/pull/35697
678,097,562
MDExOlB1bGxSZXF1ZXN0NDY3MTA1OTgw
35,697
REGR: Don't ignore compiled patterns in replace
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "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": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" }, { "color": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
6
2020-08-13T02:19:55Z
2020-08-17T13:03:21Z
2020-08-17T10:59:09Z
MEMBER
null
- [x] closes #35680 - [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/35697/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35697/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35697.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35697", "merged_at": "2020-08-17T10:59:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35697.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35697" }
https://api.github.com/repos/pandas-dev/pandas/issues/35698
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35698/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35698/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35698/events
https://github.com/pandas-dev/pandas/pull/35698
678,101,293
MDExOlB1bGxSZXF1ZXN0NDY3MTA5MDQ2
35,698
CLN: replace PyObject_Str with str #34213
{ "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" }
[]
closed
false
null
[]
null
2
2020-08-13T02:31:02Z
2020-08-17T15:40:06Z
2020-08-13T13:39:05Z
MEMBER
null
Part of #34213
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35698/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35698/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35698.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35698", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35698.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35698" }
https://api.github.com/repos/pandas-dev/pandas/issues/35699
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35699/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35699/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35699/events
https://github.com/pandas-dev/pandas/pull/35699
678,182,252
MDExOlB1bGxSZXF1ZXN0NDY3MTczMDcw
35,699
Backport PR #35647 on branch 1.1.x (BUG: Support custom BaseIndexers in groupby.rolling)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
1
2020-08-13T06:14:44Z
2020-08-13T10:14:52Z
2020-08-13T10:14:51Z
NONE
null
Backport PR #35647: BUG: Support custom BaseIndexers in groupby.rolling
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35699/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35699/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35699.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35699", "merged_at": "2020-08-13T10:14:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35699.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35699" }
https://api.github.com/repos/pandas-dev/pandas/issues/35700
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35700/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35700/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35700/events
https://github.com/pandas-dev/pandas/issues/35700
678,214,909
MDU6SXNzdWU2NzgyMTQ5MDk=
35,700
BUG: pandas 1.1.0 introduces string comparison bug for larger datasets
{ "avatar_url": "https://avatars.githubusercontent.com/u/6748505?v=4", "events_url": "https://api.github.com/users/Samreay/events{/privacy}", "followers_url": "https://api.github.com/users/Samreay/followers", "following_url": "https://api.github.com/users/Samreay/following{/other_user}", "gists_url": "https://api.github.com/users/Samreay/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Samreay", "id": 6748505, "login": "Samreay", "node_id": "MDQ6VXNlcjY3NDg1MDU=", "organizations_url": "https://api.github.com/users/Samreay/orgs", "received_events_url": "https://api.github.com/users/Samreay/received_events", "repos_url": "https://api.github.com/users/Samreay/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Samreay/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Samreay/subscriptions", "type": "User", "url": "https://api.github.com/users/Samreay" }
[ { "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": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
6
2020-08-13T07:22:54Z
2020-09-18T21:55:06Z
2020-09-18T21:55:06Z
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 # This works fine df1 = pd.DataFrame({"a": [1,2,3], "b": ["x","y","z"]}) print(df1 == "x") # Loading in some bigger data from Kaggle https://www.kaggle.com/dgomonov/new-york-city-airbnb-open-data # data and code file included in zip to make it easy df2 = pd.read_csv("AB_NYC_2019.csv") # On pandas v1.1.0 throws a ValueError: unknown type str32 print(df2 == "x") # On pandas v1.1.0 throws a ValueError: unknown type str128 print(df2 == "John") ``` [reproduce.zip](https://github.com/pandas-dev/pandas/files/5067660/reproduce.zip) #### Problem description Previously comparing the dataframe to a string value would give a boolean mask as expected. It is now erroring. Confirmed that on v1.0.5 this works as expected, only on 1.1.0 does this error. #### Expected Output A boolean mask of true or false values with the same shape as the dataframe. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.7.7.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.18362 machine : AMD64 processor : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.2 setuptools : 49.3.1.post20200810 Cython : 0.29.21 pytest : 6.0.1 hypothesis : 5.24.0 sphinx : 3.2.0 blosc : None feather : 0.4.0 xlsxwriter : None lxml.etree : 4.4.2 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.17.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.3.2 fsspec : None fastparquet : None gcsfs : None matplotlib : 3.1.3 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.15.1 pytables : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.13 tables : 3.6.1 tabulate : 0.8.7 xarray : 0.16.0 xlrd : 1.2.0 xlwt : None numba : None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35700/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35700/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35701
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35701/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35701/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35701/events
https://github.com/pandas-dev/pandas/issues/35701
678,247,084
MDU6SXNzdWU2NzgyNDcwODQ=
35,701
BUG: Load data frame pickled under pandas 1.0.5 using pandas 1.1.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/53851867?v=4", "events_url": "https://api.github.com/users/mariosum/events{/privacy}", "followers_url": "https://api.github.com/users/mariosum/followers", "following_url": "https://api.github.com/users/mariosum/following{/other_user}", "gists_url": "https://api.github.com/users/mariosum/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mariosum", "id": 53851867, "login": "mariosum", "node_id": "MDQ6VXNlcjUzODUxODY3", "organizations_url": "https://api.github.com/users/mariosum/orgs", "received_events_url": "https://api.github.com/users/mariosum/received_events", "repos_url": "https://api.github.com/users/mariosum/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mariosum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mariosum/subscriptions", "type": "User", "url": "https://api.github.com/users/mariosum" }
[ { "color": "6c1cdb", "default": false, "description": "read_pickle, to_pickle", "id": 1625435109, "name": "IO Pickle", "node_id": "MDU6TGFiZWwxNjI1NDM1MTA5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2020-08-13T08:17:23Z
2020-12-15T13:28:14Z
2020-08-13T10:53: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. --- **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 ''' Have pandas 1.0.5 installed. ''' #%% import libs; import numpy as np import pandas as pd import time import datetime import pickle #%% do; df0 = pd.DataFrame( { 'sdtr3mm': [datetime.datetime.now()], 'count1': [1] } ) df0['month_year'] = df0['sdtr3mm'].dt.to_period('M') df0['year'] = df0['sdtr3mm'].dt.to_period('Y') with open("Z:/test.data", "wb") as filehandle: pickle.dump(df0, filehandle) ''' Update to pandas : 1.1.0 ''' with open("Z:/test.data", "rb") as filehandle: df1 = pickle.load(filehandle) ``` [test.zip](https://github.com/pandas-dev/pandas/files/5067895/test.zip) (zipped data frame, pickled under pandas 1.0.5) #### Problem description I pickled a dataframe, containing a datetime variable, an integer, a pandas-month-year, panda-year variable, under pandas 1.0.5 to my disk. After the update to pandas 1.1.0, I can no longer load it, receiving an "TypeError: Expected tuple, got dict", with: ``` Traceback (most recent call last): File "<ipython-input-5-fa4170ff1942>", line 2, in <module> df1 = pickle.load(filehandle) File "stringsource", line 17, in pandas._libs.tslibs.period.PeriodMixin.__setstate_cython__ ``` Creating a data frame as above under pandas 1.1.0 and trying to load it in under pandas 1.0.5 does not work either. *** Update: Also does not work using pd.read_pickle either. I am sorry if this is the wrong place and/or the wrong way to post my issue. #### Expected Output Load in the data frame created as in the code above. #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag] 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 94 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : en LOCALE : None.None pandas : 1.0.5 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.1 setuptools : 49.2.1.post20200807 Cython : None pytest : None hypothesis : None sphinx : 3.2.0 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.17.0 pandas_datareader: None bs4 : None 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 : None pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 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/35701/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35701/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35702
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35702/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35702/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35702/events
https://github.com/pandas-dev/pandas/pull/35702
678,323,727
MDExOlB1bGxSZXF1ZXN0NDY3MjkwMzA2
35,702
Backport PR #35654 on branch 1.1.x (BUG: GH-35558 merge_asof tolerance error)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
1
2020-08-13T10:17:28Z
2020-08-13T11:04:51Z
2020-08-13T11:04:50Z
NONE
null
Backport PR #35654: BUG: GH-35558 merge_asof tolerance error
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35702/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35702/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35702.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35702", "merged_at": "2020-08-13T11:04:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35702.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35702" }
https://api.github.com/repos/pandas-dev/pandas/issues/35703
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35703/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35703/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35703/events
https://github.com/pandas-dev/pandas/issues/35703
678,354,568
MDU6SXNzdWU2NzgzNTQ1Njg=
35,703
CI / Checks (pull_request) on Github Actions failing with isort 5.3.2 -> 5.4.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
5
2020-08-13T11:11:39Z
2020-08-15T03:42:53Z
2020-08-14T10:09:29Z
MEMBER
null
``` 2020-08-13T10:30:51.9470350Z isort --version-number 2020-08-13T10:30:52.2249999Z 5.4.0 2020-08-13T10:30:52.2443133Z Check import format using isort 2020-08-13T10:30:56.4886273Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/_testing.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4892079Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/_typing.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4892907Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/tests/frame/test_analytics.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4893331Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/tests/extension/base/__init__.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4893737Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/tseries/frequencies.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4894183Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/tseries/offsets.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4894928Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/tseries/holiday.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4895326Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/plotting/_matplotlib/timeseries.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4895747Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/index.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4896139Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/common.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4896552Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/ops/__init__.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4897157Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/window/__init__.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4897613Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/dtypes/dtypes.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4898032Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/dtypes/common.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4898422Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/reshape/melt.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4898832Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/reshape/merge.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4899228Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/internals/__init__.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4899642Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/core/tools/datetimes.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4900046Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/api/__init__.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4900461Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/util/__init__.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4900859Z ##[error]ERROR: /home/runner/work/pandas/pandas/pandas/io/pytables.py Imports are incorrectly sorted and/or formatted. 2020-08-13T10:30:56.4901145Z Check import format using isort DONE ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35703/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35703/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35704
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35704/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35704/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35704/events
https://github.com/pandas-dev/pandas/pull/35704
678,354,717
MDExOlB1bGxSZXF1ZXN0NDY3MzE2NjMy
35,704
ENH add na_action to DataFrame.applymap
{ "avatar_url": "https://avatars.githubusercontent.com/u/78827?v=4", "events_url": "https://api.github.com/users/jnothman/events{/privacy}", "followers_url": "https://api.github.com/users/jnothman/followers", "following_url": "https://api.github.com/users/jnothman/following{/other_user}", "gists_url": "https://api.github.com/users/jnothman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jnothman", "id": 78827, "login": "jnothman", "node_id": "MDQ6VXNlcjc4ODI3", "organizations_url": "https://api.github.com/users/jnothman/orgs", "received_events_url": "https://api.github.com/users/jnothman/received_events", "repos_url": "https://api.github.com/users/jnothman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jnothman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jnothman/subscriptions", "type": "User", "url": "https://api.github.com/users/jnothman" }
[ { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-13T11:11:53Z
2020-09-11T17:40:18Z
2020-09-11T17:40:12Z
CONTRIBUTOR
null
For symmetry with Series.map - [x] closes #23803 - [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/35704/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35704/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35704.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35704", "merged_at": "2020-09-11T17:40:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35704.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35704" }
https://api.github.com/repos/pandas-dev/pandas/issues/35705
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35705/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35705/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35705/events
https://github.com/pandas-dev/pandas/pull/35705
678,363,383
MDExOlB1bGxSZXF1ZXN0NDY3MzIzOTUz
35,705
CI: pin isort < 5.4.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
3
2020-08-13T11:27:00Z
2020-08-14T10:29:10Z
2020-08-14T10:09:05Z
MEMBER
null
xref #35703
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35705/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35705/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35705.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35705", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35705.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35705" }
https://api.github.com/repos/pandas-dev/pandas/issues/35706
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35706/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35706/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35706/events
https://github.com/pandas-dev/pandas/issues/35706
678,441,584
MDU6SXNzdWU2Nzg0NDE1ODQ=
35,706
BUG: pandas dataframe style render produces incorrect html with multiindex
{ "avatar_url": "https://avatars.githubusercontent.com/u/29049580?v=4", "events_url": "https://api.github.com/users/semnooij/events{/privacy}", "followers_url": "https://api.github.com/users/semnooij/followers", "following_url": "https://api.github.com/users/semnooij/following{/other_user}", "gists_url": "https://api.github.com/users/semnooij/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/semnooij", "id": 29049580, "login": "semnooij", "node_id": "MDQ6VXNlcjI5MDQ5NTgw", "organizations_url": "https://api.github.com/users/semnooij/orgs", "received_events_url": "https://api.github.com/users/semnooij/received_events", "repos_url": "https://api.github.com/users/semnooij/repos", "site_admin": false, "starred_url": "https://api.github.com/users/semnooij/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/semnooij/subscriptions", "type": "User", "url": "https://api.github.com/users/semnooij" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "006b75", "default": false, "description": "conditional formatting using DataFrame.style", "id": 1728592794, "name": "Styler", "node_id": "MDU6TGFiZWwxNzI4NTkyNzk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler" } ]
closed
false
null
[]
null
2
2020-08-13T13:34:04Z
2020-09-08T23:56:47Z
2020-09-08T23:56:47Z
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 # Your code here import pandas as pd import datetime df = pd.DataFrame( data={ ('level0', 'level1a',): [1234565.23424], ('level0', 'level1b',): [1234565.23424], ('level0', 'level1c',): [1234565.23424], ('level0', 'level1d',): [1234565.23424], ('level0', 'level1e',): [1234565.23424], }, columns=pd.MultiIndex.from_tuples( [ ('level0', 'level1a',), ('level0', 'level1b',), ('level0', 'level1c',), ('level0', 'level1d',), ('level0', 'level1e',), ] ), index=['test'] ) df.style.format('{:,.2f}').render() ``` #### Problem description The render() of the styler produces incorrect html in case the columns are a MultiIndex. #### Expected Output re.sub(r'colspan=(\d)', r'colspan="\1"', df.style.format('{:,.2f}').render()) The current implementation returns something like <th class="col_heading level0 col0" colspan=5> while it should be <th class="col_heading level0 col0" colspan="5"> See also https://www.w3schools.com/tags/att_td_colspan.asp Same goes for MultiIndex indices where it concerns rowspan instead of colspan. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.6.5.final.0 python-bits : 64 OS : Linux OS-release : 4.14.111-1.el7.centos.x86_64 Version : #1 SMP Wed Apr 17 17:45:41 CEST 2019 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.1.0 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 9.0.1 setuptools : 28.8.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.14.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 : 1.0.0 pytables : None pyxlsb : None s3fs : None scipy : None 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/35706/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35706/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35707
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35707/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35707/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35707/events
https://github.com/pandas-dev/pandas/pull/35707
678,453,086
MDExOlB1bGxSZXF1ZXN0NDY3Mzk4NTgy
35,707
REGR: fix DataFrame.diff with read-only data
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "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": "eb6420", "default": false, "description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff", "id": 57296398, "name": "Algos", "node_id": "MDU6TGFiZWw1NzI5NjM5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
4
2020-08-13T13:49:48Z
2020-08-14T14:42:58Z
2020-08-14T14:35:22Z
MEMBER
null
Closes #35559
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35707/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35707/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35707.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35707", "merged_at": "2020-08-14T14:35:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35707.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35707" }
https://api.github.com/repos/pandas-dev/pandas/issues/35708
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35708/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35708/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35708/events
https://github.com/pandas-dev/pandas/pull/35708
678,506,048
MDExOlB1bGxSZXF1ZXN0NDY3NDQxODc0
35,708
Reorganize imports to be compliant with isort (and conventional)
{ "avatar_url": "https://avatars.githubusercontent.com/u/29724281?v=4", "events_url": "https://api.github.com/users/el-iot/events{/privacy}", "followers_url": "https://api.github.com/users/el-iot/followers", "following_url": "https://api.github.com/users/el-iot/following{/other_user}", "gists_url": "https://api.github.com/users/el-iot/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/el-iot", "id": 29724281, "login": "el-iot", "node_id": "MDQ6VXNlcjI5NzI0Mjgx", "organizations_url": "https://api.github.com/users/el-iot/orgs", "received_events_url": "https://api.github.com/users/el-iot/received_events", "repos_url": "https://api.github.com/users/el-iot/repos", "site_admin": false, "starred_url": "https://api.github.com/users/el-iot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/el-iot/subscriptions", "type": "User", "url": "https://api.github.com/users/el-iot" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-13T14:59:01Z
2020-08-13T16:21:47Z
2020-08-13T16:21:47Z
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/35708/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35708/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35708.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35708", "merged_at": "2020-08-13T16:21:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35708.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35708" }
https://api.github.com/repos/pandas-dev/pandas/issues/35709
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35709/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35709/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35709/events
https://github.com/pandas-dev/pandas/pull/35709
678,553,227
MDExOlB1bGxSZXF1ZXN0NDY3NDgwOTk2
35,709
add web/ directory to isort checks
{ "avatar_url": "https://avatars.githubusercontent.com/u/29724281?v=4", "events_url": "https://api.github.com/users/el-iot/events{/privacy}", "followers_url": "https://api.github.com/users/el-iot/followers", "following_url": "https://api.github.com/users/el-iot/following{/other_user}", "gists_url": "https://api.github.com/users/el-iot/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/el-iot", "id": 29724281, "login": "el-iot", "node_id": "MDQ6VXNlcjI5NzI0Mjgx", "organizations_url": "https://api.github.com/users/el-iot/orgs", "received_events_url": "https://api.github.com/users/el-iot/received_events", "repos_url": "https://api.github.com/users/el-iot/repos", "site_admin": false, "starred_url": "https://api.github.com/users/el-iot/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/el-iot/subscriptions", "type": "User", "url": "https://api.github.com/users/el-iot" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2020-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-08-13T16:04:03Z
2020-08-13T17:52:37Z
2020-08-13T17:52:33Z
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/35709/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35709/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35709.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35709", "merged_at": "2020-08-13T17:52:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35709.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35709" }
https://api.github.com/repos/pandas-dev/pandas/issues/35710
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35710/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35710/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35710/events
https://github.com/pandas-dev/pandas/issues/35710
678,571,165
MDU6SXNzdWU2Nzg1NzExNjU=
35,710
ENH: DataFrame.append is slow when the DataFrame is huge
{ "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" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2020-08-13T16:30:54Z
2020-08-13T16:54:22Z
2020-08-13T16:54:22Z
CONTRIBUTOR
null
#### Is your feature request related to a problem? pandas.DataFrame.append is slow. Users use DataFrame.append multiple times. And it's more pronounced when the data is huge. That would take a long time to combine the data. So some users are using DataFrame.from_dict which is faster than DataFrame.append. (check additional reference) ```python N = 10000 for i in range(N): df = df.append(other, ignore_index=True) ``` #### Describe the solution you'd like I guess DataFrame.append is slow because there's a copy operation of DataFrame in somewhere. But I haven't found it yet. The solution will be to rewrite the process to be more efficient by not making copies. #### Additional reference https://stackoverflow.com/questions/27929472/improve-row-append-performance-on-pandas-dataframes
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35710/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35710/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35711
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35711/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35711/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35711/events
https://github.com/pandas-dev/pandas/pull/35711
678,619,059
MDExOlB1bGxSZXF1ZXN0NDY3NTM3MDM0
35,711
CI: Check for file leaks in _all_ tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[]
closed
false
null
[]
null
7
2020-08-13T17:34:59Z
2021-11-20T23:22:42Z
2020-08-21T21:27:03Z
MEMBER
null
Sits on top of #35693 Still have two tests failing locally, but I'm not seeing any socket leaks that I occasionally see in the CI logs.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35711/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35711/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35711.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35711", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35711.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35711" }
https://api.github.com/repos/pandas-dev/pandas/issues/35712
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35712/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35712/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35712/events
https://github.com/pandas-dev/pandas/pull/35712
678,655,211
MDExOlB1bGxSZXF1ZXN0NDY3NTY3MDM1
35,712
PERF: RangeIndex.format performance
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2020-09-09T09:07:44Z", "closed_issues": 94, "created_at": "2020-08-17T19:11:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }, "description": "on-merge: backport to 1.1.x", "due_on": "2020-09-08T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/76", "id": 5781056, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels", "node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==", "number": 76, "open_issues": 0, "state": "closed", "title": "1.1.2", "updated_at": "2020-10-02T11:57:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76" }
13
2020-08-13T18:39:42Z
2020-08-26T13:29:51Z
2020-08-26T11:12:56Z
CONTRIBUTOR
null
#35440 dropped ``RangeIndex._format_with_header``, which was functionally not needed, but needed to avoid creating an internal ndarray. This rectifies that + gives some perf. improvements. ```python >>> idx = pd.RangeIndex(1_000_000) >>> %timeit idx.format() 4.6 s ± 102 ms per loop # pandas v1.1.0 1.67 s ± 19.6 ms per loop # master 595 ms ± 2.35 ms per loop # this PR ``` Also, now the ``_data`` attribute isn't called, so this PR gives a perf. & memory improvement in some use cases compared to master: ```python >>> idx = pd.RangeIndex(1_000_000) >>> idx.format() >>> "_data" in idx._cache False # pandas v.1.1.0 True # master False # this PR ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35712/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35712/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35712.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35712", "merged_at": "2020-08-26T11:12:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35712.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35712" }
https://api.github.com/repos/pandas-dev/pandas/issues/35713
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35713/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35713/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35713/events
https://github.com/pandas-dev/pandas/issues/35713
678,834,018
MDU6SXNzdWU2Nzg4MzQwMTg=
35,713
BUG: read_csv converts quoted strings to floats with quoting=csv.QUOTE_NONNUMERIC
{ "avatar_url": "https://avatars.githubusercontent.com/u/3229981?v=4", "events_url": "https://api.github.com/users/bonsairobo/events{/privacy}", "followers_url": "https://api.github.com/users/bonsairobo/followers", "following_url": "https://api.github.com/users/bonsairobo/following{/other_user}", "gists_url": "https://api.github.com/users/bonsairobo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bonsairobo", "id": 3229981, "login": "bonsairobo", "node_id": "MDQ6VXNlcjMyMjk5ODE=", "organizations_url": "https://api.github.com/users/bonsairobo/orgs", "received_events_url": "https://api.github.com/users/bonsairobo/received_events", "repos_url": "https://api.github.com/users/bonsairobo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bonsairobo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bonsairobo/subscriptions", "type": "User", "url": "https://api.github.com/users/bonsairobo" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "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" } ]
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-08-14T01:30:04Z
2020-08-19T08:03: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 csv import io import pandas as pd source = io.StringIO('"col"\n"1"') df = pd.read_csv(source, quoting=csv.QUOTE_NONNUMERIC) # Expect a string, but it parsed into a float. assert df['col'][0] == '1' ``` #### Problem description In the [documentation](https://docs.python.org/3/library/csv.html#csv.QUOTE_NONNUMERIC) of `csv.QUOTE_NONNUMERIC`, it says: > Instructs the reader to convert all **non-quoted** fields to type float. Yet `pandas.read_csv` is converting my **quoted** value into a float. The above test case fails. #### Expected Output The code sample should pass the assertion. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : d9fff2792bf16178d4e450fe7384244e50635733 python : 3.8.3.final.0 python-bits : 64 OS : Darwin OS-release : 18.7.0 Version : Darwin Kernel Version 18.7.0: Mon Feb 10 21:08:45 PST 2020; root:xnu-4903.278.28~1/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 numpy : 1.19.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.2 setuptools : 46.0.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 : 7.16.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : None 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/35713/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35713/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35714
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35714/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35714/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35714/events
https://github.com/pandas-dev/pandas/issues/35714
678,966,849
MDU6SXNzdWU2Nzg5NjY4NDk=
35,714
BUG: Negative RangeIndex can have positive step
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "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-08-14T07:39:16Z
2020-08-17T14:54:30Z
2020-08-14T07:55:56Z
CONTRIBUTOR
null
Python allows positve steps in ranges, e.g. ```python >>> rng = range(2, -2) >>> rng.step 1 # positive step in a negative range list(rng) [] # empty ``` which surprises me and surely must be a bug in Python. This affects pandas' RangeIndex: ```python >>> idx = pd.RangeIndex(2, -2) >>> df = pd.DataFrame(idx, index=idx) >>> df.shape (0, 1) # 0 length >>> df.index RangeIndex(start=2, stop=-2, step=1) # positive step! >>> df # diplays as empty, even though isn't empty Empty DataFrame Columns: [0] Index: [] >>> df.sum() # result in master, wrong 0 0 dtype: int64 >>> df.sum() # Correct result, not in master 0 2 dtype: int64 ``` We see that the dataframe displays as empty, even though it is not actually empty and aggregations give wrong results. Do people agree that in cases of negative ranges, we should supply a default step of -1?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35714/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35714/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35715
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35715/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35715/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35715/events
https://github.com/pandas-dev/pandas/issues/35715
679,047,117
MDU6SXNzdWU2NzkwNDcxMTc=
35,715
Attribute "dtype" are different error with testing.assert_frame_equal
{ "avatar_url": "https://avatars.githubusercontent.com/u/4921568?v=4", "events_url": "https://api.github.com/users/openskullbox/events{/privacy}", "followers_url": "https://api.github.com/users/openskullbox/followers", "following_url": "https://api.github.com/users/openskullbox/following{/other_user}", "gists_url": "https://api.github.com/users/openskullbox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/openskullbox", "id": 4921568, "login": "openskullbox", "node_id": "MDQ6VXNlcjQ5MjE1Njg=", "organizations_url": "https://api.github.com/users/openskullbox/orgs", "received_events_url": "https://api.github.com/users/openskullbox/received_events", "repos_url": "https://api.github.com/users/openskullbox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/openskullbox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/openskullbox/subscriptions", "type": "User", "url": "https://api.github.com/users/openskullbox" }
[ { "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": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2020-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
2
2020-08-14T09:59:34Z
2020-08-17T18:20:20Z
2020-08-17T18:20:20Z
NONE
null
Hi, When trying testing.assert_frame_equal, I get an assert error. E Attribute "dtype" are different E [left]: Int64 E [right]: Int16 However, for assert_frame_equal, I do set the argument `check_dtype=False`. From traceback, I can see that `assert_extension_array_equal` is being called with `check_dtype=True` which is causing the issue. I do not have a sample at hand and I will update when I can. Affected version: 1.1.0 The test cases were / are running fine with 1.0.5
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35715/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35715/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35716
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35716/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35716/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35716/events
https://github.com/pandas-dev/pandas/pull/35716
679,057,459
MDExOlB1bGxSZXF1ZXN0NDY3OTAwNzky
35,716
Backport PR #35673 on branch 1.1.x (REGR: Dataframe.reset_index() on empty DataFrame with MI and datatime level)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "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-08-21T08:34:54Z", "closed_issues": 110, "created_at": "2020-07-10T13:54:44Z", "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.1.x", "due_on": "2020-08-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/75", "id": 5640672, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels", "node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==", "number": 75, "open_issues": 0, "state": "closed", "title": "1.1.1", "updated_at": "2020-08-25T06:31:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75" }
0
2020-08-14T10:17:29Z
2020-08-14T11:15:48Z
2020-08-14T11:15:48Z
NONE
null
Backport PR #35673: REGR: Dataframe.reset_index() on empty DataFrame with MI and datatime level
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35716/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35716/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35716.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35716", "merged_at": "2020-08-14T11:15:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35716.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35716" }