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/39419
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39419/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39419/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39419/events
https://github.com/pandas-dev/pandas/pull/39419
794,558,214
MDExOlB1bGxSZXF1ZXN0NTYyMDU0Mjcz
39,419
DOC: Update mypy version in whatsnew
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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": "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": "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" }
3
2021-01-26T21:01:52Z
2021-01-26T22:50:22Z
2021-01-26T22:47:01Z
MEMBER
null
- [x] whatsnew entry Forgot this in #39407
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39419/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39419/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39419.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39419", "merged_at": "2021-01-26T22:47:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39419.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39419" }
https://api.github.com/repos/pandas-dev/pandas/issues/39420
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39420/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39420/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39420/events
https://github.com/pandas-dev/pandas/pull/39420
794,558,279
MDExOlB1bGxSZXF1ZXN0NTYyMDU0MzMw
39,420
Read hdf returns unexpected values for categorical
{ "avatar_url": "https://avatars.githubusercontent.com/u/8852168?v=4", "events_url": "https://api.github.com/users/nofarm3/events{/privacy}", "followers_url": "https://api.github.com/users/nofarm3/followers", "following_url": "https://api.github.com/users/nofarm3/following{/other_user}", "gists_url": "https://api.github.com/users/nofarm3/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nofarm3", "id": 8852168, "login": "nofarm3", "node_id": "MDQ6VXNlcjg4NTIxNjg=", "organizations_url": "https://api.github.com/users/nofarm3/orgs", "received_events_url": "https://api.github.com/users/nofarm3/received_events", "repos_url": "https://api.github.com/users/nofarm3/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nofarm3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nofarm3/subscriptions", "type": "User", "url": "https://api.github.com/users/nofarm3" }
[ { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "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" }
3
2021-01-26T21:01:58Z
2021-01-31T06:26:55Z
2021-01-30T20:46:15Z
CONTRIBUTOR
null
- [V] closes #39189 - [V] tests added / passed - [V] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [V] whatsnew entry This bug happens when filtering on categorical string columns and choose a value which doesn't exist in the column.
Instead of returning an empty dataframe, we get some records.
It happens because of the usage in numpy `searchsorted(v, side="left")` that find indices where elements should be inserted to maintain order (and not 0 in case that the value doesn't exist), like was assumed in the code. I changed it to first the for the value, and use `searchsorted` only if value exists, I also added a test for this specific use case.
I think in the long run, maybe we should refactor this area in the code since one function covers multiple use cases which makes it more complex to test. In addition, I moved the logic to a new method to keep the single-responsibility principle and to make it easier to test.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39420/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39420/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39420.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39420", "merged_at": "2021-01-30T20:46:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39420.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39420" }
https://api.github.com/repos/pandas-dev/pandas/issues/39421
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39421/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39421/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39421/events
https://github.com/pandas-dev/pandas/pull/39421
794,559,400
MDExOlB1bGxSZXF1ZXN0NTYyMDU1MjY2
39,421
BUG: Subset slicer on Styler failed on MultiIndex with slice(None)
{ "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" }, { "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": "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": "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" }
5
2021-01-26T21:03:49Z
2021-02-04T06:42:32Z
2021-02-04T00:51:34Z
CONTRIBUTOR
null
- [x] closes #33562 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry The problem with above issue was with the function `non_reducing_slice`. It didn't correctly re-format slicing tuples on multiindices when rows or cols also contained a `slice(None)`. An additional check is now done. This method is only used for `Styler` currently. Tests Added / reformmatted.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39421/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39421/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39421.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39421", "merged_at": "2021-02-04T00:51:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39421.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39421" }
https://api.github.com/repos/pandas-dev/pandas/issues/39422
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39422/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39422/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39422/events
https://github.com/pandas-dev/pandas/issues/39422
794,568,102
MDU6SXNzdWU3OTQ1NjgxMDI=
39,422
BUG: pd.DataFrame is created inconsistently from numpy.ndarray for non-native pandas dtypes such as: datetime64[ms], etc..
{ "avatar_url": "https://avatars.githubusercontent.com/u/41172676?v=4", "events_url": "https://api.github.com/users/MichalHeydelQC/events{/privacy}", "followers_url": "https://api.github.com/users/MichalHeydelQC/followers", "following_url": "https://api.github.com/users/MichalHeydelQC/following{/other_user}", "gists_url": "https://api.github.com/users/MichalHeydelQC/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MichalHeydelQC", "id": 41172676, "login": "MichalHeydelQC", "node_id": "MDQ6VXNlcjQxMTcyNjc2", "organizations_url": "https://api.github.com/users/MichalHeydelQC/orgs", "received_events_url": "https://api.github.com/users/MichalHeydelQC/received_events", "repos_url": "https://api.github.com/users/MichalHeydelQC/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MichalHeydelQC/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MichalHeydelQC/subscriptions", "type": "User", "url": "https://api.github.com/users/MichalHeydelQC" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "370f77", "default": false, "description": "DataFrame data structure", "id": 1049312478, "name": "DataFrame", "node_id": "MDU6TGFiZWwxMDQ5MzEyNDc4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/DataFrame" }, { "color": "d4c5f9", "default": false, "description": "Series/DataFrame/Index/pd.array Constructors", "id": 1465286368, "name": "Constructors", "node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
2
2021-01-26T21:18:25Z
2021-01-30T08:37:13Z
2021-01-30T08:37:12Z
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 a = np.array( [ ["2015-01-01", "2015-01-02", "2015-01-03"], ["2017-01-01", "2017-01-02", "2017-02-03"], ], dtype="datetime64[ms]", ) print(pd.DataFrame(a)) 0 1 2 0 2015-01-01 2015-01-03 2017-01-02 1 2015-01-02 2017-01-01 2017-02-03 b = np.array( [ ["2015-01-01", "2015-01-02", "2015-01-03"], ["2017-01-01", "2017-01-02", "2017-02-03"], ], dtype="datetime64[M]", ) print(pd.DataFrame(b)) 0 1 2 0 2015-01-01 2015-01-03 2017-01-02 1 2015-01-02 2017-01-01 2017-02-03 c = np.array( [ ["2015-01-01", "2015-01-02", "2015-01-03"], ["2017-01-01", "2017-01-02", "2017-02-03"], ], dtype="datetime64[ns]", ) print(pd.DataFrame(c)) 0 1 2 0 2015-01-01 2015-01-02 2015-01-03 1 2017-01-01 2017-01-02 2017-02-03 ``` #### Problem description The exists an inconsistency how pd.DataFrame() is created from 2D numpy.ndarray for not pandas native type. The dataframe should be transposed for datetime64[M], datetime64[ms] etc. #### Expected Output ```python print(pd.DataFrame(a)) 0 1 2 0 2015-01-01 2015-01-02 2015-01-03 1 2017-01-01 2017-01-02 2017-02-03 print(pd.DataFrame(b)) 0 2015-01-01 2015-01-02 2015-01-03 1 2017-01-01 2017-01-02 2017-02-03 ``` #### Possible Hint ```python d = np.array( [ ["2015-01-01", "2015-01-02", "2015-01-03"], ["2017-01-01", "2017-01-02", "2017-02-03"], ], dtype="datetime64[ms]", order="f", ) print(pd.DataFrame(d)) 0 2015-01-01 2015-01-02 2015-01-03 1 2017-01-01 2017-01-02 2017-02-03 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : db08276bc116c438d3fdee492026f8223584c477 python : 3.8.5.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.19041 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : English_United Kingdom.1252 pandas : 1.1.3 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 21.0 setuptools : 49.6.0.post20210108 Cython : None pytest : 6.2.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.18.1 pandas_datareader: None bs4 : 4.9.3 bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.3 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : 1.6.0 sqlalchemy : 1.3.22 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/39422/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39422/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39423
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39423/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39423/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39423/events
https://github.com/pandas-dev/pandas/pull/39423
794,570,808
MDExOlB1bGxSZXF1ZXN0NTYyMDY0ODk3
39,423
BUG: Assert_frame_equal always raising AssertionError when comparing extension dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "e11d21", "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": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
6
2021-01-26T21:23:03Z
2021-01-28T08:48:38Z
2021-01-28T02:34:13Z
MEMBER
null
- [x] closes #39410 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39423/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39423/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39423.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39423", "merged_at": "2021-01-28T02:34:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39423.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39423" }
https://api.github.com/repos/pandas-dev/pandas/issues/39424
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39424/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39424/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39424/events
https://github.com/pandas-dev/pandas/issues/39424
794,576,960
MDU6SXNzdWU3OTQ1NzY5NjA=
39,424
BUG: indexing with missing labels deprecation not applied to MultiIndex
{ "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" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
open
false
null
[]
null
24
2021-01-26T21:33:54Z
2021-11-15T19:02:25Z
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. --- #### Code Sample, a copy-pastable example ```python df = pd.DataFrame({("z","a"): [1, 2, 3], ("z","b"):[4, 5, 6]}) df.loc[pd.IndexSlice[:, pd.IndexSlice["z", ["a", "b", "c"]]]] # works: DataFrame with columns 'a' and 'b'. df = pd.DataFrame({("a"): [1, 2, 3], ("b"):[4, 5, 6]}) df.loc[pd.IndexSlice[:, pd.IndexSlice[["a", "b", "c"]]]] # KeyError: missing label 'c' ``` #### Problem description Should this behaviour be consistent? A recent decision to move to KeyError: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike #### Expected Output Both return KeyError? This can be linked to #32125 also.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39424/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39424/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39425
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39425/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39425/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39425/events
https://github.com/pandas-dev/pandas/pull/39425
794,577,671
MDExOlB1bGxSZXF1ZXN0NTYyMDcwNzE0
39,425
REF: de-duplicate MultiIndex validation
{ "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": "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": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-26T21:35:11Z
2021-01-28T02:36:50Z
2021-01-28T02:07:15Z
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/39425/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39425/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39425.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39425", "merged_at": "2021-01-28T02:07:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39425.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39425" }
https://api.github.com/repos/pandas-dev/pandas/issues/39426
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39426/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39426/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39426/events
https://github.com/pandas-dev/pandas/issues/39426
794,594,666
MDU6SXNzdWU3OTQ1OTQ2NjY=
39,426
BUG: sort_values create an unprintable object
{ "avatar_url": "https://avatars.githubusercontent.com/u/11276794?v=4", "events_url": "https://api.github.com/users/gshimansky/events{/privacy}", "followers_url": "https://api.github.com/users/gshimansky/followers", "following_url": "https://api.github.com/users/gshimansky/following{/other_user}", "gists_url": "https://api.github.com/users/gshimansky/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gshimansky", "id": 11276794, "login": "gshimansky", "node_id": "MDQ6VXNlcjExMjc2Nzk0", "organizations_url": "https://api.github.com/users/gshimansky/orgs", "received_events_url": "https://api.github.com/users/gshimansky/received_events", "repos_url": "https://api.github.com/users/gshimansky/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gshimansky/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gshimansky/subscriptions", "type": "User", "url": "https://api.github.com/users/gshimansky" }
[ { "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": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/18115607?v=4", "events_url": "https://api.github.com/users/zitorelova/events{/privacy}", "followers_url": "https://api.github.com/users/zitorelova/followers", "following_url": "https://api.github.com/users/zitorelova/following{/other_user}", "gists_url": "https://api.github.com/users/zitorelova/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zitorelova", "id": 18115607, "login": "zitorelova", "node_id": "MDQ6VXNlcjE4MTE1NjA3", "organizations_url": "https://api.github.com/users/zitorelova/orgs", "received_events_url": "https://api.github.com/users/zitorelova/received_events", "repos_url": "https://api.github.com/users/zitorelova/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zitorelova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zitorelova/subscriptions", "type": "User", "url": "https://api.github.com/users/zitorelova" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/18115607?v=4", "events_url": "https://api.github.com/users/zitorelova/events{/privacy}", "followers_url": "https://api.github.com/users/zitorelova/followers", "following_url": "https://api.github.com/users/zitorelova/following{/other_user}", "gists_url": "https://api.github.com/users/zitorelova/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zitorelova", "id": 18115607, "login": "zitorelova", "node_id": "MDQ6VXNlcjE4MTE1NjA3", "organizations_url": "https://api.github.com/users/zitorelova/orgs", "received_events_url": "https://api.github.com/users/zitorelova/received_events", "repos_url": "https://api.github.com/users/zitorelova/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zitorelova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zitorelova/subscriptions", "type": "User", "url": "https://api.github.com/users/zitorelova" } ]
{ "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" }
7
2021-01-26T22:05:21Z
2021-02-04T00:50:51Z
2021-02-04T00:50: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. --- **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 numpy as np RAND_LOW = 0 RAND_HIGH = 100 NCOLS = 2 ** 5 NROWS = 2 ** 2 random_state = np.random.RandomState(seed=42) data = { "col{}".format(int((i - NCOLS / 2) % NCOLS + 1)): random_state.randint( RAND_LOW, RAND_HIGH, size=(NROWS) ) for i in range(NCOLS) } df1 = pd.DataFrame(data) print(df1) df2 = df1.sort_values(df1.index[0], axis=1, ignore_index=True) print(df2) ``` #### Problem description [this should explain **why** the current behaviour is a problem and why the expected output is a better solution] Printing object returned by `sort_values` produces an exception because some internal metadata is wrong: ``` Traceback (most recent call last): File "sort_values_test6.py", line 19, in <module> print(df2) File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/core/frame.py", line 803, in __repr__ self.to_string( File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/core/frame.py", line 939, in to_string return fmt.DataFrameRenderer(formatter).to_string( File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/io/formats/format.py", line 1031, in to_string string = string_formatter.to_string() File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/io/formats/string.py", line 23, in to_string text = self._get_string_representation() File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/io/formats/string.py", line 47, in _get_string_representation return self._fit_strcols_to_terminal_width(strcols) File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/io/formats/string.py", line 179, in _fit_strcols_to_terminal_width self.fmt.truncate() File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/io/formats/format.py", line 700, in truncate self._truncate_horizontally() File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/io/formats/format.py", line 718, in _truncate_horizontally self.tr_frame = concat((left, right), axis=1) File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 298, in concat return op.get_result() File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 520, in get_result new_data = concatenate_block_managers( File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/core/internals/concat.py", line 89, in concatenate_block_managers return BlockManager(blocks, axes) File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/core/internals/managers.py", line 143, in __init__ self._verify_integrity() File "/localdisk/gashiman/miniconda3/lib/python3.8/site-packages/pandas/core/internals/managers.py", line 323, in _verify_integrity raise construction_error(tot_items, block.shape[1:], self.axes) ValueError: Shape of passed values is (4, 16), indices imply (32, 16) ``` #### Expected Output #### 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 : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.8.6.final.0 python-bits : 64 OS : Linux OS-release : 5.4.0-56-generic Version : #62-Ubuntu SMP Mon Nov 23 19:20:19 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.2.1 numpy : 1.19.4 pytz : 2020.1 dateutil : 2.8.1 pip : 20.3.1 setuptools : 49.6.0.post20201009 Cython : None pytest : 6.2.1 hypothesis : None sphinx : None blosc : None feather : 0.4.1 xlsxwriter : None lxml.etree : 4.6.2 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.18.1 pandas_datareader: None bs4 : 4.9.3 bottleneck : None fsspec : 0.8.4 fastparquet : None gcsfs : None matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.5 pandas_gbq : 0.14.1 pyarrow : 2.0.0 pyxlsb : None s3fs : 0.5.2 scipy : 1.5.4 sqlalchemy : 1.3.21 tables : 3.6.1 tabulate : None xarray : 0.16.2 xlrd : 2.0.1 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/39426/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39426/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39427
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39427/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39427/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39427/events
https://github.com/pandas-dev/pandas/pull/39427
794,627,214
MDExOlB1bGxSZXF1ZXN0NTYyMTEyNTc4
39,427
REF: reuse can_hold_element for NumericIndex._validate_fill_value
{ "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": "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-26T23:05:12Z
2021-01-28T02:35:29Z
2021-01-28T02:06:42Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39427/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39427/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39427.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39427", "merged_at": "2021-01-28T02:06:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39427.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39427" }
https://api.github.com/repos/pandas-dev/pandas/issues/39428
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39428/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39428/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39428/events
https://github.com/pandas-dev/pandas/pull/39428
794,639,849
MDExOlB1bGxSZXF1ZXN0NTYyMTIzMTA1
39,428
Backport PR #39376 on branch 1.2.x (REGR: write compressed pickle files with protocol=5)
{ "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": "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": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
0
2021-01-26T23:32:57Z
2021-01-27T10:15:20Z
2021-01-27T10:15:20Z
NONE
null
Backport PR #39376: REGR: write compressed pickle files with protocol=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/39428/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39428/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39428.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39428", "merged_at": "2021-01-27T10:15:20Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39428.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39428" }
https://api.github.com/repos/pandas-dev/pandas/issues/39429
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39429/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39429/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39429/events
https://github.com/pandas-dev/pandas/pull/39429
794,639,952
MDExOlB1bGxSZXF1ZXN0NTYyMTIzMTky
39,429
Backport PR #39406 on branch 1.2.x (DOC: link to correct PR)
{ "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": "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": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
0
2021-01-26T23:33:09Z
2021-01-27T08:39:00Z
2021-01-27T08:39:00Z
NONE
null
Backport PR #39406: DOC: link to correct 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/39429/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39429/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39429.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39429", "merged_at": "2021-01-27T08:39:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39429.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39429" }
https://api.github.com/repos/pandas-dev/pandas/issues/39430
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39430/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39430/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39430/events
https://github.com/pandas-dev/pandas/issues/39430
794,799,103
MDU6SXNzdWU3OTQ3OTkxMDM=
39,430
BUG: read_json(orient='table') converts 'float64' to 'datetime64' datatype if the column name ends with '_time'
{ "avatar_url": "https://avatars.githubusercontent.com/u/6972290?v=4", "events_url": "https://api.github.com/users/thoo/events{/privacy}", "followers_url": "https://api.github.com/users/thoo/followers", "following_url": "https://api.github.com/users/thoo/following{/other_user}", "gists_url": "https://api.github.com/users/thoo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/thoo", "id": 6972290, "login": "thoo", "node_id": "MDQ6VXNlcjY5NzIyOTA=", "organizations_url": "https://api.github.com/users/thoo/orgs", "received_events_url": "https://api.github.com/users/thoo/received_events", "repos_url": "https://api.github.com/users/thoo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/thoo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/thoo/subscriptions", "type": "User", "url": "https://api.github.com/users/thoo" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
null
2
2021-01-27T06:00:39Z
2021-08-15T04:07:00Z
2021-08-15T04:07:00Z
CONTRIBUTOR
null
- [ X] I have checked that this issue has not already been reported. - [ X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import numpy as np import pandas as pd df1=pd.DataFrame({'test_time':[np.nan,np.nan]}) df1.info() ``` This returns the data type as `float64`. ```python RangeIndex: 2 entries, 0 to 1 Data columns (total 1 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 test_time 0 non-null float64 dtypes: float64(1) memory usage: 144.0 bytes ``` Now convert `df1` to `json` and convert it back to `DataFrame`. ```python df2=pd.read_json(df1.to_json(orient='table'),orient='table') df2.info() ``` This convert the data type from `float64` to `datetime64` as shown below. ```python <class 'pandas.core.frame.DataFrame'> Int64Index: 2 entries, 0 to 1 Data columns (total 1 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 test_time 0 non-null datetime64[ns] dtypes: datetime64[ns](1) memory usage: 32.0 bytes ``` The following works as expected if the column named is changed to avoid to end with `_time` . ```python DF1=pd.DataFrame({'test_t':[np.nan,np.nan]}) DF1.info() DF2=pd.read_json(DF1.to_json(orient='table'),orient='table') DF2.info() ``` #### Problem description When the data is read from `json` , the column names ending with `_time` change the data type from `float64` to `datetime64`. `DataFrame => to_json (orient='table') => read_json(orient='table') => DataFrame` should return the same data type since `orient='table' ` encodes all the column data type in the `json` string. #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.7.8.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.2.1 numpy : 1.19.4 pytz : 2020.5 dateutil : 2.8.1 pip : 20.3.3 setuptools : 51.1.1 Cython : 0.29.21 pytest : 6.2.1 hypothesis : None sphinx : 3.4.2 blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.2 html5lib : 1.1 pymysql : None psycopg2 : 2.8.6 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.19.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : 3.3.2 numexpr : 2.7.2 odfpy : None openpyxl : 3.0.5 pandas_gbq : None pyarrow : 1.0.1 pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.22 tables : 3.6.1 tabulate : 0.8.7 xarray : None xlrd : 2.0.1 xlwt : 1.3.0 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/39430/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39430/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39431
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39431/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39431/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39431/events
https://github.com/pandas-dev/pandas/issues/39431
794,837,791
MDU6SXNzdWU3OTQ4Mzc3OTE=
39,431
QST: How to solve the problem KeyError: "['Label'] not found in axis" ??
{ "avatar_url": "https://avatars.githubusercontent.com/u/45327103?v=4", "events_url": "https://api.github.com/users/ihafsa/events{/privacy}", "followers_url": "https://api.github.com/users/ihafsa/followers", "following_url": "https://api.github.com/users/ihafsa/following{/other_user}", "gists_url": "https://api.github.com/users/ihafsa/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ihafsa", "id": 45327103, "login": "ihafsa", "node_id": "MDQ6VXNlcjQ1MzI3MTAz", "organizations_url": "https://api.github.com/users/ihafsa/orgs", "received_events_url": "https://api.github.com/users/ihafsa/received_events", "repos_url": "https://api.github.com/users/ihafsa/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ihafsa/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ihafsa/subscriptions", "type": "User", "url": "https://api.github.com/users/ihafsa" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
5
2021-01-27T07:11:56Z
2021-02-07T15:15:44Z
2021-02-07T15:15:44Z
NONE
null
I am working on network traffic classification using tf.keras. i want to drop a column name Label and set Label as Y and all other columns in X. I am using pandas. here is the code line: **df =df.drop(['Label'], axis=1, inplace=True)** I am getting the following error: --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-41-6e2d6c1eb80d> in <module>() ----> 1 df =df.drop(['Label'], axis=1, inplace=True) 3 frames /usr/local/lib/python3.6/dist-packages/pandas/core/indexes/base.py in drop(self, labels, errors) 5285 if mask.any(): 5286 if errors != "ignore": -> 5287 raise KeyError(f"{labels[mask]} not found in axis") 5288 indexer = indexer[~mask] 5289 return self.delete(indexer) **KeyError: "['Label'] not found in axis**" I am trying different methods but failed. anyone of you kindly help to get rid of this situation.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39431/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39431/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39432
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39432/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39432/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39432/events
https://github.com/pandas-dev/pandas/pull/39432
794,980,769
MDExOlB1bGxSZXF1ZXN0NTYyNDA0NTcz
39,432
ENH: Add compression to read_stata and StataReader
{ "avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4", "events_url": "https://api.github.com/users/bashtage/events{/privacy}", "followers_url": "https://api.github.com/users/bashtage/followers", "following_url": "https://api.github.com/users/bashtage/following{/other_user}", "gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bashtage", "id": 5585221, "login": "bashtage", "node_id": "MDQ6VXNlcjU1ODUyMjE=", "organizations_url": "https://api.github.com/users/bashtage/orgs", "received_events_url": "https://api.github.com/users/bashtage/received_events", "repos_url": "https://api.github.com/users/bashtage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bashtage/subscriptions", "type": "User", "url": "https://api.github.com/users/bashtage" }
[ { "color": "5319e7", "default": false, "description": "read_stata, to_stata", "id": 104865385, "name": "IO Stata", "node_id": "MDU6TGFiZWwxMDQ4NjUzODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata" } ]
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" }
4
2021-01-27T10:37:38Z
2021-02-02T13:19:25Z
2021-02-02T13:19:21Z
CONTRIBUTOR
null
Add support for reading compressed dta files directly xref #26599 - [X] closes #26599 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [X] 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/39432/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39432/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39432.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39432", "merged_at": "2021-02-02T13:19:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39432.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39432" }
https://api.github.com/repos/pandas-dev/pandas/issues/39433
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39433/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39433/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39433/events
https://github.com/pandas-dev/pandas/issues/39433
794,994,958
MDU6SXNzdWU3OTQ5OTQ5NTg=
39,433
BUG: groupby.rolling: Originial index is not being preserved when using date_part of DatetimeIndex and as_index key word seems to have no effect
{ "avatar_url": "https://avatars.githubusercontent.com/u/43210452?v=4", "events_url": "https://api.github.com/users/derHeinzer/events{/privacy}", "followers_url": "https://api.github.com/users/derHeinzer/followers", "following_url": "https://api.github.com/users/derHeinzer/following{/other_user}", "gists_url": "https://api.github.com/users/derHeinzer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/derHeinzer", "id": 43210452, "login": "derHeinzer", "node_id": "MDQ6VXNlcjQzMjEwNDUy", "organizations_url": "https://api.github.com/users/derHeinzer/orgs", "received_events_url": "https://api.github.com/users/derHeinzer/received_events", "repos_url": "https://api.github.com/users/derHeinzer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/derHeinzer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/derHeinzer/subscriptions", "type": "User", "url": "https://api.github.com/users/derHeinzer" }
[ { "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": "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" }
3
2021-01-27T10:56:41Z
2021-04-09T19:42:45Z
2021-04-09T19:42:45Z
NONE
null
- [ ] 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 data = [ ["A", "2018-01-01", 100], ["A", "2018-01-02", 200], ["B", "2018-01-01", 150], ["B", "2018-01-02", 250], ] df = pd.DataFrame(data, columns=["id", "date", "num"]) df["date"] = pd.to_datetime(df["date"]) df.set_index(["date"], inplace=True) df_res1 = df.groupby([df.id, df.index.weekday]).rolling(window=2, min_periods=1).mean() df_res2 = df.groupby([df.id, df.index.weekday], as_index=False).rolling(window=2, min_periods=1).mean() df_res3 = df.groupby([df.id]).rolling(window=2, min_periods=1).mean() df_res4 = df.groupby([df.id], as_index=False).rolling(window=2, min_periods=1).mean() pd.show_versions() print(df_res1.head()) print(df_res1.index.names) print(df_res2.index.names) print(df_res3.index.names) print(df_res4.index.names) if __name__ == '__main__': ... ``` #### Problem description Comparing pandas 1.0.1 and 1.2.1 yields: 1. When using a date part like df.index.weekday to group by and using some rolling window function like .mean() the original datetime index is not part of the resulting frames index anymore. 2. The group by keyword argumen as_index seems to have no effect in that situation anymore #### Expected Output ['id', 'date', 'date'] [None, 'date'] ['id', 'date'] [None, 'date'] #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.8.4.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-45-generic Version : #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.2.1 numpy : 1.19.1 </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39433/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39433/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39434
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39434/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39434/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39434/events
https://github.com/pandas-dev/pandas/issues/39434
795,003,490
MDU6SXNzdWU3OTUwMDM0OTA=
39,434
BUG: Regression in sort_index with ascending=None
{ "avatar_url": "https://avatars.githubusercontent.com/u/26389732?v=4", "events_url": "https://api.github.com/users/YarShev/events{/privacy}", "followers_url": "https://api.github.com/users/YarShev/followers", "following_url": "https://api.github.com/users/YarShev/following{/other_user}", "gists_url": "https://api.github.com/users/YarShev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/YarShev", "id": 26389732, "login": "YarShev", "node_id": "MDQ6VXNlcjI2Mzg5NzMy", "organizations_url": "https://api.github.com/users/YarShev/orgs", "received_events_url": "https://api.github.com/users/YarShev/received_events", "repos_url": "https://api.github.com/users/YarShev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/YarShev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/YarShev/subscriptions", "type": "User", "url": "https://api.github.com/users/YarShev" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2021-03-02T08:40:51Z", "closed_issues": 49, "created_at": "2021-02-07T13:58:05Z", "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.2.x\r\n\r\n", "due_on": "2021-03-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/83", "id": 6402340, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels", "node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==", "number": 83, "open_issues": 0, "state": "closed", "title": "1.2.3", "updated_at": "2021-03-02T17:15:27Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83" }
8
2021-01-27T11:07:50Z
2021-02-26T14:21:24Z
2021-02-26T14:21:24Z
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 import numpy as np df = pandas.DataFrame(np.arange(64)) length = len(df.index) df.index = [(i - length / 2) % length for i in range(length)] df.sort_index(axis=0, ascending=None, na_position="first") ValueError: the 'axis' parameter is not supported in the pandas implementation of argsort() ``` #### Problem description There was no such issue in pandas version 1.1.5 #### Output of ``pd.show_versions()`` pandas : 1.2.1 numpy : 1.19.5 pytz : 2020.5 dateutil : 2.8.1 pip : 20.3.3 setuptools : 51.1.2.post20210112 Cython : None pytest : 6.2.1 hypothesis : None sphinx : None blosc : None feather : 0.4.1 xlsxwriter : None lxml.etree : 4.6.2 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.12.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : None fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : 3.2.2 numexpr : 2.7.2 odfpy : None openpyxl : 3.0.6 pandas_gbq : None pyarrow : 2.0.0 pyxlsb : None s3fs : 0.5.2 scipy : 1.6.0 sqlalchemy : 1.3.22 tables : 3.6.1 tabulate : None xarray : 0.16.2 xlrd : 2.0.1 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/39434/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39434/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39435
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39435/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39435/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39435/events
https://github.com/pandas-dev/pandas/issues/39435
795,033,311
MDU6SXNzdWU3OTUwMzMzMTE=
39,435
ENH: support reading from several files for read_* functions
{ "avatar_url": "https://avatars.githubusercontent.com/u/45976948?v=4", "events_url": "https://api.github.com/users/anmyachev/events{/privacy}", "followers_url": "https://api.github.com/users/anmyachev/followers", "following_url": "https://api.github.com/users/anmyachev/following{/other_user}", "gists_url": "https://api.github.com/users/anmyachev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/anmyachev", "id": 45976948, "login": "anmyachev", "node_id": "MDQ6VXNlcjQ1OTc2OTQ4", "organizations_url": "https://api.github.com/users/anmyachev/orgs", "received_events_url": "https://api.github.com/users/anmyachev/received_events", "repos_url": "https://api.github.com/users/anmyachev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/anmyachev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anmyachev/subscriptions", "type": "User", "url": "https://api.github.com/users/anmyachev" }
[ { "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": "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": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
open
false
null
[]
null
0
2021-01-27T11:50:26Z
2021-08-15T04:08:25Z
null
CONTRIBUTOR
null
#### Is your feature request related to a problem? In general, the implementation of this idea should contribute to simplification of reading functions use and reduce the use of boilerplate code. On the other hand, this shouldn't make it much more difficult to maintain that functions in Pandas. Current reading approach (from Pandas docs): ```python import glob files = glob.glob('file_*.csv') result = pd.concat([pd.read_csv(f) for f in files], ignore_index=True) ``` #### Describe the solution you'd like We can make reading several files as "out-of-the-box" feature of Pandas (with using wildcard): ```python result = pd.read_csv('file_*csv') ``` #### API breaking implications In one of the two proposed solutions: `filepath_or_buffer` also can be of `list[str]` type. Changes do not break backward compatibility. #### Describe alternatives you've considered Another possible option (using list of files in `read_*` call): ```python import glob result = pd.read_csv(glob.glob('file_*csv')) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39435/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39435/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39436
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39436/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39436/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39436/events
https://github.com/pandas-dev/pandas/issues/39436
795,246,027
MDU6SXNzdWU3OTUyNDYwMjc=
39,436
ValueError: Must produce aggregated value, if DataFrame contains a DataFrame as an element
{ "avatar_url": "https://avatars.githubusercontent.com/u/5442389?v=4", "events_url": "https://api.github.com/users/Jogala/events{/privacy}", "followers_url": "https://api.github.com/users/Jogala/followers", "following_url": "https://api.github.com/users/Jogala/following{/other_user}", "gists_url": "https://api.github.com/users/Jogala/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Jogala", "id": 5442389, "login": "Jogala", "node_id": "MDQ6VXNlcjU0NDIzODk=", "organizations_url": "https://api.github.com/users/Jogala/orgs", "received_events_url": "https://api.github.com/users/Jogala/received_events", "repos_url": "https://api.github.com/users/Jogala/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Jogala/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Jogala/subscriptions", "type": "User", "url": "https://api.github.com/users/Jogala" }
[ { "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": "f2f989", "default": false, "description": "Data where the values are collections (lists, sets, dicts, objects, etc.).", "id": 2189479765, "name": "Nested Data", "node_id": "MDU6TGFiZWwyMTg5NDc5NzY1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Nested%20Data" } ]
open
false
null
[]
null
1
2021-01-27T16:21:10Z
2021-07-05T16:29:31Z
null
NONE
null
This minimal example assigns the column B the first value of each group: ``` df = pd.DataFrame(data=np.asarray([[1,1,1,2],[4,4,4,10]]).transpose(),columns = ['A','B']) print(df) dfagg = df.groupby('A').agg({'B' : lambda x : x.iloc[0]}) print(dfagg) ``` Hence ``` A B 0 1 4 1 1 4 2 1 4 3 2 10 ``` Becomes: ``` A 1 4 2 10 ``` If I now modify the value of column B to an array of DataFrames ``` df1 = pd.DataFrame({'x' : [0,1], 'y' : [-1,-2]}) df2 = pd.DataFrame({'x' : [0,3], 'y' : [11,12]}) df = pd.DataFrame(data=np.asarray([[1,1,1,2],[df1,df1,df1,df2]],dtype=object).transpose(),columns = ['A','B']) print(df) dfagg = df.groupby('A').agg({'B' : lambda x : x.iloc[0]}) print(dfagg) ``` I get the error: **ValueError: Must produce aggregated value** It seems like this is a bug. There is no logic behind this behavior. I also think that it did not raise an error in pandas like 2 years ago, when I used the code snippet the last time. Currently using the newest version 1.2.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/39436/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39436/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39437
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39437/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39437/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39437/events
https://github.com/pandas-dev/pandas/pull/39437
795,249,196
MDExOlB1bGxSZXF1ZXN0NTYyNjI5NzY4
39,437
REF: Index.insert maybe_promote -> find_common_type
{ "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": "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-27T16:24:56Z
2021-01-28T02:35:57Z
2021-01-28T02:05:50Z
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/39437/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39437/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39437.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39437", "merged_at": "2021-01-28T02:05:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39437.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39437" }
https://api.github.com/repos/pandas-dev/pandas/issues/39438
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39438/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39438/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39438/events
https://github.com/pandas-dev/pandas/issues/39438
795,254,643
MDU6SXNzdWU3OTUyNTQ2NDM=
39,438
BUG: inconsistent `at` setter method
{ "avatar_url": "https://avatars.githubusercontent.com/u/30022881?v=4", "events_url": "https://api.github.com/users/andrewjgray1001/events{/privacy}", "followers_url": "https://api.github.com/users/andrewjgray1001/followers", "following_url": "https://api.github.com/users/andrewjgray1001/following{/other_user}", "gists_url": "https://api.github.com/users/andrewjgray1001/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andrewjgray1001", "id": 30022881, "login": "andrewjgray1001", "node_id": "MDQ6VXNlcjMwMDIyODgx", "organizations_url": "https://api.github.com/users/andrewjgray1001/orgs", "received_events_url": "https://api.github.com/users/andrewjgray1001/received_events", "repos_url": "https://api.github.com/users/andrewjgray1001/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andrewjgray1001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andrewjgray1001/subscriptions", "type": "User", "url": "https://api.github.com/users/andrewjgray1001" }
[ { "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": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "be21f2", "default": false, "description": "May be closeable, needs more eyeballs", "id": 2365504893, "name": "Closing Candidate", "node_id": "MDU6TGFiZWwyMzY1NTA0ODkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate" } ]
closed
false
null
[]
{ "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" }
7
2021-01-27T16:31:26Z
2021-01-28T01:35:26Z
2021-01-28T01:35:26Z
NONE
null
#### Problem description I am seeing some very strange behaviour. I have a python function which does simple manipulation of data in a DataFrame. this code is very simple - unit tests work in the relevant package - however the behaviour is very different in server environment - where function is called via rest api. It turns out that the difference is due to the fact that in the server environment the behaviour of the dataframe 'at' setter method, (ie: myframe.at[rowidx,colkey] = value) is different to that in the package test environment. in the package test environment the effect of this method is to change the value of the appropriate element of the dataframe - but in the server environment it appears to insert a value after the referenced element. The dataframe changes size - even through the referenced element is within the defined bounds of the data. as far as I can tell the versions of the relevant libraries packages are exactly the same in both cases - I might be wrong - if I dig into the pandas code - it seems to me to be unnecessarily convoluted, but as far as i can tell the problem happens with frame._set_value in the except clause. I am a very experienced developer - but not with Python. I have written components similar to DataFrame in C++ in the distant past. this kind of problem shakes my confidence in deploying anything which might exhibit this kind of behaviour - which causes serious and unpredictable errors downstream rather than an outright runtime error, or maybe I am just using it incorrectly. I have dug into this quite a bit - and I am unclear how to further diagnose what is going on. #### Output of ``pd.show_versions()`` <details> Version : 10.0.19041 machine : AMD64 processor : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : English_United Kingdom.1252 pandas : 1.2.1 numpy : 1.19.5 pytz : 2020.5 dateutil : 2.8.1 pip : 21.0 setuptools : 49.2.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 : None fastparquet : None gcsfs : None matplotlib : 3.3.3 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : 1.6.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/39438/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39438/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39439
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39439/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39439/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39439/events
https://github.com/pandas-dev/pandas/pull/39439
795,261,982
MDExOlB1bGxSZXF1ZXN0NTYyNjQwNTQ5
39,439
BUG: RangeIndex concatenating incorrectly a single object of length 1
{ "avatar_url": "https://avatars.githubusercontent.com/u/40292327?v=4", "events_url": "https://api.github.com/users/AnnaDaglis/events{/privacy}", "followers_url": "https://api.github.com/users/AnnaDaglis/followers", "following_url": "https://api.github.com/users/AnnaDaglis/following{/other_user}", "gists_url": "https://api.github.com/users/AnnaDaglis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AnnaDaglis", "id": 40292327, "login": "AnnaDaglis", "node_id": "MDQ6VXNlcjQwMjkyMzI3", "organizations_url": "https://api.github.com/users/AnnaDaglis/orgs", "received_events_url": "https://api.github.com/users/AnnaDaglis/received_events", "repos_url": "https://api.github.com/users/AnnaDaglis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AnnaDaglis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AnnaDaglis/subscriptions", "type": "User", "url": "https://api.github.com/users/AnnaDaglis" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-27T16:40:30Z
2021-01-28T15:04:29Z
2021-01-28T15:04:20Z
CONTRIBUTOR
null
- [x] closes #39401 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39439/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39439/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39439.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39439", "merged_at": "2021-01-28T15:04:20Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39439.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39439" }
https://api.github.com/repos/pandas-dev/pandas/issues/39440
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39440/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39440/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39440/events
https://github.com/pandas-dev/pandas/pull/39440
795,294,862
MDExOlB1bGxSZXF1ZXN0NTYyNjY3NjU2
39,440
REGR: prefer user-provided mode
{ "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": "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": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
7
2021-01-27T17:22:23Z
2021-02-23T21:59:23Z
2021-01-28T19:50:04Z
CONTRIBUTOR
null
follow-up to #39253 - [x] closes #39247 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Make sure that the user-provided mode is always preferred (if it contains 't' or 'b') and extend list of text-only 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/39440/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39440/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39440.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39440", "merged_at": "2021-01-28T19:50:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39440.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39440" }
https://api.github.com/repos/pandas-dev/pandas/issues/39441
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39441/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39441/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39441/events
https://github.com/pandas-dev/pandas/pull/39441
795,360,569
MDExOlB1bGxSZXF1ZXN0NTYyNzIxNjc5
39,441
DOC: split Contributing page #39367
{ "avatar_url": "https://avatars.githubusercontent.com/u/7188421?v=4", "events_url": "https://api.github.com/users/David-dmh/events{/privacy}", "followers_url": "https://api.github.com/users/David-dmh/followers", "following_url": "https://api.github.com/users/David-dmh/following{/other_user}", "gists_url": "https://api.github.com/users/David-dmh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/David-dmh", "id": 7188421, "login": "David-dmh", "node_id": "MDQ6VXNlcjcxODg0MjE=", "organizations_url": "https://api.github.com/users/David-dmh/orgs", "received_events_url": "https://api.github.com/users/David-dmh/received_events", "repos_url": "https://api.github.com/users/David-dmh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/David-dmh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/David-dmh/subscriptions", "type": "User", "url": "https://api.github.com/users/David-dmh" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
15
2021-01-27T18:58:50Z
2021-03-06T20:53:11Z
2021-03-06T20:53:11Z
CONTRIBUTOR
null
Splited original contributing.rst into 3 separate pages: - Removed information for setting up an environment outside of Docker and created a new file for this purpose. - Removed information for contributing to the codebase and created a new file for this purpose. - Reformatted contributing.rst and renamed as contributing_documentation.rst (containing the remainder of information pertaining to documentation contributions).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39441/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39441/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39441.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39441", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/39441.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39441" }
https://api.github.com/repos/pandas-dev/pandas/issues/39442
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39442/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39442/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39442/events
https://github.com/pandas-dev/pandas/pull/39442
795,402,180
MDExOlB1bGxSZXF1ZXN0NTYyNzU1OTQw
39,442
BUG: DataFrame constructor reordering elements with ndarray from datetime dtype not datetime64[ns]
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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": "d4c5f9", "default": false, "description": "Series/DataFrame/Index/pd.array Constructors", "id": 1465286368, "name": "Constructors", "node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
5
2021-01-27T20:00:15Z
2021-01-30T08:36:59Z
2021-01-28T20:11:56Z
MEMBER
null
- [x] closes #39422 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry The ravel("K") was a problem when passing in a view on the underlying object, which was done here.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39442/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39442/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39442.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39442", "merged_at": "2021-01-28T20:11:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39442.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39442" }
https://api.github.com/repos/pandas-dev/pandas/issues/39443
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39443/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39443/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39443/events
https://github.com/pandas-dev/pandas/issues/39443
795,462,604
MDU6SXNzdWU3OTU0NjI2MDQ=
39,443
BUG: Concatenating categorical datetime columns raises a ValueError since v1.2
{ "avatar_url": "https://avatars.githubusercontent.com/u/5399935?v=4", "events_url": "https://api.github.com/users/aiudirog/events{/privacy}", "followers_url": "https://api.github.com/users/aiudirog/followers", "following_url": "https://api.github.com/users/aiudirog/following{/other_user}", "gists_url": "https://api.github.com/users/aiudirog/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aiudirog", "id": 5399935, "login": "aiudirog", "node_id": "MDQ6VXNlcjUzOTk5MzU=", "organizations_url": "https://api.github.com/users/aiudirog/orgs", "received_events_url": "https://api.github.com/users/aiudirog/received_events", "repos_url": "https://api.github.com/users/aiudirog/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aiudirog/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aiudirog/subscriptions", "type": "User", "url": "https://api.github.com/users/aiudirog" }
[ { "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/19406854?v=4", "events_url": "https://api.github.com/users/arredond/events{/privacy}", "followers_url": "https://api.github.com/users/arredond/followers", "following_url": "https://api.github.com/users/arredond/following{/other_user}", "gists_url": "https://api.github.com/users/arredond/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arredond", "id": 19406854, "login": "arredond", "node_id": "MDQ6VXNlcjE5NDA2ODU0", "organizations_url": "https://api.github.com/users/arredond/orgs", "received_events_url": "https://api.github.com/users/arredond/received_events", "repos_url": "https://api.github.com/users/arredond/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arredond/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arredond/subscriptions", "type": "User", "url": "https://api.github.com/users/arredond" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/19406854?v=4", "events_url": "https://api.github.com/users/arredond/events{/privacy}", "followers_url": "https://api.github.com/users/arredond/followers", "following_url": "https://api.github.com/users/arredond/following{/other_user}", "gists_url": "https://api.github.com/users/arredond/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arredond", "id": 19406854, "login": "arredond", "node_id": "MDQ6VXNlcjE5NDA2ODU0", "organizations_url": "https://api.github.com/users/arredond/orgs", "received_events_url": "https://api.github.com/users/arredond/received_events", "repos_url": "https://api.github.com/users/arredond/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arredond/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arredond/subscriptions", "type": "User", "url": "https://api.github.com/users/arredond" } ]
{ "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" }
9
2021-01-27T21:37:24Z
2021-08-31T11:12:03Z
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. --- #### Code Sample, a copy-pastable example ```python import pandas as pd from datetime import datetime pd.concat([ pd.DataFrame({'x': pd.Series(datetime(2021, 1, 1), index=[0], dtype='category')}), pd.DataFrame({'x': pd.Series(datetime(2021, 1, 2), index=[1], dtype='category')}), ]) ``` #### Problem description Since v1.2, concatenating two or more dataframes with at least one categorical datetime column with different categories raises this error: <details> <summary>Traceback</summary> ```python-traceback --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-36ad6bb4648d> in <module> 2 from datetime import datetime 3 ----> 4 pd.concat([ 5 pd.DataFrame({'x': pd.Series(datetime(2021, 1, 1), index=[0], dtype='category')}), 6 pd.DataFrame({'x': pd.Series(datetime(2021, 1, 2), index=[1], dtype='category')}), venv/lib/python3.9/site-packages/pandas/core/reshape/concat.py in concat(objs, axis, join, ignore_index, keys, levels, names, verify_integrity, sort, copy) 296 ) 297 --> 298 return op.get_result() 299 300 venv/lib/python3.9/site-packages/pandas/core/reshape/concat.py in get_result(self) 518 mgrs_indexers.append((obj._mgr, indexers)) 519 --> 520 new_data = concatenate_block_managers( 521 mgrs_indexers, self.new_axes, concat_axis=self.bm_axis, copy=self.copy 522 ) venv/lib/python3.9/site-packages/pandas/core/internals/concat.py in concatenate_block_managers(mgrs_indexers, axes, concat_axis, copy) 78 values = values.reshape(1, len(values)) 79 ---> 80 b = make_block(values, placement=placement, ndim=blk.ndim) 81 else: 82 b = make_block( venv/lib/python3.9/site-packages/pandas/core/internals/blocks.py in make_block(values, placement, klass, ndim, dtype) 2730 values = DatetimeArray._simple_new(values, dtype=dtype) 2731 -> 2732 return klass(values, ndim=ndim, placement=placement) 2733 2734 venv/lib/python3.9/site-packages/pandas/core/internals/blocks.py in __init__(self, values, placement, ndim) 135 """ 136 # TODO(EA2D): ndim will be unnecessary with 2D EAs --> 137 self.ndim = self._check_ndim(values, ndim) 138 self.mgr_locs = placement 139 self.values = self._maybe_coerce_values(values) venv/lib/python3.9/site-packages/pandas/core/internals/blocks.py in _check_ndim(self, values, ndim) 184 185 if self._validate_ndim and values.ndim != ndim: --> 186 raise ValueError( 187 "Wrong number of dimensions. " 188 f"values.ndim != ndim [{values.ndim} != {ndim}]" ValueError: Wrong number of dimensions. values.ndim != ndim [1 != 2] ``` </details> I have confirmed that: - it happens on `v1.2.0`, `v1.2.1`, and `v1.3.0.dev0+553.gd0cfa0303` on both Windows 10 and Linux - it doesn't happen before `v1.2` or if the categories are the same #### Expected Output A single, properly concatenated dataframe: ``` x 0 2021-01-01 1 2021-01-02 ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.9.1.final.0 python-bits : 64 OS : Linux OS-release : 5.10.10-zen1-1-zen Version : #1 ZEN SMP PREEMPT Sat, 23 Jan 2021 23:59:50 +0000 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.2.1 numpy : 1.19.5 pytz : 2020.5 dateutil : 2.8.1 pip : 20.3.1 setuptools : 52.0.0 Cython : 0.29.21 pytest : 6.2.1 hypothesis : None sphinx : 3.4.3 blosc : None feather : None xlsxwriter : None lxml.etree : 4.6.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.19.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : None fsspec : 0.8.5 fastparquet : None gcsfs : None matplotlib : 3.3.3 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : 1.6.0 sqlalchemy : 1.3.22 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/39443/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39443/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39444
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39444/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39444/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39444/events
https://github.com/pandas-dev/pandas/pull/39444
795,590,247
MDExOlB1bGxSZXF1ZXN0NTYyOTEzNzcz
39,444
REF: shallow_copy->simple_new/rename
{ "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": "e99695", "default": false, "description": "Related to the Index class or subclasses", "id": 1218227310, "name": "Index", "node_id": "MDU6TGFiZWwxMjE4MjI3MzEw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index" }, { "color": "d4c5f9", "default": false, "description": "Series/DataFrame/Index/pd.array Constructors", "id": 1465286368, "name": "Constructors", "node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors" } ]
closed
false
null
[]
{ "closed_at": "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" }
3
2021-01-28T01:34:43Z
2021-01-28T20:54:20Z
2021-01-28T20:12:54Z
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/39444/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39444/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39444.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39444", "merged_at": "2021-01-28T20:12:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39444.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39444" }
https://api.github.com/repos/pandas-dev/pandas/issues/39445
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39445/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39445/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39445/events
https://github.com/pandas-dev/pandas/pull/39445
795,592,123
MDExOlB1bGxSZXF1ZXN0NTYyOTE1Mjc0
39,445
TST: strictify xfails in sparse tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" } ]
closed
false
null
[]
{ "closed_at": "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" }
1
2021-01-28T01:39:54Z
2021-01-28T02:22:36Z
2021-01-28T02:18:59Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39445/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39445/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39445.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39445", "merged_at": "2021-01-28T02:18:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39445.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39445" }
https://api.github.com/repos/pandas-dev/pandas/issues/39446
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39446/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39446/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39446/events
https://github.com/pandas-dev/pandas/pull/39446
795,599,061
MDExOlB1bGxSZXF1ZXN0NTYyOTIwODA1
39,446
REF: dont pass fill_value to algos.take_nd from internals.concat
{ "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": "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": "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" }
1
2021-01-28T01:58:37Z
2021-02-01T23:12:40Z
2021-02-01T22:32:37Z
MEMBER
null
The dtype-finding code in internals.concat is something else. Tried untangling it, but now I think we can make it unnecessary altogether. This is the first step in that process.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39446/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39446/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39446.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39446", "merged_at": "2021-02-01T22:32:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39446.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39446" }
https://api.github.com/repos/pandas-dev/pandas/issues/39447
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39447/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39447/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39447/events
https://github.com/pandas-dev/pandas/issues/39447
795,766,731
MDU6SXNzdWU3OTU3NjY3MzE=
39,447
QST: Pandas interpolate doesn't give monotonic results
{ "avatar_url": "https://avatars.githubusercontent.com/u/68583963?v=4", "events_url": "https://api.github.com/users/dmasip-rxd/events{/privacy}", "followers_url": "https://api.github.com/users/dmasip-rxd/followers", "following_url": "https://api.github.com/users/dmasip-rxd/following{/other_user}", "gists_url": "https://api.github.com/users/dmasip-rxd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dmasip-rxd", "id": 68583963, "login": "dmasip-rxd", "node_id": "MDQ6VXNlcjY4NTgzOTYz", "organizations_url": "https://api.github.com/users/dmasip-rxd/orgs", "received_events_url": "https://api.github.com/users/dmasip-rxd/received_events", "repos_url": "https://api.github.com/users/dmasip-rxd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dmasip-rxd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dmasip-rxd/subscriptions", "type": "User", "url": "https://api.github.com/users/dmasip-rxd" }
[ { "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" } ]
open
false
null
[]
null
4
2021-01-28T08:00:41Z
2021-08-15T04:09:48Z
null
NONE
null
#### Pandas interpolate doesn't give monotonic results I have the following data and I want to apply the interpolate method using a spline to the last 4 numbers (I'm aware this is extrapolation): ```python import numpy as np x = [ 18.792571, 19.170139, 19.370556, 19.393820, 19.239932, 18.908891, 18.400699, 17.892507, 17.384314, 16.876122, 16.367930, 15.859737, np.nan, np.nan, np.nan, np.nan ] ``` I'm running pandas interpolate and a very weird thing is going on, as the code ```python import pandas as pd pd.Series(x).interpolate( method="spline", order=1 ) ``` returns ```python 0 18.792571 1 19.170139 2 19.370556 3 19.393820 4 19.239932 5 18.908891 6 18.400699 7 17.892507 8 17.384314 9 16.876122 10 16.367930 11 15.859737 12 16.103099 13 15.790022 14 15.476945 15 15.163868 dtype: float64 ``` So while the trend of the data is clearly negative since very early indices the interpolation produces a jump upwards. When running the same computation using scipy ```python import scipy.interpolate as inp train_x = [_ for _ in x if _ > 0] s = inp.InterpolatedUnivariateSpline(range(len(train_x)), train_x, k=1) ynew = s(range(len(x))) ynew[12:] ``` I get ```python array([15.351544, 14.843351, 14.335158, 13.826965]) ``` in this case, the interpolation doesn't have an upward change, so the results make sense to me. Using scipy interp1d I have the same issue: ```python s = inp.interp1d(range(len(train_x)), train_x, kind=1, fill_value='extrapolate') ynew = s(range(len(x))) ynew[12:] ``` Gives ```python array([15.351544, 14.843351, 14.335158, 13.826965]) ``` My questions are, then: * Why are the pandas and scipy results different? * How to make pandas `interpolate` give the results that I obtain using scipy? * Why does this upward change happen in pandas? Thanks in advance! ---- Requirements file: ``` pandas==1.0.4 scipy==1.5.2 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39447/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39447/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39448
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39448/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39448/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39448/events
https://github.com/pandas-dev/pandas/issues/39448
795,768,660
MDU6SXNzdWU3OTU3Njg2NjA=
39,448
QST: Misleading SettingWithCopyWarning when assigning on result of DataFrame.dropna?
{ "avatar_url": "https://avatars.githubusercontent.com/u/316517?v=4", "events_url": "https://api.github.com/users/astrojuanlu/events{/privacy}", "followers_url": "https://api.github.com/users/astrojuanlu/followers", "following_url": "https://api.github.com/users/astrojuanlu/following{/other_user}", "gists_url": "https://api.github.com/users/astrojuanlu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/astrojuanlu", "id": 316517, "login": "astrojuanlu", "node_id": "MDQ6VXNlcjMxNjUxNw==", "organizations_url": "https://api.github.com/users/astrojuanlu/orgs", "received_events_url": "https://api.github.com/users/astrojuanlu/received_events", "repos_url": "https://api.github.com/users/astrojuanlu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/astrojuanlu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/astrojuanlu/subscriptions", "type": "User", "url": "https://api.github.com/users/astrojuanlu" }
[ { "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": "f2f074", "default": false, "description": "Warnings that appear or should be added to pandas", "id": 1628184320, "name": "Warnings", "node_id": "MDU6TGFiZWwxNjI4MTg0MzIw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Warnings" }, { "color": "70e5ca", "default": false, "description": "", "id": 2085877452, "name": "Copy / view semantics", "node_id": "MDU6TGFiZWwyMDg1ODc3NDUy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Copy%20/%20view%20semantics" } ]
open
false
null
[]
null
0
2021-01-28T08:03:34Z
2021-08-15T04:10:40Z
null
NONE
null
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [x] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- Under certain cases, doing an assignment on a DataFrame created using `.dropna()` emits the infamous . So I followed what [this SO answer](https://stackoverflow.com/a/61240274/554319) suggests, and inspected the `._is_view` and `._is_copy` attributes: ```python In [1]: import pandas as pd In [2]: import numpy as np In [3]: df1 = pd.DataFrame([[1.0, np.nan, 2, np.nan], ...: [2.0, 3.0, 5, np.nan], ...: [np.nan, 4.0, 6, np.nan]], columns=list("ABCD")); df1 Out[3]: A B C D 0 1.0 NaN 2 NaN 1 2.0 3.0 5 NaN 2 NaN 4.0 6 NaN In [4]: df2 = df1.dropna(axis="columns", how="all") In [5]: df2._is_view, df2._is_copy Out[5]: (False, <weakref at 0x7f56e8ecfd60; to 'DataFrame' at 0x7f56e916f9d0>) In [6]: df2["A"] = df2["A"].fillna(df2["B"]) <ipython-input-6-9c99ac454f90>:1: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy df2["A"] = df2["A"].fillna(df2["B"]) ``` However, this `_is_copy` is set to None if you actually call `.copy()` (misleading variable name?), which on the other hand removes the warning: ```python In [17]: df3 = df1.dropna(axis="columns", how="all").copy() In [18]: df3._is_view, df3._is_copy Out[18]: (False, None) In [19]: df3["A"] = df3["A"].fillna(df3["B"]) In [20]: ``` But, finally, `.fillna` result does have `_is_copy` set to `None`: ```python In [20]: df1 = pd.DataFrame([[1.0, np.nan], [2.0, 3.0]], columns=["A", "B"]); df1 Out[20]: A B 0 1.0 NaN 1 2.0 3.0 In [21]: df2 = df1.dropna(axis="columns", how="all") In [22]: df2._is_view, df2._is_copy Out[22]: (False, None) In [23]: df2["A"] = df2["A"].fillna(df2["B"]) In [24]: ``` Can anybody explain what's the meaning of the `SettingWithCopyWarning` in this context and why do I still get despite `_is_view` being `False` in all cases? I am particularly worried about this, in light of what the pandas docs say: > Sometimes a `SettingWithCopy` warning will arise at times when there’s no obvious chained indexing going on. **These** are the bugs that `SettingWithCopy` is designed to catch! _Originally asked at https://stackoverflow.com/q/65926892/554319_
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39448/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39448/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39449
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39449/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39449/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39449/events
https://github.com/pandas-dev/pandas/pull/39449
795,796,893
MDExOlB1bGxSZXF1ZXN0NTYzMDg1Njkz
39,449
Backport PR #39423: BUG: Assert_frame_equal always raising AssertionError when comparing extension dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
2
2021-01-28T08:46:11Z
2021-01-28T10:58:38Z
2021-01-28T10:02:19Z
MEMBER
null
#39423
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39449/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39449/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39449.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39449", "merged_at": "2021-01-28T10:02:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39449.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39449" }
https://api.github.com/repos/pandas-dev/pandas/issues/39450
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39450/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39450/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39450/events
https://github.com/pandas-dev/pandas/issues/39450
796,127,135
MDU6SXNzdWU3OTYxMjcxMzU=
39,450
BUG: read_csv does not raise UnicodeDecodeError on non utf-8 characters
{ "avatar_url": "https://avatars.githubusercontent.com/u/22901938?v=4", "events_url": "https://api.github.com/users/DrGFreeman/events{/privacy}", "followers_url": "https://api.github.com/users/DrGFreeman/followers", "following_url": "https://api.github.com/users/DrGFreeman/following{/other_user}", "gists_url": "https://api.github.com/users/DrGFreeman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DrGFreeman", "id": 22901938, "login": "DrGFreeman", "node_id": "MDQ6VXNlcjIyOTAxOTM4", "organizations_url": "https://api.github.com/users/DrGFreeman/orgs", "received_events_url": "https://api.github.com/users/DrGFreeman/received_events", "repos_url": "https://api.github.com/users/DrGFreeman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DrGFreeman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DrGFreeman/subscriptions", "type": "User", "url": "https://api.github.com/users/DrGFreeman" }
[ { "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" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "color": "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" } ]
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" }
11
2021-01-28T15:49:39Z
2021-03-09T22:03:54Z
2021-03-09T22:03:54Z
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. Bug exists in 1.2.1, not in <=1.2.0 - [ ] (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 from pathlib import Path import pandas as pd file = Path("non-utf8.csv") file.write_bytes(b"\xe4\na\n1") # non utf-8 character df = pd.read_csv(file) ``` Output: ``` � 0 a 1 1 ``` #### Problem description In pandas version 1.2.1, reading a csv file containing non utf-8 characters does not raise a `UnicodeDecoreError`. In version 1.2.0 and earlier, a `UnicodeDecodeError` is raised, allowing proper exception handling in application code. #### Expected Output Expect a `UnicodeDecodeError` to be raised. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.8.5.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.17763 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : French_Canada.1252 pandas : 1.2.1 numpy : 1.19.2 pytz : 2020.5 dateutil : 2.8.1 pip : 20.3.3 setuptools : 52.0.0.post20210125 Cython : None pytest : 6.2.2 hypothesis : None sphinx : 3.4.3 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.19.0 pandas_datareader: None bs4 : None bottleneck : None fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : 3.3.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.15.1 pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : 0.51.2 ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39450/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39450/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39451
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39451/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39451/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39451/events
https://github.com/pandas-dev/pandas/pull/39451
796,177,730
MDExOlB1bGxSZXF1ZXN0NTYzMzk5NTk1
39,451
BUG: raise when sort_index with ascending=None
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2021-03-02T08:40:51Z", "closed_issues": 49, "created_at": "2021-02-07T13:58:05Z", "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.2.x\r\n\r\n", "due_on": "2021-03-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/83", "id": 6402340, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels", "node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==", "number": 83, "open_issues": 0, "state": "closed", "title": "1.2.3", "updated_at": "2021-03-02T17:15:27Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83" }
5
2021-01-28T16:50:29Z
2021-02-26T16:38:25Z
2021-02-26T14:21:24Z
MEMBER
null
- [ ] closes #39434 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Added validation of ``ascending`` for ``sort_index`` methods. Proposed a solution to raise ``ValueError`` when either of the elements of ``ascending`` turned out to be ``None``.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39451/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39451/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39451.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39451", "merged_at": "2021-02-26T14:21:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39451.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39451" }
https://api.github.com/repos/pandas-dev/pandas/issues/39452
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39452/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39452/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39452/events
https://github.com/pandas-dev/pandas/pull/39452
796,305,643
MDExOlB1bGxSZXF1ZXN0NTYzNTA1MjE2
39,452
Backport PR #39440 on branch 1.2.x (REGR: prefer user-provided mode)
{ "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": "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": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
0
2021-01-28T19:52:02Z
2021-01-29T02:02:39Z
2021-01-29T02:02:39Z
NONE
null
Backport PR #39440: REGR: prefer user-provided mode
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39452/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39452/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39452.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39452", "merged_at": "2021-01-29T02:02:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39452.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39452" }
https://api.github.com/repos/pandas-dev/pandas/issues/39453
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39453/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39453/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39453/events
https://github.com/pandas-dev/pandas/pull/39453
796,313,289
MDExOlB1bGxSZXF1ZXN0NTYzNTExODgw
39,453
REF: simplify _get_empty_dtype_and_na
{ "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": "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": "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": "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" }
7
2021-01-28T20:00:32Z
2021-02-02T02:46:09Z
2021-02-02T02:42:26Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39453/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39453/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39453.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39453", "merged_at": "2021-02-02T02:42:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39453.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39453" }
https://api.github.com/repos/pandas-dev/pandas/issues/39454
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39454/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39454/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39454/events
https://github.com/pandas-dev/pandas/pull/39454
796,345,963
MDExOlB1bGxSZXF1ZXN0NTYzNTQwNjQ2
39,454
BUG: incorrect casting in DataFrame.append
{ "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": "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-28T20:36:15Z
2021-02-01T23:14:09Z
2021-02-01T22:56:09Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry I'm pretty sure we're going to end up with just using find_common_type instead of re-implementing similar stuff in internals.concat.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39454/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39454/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39454.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39454", "merged_at": "2021-02-01T22:56:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39454.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39454" }
https://api.github.com/repos/pandas-dev/pandas/issues/39455
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39455/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39455/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39455/events
https://github.com/pandas-dev/pandas/pull/39455
796,378,815
MDExOlB1bGxSZXF1ZXN0NTYzNTY5NzI1
39,455
TST: use unique ports in test_user_agent.py
{ "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": "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": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-28T21:13:12Z
2021-01-29T02:03:03Z
2021-01-29T02:02:57Z
CONTRIBUTOR
null
Should take care of the occasional `OSError: [Errno 98] Address already in use` in `test_server_and_default_headers`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39455/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39455/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39455.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39455", "merged_at": "2021-01-29T02:02:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39455.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39455" }
https://api.github.com/repos/pandas-dev/pandas/issues/39456
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39456/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39456/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39456/events
https://github.com/pandas-dev/pandas/pull/39456
796,391,533
MDExOlB1bGxSZXF1ZXN0NTYzNTgxMDY0
39,456
CLN: clean error message
{ "avatar_url": "https://avatars.githubusercontent.com/u/1332967?v=4", "events_url": "https://api.github.com/users/gkutiel/events{/privacy}", "followers_url": "https://api.github.com/users/gkutiel/followers", "following_url": "https://api.github.com/users/gkutiel/following{/other_user}", "gists_url": "https://api.github.com/users/gkutiel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gkutiel", "id": 1332967, "login": "gkutiel", "node_id": "MDQ6VXNlcjEzMzI5Njc=", "organizations_url": "https://api.github.com/users/gkutiel/orgs", "received_events_url": "https://api.github.com/users/gkutiel/received_events", "repos_url": "https://api.github.com/users/gkutiel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gkutiel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gkutiel/subscriptions", "type": "User", "url": "https://api.github.com/users/gkutiel" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
3
2021-01-28T21:27:26Z
2021-03-01T00:26:31Z
2021-03-01T00:26:31Z
NONE
null
Fix typo - [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39456/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39456/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39456.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39456", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/39456.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39456" }
https://api.github.com/repos/pandas-dev/pandas/issues/39457
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39457/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39457/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39457/events
https://github.com/pandas-dev/pandas/pull/39457
796,399,341
MDExOlB1bGxSZXF1ZXN0NTYzNTg3NzYw
39,457
BUG: fixing mixup of bucket and element counts in hash tables
{ "avatar_url": "https://avatars.githubusercontent.com/u/17513912?v=4", "events_url": "https://api.github.com/users/realead/events{/privacy}", "followers_url": "https://api.github.com/users/realead/followers", "following_url": "https://api.github.com/users/realead/following{/other_user}", "gists_url": "https://api.github.com/users/realead/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/realead", "id": 17513912, "login": "realead", "node_id": "MDQ6VXNlcjE3NTEzOTEy", "organizations_url": "https://api.github.com/users/realead/orgs", "received_events_url": "https://api.github.com/users/realead/received_events", "repos_url": "https://api.github.com/users/realead/repos", "site_admin": false, "starred_url": "https://api.github.com/users/realead/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/realead/subscriptions", "type": "User", "url": "https://api.github.com/users/realead" }
[ { "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": "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": "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" }
5
2021-01-28T21:39:09Z
2021-02-02T02:00:00Z
2021-02-02T01:59:49Z
CONTRIBUTOR
null
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry The issue is that, `kh_resize_##name` expects the number of buckets in the map as input: https://github.com/pandas-dev/pandas/blob/39e126199b1d2082d9d084f7a37c9745ab9a95ee/pandas/_libs/src/klib/khash.h#L324 it is however used with the number of elements throughout the pandas code, e.g. https://github.com/pandas-dev/pandas/blob/39e126199b1d2082d9d084f7a37c9745ab9a95ee/pandas/core/algorithms.py#L412 as can be seen in the `__cinit__` function: https://github.com/pandas-dev/pandas/blob/39e126199b1d2082d9d084f7a37c9745ab9a95ee/pandas/_libs/hashtable_class_helper.pxi.in#L400-L404 Thus, for some sizes (like 10^3) there still could be a rehashing even if size-hint was used with the idea to avoid it (because at most 75% of buckets can be occupied) I think it make sense to do the less surprising thing with the size-hint (i.e. the number of elements and not buckets).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39457/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39457/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39457.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39457", "merged_at": "2021-02-02T01:59:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39457.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39457" }
https://api.github.com/repos/pandas-dev/pandas/issues/39458
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39458/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39458/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39458/events
https://github.com/pandas-dev/pandas/pull/39458
796,410,851
MDExOlB1bGxSZXF1ZXN0NTYzNTk3MzEx
39,458
CLN: add typing to dtype arg in core/frame.py (GH38808)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "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": "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" }
1
2021-01-28T21:59:25Z
2021-01-29T02:04:31Z
2021-01-29T02:04:26Z
CONTRIBUTOR
null
- [x] closes #38808 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39458/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39458/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39458.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39458", "merged_at": "2021-01-29T02:04:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39458.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39458" }
https://api.github.com/repos/pandas-dev/pandas/issues/39459
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39459/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39459/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39459/events
https://github.com/pandas-dev/pandas/pull/39459
796,452,808
MDExOlB1bGxSZXF1ZXN0NTYzNjMyMzg2
39,459
REF: Move Resampler/Window.agg into core.apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "followers_url": "https://api.github.com/users/rhshadrach/followers", "following_url": "https://api.github.com/users/rhshadrach/following{/other_user}", "gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhshadrach", "id": 45562402, "login": "rhshadrach", "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "repos_url": "https://api.github.com/users/rhshadrach/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "type": "User", "url": "https://api.github.com/users/rhshadrach" }
[ { "color": "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": "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": "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" }
1
2021-01-28T23:24:35Z
2021-01-29T02:52:40Z
2021-01-29T02:10:56Z
MEMBER
null
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them Last move from aggregation.aggregate to apply. Will follow up with moving helper methods from aggregation into apply.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39459/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39459/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39459.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39459", "merged_at": "2021-01-29T02:10:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39459.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39459" }
https://api.github.com/repos/pandas-dev/pandas/issues/39460
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39460/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39460/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39460/events
https://github.com/pandas-dev/pandas/pull/39460
796,460,218
MDExOlB1bGxSZXF1ZXN0NTYzNjM4NjE4
39,460
REF: avoid using Block attributes
{ "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": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-28T23:41:55Z
2021-01-29T03:03:44Z
2021-01-29T02:07:57Z
MEMBER
null
Moves this chunk of code incrementally towards being BlockManager/ArrayManager agnostic
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39460/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39460/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39460.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39460", "merged_at": "2021-01-29T02:07:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39460.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39460" }
https://api.github.com/repos/pandas-dev/pandas/issues/39461
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39461/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39461/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39461/events
https://github.com/pandas-dev/pandas/pull/39461
796,495,335
MDExOlB1bGxSZXF1ZXN0NTYzNjY3MzAw
39,461
BUG: assert_attr_equal with numpy nat or pd.NA
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "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" }
1
2021-01-29T01:12:28Z
2021-02-02T15:12:31Z
2021-02-02T13:34:23Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry This started off with editing na_value_for_dtype so that it could be re-used in #39446, ended up snowballing into assert_attr_equal. If requested, I'll split off the bugfix into its own 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/39461/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39461/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39461.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39461", "merged_at": "2021-02-02T13:34:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39461.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39461" }
https://api.github.com/repos/pandas-dev/pandas/issues/39462
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39462/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39462/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39462/events
https://github.com/pandas-dev/pandas/pull/39462
796,499,803
MDExOlB1bGxSZXF1ZXN0NTYzNjcwODgz
39,462
BUG: accepting ndarray[object] of dt64(nat) in TimedeltaIndex
{ "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": "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": "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": "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-29T01:23:12Z
2021-01-29T21:29:31Z
2021-01-29T21:14:39Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39462/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39462/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39462.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39462", "merged_at": "2021-01-29T21:14:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39462.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39462" }
https://api.github.com/repos/pandas-dev/pandas/issues/39463
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39463/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39463/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39463/events
https://github.com/pandas-dev/pandas/pull/39463
796,550,792
MDExOlB1bGxSZXF1ZXN0NTYzNzExNTcx
39,463
CLN: assorted cleanups, ported tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-29T03:40:31Z
2021-01-29T15:55:49Z
2021-01-29T14:50:48Z
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/39463/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39463/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39463.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39463", "merged_at": "2021-01-29T14:50:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39463.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39463" }
https://api.github.com/repos/pandas-dev/pandas/issues/39464
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39464/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39464/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39464/events
https://github.com/pandas-dev/pandas/pull/39464
796,552,573
MDExOlB1bGxSZXF1ZXN0NTYzNzEzMDE4
39,464
BUG: Fix sort_values bug that creates unprintable object
{ "avatar_url": "https://avatars.githubusercontent.com/u/18115607?v=4", "events_url": "https://api.github.com/users/zitorelova/events{/privacy}", "followers_url": "https://api.github.com/users/zitorelova/followers", "following_url": "https://api.github.com/users/zitorelova/following{/other_user}", "gists_url": "https://api.github.com/users/zitorelova/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zitorelova", "id": 18115607, "login": "zitorelova", "node_id": "MDQ6VXNlcjE4MTE1NjA3", "organizations_url": "https://api.github.com/users/zitorelova/orgs", "received_events_url": "https://api.github.com/users/zitorelova/received_events", "repos_url": "https://api.github.com/users/zitorelova/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zitorelova/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zitorelova/subscriptions", "type": "User", "url": "https://api.github.com/users/zitorelova" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "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" }
6
2021-01-29T03:46:02Z
2021-02-04T00:50:57Z
2021-02-04T00:50:51Z
CONTRIBUTOR
null
- [x] closes #39426 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry The problem occurs when sorting on columns and the `ignore_index` parameter is set to `True`. `sort_values` tries to refit the index after the columns have been sorted resulting in a corrupted dataframe.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39464/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39464/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39464.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39464", "merged_at": "2021-02-04T00:50:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39464.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39464" }
https://api.github.com/repos/pandas-dev/pandas/issues/39465
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39465/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39465/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39465/events
https://github.com/pandas-dev/pandas/issues/39465
796,579,000
MDU6SXNzdWU3OTY1NzkwMDA=
39,465
BUG: DataFrame to_csv compression with 'zip' use zipfilename as archive name
{ "avatar_url": "https://avatars.githubusercontent.com/u/15418465?v=4", "events_url": "https://api.github.com/users/HQDragon/events{/privacy}", "followers_url": "https://api.github.com/users/HQDragon/followers", "following_url": "https://api.github.com/users/HQDragon/following{/other_user}", "gists_url": "https://api.github.com/users/HQDragon/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HQDragon", "id": 15418465, "login": "HQDragon", "node_id": "MDQ6VXNlcjE1NDE4NDY1", "organizations_url": "https://api.github.com/users/HQDragon/orgs", "received_events_url": "https://api.github.com/users/HQDragon/received_events", "repos_url": "https://api.github.com/users/HQDragon/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HQDragon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HQDragon/subscriptions", "type": "User", "url": "https://api.github.com/users/HQDragon" }
[ { "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": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
5
2021-01-29T04:58:39Z
2021-11-17T02:09:41Z
2021-11-17T02:09:41Z
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. --- ```python a=pd.DataFrame({'a':[1,2,3,4,5],'b':[4,5,6,7,8]}) a.to_csv('myfile.csv.zip') ``` #### Problem description when use gzip method, the function works fine, a.to_csv('myfile.csv.gz') will create a gzip file with an archive file named myfile.csv. the "zip" method works bad,a.to_csv('myfile.csv.zip') will create a zipfile with an archive file named myfile.csv.zip
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39465/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39465/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39466
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39466/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39466/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39466/events
https://github.com/pandas-dev/pandas/pull/39466
796,690,407
MDExOlB1bGxSZXF1ZXN0NTYzODI4NjE5
39,466
TYP, CLN annotate some variables, remove some possibly unused ones
{ "avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4", "events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}", "followers_url": "https://api.github.com/users/MarcoGorelli/followers", "following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}", "gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarcoGorelli", "id": 33491632, "login": "MarcoGorelli", "node_id": "MDQ6VXNlcjMzNDkxNjMy", "organizations_url": "https://api.github.com/users/MarcoGorelli/orgs", "received_events_url": "https://api.github.com/users/MarcoGorelli/received_events", "repos_url": "https://api.github.com/users/MarcoGorelli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions", "type": "User", "url": "https://api.github.com/users/MarcoGorelli" }
[ { "color": "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": "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" }
3
2021-01-29T08:38:24Z
2021-02-11T14:29:48Z
2021-02-11T13:40:46Z
MEMBER
null
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them The [mypy daemon](https://mypy.readthedocs.io/en/latest/mypy_daemon.html) throws some extra `var-annotated` errors compared with `mypy pandas`, so I've tried fixing some. Some of the variables it complains about seem to be unused (ExcelWriter.curr_sheet and NDFrame._ix) - are these safe to remove?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39466/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39466/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39466.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39466", "merged_at": "2021-02-11T13:40:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39466.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39466" }
https://api.github.com/repos/pandas-dev/pandas/issues/39467
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39467/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39467/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39467/events
https://github.com/pandas-dev/pandas/issues/39467
796,846,545
MDU6SXNzdWU3OTY4NDY1NDU=
39,467
ENH: read_csv: Warn when dtype or converters contain keys that do not exist in the data
{ "avatar_url": "https://avatars.githubusercontent.com/u/7022832?v=4", "events_url": "https://api.github.com/users/malinkallen/events{/privacy}", "followers_url": "https://api.github.com/users/malinkallen/followers", "following_url": "https://api.github.com/users/malinkallen/following{/other_user}", "gists_url": "https://api.github.com/users/malinkallen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/malinkallen", "id": 7022832, "login": "malinkallen", "node_id": "MDQ6VXNlcjcwMjI4MzI=", "organizations_url": "https://api.github.com/users/malinkallen/orgs", "received_events_url": "https://api.github.com/users/malinkallen/received_events", "repos_url": "https://api.github.com/users/malinkallen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/malinkallen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/malinkallen/subscriptions", "type": "User", "url": "https://api.github.com/users/malinkallen" }
[ { "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": "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": "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": "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" }
5
2021-01-29T12:33:46Z
2021-02-25T01:58:40Z
null
NONE
null
#### Is your feature request related to a problem? As a part of a research project, me and two co-authors have been mining GitHub for Jupyter notebooks and studied a number of frequent function calls in the notebooks. It appears that users sometimes make calls to `read_csv`, specifying `dtype` as a dict containing keys that are not present in the data set. When this happens, these keys are silently ignored. To take a simple example, one may write `df = pd.read_csv("my_data.csv", dtype={"a":float})` although there is no column named "a" in "my_data.csv". The key-value pair "a"-float is silently ignored. This means that a user who misspells a column header, or tries to change the data type of a column that is filtered out (e.g. using `usecols`), or of a non-existing column that the user thinks exists, he/she will not get aware of this, and the data will not be converted as expected. If, instead, `read_csv` issued a warning, the user could easily detect the mistake and be able to fix it immediately. As a bonus, such a warning could also help remedying other bugs. For example, if a user tries to change the data type of the values in a column that is filtered out, the user most likely thinks that he/she filters out other columns than he/she actually does. A warning from `read_csv` would indicate that there is something wrong, and a user could find a bug that may otherwise go undetected or take time to debug. We have noticed the same behavior when dicts passed as `converters` contain keys that are missing in the data set. For the same reasons as above, I think issuing a warning in these cases would be helpful for the users. #### Describe the solution you'd like `read_csv` should issue a warning when dicts passed as values for `dtype` or `converters` contain keys that are not present in the data set. #### API breaking implications If only a warning is issued, I don't see how this could break anything. #### Describe alternatives you've considered An alternative could be to issue an error instead of a warning, but that would risk breaking existing code.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39467/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39467/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39468
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39468/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39468/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39468/events
https://github.com/pandas-dev/pandas/issues/39468
796,894,173
MDU6SXNzdWU3OTY4OTQxNzM=
39,468
DOC: Add header to `test_writing.rst`
{ "avatar_url": "https://avatars.githubusercontent.com/u/66797203?v=4", "events_url": "https://api.github.com/users/gustavocmaciel/events{/privacy}", "followers_url": "https://api.github.com/users/gustavocmaciel/followers", "following_url": "https://api.github.com/users/gustavocmaciel/following{/other_user}", "gists_url": "https://api.github.com/users/gustavocmaciel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gustavocmaciel", "id": 66797203, "login": "gustavocmaciel", "node_id": "MDQ6VXNlcjY2Nzk3MjAz", "organizations_url": "https://api.github.com/users/gustavocmaciel/orgs", "received_events_url": "https://api.github.com/users/gustavocmaciel/received_events", "repos_url": "https://api.github.com/users/gustavocmaciel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gustavocmaciel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gustavocmaciel/subscriptions", "type": "User", "url": "https://api.github.com/users/gustavocmaciel" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
4
2021-01-29T13:45:53Z
2021-01-29T18:44:11Z
2021-01-29T18:44:11Z
CONTRIBUTOR
null
#### Location of the documentation https://github.com/pandas-dev/pandas/blob/master/doc/source/development/test_writing.rst #### Documentation problem The `test_writitng.rst` file doesn't have the standard header. #### Suggested fix for documentation This can be fixed by adding `{{ header }}` at the beginning of the file.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39468/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39468/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39469
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39469/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39469/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39469/events
https://github.com/pandas-dev/pandas/pull/39469
797,029,951
MDExOlB1bGxSZXF1ZXN0NTY0MTA2ODAx
39,469
DOC: correct ipython code block in v0.8.0.rst file
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "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" }
1
2021-01-29T16:47:52Z
2021-01-30T08:34:35Z
2021-01-29T21:15:28Z
MEMBER
null
Tiny follow-up on https://github.com/pandas-dev/pandas/pull/39043/files#r558333164
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39469/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39469/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39469.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39469", "merged_at": "2021-01-29T21:15:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39469.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39469" }
https://api.github.com/repos/pandas-dev/pandas/issues/39470
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39470/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39470/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39470/events
https://github.com/pandas-dev/pandas/pull/39470
797,136,964
MDExOlB1bGxSZXF1ZXN0NTY0MTk2MDc2
39,470
CLN: remove NaT.__int__, __long__
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "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": "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" }
1
2021-01-29T19:42:37Z
2021-01-29T21:33:31Z
2021-01-29T21:14:01Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39470/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39470/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39470.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39470", "merged_at": "2021-01-29T21:14:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39470.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39470" }
https://api.github.com/repos/pandas-dev/pandas/issues/39471
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39471/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39471/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39471/events
https://github.com/pandas-dev/pandas/pull/39471
797,156,791
MDExOlB1bGxSZXF1ZXN0NTY0MjEyNDU0
39,471
TST: fixturize in test_coercion
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-29T20:11:28Z
2021-01-29T21:27:43Z
2021-01-29T21:13:05Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39471/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39471/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39471.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39471", "merged_at": "2021-01-29T21:13:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39471.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39471" }
https://api.github.com/repos/pandas-dev/pandas/issues/39472
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39472/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39472/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39472/events
https://github.com/pandas-dev/pandas/pull/39472
797,229,117
MDExOlB1bGxSZXF1ZXN0NTY0Mjc0OTQz
39,472
TST/REF: directories for test_period, test_datetimes, test_timedeltas
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-29T21:49:59Z
2021-01-30T00:12:39Z
2021-01-29T23:40:09Z
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/39472/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39472/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39472.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39472", "merged_at": "2021-01-29T23:40:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39472.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39472" }
https://api.github.com/repos/pandas-dev/pandas/issues/39473
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39473/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39473/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39473/events
https://github.com/pandas-dev/pandas/pull/39473
797,294,321
MDExOlB1bGxSZXF1ZXN0NTY0MzI4NDU2
39,473
BUG/TST: Address GH28283 calling __finalize__ in pivot_table, groupby.median and groupby.mean
{ "avatar_url": "https://avatars.githubusercontent.com/u/16770242?v=4", "events_url": "https://api.github.com/users/liaoaoyuan97/events{/privacy}", "followers_url": "https://api.github.com/users/liaoaoyuan97/followers", "following_url": "https://api.github.com/users/liaoaoyuan97/following{/other_user}", "gists_url": "https://api.github.com/users/liaoaoyuan97/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/liaoaoyuan97", "id": 16770242, "login": "liaoaoyuan97", "node_id": "MDQ6VXNlcjE2NzcwMjQy", "organizations_url": "https://api.github.com/users/liaoaoyuan97/orgs", "received_events_url": "https://api.github.com/users/liaoaoyuan97/received_events", "repos_url": "https://api.github.com/users/liaoaoyuan97/repos", "site_admin": false, "starred_url": "https://api.github.com/users/liaoaoyuan97/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/liaoaoyuan97/subscriptions", "type": "User", "url": "https://api.github.com/users/liaoaoyuan97" }
[ { "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": "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": "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" }
5
2021-01-30T00:52:12Z
2021-02-20T20:32:26Z
2021-02-20T20:32:14Z
CONTRIBUTOR
null
Progress towards #28283 1. refactor `pivot_table` function to avoid overhead of `_finalize__` calls when a list of aggfuncs passed 2. call `__finalize__` before returning `groupby.mean` and `groupby.median` 3. add tests for 1 and 2 4. add ignored test cases for `groupby.std/var/sem/size/ohlc/describe` as a reminder to fix(they are failing currently) - [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39473/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39473/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39473.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39473", "merged_at": "2021-02-20T20:32:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39473.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39473" }
https://api.github.com/repos/pandas-dev/pandas/issues/39474
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39474/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39474/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39474/events
https://github.com/pandas-dev/pandas/issues/39474
797,307,255
MDU6SXNzdWU3OTczMDcyNTU=
39,474
BUG: Regression cannot create Series with dtype 'S|' or 'bytes'
{ "avatar_url": "https://avatars.githubusercontent.com/u/675055?v=4", "events_url": "https://api.github.com/users/TheNeuralBit/events{/privacy}", "followers_url": "https://api.github.com/users/TheNeuralBit/followers", "following_url": "https://api.github.com/users/TheNeuralBit/following{/other_user}", "gists_url": "https://api.github.com/users/TheNeuralBit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TheNeuralBit", "id": 675055, "login": "TheNeuralBit", "node_id": "MDQ6VXNlcjY3NTA1NQ==", "organizations_url": "https://api.github.com/users/TheNeuralBit/orgs", "received_events_url": "https://api.github.com/users/TheNeuralBit/received_events", "repos_url": "https://api.github.com/users/TheNeuralBit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TheNeuralBit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TheNeuralBit/subscriptions", "type": "User", "url": "https://api.github.com/users/TheNeuralBit" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
1
2021-01-30T01:52:17Z
2021-02-02T22:16:55Z
2021-02-02T22:14:57Z
CONTRIBUTOR
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python s = pd.Series(['foo', 'bar', 'baz']) assert s.astype(bytes).dtype.kind == 'S', "kind is not S!" # works in 1.1.x, 1.2.0, does not work in 1.2.1 (kind is 'O') ``` #### Problem description Setting the type of a series to `bytes` changes str instances to `bytes`, but keeps the type as `object`. This seems to be a regression, in prior versions the type was changed to `bytesXX`. In pandas 1.2.1: ```py In [1]: import pandas as pd In [2]: pd.__version__ Out[2]: '1.2.1' In [3]: s = pd.Series(['foo', 'bar', 'baz']) In [4]: s.astype('|S') Out[4]: 0 b'foo' 1 b'bar' 2 b'baz' dtype: object In [5]: s.astype('bytes') Out[5]: 0 b'foo' 1 b'bar' 2 b'baz' dtype: object In [6]: s.astype(bytes) Out[6]: 0 b'foo' 1 b'bar' 2 b'baz' dtype: object ``` #### Expected Output I expected this output, produced with 1.2.0: ```py In [1]: import pandas as pd In [2]: pd.__version__ Out[2]: '1.2.0' In [3]: s = pd.Series(['foo', 'bar', 'baz']) In [4]: s.astype('|S') Out[4]: 0 b'foo' 1 b'bar' 2 b'baz' dtype: bytes24 In [5]: s.astype('bytes') Out[5]: 0 b'foo' 1 b'bar' 2 b'baz' dtype: bytes24 In [6]: s.astype(bytes) Out[6]: 0 b'foo' 1 b'bar' 2 b'baz' dtype: bytes24 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.8.6.final.0 python-bits : 64 OS : Linux OS-release : 5.7.17-1rodete4-amd64 Version : #1 SMP Debian 5.7.17-1rodete4 (2020-10-01) machine : x86_64 processor : byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.2.1 numpy : 1.19.4 pytz : 2020.4 dateutil : 2.8.1 pip : 20.2.1 setuptools : 49.2.1 Cython : 0.29.21 pytest : 4.6.11 hypothesis : None sphinx : 1.8.5 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.6 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.19.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 : 0.17.1 pyxlsb : None s3fs : None scipy : None sqlalchemy : 1.3.20 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/39474/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39474/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39475
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39475/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39475/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39475/events
https://github.com/pandas-dev/pandas/pull/39475
797,307,880
MDExOlB1bGxSZXF1ZXN0NTY0MzM4OTg1
39,475
Backport PR #39442 BUG: DataFrame constructor reordering elements with ndarray from datetime dtype not datetime64[ns
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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": "d4c5f9", "default": false, "description": "Series/DataFrame/Index/pd.array Constructors", "id": 1465286368, "name": "Constructors", "node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
1
2021-01-30T01:54:56Z
2021-01-30T08:35:33Z
2021-01-30T08:35:26Z
MEMBER
null
- [x] closes #39422
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39475/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39475/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39475.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39475", "merged_at": "2021-01-30T08:35:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39475.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39475" }
https://api.github.com/repos/pandas-dev/pandas/issues/39476
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39476/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39476/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39476/events
https://github.com/pandas-dev/pandas/pull/39476
797,308,355
MDExOlB1bGxSZXF1ZXN0NTY0MzM5MzQx
39,476
DOC: Move whatsnew for #39442
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[]
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" }
1
2021-01-30T01:57:17Z
2021-01-30T08:36:36Z
2021-01-30T08:36:36Z
MEMBER
null
- [x] whatsnew entry Move the whatsnew for backport
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39476/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39476/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39476.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39476", "merged_at": "2021-01-30T08:36:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39476.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39476" }
https://api.github.com/repos/pandas-dev/pandas/issues/39477
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39477/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39477/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39477/events
https://github.com/pandas-dev/pandas/pull/39477
797,323,151
MDExOlB1bGxSZXF1ZXN0NTY0MzUwODYz
39,477
TST/REF: SetitemCastingEquivalents
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-30T03:25:49Z
2021-01-30T20:44:09Z
2021-01-30T20:40:54Z
MEMBER
null
Separating this out in preparation of using this pattern for more of the setitem tests (e.g. test_setitem_td64_into_complex further down in this file)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39477/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39477/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39477.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39477", "merged_at": "2021-01-30T20:40:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39477.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39477" }
https://api.github.com/repos/pandas-dev/pandas/issues/39478
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39478/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39478/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39478/events
https://github.com/pandas-dev/pandas/pull/39478
797,324,915
MDExOlB1bGxSZXF1ZXN0NTY0MzUyMjYw
39,478
BUG: Series[bool].__setitem__(scalar, non_bool)
{ "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": "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": "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-30T03:35:16Z
2021-02-02T15:26:02Z
2021-02-02T13:36:27Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39478/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39478/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39478.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39478", "merged_at": "2021-02-02T13:36:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39478.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39478" }
https://api.github.com/repos/pandas-dev/pandas/issues/39479
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39479/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39479/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39479/events
https://github.com/pandas-dev/pandas/issues/39479
797,428,720
MDU6SXNzdWU3OTc0Mjg3MjA=
39,479
BUG: cumsum() shows inconsistent results in nullable dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/35495924?v=4", "events_url": "https://api.github.com/users/koizumihiroo/events{/privacy}", "followers_url": "https://api.github.com/users/koizumihiroo/followers", "following_url": "https://api.github.com/users/koizumihiroo/following{/other_user}", "gists_url": "https://api.github.com/users/koizumihiroo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/koizumihiroo", "id": 35495924, "login": "koizumihiroo", "node_id": "MDQ6VXNlcjM1NDk1OTI0", "organizations_url": "https://api.github.com/users/koizumihiroo/orgs", "received_events_url": "https://api.github.com/users/koizumihiroo/received_events", "repos_url": "https://api.github.com/users/koizumihiroo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/koizumihiroo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/koizumihiroo/subscriptions", "type": "User", "url": "https://api.github.com/users/koizumihiroo" }
[ { "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": "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
0
2021-01-30T14:07:00Z
2021-02-03T15:08:25Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python # import pandas as pd # import numpy as np # like https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.cumsum.html # Ex1 >>> pd.Series([2, np.nan, 5, -1, 0], dtype="float").cumsum() 0 2.0 1 NaN 2 7.0 3 6.0 4 6.0 dtype: float64 # Ex2 >>> pd.Series([2, np.nan, 5, -1, 0], dtype="Float64").cumsum() 0 2.0 1 2.0 2 7.0 3 6.0 4 6.0 dtype: object # Ex3 >>> pd.Series([2, np.nan, 5, -1, 0], dtype="Int64").cumsum() 0 2 1 <NA> 2 <NA> 3 <NA> 4 <NA> dtype: object ``` #### Problem description - Ex1 is expected behavior while Ex2 and Ex3 yield different values. - Ex2 returns `dtype: object` but `Float64` is expected, the same applies to Ex3. - Other cum-family methods (cumprod, cummax, cummin) have the same problem. #### Expected Output ```python # Ex2 >>> pd.Series([2, np.nan, 5, -1, 0], dtype="Float64").cumsum() 0 2.0 1 <NA> 2 7.0 3 6.0 4 6.0 dtype: Float64 # Ex3 >>> pd.Series([2, np.nan, 5, -1, 0], dtype="Int64").cumsum() 0 2 1 <NA> 2 7 3 6 4 6 dtype: Int64 ``` #### Environment ```Dockerfile FROM python:3.9.1-slim-buster WORKDIR /home RUN pip install pandas==1.2.1 CMD ["/usr/local/bin/python"] ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.9.1.final.0 python-bits : 64 OS : Linux OS-release : 4.19.121-linuxkit Version : #1 SMP Tue Dec 1 17:50:32 UTC 2020 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.2.1 numpy : 1.19.5 pytz : 2020.5 dateutil : 2.8.1 pip : 21.0 setuptools : 52.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 : 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 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/39479/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39479/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39480
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39480/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39480/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39480/events
https://github.com/pandas-dev/pandas/issues/39480
797,444,718
MDU6SXNzdWU3OTc0NDQ3MTg=
39,480
BUG: Category based on int do not survive a round/trip in parquet
{ "avatar_url": "https://avatars.githubusercontent.com/u/13206058?v=4", "events_url": "https://api.github.com/users/yohplala/events{/privacy}", "followers_url": "https://api.github.com/users/yohplala/followers", "following_url": "https://api.github.com/users/yohplala/following{/other_user}", "gists_url": "https://api.github.com/users/yohplala/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yohplala", "id": 13206058, "login": "yohplala", "node_id": "MDQ6VXNlcjEzMjA2MDU4", "organizations_url": "https://api.github.com/users/yohplala/orgs", "received_events_url": "https://api.github.com/users/yohplala/received_events", "repos_url": "https://api.github.com/users/yohplala/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yohplala/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yohplala/subscriptions", "type": "User", "url": "https://api.github.com/users/yohplala" }
[ { "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": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" }, { "color": "d8439a", "default": false, "description": "Issue related to pandas dependency", "id": 2533668378, "name": "Upstream issue", "node_id": "MDU6TGFiZWwyNTMzNjY4Mzc4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Upstream%20issue" } ]
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
2021-01-30T15:22:13Z
2021-02-02T13:06:56Z
2021-02-02T13:06:41Z
NONE
null
- [x] I have checked that this issue has not already been reported. (not reported in pandas repo as I could see, but has been incidentally in pyarrow repo) - [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 file = '/home/whatever_test_directory/test.parquet' # Does not work: category based on int df_test = pd.DataFrame({'a':[1,2,3]}).astype({'a':'category'}) print(df_test['a']) # check category has been correctly created ``` Name: a, dtype: category Categories (3, int64): [1, 2, 3] ```python df_test.to_parquet(file) df_read = pd.read_parquet(file) print(df_read['a']) # no more a catgory ``` Name: a, dtype: int64 ```python # Does work: category based on string df_test = pd.DataFrame({'a':['1','2','3']}).astype({'a':'category'}) print(df_test['a']) # check category has been correctly created ``` Name: a, dtype: category Categories (2, object): ['1', '2', '3'] ```python df_test.to_parquet(file) df_read = pd.read_parquet(file) print(df_read['a']) # still a catgory! ``` Name: a, dtype: category Categories (2, object): ['1', '2', '3'] #### Problem description Even when based on int, category should survive a round/trip in parquet. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.8.5.final.0 python-bits : 64 OS : Linux OS-release : 5.8.0-41-generic Version : #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : fr_FR.UTF-8 LOCALE : fr_FR.UTF-8 pandas : 1.2.1 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.4 setuptools : 50.3.1.post20201107 Cython : 0.29.21 pytest : 6.1.1 hypothesis : None sphinx : 3.2.1 blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.1 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.19.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.3 fastparquet : 0.5.0 gcsfs : None matplotlib : 3.3.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.5 pandas_gbq : None pyarrow : 2.0.0 pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.20 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 numba : 0.51.2 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39480/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39480/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39481
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39481/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39481/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39481/events
https://github.com/pandas-dev/pandas/issues/39481
797,450,928
MDU6SXNzdWU3OTc0NTA5Mjg=
39,481
BUG: Stack creates duplicate column
{ "avatar_url": "https://avatars.githubusercontent.com/u/16045385?v=4", "events_url": "https://api.github.com/users/soerenwolfers/events{/privacy}", "followers_url": "https://api.github.com/users/soerenwolfers/followers", "following_url": "https://api.github.com/users/soerenwolfers/following{/other_user}", "gists_url": "https://api.github.com/users/soerenwolfers/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/soerenwolfers", "id": 16045385, "login": "soerenwolfers", "node_id": "MDQ6VXNlcjE2MDQ1Mzg1", "organizations_url": "https://api.github.com/users/soerenwolfers/orgs", "received_events_url": "https://api.github.com/users/soerenwolfers/received_events", "repos_url": "https://api.github.com/users/soerenwolfers/repos", "site_admin": false, "starred_url": "https://api.github.com/users/soerenwolfers/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/soerenwolfers/subscriptions", "type": "User", "url": "https://api.github.com/users/soerenwolfers" }
[ { "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": "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": "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" }
4
2021-01-30T15:53:12Z
2021-02-04T01:52:52Z
2021-02-04T01:52:52Z
NONE
null
``` import numpy as np import pandas as pd df = pd.DataFrame( np.zeros([1, 5]), columns=pd.MultiIndex.from_tuples( [ (0, None, None), (0, 0, 0), (0, 0, 1), (0, 1, 0), (0, 1, 1), ], ) ) ``` ![image](https://user-images.githubusercontent.com/16045385/106360891-efe11980-6312-11eb-8682-a5ed546b8d10.png) ``` df.stack(2) ``` ![image](https://user-images.githubusercontent.com/16045385/106360914-05564380-6313-11eb-8ebb-b5a35a74f4b5.png) ``` INSTALLED VERSIONS ------------------ commit : b5958ee1999e9aead1938c0bba2b674378807b3d python : 3.6.6.final.0 pandas : 1.1.5 numpy : 1.17.4 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39481/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39481/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39482
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39482/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39482/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39482/events
https://github.com/pandas-dev/pandas/pull/39482
797,474,505
MDExOlB1bGxSZXF1ZXN0NTY0NDY3MzY3
39,482
ERR: Unify error message for bad excel sheetnames
{ "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "followers_url": "https://api.github.com/users/rhshadrach/followers", "following_url": "https://api.github.com/users/rhshadrach/following{/other_user}", "gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhshadrach", "id": 45562402, "login": "rhshadrach", "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "repos_url": "https://api.github.com/users/rhshadrach/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "type": "User", "url": "https://api.github.com/users/rhshadrach" }
[ { "color": "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
5
2021-01-30T16:43:48Z
2021-02-01T23:09:03Z
2021-02-01T13:49:12Z
MEMBER
null
- [x] closes #39250 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry IMO the core issue in #39250 is upstream in openpyxl, providing a better error message is really tangential to it. Since the error message that openpyxl raises is not a regression, it seemed best to me to (a) target this for 1.3 and (b) unify all error messages across engines. If, on the other hand, we really do want to improve the error message in 1.2.2 because of the switch from xlrd to openpyxl, then I will open a new PR for 1.2.2 that only impacts openpyxl. Will do a followup to remove the duplicate tests. cc @simonjayhawkins @jorisvandenbossche
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39482/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39482/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39482.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39482", "merged_at": "2021-02-01T13:49:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39482.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39482" }
https://api.github.com/repos/pandas-dev/pandas/issues/39483
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39483/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39483/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39483/events
https://github.com/pandas-dev/pandas/pull/39483
797,483,996
MDExOlB1bGxSZXF1ZXN0NTY0NDc0Mjk3
39,483
BUG: cumulative functions with ea dtype not handling NA correctly and casting to object
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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" }, { "color": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
4
2021-01-30T17:33:16Z
2021-06-16T13:35:27Z
2021-06-16T13:35:27Z
MEMBER
null
- [x] closes #39479 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39483/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39483/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39483.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39483", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/39483.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39483" }
https://api.github.com/repos/pandas-dev/pandas/issues/39484
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39484/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39484/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39484/events
https://github.com/pandas-dev/pandas/pull/39484
797,500,986
MDExOlB1bGxSZXF1ZXN0NTY0NDg4MzAx
39,484
BUG: Regression in astype not casting to bytes
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
6
2021-01-30T18:35:59Z
2021-02-02T22:21:39Z
2021-02-02T22:14:57Z
MEMBER
null
- [x] closes #39474 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Not sure if this is the right 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/39484/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39484/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39484.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39484", "merged_at": "2021-02-02T22:14:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39484.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39484" }
https://api.github.com/repos/pandas-dev/pandas/issues/39485
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39485/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39485/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39485/events
https://github.com/pandas-dev/pandas/pull/39485
797,503,029
MDExOlB1bGxSZXF1ZXN0NTY0NDg5NzU5
39,485
TST/REF: collect index tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "e99695", "default": false, "description": "Related to the Index class or subclasses", "id": 1218227310, "name": "Index", "node_id": "MDU6TGFiZWwxMjE4MjI3MzEw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2021-01-30T18:46:39Z
2021-01-30T20:44:30Z
2021-01-30T20:35:50Z
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/39485/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39485/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39485.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39485", "merged_at": "2021-01-30T20:35:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39485.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39485" }
https://api.github.com/repos/pandas-dev/pandas/issues/39486
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39486/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39486/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39486/events
https://github.com/pandas-dev/pandas/pull/39486
797,504,755
MDExOlB1bGxSZXF1ZXN0NTY0NDkxMDM2
39,486
BUG: read_excel with openpyxl and missing dimension
{ "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "followers_url": "https://api.github.com/users/rhshadrach/followers", "following_url": "https://api.github.com/users/rhshadrach/following{/other_user}", "gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhshadrach", "id": 45562402, "login": "rhshadrach", "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "repos_url": "https://api.github.com/users/rhshadrach/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "type": "User", "url": "https://api.github.com/users/rhshadrach" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
18
2021-01-30T18:55:51Z
2021-02-07T12:05:14Z
2021-02-05T03:15:59Z
MEMBER
null
- [x] closes #38956 - [x] closes #39001 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Targeted for 1.2.2 because this resolves an issue that occurs from the change of default engine from xlrd to openpyxl in 1.2.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39486/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39486/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39486.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39486", "merged_at": "2021-02-05T03:15:58Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39486.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39486" }
https://api.github.com/repos/pandas-dev/pandas/issues/39487
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39487/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39487/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39487/events
https://github.com/pandas-dev/pandas/pull/39487
797,506,867
MDExOlB1bGxSZXF1ZXN0NTY0NDkyNTcx
39,487
CI: Pin pyarrow to 0.15.1 in 37 macos and linux
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
2
2021-01-30T19:07:06Z
2021-01-30T20:29:02Z
2021-01-30T20:26:24Z
MEMBER
null
Pyarrow 2.0.0 instead of 0.15.1 is fetched on these builds since today, which causes test failures
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39487/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39487/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39487.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39487", "merged_at": "2021-01-30T20:26:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39487.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39487" }
https://api.github.com/repos/pandas-dev/pandas/issues/39488
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39488/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39488/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39488/events
https://github.com/pandas-dev/pandas/pull/39488
797,507,836
MDExOlB1bGxSZXF1ZXN0NTY0NDkzMjgx
39,488
BUG: setting td64 value into numeric Series incorrectly casting to int
{ "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": "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": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
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" }
3
2021-01-30T19:12:19Z
2021-02-03T02:11:38Z
2021-02-03T01:31:04Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry We fixed this a few days ago for some of the setting-methods, but there were a few we missed. Re-using the TestSetitemEquivalents pattern is much more thorough. We'll be able to de-duplicate the test class following #39477
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39488/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39488/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39488.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39488", "merged_at": "2021-02-03T01:31:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39488.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39488" }
https://api.github.com/repos/pandas-dev/pandas/issues/39489
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39489/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39489/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39489/events
https://github.com/pandas-dev/pandas/issues/39489
797,518,320
MDU6SXNzdWU3OTc1MTgzMjA=
39,489
BUG: GroupBy Aggregation Behavior
{ "avatar_url": "https://avatars.githubusercontent.com/u/12759785?v=4", "events_url": "https://api.github.com/users/clampr/events{/privacy}", "followers_url": "https://api.github.com/users/clampr/followers", "following_url": "https://api.github.com/users/clampr/following{/other_user}", "gists_url": "https://api.github.com/users/clampr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/clampr", "id": 12759785, "login": "clampr", "node_id": "MDQ6VXNlcjEyNzU5Nzg1", "organizations_url": "https://api.github.com/users/clampr/orgs", "received_events_url": "https://api.github.com/users/clampr/received_events", "repos_url": "https://api.github.com/users/clampr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/clampr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/clampr/subscriptions", "type": "User", "url": "https://api.github.com/users/clampr" }
[ { "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" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/56703401?v=4", "events_url": "https://api.github.com/users/jnchngc/events{/privacy}", "followers_url": "https://api.github.com/users/jnchngc/followers", "following_url": "https://api.github.com/users/jnchngc/following{/other_user}", "gists_url": "https://api.github.com/users/jnchngc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jnchngc", "id": 56703401, "login": "jnchngc", "node_id": "MDQ6VXNlcjU2NzAzNDAx", "organizations_url": "https://api.github.com/users/jnchngc/orgs", "received_events_url": "https://api.github.com/users/jnchngc/received_events", "repos_url": "https://api.github.com/users/jnchngc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jnchngc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jnchngc/subscriptions", "type": "User", "url": "https://api.github.com/users/jnchngc" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/56703401?v=4", "events_url": "https://api.github.com/users/jnchngc/events{/privacy}", "followers_url": "https://api.github.com/users/jnchngc/followers", "following_url": "https://api.github.com/users/jnchngc/following{/other_user}", "gists_url": "https://api.github.com/users/jnchngc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jnchngc", "id": 56703401, "login": "jnchngc", "node_id": "MDQ6VXNlcjU2NzAzNDAx", "organizations_url": "https://api.github.com/users/jnchngc/orgs", "received_events_url": "https://api.github.com/users/jnchngc/received_events", "repos_url": "https://api.github.com/users/jnchngc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jnchngc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jnchngc/subscriptions", "type": "User", "url": "https://api.github.com/users/jnchngc" } ]
{ "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
2021-01-30T19:56:30Z
2021-08-15T04:15:42Z
2021-08-15T04:15:42Z
NONE
null
- I have asked my usage related question on [StackOverflow](https://stackoverflow.com/questions/65955108/pandas-groupby-aggregation-behavior). --- #### Question About GroupBy Aggregation Behavior I observed a behavior of the Pandas GroupBy method `agg()` which I cannot explain based on the [docs](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.groupby.DataFrameGroupBy.aggregate.html). I want to perform a custom aggregation on a grouped `DataFrame`. Let's take this code snippet: ```python def aggregate_point(x): print(x) exit() data = data.groupby( pd.Grouper(level='time', freq='1H')).agg(aggregate_point) ``` This prints a `Series` for each group. However, when I pass any additional parameter to `aggregate_point`, the full `DataFrame` is being printed: ```python def aggregate_point(x, score): print(x) exit() data = data.groupby( pd.Grouper(level='time', freq='1H')).agg(aggregate_point, score=True) ``` Why does the `score` parameter influence the value of `x` (`DataFrame` vs. `Series`)?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39489/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39489/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39490
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39490/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39490/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39490/events
https://github.com/pandas-dev/pandas/pull/39490
797,523,833
MDExOlB1bGxSZXF1ZXN0NTY0NTA1NDky
39,490
Backport PR #39487 on branch 1.2.x (CI: Pin pyarrow to 0.15.1 in 37 macos and linux)
{ "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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
0
2021-01-30T20:27:21Z
2021-02-01T13:43:31Z
2021-02-01T13:43:31Z
NONE
null
Backport PR #39487: CI: Pin pyarrow to 0.15.1 in 37 macos and linux
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39490/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39490/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39490.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39490", "merged_at": "2021-02-01T13:43:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39490.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39490" }
https://api.github.com/repos/pandas-dev/pandas/issues/39491
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39491/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39491/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39491/events
https://github.com/pandas-dev/pandas/pull/39491
797,525,427
MDExOlB1bGxSZXF1ZXN0NTY0NTA2NjQ0
39,491
TST: Verify plot order of a Series (GH38865)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "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" }
3
2021-01-30T20:37:14Z
2021-02-02T01:42:46Z
2021-02-02T01:42:42Z
CONTRIBUTOR
null
- [x] closes #38865 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39491/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39491/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39491.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39491", "merged_at": "2021-02-02T01:42:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39491.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39491" }
https://api.github.com/repos/pandas-dev/pandas/issues/39492
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39492/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39492/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39492/events
https://github.com/pandas-dev/pandas/pull/39492
797,541,171
MDExOlB1bGxSZXF1ZXN0NTY0NTE5OTI4
39,492
DOC: Document how encoding errors are handled
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "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": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
4
2021-01-30T21:37:13Z
2021-02-02T10:07:00Z
2021-02-02T01:39:26Z
CONTRIBUTOR
null
xref #39450 This should probably go in 1.2.2. <1.2.0: `engine=c` and `engine=python` handled encoding errors differently when `encoding=None` (python: "replace", c: "strict"). The `engine=c` further supported to ignore lines (`skiprows`) with encoding errors iff `encoding=None`. 1.2.0 (shared file opening code between `engine=c` and `engine=python`): both engine mistakenly used "strict" when `encoding=None`. `engine=c`+`encoding=None` can no longer skip encoding errors. 1.2.1: both engine use "replace" when `encoding=None`. Both engines can ignore encoding errors in skipped rows iff `encoding=None`. Option for 1.3: default to "strict" but expose `errors` in `read_csv` (and other read calls that might need it)?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39492/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39492/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39492.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39492", "merged_at": "2021-02-02T01:39:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39492.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39492" }
https://api.github.com/repos/pandas-dev/pandas/issues/39493
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39493/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39493/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39493/events
https://github.com/pandas-dev/pandas/pull/39493
797,550,882
MDExOlB1bGxSZXF1ZXN0NTY0NTI4MDI0
39,493
ASV: add benchmarks for concatenating and appending of CategoricalIndex (GH38149)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" }, { "color": "ae68cc", "default": false, "description": "Performance (ASV) benchmarks", "id": 732775912, "name": "Benchmark", "node_id": "MDU6TGFiZWw3MzI3NzU5MTI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark" } ]
closed
false
null
[]
{ "closed_at": "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" }
1
2021-01-30T22:13:02Z
2021-02-07T16:48:07Z
2021-02-07T16:48:03Z
CONTRIBUTOR
null
- [x] closes #38149 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39493/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39493/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39493.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39493", "merged_at": "2021-02-07T16:48:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39493.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39493" }
https://api.github.com/repos/pandas-dev/pandas/issues/39494
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39494/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39494/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39494/events
https://github.com/pandas-dev/pandas/pull/39494
797,553,086
MDExOlB1bGxSZXF1ZXN0NTY0NTI5Njgy
39,494
CI: update for numpy 1.20
{ "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": "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": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
4
2021-01-30T22:26:38Z
2021-02-01T15:19:08Z
2021-01-31T22:07:15Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39494/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39494/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39494.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39494", "merged_at": "2021-01-31T22:07:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39494.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39494" }
https://api.github.com/repos/pandas-dev/pandas/issues/39495
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39495/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39495/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39495/events
https://github.com/pandas-dev/pandas/pull/39495
797,583,169
MDExOlB1bGxSZXF1ZXN0NTY0NTU2MDky
39,495
TST/REF: collect index tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "e99695", "default": false, "description": "Related to the Index class or subclasses", "id": 1218227310, "name": "Index", "node_id": "MDU6TGFiZWwxMjE4MjI3MzEw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index" } ]
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" }
1
2021-01-31T00:05:40Z
2021-02-01T23:56:15Z
2021-02-01T23:44:07Z
MEMBER
null
Moving away from creat_index and towards the index fixture
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39495/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39495/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39495.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39495", "merged_at": "2021-02-01T23:44:07Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39495.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39495" }
https://api.github.com/repos/pandas-dev/pandas/issues/39496
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39496/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39496/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39496/events
https://github.com/pandas-dev/pandas/pull/39496
797,583,951
MDExOlB1bGxSZXF1ZXN0NTY0NTU2Njk4
39,496
TST: read_csv with custom date parser and na_filter=True results in ValueError
{ "avatar_url": "https://avatars.githubusercontent.com/u/24451137?v=4", "events_url": "https://api.github.com/users/ftrihardjo/events{/privacy}", "followers_url": "https://api.github.com/users/ftrihardjo/followers", "following_url": "https://api.github.com/users/ftrihardjo/following{/other_user}", "gists_url": "https://api.github.com/users/ftrihardjo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ftrihardjo", "id": 24451137, "login": "ftrihardjo", "node_id": "MDQ6VXNlcjI0NDUxMTM3", "organizations_url": "https://api.github.com/users/ftrihardjo/orgs", "received_events_url": "https://api.github.com/users/ftrihardjo/received_events", "repos_url": "https://api.github.com/users/ftrihardjo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ftrihardjo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ftrihardjo/subscriptions", "type": "User", "url": "https://api.github.com/users/ftrihardjo" }
[ { "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": "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": "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" }
3
2021-01-31T00:11:42Z
2021-02-02T00:27:43Z
2021-02-02T00:27:39Z
CONTRIBUTOR
null
previous PR #39079 - [ ] closes #36111 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39496/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39496/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39496.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39496", "merged_at": "2021-02-02T00:27:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39496.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39496" }
https://api.github.com/repos/pandas-dev/pandas/issues/39497
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39497/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39497/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39497/events
https://github.com/pandas-dev/pandas/pull/39497
797,585,780
MDExOlB1bGxSZXF1ZXN0NTY0NTU4MDk3
39,497
ENH: Enable parsing of ISO8601-like timestamps with negative signs using pd.Timedelta (GH37172)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-31T00:25:28Z
2021-02-10T23:15:29Z
2021-02-10T23:15:25Z
CONTRIBUTOR
null
- [x] closes #37172 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39497/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39497/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39497.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39497", "merged_at": "2021-02-10T23:15:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39497.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39497" }
https://api.github.com/repos/pandas-dev/pandas/issues/39498
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39498/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39498/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39498/events
https://github.com/pandas-dev/pandas/pull/39498
797,593,715
MDExOlB1bGxSZXF1ZXN0NTY0NTY0MTA0
39,498
REF: Move agg helpers into apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4", "events_url": "https://api.github.com/users/rhshadrach/events{/privacy}", "followers_url": "https://api.github.com/users/rhshadrach/followers", "following_url": "https://api.github.com/users/rhshadrach/following{/other_user}", "gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhshadrach", "id": 45562402, "login": "rhshadrach", "node_id": "MDQ6VXNlcjQ1NTYyNDAy", "organizations_url": "https://api.github.com/users/rhshadrach/orgs", "received_events_url": "https://api.github.com/users/rhshadrach/received_events", "repos_url": "https://api.github.com/users/rhshadrach/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions", "type": "User", "url": "https://api.github.com/users/rhshadrach" }
[ { "color": "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": "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": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-31T01:27:22Z
2021-02-03T02:20:06Z
2021-02-03T00:29:09Z
MEMBER
null
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39498/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39498/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39498.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39498", "merged_at": "2021-02-03T00:29:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39498.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39498" }
https://api.github.com/repos/pandas-dev/pandas/issues/39499
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39499/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39499/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39499/events
https://github.com/pandas-dev/pandas/issues/39499
797,706,460
MDU6SXNzdWU3OTc3MDY0NjA=
39,499
BUG: use of partition_cols raises incompatibility between fastparquet & pyarrow
{ "avatar_url": "https://avatars.githubusercontent.com/u/13206058?v=4", "events_url": "https://api.github.com/users/yohplala/events{/privacy}", "followers_url": "https://api.github.com/users/yohplala/followers", "following_url": "https://api.github.com/users/yohplala/following{/other_user}", "gists_url": "https://api.github.com/users/yohplala/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yohplala", "id": 13206058, "login": "yohplala", "node_id": "MDQ6VXNlcjEzMjA2MDU4", "organizations_url": "https://api.github.com/users/yohplala/orgs", "received_events_url": "https://api.github.com/users/yohplala/received_events", "repos_url": "https://api.github.com/users/yohplala/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yohplala/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yohplala/subscriptions", "type": "User", "url": "https://api.github.com/users/yohplala" }
[ { "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": "parquet, feather", "id": 685114413, "name": "IO Parquet", "node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet" } ]
open
false
null
[]
null
2
2021-01-31T13:03:40Z
2021-06-06T18:16:06Z
null
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python import pandas as pd import fastparquet as fp from os import path as os_path df = pd.DataFrame({'ab': [1, 2, 3], 'a':['a', 'b', 'c']}) file = os_path.expanduser('~/Documents/code/data/test.parquet') # Case 1: write: pandas/pyarrow || read: pandas/pyarrow # OK : 'ab' column is read back with type 'category' # NOOK : does not naturally overwrite (file names are different) # as a consequence, df that is read back contains twice more data. # OK : with snappy not installed, naturally does not compress data. df.to_parquet(file, partition_cols=['ab']) df.to_parquet(file, partition_cols=['ab']) df_rec_pd1 = pd.read_parquet(file) print(df_rec_pd1['ab']) # Case 2: write: pandas/fastparquet || read: pandas/fastparquet # OK : 'ab' column is read back with type 'category' # OK : naturally overwrites (same file names) # NOOK : with snappy not installed, it does not naturally not compress the data, # and use of 'compression' keyword is required to specify 'uncompressed'. df.to_parquet(file, partition_cols=['ab'], engine='fastparquet', compression='uncompressed') df.to_parquet(file, partition_cols=['ab'], engine='fastparquet', compression='uncompressed') df_rec_pd2 = pd.read_parquet(file, engine='fastparquet') print(df_rec_pd2['ab']) # Case 3: write: pandas/fastparquet || read: pandas/pyarrow # OK : 'ab' column is read back with type 'category' # OK : naturally overwrites (same file names) # NOOK : with snappy not installed, it does not naturally not compress the data, # and use of 'compression' keyword is required to specify 'uncompressed'. df.to_parquet(file, partition_cols=['ab'], engine='fastparquet', compression='uncompressed') df.to_parquet(file, partition_cols=['ab'], engine='fastparquet', compression='uncompressed') df_rec_pd3 = pd.read_parquet(file) print(df_rec_pd3['ab']) # Case 4: write: pandas/pyarrow || read: pandas/fastparquet # NOOK : reading does not work. pyarrow does not generate common metada which # fastparquet is looking for. df.to_parquet(file, partition_cols=['ab']) df.to_parquet(file, partition_cols=['ab']) df_rec_pd4 = pd.read_parquet(file, engine='fastparquet') print(df_rec_pd4['ab']) # Case 5: write: fastparquet || read: pandas/pyarrow # OK : 'ab' column is read back with type 'category' # OK : naturally overwrites (same file names) fp.write(file, df, file_scheme='hive', partition_on=['ab'], compression='BROTLI') fp.write(file, df, file_scheme='hive', partition_on=['ab'], compression='BROTLI') df_rec_fp_pd = pd.read_parquet(file) # Case 6: write: fastparquet || read: fastparquet # OK : nothing to say, perfect :) fp.write(file, df, file_scheme='hive', partition_on=['ab']) fp.write(file, df, file_scheme='hive', partition_on=['ab']) df_rec_fp = fp.ParquetFile(file).to_pandas() # Case 7: write: pandas/pyarrow || read: fastparquet # NOOK : reading does not work. It seems that even if snappy is not available # at writing, it is indicated in metadata as the engine that has been # used. As fastparquet is not finding it, it raise an error. df.to_parquet(file) df_rec_pd_fp = fp.ParquetFile(file).to_pandas() # Case 8: write: pandas/pyarrow || read: fastparquet # NOOK : bug already reported: https://github.com/pandas-dev/pandas/issues/39480 # It seems pandas/pyarrow is not writing categories of int as categories. df.to_parquet(file, compression='BROTLI') df_rec_pd_fp = fp.ParquetFile(file).to_pandas() ``` #### Problem description Hi. I report here 4 different problems as far as I can see (a 5th related one having been reported earlier in [#39480](https://github.com/pandas-dev/pandas/issues/39480)). Trying to synthetize: - when using `partition_cols` in `to_parquet`, the ways it is managed by fastparquet and pyarrow are different. Most notably, fastparquet is writing common metdata in the root directory, while pyarrow ...? I don't know what it does, but at least, it does not write this 'common metadata' file. This raises a bug as in case 4: writing with pyarrow, reading with fastparquet. fastparquet does not find the common metadata file and refuses to read the data - when not having 'snappy' installed, for writing step, no error is raised with pyarrow. But when read back with fastparquet, this time, reader believes it has been compressed with 'snappy' and complains not to find it. This raises the error as in case 7. - when not having 'snappy' installed, for the writing and reading steps, could the writer and reader simply/naturally fall back to 'uncompressed'? With fastparquet, this forces the user to add the parameter `compression` set to `uncompressed` as in cases 2, & 3. - when using `partition_cols` with pyarrow, names of parquet files are always different. Hence, writing twice the same dataset will result in duplicating the data (on the opposite, fastparquet uses always the same file names, which ensures natural overwriting), as in case 1. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.8.5.final.0 python-bits : 64 OS : Linux OS-release : 5.8.0-41-generic Version : #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : fr_FR.UTF-8 LOCALE : fr_FR.UTF-8 pandas : 1.2.1 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 20.2.4 setuptools : 50.3.1.post20201107 Cython : 0.29.21 pytest : 6.1.1 hypothesis : None sphinx : 3.2.1 blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.1 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.19.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.3 fastparquet : 0.5.0 gcsfs : None matplotlib : 3.3.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.5 pandas_gbq : None pyarrow : 2.0.0 pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.20 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 numba : 0.51.2 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39499/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39499/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39500
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39500/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39500/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39500/events
https://github.com/pandas-dev/pandas/pull/39500
797,718,072
MDExOlB1bGxSZXF1ZXN0NTY0NjYwNDk1
39,500
DOC: add example to insert (#39313)
{ "avatar_url": "https://avatars.githubusercontent.com/u/8852168?v=4", "events_url": "https://api.github.com/users/nofarm3/events{/privacy}", "followers_url": "https://api.github.com/users/nofarm3/followers", "following_url": "https://api.github.com/users/nofarm3/following{/other_user}", "gists_url": "https://api.github.com/users/nofarm3/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nofarm3", "id": 8852168, "login": "nofarm3", "node_id": "MDQ6VXNlcjg4NTIxNjg=", "organizations_url": "https://api.github.com/users/nofarm3/orgs", "received_events_url": "https://api.github.com/users/nofarm3/received_events", "repos_url": "https://api.github.com/users/nofarm3/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nofarm3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nofarm3/subscriptions", "type": "User", "url": "https://api.github.com/users/nofarm3" }
[ { "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": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-31T14:00:36Z
2021-02-02T14:55:41Z
2021-02-01T19:15:10Z
CONTRIBUTOR
null
- [x] closes #39313 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry - no
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39500/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39500/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39500.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39500", "merged_at": "2021-02-01T19:15:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39500.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39500" }
https://api.github.com/repos/pandas-dev/pandas/issues/39501
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39501/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39501/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39501/events
https://github.com/pandas-dev/pandas/pull/39501
797,729,795
MDExOlB1bGxSZXF1ZXN0NTY0NjY5MzAx
39,501
TYP: Update type hints for ExtensionArray and ExtensionDtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4", "events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}", "followers_url": "https://api.github.com/users/Dr-Irv/followers", "following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}", "gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Dr-Irv", "id": 15113894, "login": "Dr-Irv", "node_id": "MDQ6VXNlcjE1MTEzODk0", "organizations_url": "https://api.github.com/users/Dr-Irv/orgs", "received_events_url": "https://api.github.com/users/Dr-Irv/received_events", "repos_url": "https://api.github.com/users/Dr-Irv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions", "type": "User", "url": "https://api.github.com/users/Dr-Irv" }
[ { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" }, { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
null
28
2021-01-31T14:54:12Z
2021-09-08T22:21:55Z
2021-05-24T19:48:47Z
CONTRIBUTOR
null
Modifications to reduce error reports from `pyright --verifytypes` related to `ExtensionArray` and `ExtensionDtype`. Some notes: 1. Had to use `Any` in a number of places, because an `ExtensionArray` can contain any type 2. Because `numpy` doesn't have a released version with types, `pyright` complains whenever we work with `numpy` types, so for type checking purposes, I redefine `np.dtype` and `np.ndarray` to a dummy type. When `numpy` 1.20 is released, we can most likely remove that. Alternatively, I can find out if there is a way to see if `pyright` has something like `TYPE_CHECKING` to bracket those changes. I anticipate these changes might be controversial, so constructive criticism is 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/39501/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39501/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39501.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39501", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/39501.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39501" }
https://api.github.com/repos/pandas-dev/pandas/issues/39502
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39502/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39502/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39502/events
https://github.com/pandas-dev/pandas/pull/39502
797,757,380
MDExOlB1bGxSZXF1ZXN0NTY0Njg5OTc4
39,502
TST: trim fixture to avoid xfails/skips
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-31T16:57:47Z
2021-02-02T15:11:23Z
2021-02-02T13:35:18Z
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/39502/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39502/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39502.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39502", "merged_at": "2021-02-02T13:35:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39502.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39502" }
https://api.github.com/repos/pandas-dev/pandas/issues/39503
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39503/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39503/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39503/events
https://github.com/pandas-dev/pandas/issues/39503
797,764,665
MDU6SXNzdWU3OTc3NjQ2NjU=
39,503
BUG: Repeated key words on datetime indexing methods (_parsed_string_to_bounds())
{ "avatar_url": "https://avatars.githubusercontent.com/u/62092582?v=4", "events_url": "https://api.github.com/users/boringow/events{/privacy}", "followers_url": "https://api.github.com/users/boringow/followers", "following_url": "https://api.github.com/users/boringow/following{/other_user}", "gists_url": "https://api.github.com/users/boringow/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/boringow", "id": 62092582, "login": "boringow", "node_id": "MDQ6VXNlcjYyMDkyNTgy", "organizations_url": "https://api.github.com/users/boringow/orgs", "received_events_url": "https://api.github.com/users/boringow/received_events", "repos_url": "https://api.github.com/users/boringow/repos", "site_admin": false, "starred_url": "https://api.github.com/users/boringow/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/boringow/subscriptions", "type": "User", "url": "https://api.github.com/users/boringow" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
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" }
1
2021-01-31T17:30:06Z
2021-01-31T22:14:11Z
2021-01-31T21:15:46Z
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. Readed! I will know for next time #### Code Sample, a copy-pastable example ```python There is no need for code, as the error is on the function having repeated keywords. ``` #### Problem description There are two repeated keywords on the master/pandas/core/indexes/datetimes.py#L560 and #L561. I closed the issue #38121, as it is working fine, but as said, there are repeated keywords. valid_resos = { "year", "month", "quarter", "day", "hour", "minute", "second", "minute", "second", "millisecond", "microsecond", } it should be: valid_resos = { "year", "month", "quarter", "day", "hour", "minute", "second", "millisecond", "microsecond", } Reference here: https://github.com/pandas-dev/pandas/blob/0b16fb308b7808f193a5a8d86d71b6e57d99d4e7/pandas/core/indexes/datetimes.py#L560-L561 #### Expected Output valid_resos = { "year", "month", "quarter", "day", "hour", "minute", "second", "millisecond", "microsecond", } #### Output of ``pd.show_versions()`` There is no need for versions. Pandas code in this case is fine. Just two repeated lines.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39503/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39503/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39504
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39504/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39504/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39504/events
https://github.com/pandas-dev/pandas/pull/39504
797,773,641
MDExOlB1bGxSZXF1ZXN0NTY0NzAxNTI5
39,504
TYP: Add annotation to assert_frame_equal and assert_series_equal (GH26302)
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "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" }, { "color": "7fcce8", "default": false, "description": "", "id": 2347992045, "name": "Stale", "node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale" } ]
closed
false
null
[]
null
5
2021-01-31T18:11:01Z
2021-04-24T13:35:55Z
2021-04-24T13:35:54Z
CONTRIBUTOR
null
Incremental typing PR for #26302 - [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39504/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39504/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39504.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39504", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/39504.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39504" }
https://api.github.com/repos/pandas-dev/pandas/issues/39505
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39505/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39505/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39505/events
https://github.com/pandas-dev/pandas/pull/39505
797,775,669
MDExOlB1bGxSZXF1ZXN0NTY0NzAyODgx
39,505
CI: Run pre-commit gh action on only changed files
{ "avatar_url": "https://avatars.githubusercontent.com/u/44227165?v=4", "events_url": "https://api.github.com/users/gunjan-solanki/events{/privacy}", "followers_url": "https://api.github.com/users/gunjan-solanki/followers", "following_url": "https://api.github.com/users/gunjan-solanki/following{/other_user}", "gists_url": "https://api.github.com/users/gunjan-solanki/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gunjan-solanki", "id": 44227165, "login": "gunjan-solanki", "node_id": "MDQ6VXNlcjQ0MjI3MTY1", "organizations_url": "https://api.github.com/users/gunjan-solanki/orgs", "received_events_url": "https://api.github.com/users/gunjan-solanki/received_events", "repos_url": "https://api.github.com/users/gunjan-solanki/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gunjan-solanki/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gunjan-solanki/subscriptions", "type": "User", "url": "https://api.github.com/users/gunjan-solanki" }
[ { "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": "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": "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" }
4
2021-01-31T18:18:56Z
2021-02-01T13:36:32Z
2021-01-31T19:36:22Z
CONTRIBUTOR
null
- [x] closes #38862 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry ----- Since pre-commit in comment-bot runs on all files, it's a bit slow. Running it only on diff should speed it up significantly.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39505/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39505/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39505.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39505", "merged_at": "2021-01-31T19:36:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39505.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39505" }
https://api.github.com/repos/pandas-dev/pandas/issues/39506
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39506/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39506/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39506/events
https://github.com/pandas-dev/pandas/pull/39506
797,800,232
MDExOlB1bGxSZXF1ZXN0NTY0NzIwMzUy
39,506
Remove repeated keywords (#39503)
{ "avatar_url": "https://avatars.githubusercontent.com/u/45742869?v=4", "events_url": "https://api.github.com/users/Rasori/events{/privacy}", "followers_url": "https://api.github.com/users/Rasori/followers", "following_url": "https://api.github.com/users/Rasori/following{/other_user}", "gists_url": "https://api.github.com/users/Rasori/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Rasori", "id": 45742869, "login": "Rasori", "node_id": "MDQ6VXNlcjQ1NzQyODY5", "organizations_url": "https://api.github.com/users/Rasori/orgs", "received_events_url": "https://api.github.com/users/Rasori/received_events", "repos_url": "https://api.github.com/users/Rasori/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Rasori/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Rasori/subscriptions", "type": "User", "url": "https://api.github.com/users/Rasori" }
[ { "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": "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" }
1
2021-01-31T20:09:12Z
2021-01-31T21:15:47Z
2021-01-31T21:15:47Z
CONTRIBUTOR
null
- [x] closes #39503 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39506/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39506/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39506.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39506", "merged_at": "2021-01-31T21:15:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39506.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39506" }
https://api.github.com/repos/pandas-dev/pandas/issues/39507
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39507/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39507/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39507/events
https://github.com/pandas-dev/pandas/pull/39507
797,801,270
MDExOlB1bGxSZXF1ZXN0NTY0NzIxMTE4
39,507
BUG: DataFrame.stack not handling NaN in MultiIndex columns correct
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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": "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": "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" }
1
2021-01-31T20:14:27Z
2021-02-04T23:12:37Z
2021-02-04T01:52:52Z
MEMBER
null
- [x] closes #39481 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [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/39507/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39507/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39507.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39507", "merged_at": "2021-02-04T01:52:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39507.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39507" }
https://api.github.com/repos/pandas-dev/pandas/issues/39508
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39508/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39508/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39508/events
https://github.com/pandas-dev/pandas/pull/39508
797,802,301
MDExOlB1bGxSZXF1ZXN0NTY0NzIxODg5
39,508
TST: fix td64 arithmetic xfails
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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" } ]
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" }
1
2021-01-31T20:19:34Z
2021-02-01T23:49:59Z
2021-02-01T23:44:30Z
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/39508/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39508/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39508.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39508", "merged_at": "2021-02-01T23:44:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39508.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39508" }
https://api.github.com/repos/pandas-dev/pandas/issues/39509
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39509/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39509/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39509/events
https://github.com/pandas-dev/pandas/issues/39509
797,804,164
MDU6SXNzdWU3OTc4MDQxNjQ=
39,509
trying to drop columns on a series silently fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/25716039?v=4", "events_url": "https://api.github.com/users/Fealthas/events{/privacy}", "followers_url": "https://api.github.com/users/Fealthas/followers", "following_url": "https://api.github.com/users/Fealthas/following{/other_user}", "gists_url": "https://api.github.com/users/Fealthas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Fealthas", "id": 25716039, "login": "Fealthas", "node_id": "MDQ6VXNlcjI1NzE2MDM5", "organizations_url": "https://api.github.com/users/Fealthas/orgs", "received_events_url": "https://api.github.com/users/Fealthas/received_events", "repos_url": "https://api.github.com/users/Fealthas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Fealthas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Fealthas/subscriptions", "type": "User", "url": "https://api.github.com/users/Fealthas" }
[ { "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": "8dd5fc", "default": false, "description": "Series data structure", "id": 1357732944, "name": "Series", "node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series" } ]
open
false
null
[]
null
7
2021-01-31T20:29:10Z
2021-02-03T19:42:48Z
null
NONE
null
```python c = pd.DataFrame({ 'a':[1,2] ,'b':[3,4]}) d = c.iloc[0] # makes a series e = d.drop(columns=['a']) ''' a 1 b 3 Name: 0, dtype: int64 ''' ``` #### Problem description Drop silently fails on series. It does nothing when the user tries an impossible operation (dropping column from a series). #### Expected Output Error should be raised. 'Cannot drop columns from a series' INSTALLED VERSIONS ------------------ commit : 3e89b4c4b1580aa890023fc550774e63d499da25 python : 3.8.5.final.0 python-bits : 64 OS : Windows OS-release : 10 Version : 10.0.19041 machine : AMD64 processor : Intel64 Family 6 Model 140 Stepping 1, GenuineIntel byteorder : little LC_ALL : None LANG : en LOCALE : English_United States.1252 pandas : 1.2.0 numpy : 1.19.2 pytz : 2020.5 dateutil : 2.8.1 pip : 20.3.3 setuptools : 51.3.3.post20210118 Cython : 0.29.21 pytest : 6.2.1 hypothesis : None sphinx : 3.4.3 blosc : None feather : None xlsxwriter : 1.3.7 lxml.etree : 4.6.2 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.19.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : 1.3.2 fsspec : 0.8.3 fastparquet : None gcsfs : None matplotlib : 3.3.2 numexpr : 2.7.2 odfpy : None openpyxl : 3.0.6 pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : 1.5.2 sqlalchemy : 1.3.21 tables : 3.6.1 tabulate : None xarray : None xlrd : 2.0.1 xlwt : 1.3.0 numba : 0.51.2
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39509/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39509/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39510
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39510/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39510/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39510/events
https://github.com/pandas-dev/pandas/pull/39510
797,804,327
MDExOlB1bGxSZXF1ZXN0NTY0NzIzNDA3
39,510
REF/API: DataFrame.__setitem__ never operate 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": "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": "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" }
19
2021-01-31T20:29:53Z
2021-06-30T14:46:15Z
2021-03-16T16:56:07Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/issues/38896#issuecomment-761620727
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39510/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39510/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39510.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39510", "merged_at": "2021-03-16T16:56:07Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39510.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39510" }
https://api.github.com/repos/pandas-dev/pandas/issues/39511
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39511/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39511/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39511/events
https://github.com/pandas-dev/pandas/pull/39511
797,812,445
MDExOlB1bGxSZXF1ZXN0NTY0NzI5NDQ3
39,511
API: consistent default dropna for value_counts
{ "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": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
2
2021-01-31T21:08:27Z
2021-02-03T02:08:56Z
2021-02-03T01:30:50Z
MEMBER
null
Also hopefully fixes some docbuild issues
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39511/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39511/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39511.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39511", "merged_at": "2021-02-03T01:30:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39511.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39511" }
https://api.github.com/repos/pandas-dev/pandas/issues/39512
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39512/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39512/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39512/events
https://github.com/pandas-dev/pandas/pull/39512
797,818,288
MDExOlB1bGxSZXF1ZXN0NTY0NzMzODkz
39,512
CLN: Fix userguide deprecation warning new numpy
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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": "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": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2021-02-09T11:58:00Z", "closed_issues": 89, "created_at": "2021-01-16T01:20:17Z", "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": "2021-02-07T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/82", "id": 6317919, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels", "node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==", "number": 82, "open_issues": 0, "state": "closed", "title": "1.2.2", "updated_at": "2021-02-09T21:26:11Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82" }
4
2021-01-31T21:37:48Z
2021-02-02T21:14:21Z
2021-02-01T13:42:29Z
MEMBER
null
This should get the ipython directives passing
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39512/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39512/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39512.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39512", "merged_at": "2021-02-01T13:42:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39512.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39512" }
https://api.github.com/repos/pandas-dev/pandas/issues/39513
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39513/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39513/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39513/events
https://github.com/pandas-dev/pandas/issues/39513
797,823,324
MDU6SXNzdWU3OTc4MjMzMjQ=
39,513
TYP: Mypy failures with new numpy
{ "avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4", "events_url": "https://api.github.com/users/phofl/events{/privacy}", "followers_url": "https://api.github.com/users/phofl/followers", "following_url": "https://api.github.com/users/phofl/following{/other_user}", "gists_url": "https://api.github.com/users/phofl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phofl", "id": 61934744, "login": "phofl", "node_id": "MDQ6VXNlcjYxOTM0NzQ0", "organizations_url": "https://api.github.com/users/phofl/orgs", "received_events_url": "https://api.github.com/users/phofl/received_events", "repos_url": "https://api.github.com/users/phofl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phofl/subscriptions", "type": "User", "url": "https://api.github.com/users/phofl" }
[ { "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": "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": "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" }
5
2021-01-31T22:03:40Z
2021-03-10T20:46:44Z
2021-03-10T20:45:15Z
MEMBER
null
Mypy raises a lot of errors since the new numpy is available on conda-forge. What is the best approach here? Adding ignores for everything and fixing them step by step afterwards? cc @simonjayhawkins
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39513/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39513/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39514
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39514/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39514/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39514/events
https://github.com/pandas-dev/pandas/issues/39514
797,823,399
MDU6SXNzdWU3OTc4MjMzOTk=
39,514
BUG: Reading csv files with numbers with multiple leading zeros losses a lot of precision
{ "avatar_url": "https://avatars.githubusercontent.com/u/16520296?v=4", "events_url": "https://api.github.com/users/CalebBell/events{/privacy}", "followers_url": "https://api.github.com/users/CalebBell/followers", "following_url": "https://api.github.com/users/CalebBell/following{/other_user}", "gists_url": "https://api.github.com/users/CalebBell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CalebBell", "id": 16520296, "login": "CalebBell", "node_id": "MDQ6VXNlcjE2NTIwMjk2", "organizations_url": "https://api.github.com/users/CalebBell/orgs", "received_events_url": "https://api.github.com/users/CalebBell/received_events", "repos_url": "https://api.github.com/users/CalebBell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CalebBell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CalebBell/subscriptions", "type": "User", "url": "https://api.github.com/users/CalebBell" }
[ { "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": "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" }
5
2021-01-31T22:04:03Z
2021-02-11T15:18:46Z
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. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. #### Code Sample, a copy-pastable example ``` caleb ~ $ cat sample_read_wrong.tsv CAS Chemical A B C D E 7440-63-3 Xenon -0.0000023692 0.000000098454 -0.000000000048314 0.00000000000001953 -3.42E-018 7439-90-9 Krypton -0.000000792 0.000000102624 -0.000000000055428 0.00000000000002187 -3.69E-018 7440-37-1 Argon 0.0000016196 0.000000081279 -0.000000000041263 0.00000000000001668 -2.76E-018 7440-01-9 Neon 0.0000023014 0.000000122527 -0.000000000097141 0.00000000000005386 -1.103E-017 ``` ```In [1]: import pandas as pd In [2]: pd.read_csv('sample_read_wrong.tsv',delimiter='\t') Out[2]: CAS Chemical A ... C D E 0 7440-63-3 Xenon -2.369200e-06 ... -4.831400e-11 1.950000e-14 -3.420000e-18 1 7439-90-9 Krypton -7.920000e-07 ... -5.542800e-11 2.180000e-14 -3.690000e-18 2 7440-37-1 Argon 1.619600e-06 ... -4.126300e-11 1.660000e-14 -2.760000e-18 3 7440-01-9 Neon 2.301400e-06 ... -9.714100e-11 5.380000e-14 -1.103000e-17 [4 rows x 7 columns] ``` #### Problem description Pandas is no longer reading a CVS file with numbers that look like "0.00000000000001953" correctly. In this case, Pandas reads that as 1.950000e-14 - a clear loss of precision. This appears to be a bug in the new "high precision" floating point parsing engine that was made the default in Pandas 1.2.0. #### Expected Output ``` CAS Chemical A ... C D E 0 7440-63-3 Xenon -2.369200e-06 ... -4.831400e-11 1.953000e-14 -3.420000e-18 1 7439-90-9 Krypton -7.920000e-07 ... -5.542800e-11 2.187000e-14 -3.690000e-18 2 7440-37-1 Argon 1.619600e-06 ... -4.126300e-11 1.668000e-14 -2.760000e-18 3 7440-01-9 Neon 2.301400e-06 ... -9.714100e-11 5.386000e-14 -1.103000e-17 [4 rows x 7 columns] ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 9d598a5e1eee26df95b3910e3f2934890d062caa python : 3.8.7.final.0 python-bits : 64 OS : Linux OS-release : 5.7.0-2-amd64 Version : #1 SMP Debian 5.7.10-1 (2020-07-26) machine : x86_64 processor : byteorder : little LC_ALL : None LANG : en_CA.UTF-8 LOCALE : en_CA.UTF-8 pandas : 1.2.1 numpy : 1.19.2 pytz : 2020.5 dateutil : 2.8.1 pip : 20.1.1 setuptools : 51.3.3 Cython : 0.29.21 pytest : 6.1.2 hypothesis : None sphinx : 3.2.1 blosc : None feather : None xlsxwriter : None lxml.etree : 4.6.1 html5lib : 1.1 pymysql : None psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.17.0 pandas_datareader: None bs4 : 4.9.3 bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : 3.3.1 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.22 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 numba : 0.52.0 </details> I was able to work around this with the {'float_precision': 'legacy'} option, but it is not great behavior and old versions of the [library](https://github.com/CalebBell/Chemicals) I wrote that experienced this issue will silently break.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39514/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39514/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/39515
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39515/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39515/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39515/events
https://github.com/pandas-dev/pandas/pull/39515
797,834,037
MDExOlB1bGxSZXF1ZXN0NTY0NzQ1ODQx
39,515
REGR: Reading csv files with numbers with multiple leading zeros losses a lot of precision
{ "avatar_url": "https://avatars.githubusercontent.com/u/16520296?v=4", "events_url": "https://api.github.com/users/CalebBell/events{/privacy}", "followers_url": "https://api.github.com/users/CalebBell/followers", "following_url": "https://api.github.com/users/CalebBell/following{/other_user}", "gists_url": "https://api.github.com/users/CalebBell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CalebBell", "id": 16520296, "login": "CalebBell", "node_id": "MDQ6VXNlcjE2NTIwMjk2", "organizations_url": "https://api.github.com/users/CalebBell/orgs", "received_events_url": "https://api.github.com/users/CalebBell/received_events", "repos_url": "https://api.github.com/users/CalebBell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CalebBell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CalebBell/subscriptions", "type": "User", "url": "https://api.github.com/users/CalebBell" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
null
3
2021-01-31T22:57:17Z
2021-02-11T15:18:35Z
2021-02-11T14:36:08Z
NONE
null
- [x] closes #39514 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Trying this change out to see what the tests say. It fixes the current issue I experienced.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39515/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39515/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39515.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39515", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/39515.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39515" }
https://api.github.com/repos/pandas-dev/pandas/issues/39516
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39516/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39516/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39516/events
https://github.com/pandas-dev/pandas/pull/39516
797,867,445
MDExOlB1bGxSZXF1ZXN0NTY0NzcyNzkw
39,516
ENH: Add I/O support of XML with pandas.read_xml and DataFrame.to_xml…
{ "avatar_url": "https://avatars.githubusercontent.com/u/13602663?v=4", "events_url": "https://api.github.com/users/ParfaitG/events{/privacy}", "followers_url": "https://api.github.com/users/ParfaitG/followers", "following_url": "https://api.github.com/users/ParfaitG/following{/other_user}", "gists_url": "https://api.github.com/users/ParfaitG/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ParfaitG", "id": 13602663, "login": "ParfaitG", "node_id": "MDQ6VXNlcjEzNjAyNjYz", "organizations_url": "https://api.github.com/users/ParfaitG/orgs", "received_events_url": "https://api.github.com/users/ParfaitG/received_events", "repos_url": "https://api.github.com/users/ParfaitG/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ParfaitG/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ParfaitG/subscriptions", "type": "User", "url": "https://api.github.com/users/ParfaitG" }
[ { "color": "1d76db", "default": false, "description": "read_xml, to_xml", "id": 2707590670, "name": "IO XML", "node_id": "MDU6TGFiZWwyNzA3NTkwNjcw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20XML" } ]
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" }
5
2021-02-01T01:04:20Z
2021-02-27T19:00:33Z
2021-02-27T18:15:01Z
CONTRIBUTOR
null
… (GH27554) - [X] closes #27554 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [X] whatsnew entry - [X] io entry - [X] install entry To Do List - [ ] Add `parse_dates` feature for `read_xml`. - [ ] Add tests for `storage_options`. - [ ] Add tests for `ParserError`, `OSError`, `URLError`, etc. - [ ] Add `xpath_vars` feature to pass `$` variables in `xpath` expression. See [lxml xpath() method](https://lxml.de/xpathxslt.html#the-xpath-method). - [ ] Add `xsl_params` feature to pass values into XSLT script. See [lxml stylesheet parameters](https://lxml.de/xpathxslt.html#stylesheet-parameters). - [ ] Add `iterparse` feature for memory efficient parsing of large XML. See [etree iterparse](https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.iterparse) and [lxml iterparse](https://lxml.de/3.2/parsing.html#iterparse-and-iterwalk).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39516/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39516/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39516.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39516", "merged_at": "2021-02-27T18:15:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39516.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39516" }
https://api.github.com/repos/pandas-dev/pandas/issues/39517
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39517/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39517/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39517/events
https://github.com/pandas-dev/pandas/pull/39517
797,888,910
MDExOlB1bGxSZXF1ZXN0NTY0Nzg5NzA4
39,517
CLN: remove unnecessary name in stack_arrays
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "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": "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" }
3
2021-02-01T02:09:44Z
2021-02-02T15:10:15Z
2021-02-02T13:35:29Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] 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/39517/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39517/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/39517.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/39517", "merged_at": "2021-02-02T13:35:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/39517.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39517" }
https://api.github.com/repos/pandas-dev/pandas/issues/39518
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/39518/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/39518/comments
https://api.github.com/repos/pandas-dev/pandas/issues/39518/events
https://github.com/pandas-dev/pandas/issues/39518
798,005,725
MDU6SXNzdWU3OTgwMDU3MjU=
39,518
ENH: Using nrows option while processing xlsb files
{ "avatar_url": "https://avatars.githubusercontent.com/u/894831?v=4", "events_url": "https://api.github.com/users/code-R/events{/privacy}", "followers_url": "https://api.github.com/users/code-R/followers", "following_url": "https://api.github.com/users/code-R/following{/other_user}", "gists_url": "https://api.github.com/users/code-R/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/code-R", "id": 894831, "login": "code-R", "node_id": "MDQ6VXNlcjg5NDgzMQ==", "organizations_url": "https://api.github.com/users/code-R/orgs", "received_events_url": "https://api.github.com/users/code-R/received_events", "repos_url": "https://api.github.com/users/code-R/repos", "site_admin": false, "starred_url": "https://api.github.com/users/code-R/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/code-R/subscriptions", "type": "User", "url": "https://api.github.com/users/code-R" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "009800", "default": 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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
null
3
2021-02-01T06:16:56Z
2021-02-03T09:04:08Z
2021-02-03T09:04:08Z
NONE
null
#### Is your feature request related to a problem? I wish pandas can use nrows eagerly while processing xlsx or xlsb files https://github.com/pandas-dev/pandas/blob/master/pandas/io/excel/_pyxlsb.py#L73 If we see this code, this tries to process all the sheetdata and later apply nrows, which is very very slow in large files..in-fact in one of the xlsb files, the number of records are around 3k but, it was trying to loop around 100k records (because of xlsb metadata or something) even though I specify nrows as 3k, it has to wait processing all 100k records. #### Describe the solution you'd like If we can pass nrows to get_sheet_data and break the loop while it reaches the nrows number, then it will better. #### API breaking implications I am not really sure. #### Describe alternatives you've considered don't have alternatives at the moment, would like to hear suggestions about this. #### Additional context [add any other context, code examples, or references to existing implementations about the feature request here] ```python df = pd.read_excel("sample.xlsb", nrows=100, engine="pyxlsb") ```` ```python def get_sheet_data(self, sheet, convert_float: bool, nrows: int) -> List[List[Scalar]]: res = [] for index, r in enumerate(sheet.rows(sparse=False)): res.append([self._convert_cell(c, convert_float) for c in r]) if index > nrows: break return res ``` We can set default value for nrows=infinity, incase if we dont want to break for others.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/39518/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/39518/timeline
null
null
null