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/35117
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35117/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35117/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35117/events
https://github.com/pandas-dev/pandas/pull/35117
650,772,841
MDExOlB1bGxSZXF1ZXN0NDQ0MTk4Njgy
35,117
CLN: convert lambda to function
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-03T21:34:26Z
2020-07-04T15:30:21Z
2020-07-04T15:30:16Z
CONTRIBUTOR
null
Minor cleanup: conversion to proper function.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35117/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35117/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35117.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35117", "merged_at": "2020-07-04T15:30:16Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35117.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35117" }
https://api.github.com/repos/pandas-dev/pandas/issues/35118
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35118/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35118/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35118/events
https://github.com/pandas-dev/pandas/pull/35118
650,779,730
MDExOlB1bGxSZXF1ZXN0NDQ0MjAzODMw
35,118
CLN: Index._format_with_header (remove kwargs etc.)
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-03T22:10:37Z
2020-08-08T08:30:29Z
2020-07-07T13:20:00Z
CONTRIBUTOR
null
Refactor of ``Index._format_with_header`` and subclass methods: * remove ``kwargs`` for cleaner signature. * Add return type * Move functionality specific to ``CategoricalIndex`` to that class.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35118/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35118/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35118.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35118", "merged_at": "2020-07-07T13:20:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35118.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35118" }
https://api.github.com/repos/pandas-dev/pandas/issues/35119
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35119/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35119/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35119/events
https://github.com/pandas-dev/pandas/pull/35119
650,816,559
MDExOlB1bGxSZXF1ZXN0NDQ0MjMxNDYz
35,119
REF: make ccalendar self-contained
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-04T03:03:43Z
2020-07-07T01:04:23Z
2020-07-07T00:44:21Z
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/35119/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35119/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35119.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35119", "merged_at": "2020-07-07T00:44:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35119.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35119" }
https://api.github.com/repos/pandas-dev/pandas/issues/35120
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35120/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35120/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35120/events
https://github.com/pandas-dev/pandas/pull/35120
650,873,398
MDExOlB1bGxSZXF1ZXN0NDQ0MjcxODU2
35,120
TYP, DOC, CLN:SeriesGroupBy._wrap_applied_output
{ "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": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-04T11:14:26Z
2020-07-07T20:18:13Z
2020-07-07T19:19:27Z
MEMBER
null
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35120/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35120/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35120.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35120", "merged_at": "2020-07-07T19:19:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35120.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35120" }
https://api.github.com/repos/pandas-dev/pandas/issues/35121
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35121/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35121/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35121/events
https://github.com/pandas-dev/pandas/pull/35121
650,880,985
MDExOlB1bGxSZXF1ZXN0NDQ0Mjc3NDkx
35,121
TST add test case for drop_duplicates
{ "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" }
[ { "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": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-04T12:13:06Z
2020-07-08T15:40:09Z
2020-07-08T12:52:26Z
CONTRIBUTOR
null
Add a test case to drop_duplicates for inplace=True.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35121/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35121/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35121.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35121", "merged_at": "2020-07-08T12:52:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35121.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35121" }
https://api.github.com/repos/pandas-dev/pandas/issues/35122
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35122/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35122/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35122/events
https://github.com/pandas-dev/pandas/pull/35122
650,888,465
MDExOlB1bGxSZXF1ZXN0NDQ0MjgyNzU2
35,122
CLN: remove kwargs in Index.format
{ "avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4", "events_url": "https://api.github.com/users/topper-123/events{/privacy}", "followers_url": "https://api.github.com/users/topper-123/followers", "following_url": "https://api.github.com/users/topper-123/following{/other_user}", "gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/topper-123", "id": 26364415, "login": "topper-123", "node_id": "MDQ6VXNlcjI2MzY0NDE1", "organizations_url": "https://api.github.com/users/topper-123/orgs", "received_events_url": "https://api.github.com/users/topper-123/received_events", "repos_url": "https://api.github.com/users/topper-123/repos", "site_admin": false, "starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/topper-123/subscriptions", "type": "User", "url": "https://api.github.com/users/topper-123" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" }, { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-07-04T13:06:52Z
2020-08-08T08:30:27Z
2020-07-14T22:32:48Z
CONTRIBUTOR
null
Removes kwargs in ``Index.format`` and subclasses. Also changes ``Index._format_with_header`` to have parameter ``na_rep`` not have a default value (in order to not have default value set in two locations). Related to #35118.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35122/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35122/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35122.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35122", "merged_at": "2020-07-14T22:32:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35122.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35122" }
https://api.github.com/repos/pandas-dev/pandas/issues/35123
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35123/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35123/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35123/events
https://github.com/pandas-dev/pandas/issues/35123
650,896,551
MDU6SXNzdWU2NTA4OTY1NTE=
35,123
BUG: pandas does not build on AIX - when using xlc/xlC as compiler
{ "avatar_url": "https://avatars.githubusercontent.com/u/10852597?v=4", "events_url": "https://api.github.com/users/aixtools/events{/privacy}", "followers_url": "https://api.github.com/users/aixtools/followers", "following_url": "https://api.github.com/users/aixtools/following{/other_user}", "gists_url": "https://api.github.com/users/aixtools/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aixtools", "id": 10852597, "login": "aixtools", "node_id": "MDQ6VXNlcjEwODUyNTk3", "organizations_url": "https://api.github.com/users/aixtools/orgs", "received_events_url": "https://api.github.com/users/aixtools/received_events", "repos_url": "https://api.github.com/users/aixtools/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aixtools/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aixtools/subscriptions", "type": "User", "url": "https://api.github.com/users/aixtools" }
[ { "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": "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" } ]
open
false
null
[]
null
4
2020-07-04T14:02:46Z
2021-08-08T16:50:17Z
null
CONTRIBUTOR
null
- [x ] I have checked that this issue has not already been reported. - [ x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- Panda build stops with: ``` "pandas/_libs/window/aggregations.cpp", line 5436.23: 1540-0063 (S) The text "(" is unexpected. "pandas/_libs/window/aggregations.cpp", line 5523.23: 1540-0063 (S) The text "(" is unexpected. "pandas/_libs/window/aggregations.cpp", line 6759.21: 1540-0063 (S) The text "(" is unexpected. "pandas/_libs/window/aggregations.cpp", line 20023.21: 1540-0063 (S) The text "(" is unexpected. ``` On examining this I see that there are special statements - perhaps unsupported by xlc/xlC (v11). ``` +5436 __pyx_t_1 = (std::signbit(__pyx_v_val) != 0); +5523 __pyx_t_1 = (std::signbit(__pyx_v_val) != 0); +6759 __pyx_t_1 = (std::isnan(__pyx_v_val) != 0); +20023 __pyx_t_1 = (std::isnan(__pyx_v_val) != 0); ``` There is a good chance this is an issue caused by cython. but I thought I would post/mention it here as well.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35123/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35123/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35124
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35124/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35124/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35124/events
https://github.com/pandas-dev/pandas/issues/35124
650,917,693
MDU6SXNzdWU2NTA5MTc2OTM=
35,124
BUG: Rounding on float16 type not working
{ "avatar_url": "https://avatars.githubusercontent.com/u/18036578?v=4", "events_url": "https://api.github.com/users/Genarito/events{/privacy}", "followers_url": "https://api.github.com/users/Genarito/followers", "following_url": "https://api.github.com/users/Genarito/following{/other_user}", "gists_url": "https://api.github.com/users/Genarito/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Genarito", "id": 18036578, "login": "Genarito", "node_id": "MDQ6VXNlcjE4MDM2NTc4", "organizations_url": "https://api.github.com/users/Genarito/orgs", "received_events_url": "https://api.github.com/users/Genarito/received_events", "repos_url": "https://api.github.com/users/Genarito/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Genarito/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Genarito/subscriptions", "type": "User", "url": "https://api.github.com/users/Genarito" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
9
2020-07-04T16:20:02Z
2020-07-07T18:54:31Z
2020-07-05T12:24:53Z
NONE
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Problem description I'm trying to round a column to 4 decimal places to store them in the DB. I must use `np.float16` type to work with as I need the smallest possible precision, but it's not working (see *output* section), if I don't cast the values and leave them as `np.float64` type It'll work correctly. I think it's a bug of Pandas as if I run: ```python np.array([0.37324, 0.12321, 0.23]).astype(np.float16).round(4) ``` It works as expected, so It doesn't seem to be a problem for Numpy. #### Code Sample ```python import pandas as pd import numpy as np df = pd.DataFrame(np.array([0.37324, 0.12321, 0.23]), columns=['A']) df.astype(np.float16).round(4) ``` Running: ```python pd.DataFrame(np.array([0.37324, 0.12321, 0.23]).astype(np.float16), columns=['A']).round({'A': 4}) ``` Doesn't work either as it has the same output. #### Current Output ``` A 0 0.373291 1 0.123230 2 0.229980 ``` #### Expected Output ``` A 0 0.3732 1 0.1232 2 0.23 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-62-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : es_AR.UTF-8 LOCALE : es_AR.UTF-8 pandas : 1.0.5 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 18.1 setuptools : 40.8.0 Cython : None pytest : 5.3.5 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.5 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35124/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35124/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35125
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35125/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35125/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35125/events
https://github.com/pandas-dev/pandas/pull/35125
650,954,172
MDExOlB1bGxSZXF1ZXN0NDQ0MzI2ODkw
35,125
TST: Add test for category equalness on applies (#21239)
{ "avatar_url": "https://avatars.githubusercontent.com/u/5392964?v=4", "events_url": "https://api.github.com/users/gabrielNT/events{/privacy}", "followers_url": "https://api.github.com/users/gabrielNT/followers", "following_url": "https://api.github.com/users/gabrielNT/following{/other_user}", "gists_url": "https://api.github.com/users/gabrielNT/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gabrielNT", "id": 5392964, "login": "gabrielNT", "node_id": "MDQ6VXNlcjUzOTI5NjQ=", "organizations_url": "https://api.github.com/users/gabrielNT/orgs", "received_events_url": "https://api.github.com/users/gabrielNT/received_events", "repos_url": "https://api.github.com/users/gabrielNT/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gabrielNT/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gabrielNT/subscriptions", "type": "User", "url": "https://api.github.com/users/gabrielNT" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-04T20:51:02Z
2020-07-06T21:28:17Z
2020-07-06T21:28:08Z
CONTRIBUTOR
null
- [x] closes #21239 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The test checks if equalness comparisons through `df.apply()` works correctly for the categorical `dtype`, especially with `np.NaN` and `None` values.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35125/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35125/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35125.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35125", "merged_at": "2020-07-06T21:28:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35125.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35125" }
https://api.github.com/repos/pandas-dev/pandas/issues/35126
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35126/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35126/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35126/events
https://github.com/pandas-dev/pandas/issues/35126
650,966,835
MDU6SXNzdWU2NTA5NjY4MzU=
35,126
BUG: unexpected cut() results
{ "avatar_url": "https://avatars.githubusercontent.com/u/35204136?v=4", "events_url": "https://api.github.com/users/oleksiyskononenko/events{/privacy}", "followers_url": "https://api.github.com/users/oleksiyskononenko/followers", "following_url": "https://api.github.com/users/oleksiyskononenko/following{/other_user}", "gists_url": "https://api.github.com/users/oleksiyskononenko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/oleksiyskononenko", "id": 35204136, "login": "oleksiyskononenko", "node_id": "MDQ6VXNlcjM1MjA0MTM2", "organizations_url": "https://api.github.com/users/oleksiyskononenko/orgs", "received_events_url": "https://api.github.com/users/oleksiyskononenko/received_events", "repos_url": "https://api.github.com/users/oleksiyskononenko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/oleksiyskononenko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oleksiyskononenko/subscriptions", "type": "User", "url": "https://api.github.com/users/oleksiyskononenko" }
[ { "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": "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": "9aace2", "default": false, "description": "cut, qcut", "id": 1639305834, "name": "cut", "node_id": "MDU6TGFiZWwxNjM5MzA1ODM0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/cut" } ]
open
false
null
[]
null
8
2020-07-04T22:42:41Z
2021-08-08T16:51:20Z
null
NONE
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd nbins = 42 maxs = [96, 97, 98] for max in maxs: data = [-max, 0, max] bins = pd.cut(data, nbins, labels=False) print("Data: ", data) print("Bins: ", bins, "\n") ``` #### Problem description According to [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.cut.html), I would expect the `0` value to go to the bin `20`. For `max == 96` and `max == 98` it does go to the bin `20`, however, when `max == 97` for some reason `0` goes to the bin `21`: ```python Data: [-96, 0, 96] Bins: [ 0 20 41] Data: [-97, 0, 97] Bins: [ 0 21 41] Data: [-98, 0, 98] Bins: [ 0 20 41] ``` Feels like a bug, or may be I'm missing something on the docs that explains such a `cut()` behavior. Would appreciate any help on this. Thanks. #### Expected Output ```python Data: [-96, 0, 96] Bins: [ 0 20 41] Data: [-97, 0, 97] Bins: [ 0 20 41] Data: [-98, 0, 98] Bins: [ 0 20 41] ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.8.final.0 python-bits : 64 OS : Darwin OS-release : 19.2.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.16.1 pytz : 2018.9 dateutil : 2.8.0 pip : 20.0.2 setuptools : 40.6.3 Cython : None pytest : 4.1.1 hypothesis : None sphinx : 2.4.4 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10 IPython : 7.8.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 4.1.1 pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35126/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35126/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35127
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35127/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35127/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35127/events
https://github.com/pandas-dev/pandas/pull/35127
651,004,701
MDExOlB1bGxSZXF1ZXN0NDQ0MzYxMDg4
35,127
ENH: make is_list_like handle non iterable numpy-like arrays correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/23625371?v=4", "events_url": "https://api.github.com/users/znicholls/events{/privacy}", "followers_url": "https://api.github.com/users/znicholls/followers", "following_url": "https://api.github.com/users/znicholls/following{/other_user}", "gists_url": "https://api.github.com/users/znicholls/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/znicholls", "id": 23625371, "login": "znicholls", "node_id": "MDQ6VXNlcjIzNjI1Mzcx", "organizations_url": "https://api.github.com/users/znicholls/orgs", "received_events_url": "https://api.github.com/users/znicholls/received_events", "repos_url": "https://api.github.com/users/znicholls/repos", "site_admin": false, "starred_url": "https://api.github.com/users/znicholls/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/znicholls/subscriptions", "type": "User", "url": "https://api.github.com/users/znicholls" }
[ { "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": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" }, { "color": "78bced", "default": false, "description": "Waiting for review/response from a maintainer.", "id": 2324533627, "name": "Needs Review", "node_id": "MDU6TGFiZWwyMzI0NTMzNjI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Review" } ]
closed
false
null
[]
null
31
2020-07-05T05:27:10Z
2021-07-11T23:27:18Z
2021-07-11T23:27:17Z
CONTRIBUTOR
null
- [x] closes #35131 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35127/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35127/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35127.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35127", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35127.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35127" }
https://api.github.com/repos/pandas-dev/pandas/issues/35128
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35128/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35128/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35128/events
https://github.com/pandas-dev/pandas/pull/35128
651,066,501
MDExOlB1bGxSZXF1ZXN0NDQ0NDA1MDUw
35,128
CLN: remove the circular import in NDFrame.dtypes
{ "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": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-05T13:04:40Z
2020-07-07T07:24:17Z
2020-07-07T00:39:26Z
MEMBER
null
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35128/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35128/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35128.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35128", "merged_at": "2020-07-07T00:39:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35128.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35128" }
https://api.github.com/repos/pandas-dev/pandas/issues/35129
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35129/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35129/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35129/events
https://github.com/pandas-dev/pandas/pull/35129
651,136,748
MDExOlB1bGxSZXF1ZXN0NDQ0NDU0NDAw
35,129
support binary file handles in to_csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4", "events_url": "https://api.github.com/users/twoertwein/events{/privacy}", "followers_url": "https://api.github.com/users/twoertwein/followers", "following_url": "https://api.github.com/users/twoertwein/following{/other_user}", "gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/twoertwein", "id": 6618166, "login": "twoertwein", "node_id": "MDQ6VXNlcjY2MTgxNjY=", "organizations_url": "https://api.github.com/users/twoertwein/orgs", "received_events_url": "https://api.github.com/users/twoertwein/received_events", "repos_url": "https://api.github.com/users/twoertwein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions", "type": "User", "url": "https://api.github.com/users/twoertwein" }
[ { "color": "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" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
15
2020-07-05T20:07:33Z
2020-08-07T22:45:53Z
2020-08-07T11:53:10Z
CONTRIBUTOR
null
- [x] fixes #19827, fixes #35058, fixes #23854 *, fixes #13068 *, and fixes #22555 - [x] 3 tests added - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The first commit addresses https://github.com/pandas-dev/pandas/issues/35058#issuecomment-653844610: python's `open` cannot take an `encoding` argument when `mode` contains a `'b'` (opened in binary mode). This avoids an error when executing `df.to_csv("output.csv", mode="w+b")`. The second commit fixes #35058, #19827, #23854 *, and #13068 *: `to_csv` supports file handles in binary mode if `mode` contains a `b` and it honors `encoding`. `to_csv` re-invented a lot that was already done in `get_handle`. Let `get_handle` do the heavy lifting and remove all special cases from `to_csv`. The third commit fixes #22555: some compression algorithms did not set the mode to be writeable for file handles. Together with the re-factoring in the second commit, it is now possible to write to binary file handles with compression! *requesting an encoding for a non-binary file handles through `to_csv` still doesn't work but imho also doesn't make sense: specify the encoding yourself when opening the file or use a binary file handle
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35129/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35129/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35129.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35129", "merged_at": "2020-08-07T11:53:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35129.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35129" }
https://api.github.com/repos/pandas-dev/pandas/issues/35130
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35130/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35130/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35130/events
https://github.com/pandas-dev/pandas/pull/35130
651,146,570
MDExOlB1bGxSZXF1ZXN0NDQ0NDYxMTI1
35,130
BUG: transform with nunique should have dtype int64
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "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
[]
null
1
2020-07-05T21:11:37Z
2020-07-11T16:00:46Z
2020-07-10T22:27:22Z
MEMBER
null
- [x] closes #35109 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35130/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35130/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35130.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35130", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35130.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35130" }
https://api.github.com/repos/pandas-dev/pandas/issues/35131
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35131/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35131/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35131/events
https://github.com/pandas-dev/pandas/issues/35131
651,161,501
MDU6SXNzdWU2NTExNjE1MDE=
35,131
ENH: Identify numpy-like zero-dimensional arrays as non-iterable
{ "avatar_url": "https://avatars.githubusercontent.com/u/23625371?v=4", "events_url": "https://api.github.com/users/znicholls/events{/privacy}", "followers_url": "https://api.github.com/users/znicholls/followers", "following_url": "https://api.github.com/users/znicholls/following{/other_user}", "gists_url": "https://api.github.com/users/znicholls/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/znicholls", "id": 23625371, "login": "znicholls", "node_id": "MDQ6VXNlcjIzNjI1Mzcx", "organizations_url": "https://api.github.com/users/znicholls/orgs", "received_events_url": "https://api.github.com/users/znicholls/received_events", "repos_url": "https://api.github.com/users/znicholls/repos", "site_admin": false, "starred_url": "https://api.github.com/users/znicholls/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/znicholls/subscriptions", "type": "User", "url": "https://api.github.com/users/znicholls" }
[ { "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": "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" } ]
open
false
null
[]
null
2
2020-07-05T22:53:25Z
2020-07-09T18:40:36Z
null
CONTRIBUTOR
null
Note: I wasn't sure whether to label this as an enhancement or bug. I've put enhancement as I don't think the original implementation was actually incorrect, rather just limited in scope. I'm happy to change to bug if that's more appropriate. #### Is your feature request related to a problem? I'm one of the developers of [Pint-Pandas](https://github.com/hgrecco/pint-pandas), which provides an extension type for storing numeric data with units (and, once mature, may solve #10349). The problem we're having is that we can't pass all the extension type tests. In particular, we fail many tests due to Panda's current implementation of `is_list_like`. As @hgrecco shows [here](https://github.com/hgrecco/pint-pandas/issues/33#issuecomment-647225205), pandas determines whether something `is_list_like` [here](https://github.com/pandas-dev/pandas/blob/4743cc91719146167eefb43865413fc0b0aef1d4/pandas/_libs/lib.pyx#L992) (code copied below). ```python cdef inline bint c_is_list_like(object obj, bint allow_sets) except -1: return ( isinstance(obj, abc.Iterable) # we do not count strings/unicode/bytes as list-like and not isinstance(obj, (str, bytes)) # exclude zero-dimensional numpy arrays, effectively scalars and not (util.is_array(obj) and obj.ndim == 0) # exclude sets if allow_sets is False and not (allow_sets is False and isinstance(obj, abc.Set)) ) ``` At the moment, all Pint `Quantity` instances have an `__iter__` method. It is designed to raise a `TypeError` if the quantity isn't actually iterable (code [here](https://github.com/hgrecco/pint/blob/4ab68ba0a00f96ed68fdf084233b61d68127c461/pint/quantity.py#L242)). The problem is that the `__iter__` method is defined, regardless of whether the `Quantity` instance is actually iterable or not. This is a problem because it means that, in all cases, `isinstance(quantity_instance, abc.Iterable)` returns `True` (even if `quantity_instance` isn't actually iterable and would return a `TypeError` as soon as one tried to iterate with it). A numpy array suffers from the same issue which is where the `not (util.is_array(obj) and obj.ndim == 0)` in Panda's `is_list_like` is important, because it excludes scalars. The problem is that `util.is_array(obj)` returns `False` if `obj` is anything other than `np.ndarray`. As a result, we can't just add an `ndim` attribute to `Quantity` because the `obj.ndim == 0` check will never be evaluated anyway. #### Describe the solution you'd like Update `is_list_like` so that it correctly identifies implementations of scalars in numpy-like arrays (I think these are called 'duck numpy arrays'?). I've put a draft in #35127 and would be grateful for feedback on the proposed solution there. If there's a better solution, I'm also happy to implement that instead. #### API breaking implications `is_list_like` would now return `False` for scalars of numpy-like array implementations. If we used the implementation in #35127 then any object that has an `ndim` attribute and has `obj.ndim == 0` would no longer be identified as list-like. #### Describe alternatives you've considered We've discussed how we could get the behaviour we want by changing Pint, rather than changing Pandas, but it seems to be impossible if we want to maintain the numpy-like implementation without separate scalar and array classes (see discussion [here](https://github.com/hgrecco/pint/issues/1128)). #### Additional context ```python >>> import numpy as np >>> import pandas as pd >>> import pint >>> from collections import abc >>> numpy_scalar = np.array(2) >>> numpy_scalar array(2) # numpy 0d-array (i.e. scalar) quantities appear to be iterable even though they're not >>> isinstance(numpy_scalar, abc.Iterable) True >>> numpy_scalar[0] ... IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed # however, numpy 0d-array quantities are correctly handled by Pandas >>> pd.core.dtypes.inference.is_list_like(numpy_scalar) False # compare this with Pint's numpy-like implementation >>> ureg = pint.UnitRegistry() >>> quantity_scalar = 3 * ureg.meter >>> quantity_scalar <Quantity(3, 'meter')> # similar to a numpy array, scalar quantities appear to be iterable even though they're not >>> isinstance(quantity_scalar, abc.Iterable) True >>> quantity_scalar[0] ... TypeError: Neither Quantity object nor its magnitude (3)supports indexing # however, Pandas identifies Pint's implementation as being iterable which is what is causing # our problem >>> pd.core.dtypes.inference.is_list_like(quantity_scalar) True # we would like this to be False ```
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35131/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35131/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35132
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35132/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35132/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35132/events
https://github.com/pandas-dev/pandas/issues/35132
651,192,791
MDU6SXNzdWU2NTExOTI3OTE=
35,132
BUG: Passing `level=` to `DataFrame.reindex` fails when the index is flat
{ "avatar_url": "https://avatars.githubusercontent.com/u/10451445?v=4", "events_url": "https://api.github.com/users/zhenruiliao/events{/privacy}", "followers_url": "https://api.github.com/users/zhenruiliao/followers", "following_url": "https://api.github.com/users/zhenruiliao/following{/other_user}", "gists_url": "https://api.github.com/users/zhenruiliao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zhenruiliao", "id": 10451445, "login": "zhenruiliao", "node_id": "MDQ6VXNlcjEwNDUxNDQ1", "organizations_url": "https://api.github.com/users/zhenruiliao/orgs", "received_events_url": "https://api.github.com/users/zhenruiliao/received_events", "repos_url": "https://api.github.com/users/zhenruiliao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zhenruiliao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zhenruiliao/subscriptions", "type": "User", "url": "https://api.github.com/users/zhenruiliao" }
[ { "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": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" } ]
open
false
null
[]
null
1
2020-07-06T01:41:35Z
2020-09-04T14:54:03Z
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 numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(100,40), index=pd.Index(np.arange(100), name='foo')) new_index = pd.Index(np.arange(50), name='foo') df.reindex(new_index, level='foo') ``` #### Problem description Currently the above raises `AttributeError: 'Int64Index' object has no attribute 'levels'`. The behavior of `DataFrame.reindex` should be consistent between flat Indexes and MultiIndexes - as long the level is valid, I shouldn't have to check whether the index is a flat index or a MultiIndex before deciding whether to pass `level=`. #### Expected Output Same as `df.reindex(new_index)` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-53-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.4 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1.post20200622 Cython : 0.29.19 pytest : None hypothesis : None sphinx : 3.1.1 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.1 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.15.0 pandas_datareader: None bs4 : 4.9.0 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.4.1 matplotlib : 3.1.3 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : 3.4.4 tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : 0.48.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35132/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35132/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35133
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35133/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35133/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35133/events
https://github.com/pandas-dev/pandas/pull/35133
651,200,889
MDExOlB1bGxSZXF1ZXN0NDQ0NTAxMTE0
35,133
CLN: unused imports in tslibs
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-07-06T02:15:29Z
2020-07-06T23:15:31Z
2020-07-06T23:00: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/35133/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35133/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35133.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35133", "merged_at": "2020-07-06T23:00:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35133.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35133" }
https://api.github.com/repos/pandas-dev/pandas/issues/35134
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35134/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35134/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35134/events
https://github.com/pandas-dev/pandas/issues/35134
651,329,440
MDU6SXNzdWU2NTEzMjk0NDA=
35,134
CI: Update to isort 5
{ "avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4", "events_url": "https://api.github.com/users/AlexKirko/events{/privacy}", "followers_url": "https://api.github.com/users/AlexKirko/followers", "following_url": "https://api.github.com/users/AlexKirko/following{/other_user}", "gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexKirko", "id": 23253999, "login": "AlexKirko", "node_id": "MDQ6VXNlcjIzMjUzOTk5", "organizations_url": "https://api.github.com/users/AlexKirko/orgs", "received_events_url": "https://api.github.com/users/AlexKirko/received_events", "repos_url": "https://api.github.com/users/AlexKirko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexKirko" }
[ { "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": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
8
2020-07-06T07:57:02Z
2020-08-01T08:43:01Z
2020-08-01T08:43:01Z
MEMBER
null
`isort` 5.x is out with some changes to how it sorts. We'll need to update the code and unpin in our environment 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/35134/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35134/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35135
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35135/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35135/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35135/events
https://github.com/pandas-dev/pandas/issues/35135
651,505,256
MDU6SXNzdWU2NTE1MDUyNTY=
35,135
BUG: .corr() values higher than 1
{ "avatar_url": "https://avatars.githubusercontent.com/u/16906989?v=4", "events_url": "https://api.github.com/users/PanPip/events{/privacy}", "followers_url": "https://api.github.com/users/PanPip/followers", "following_url": "https://api.github.com/users/PanPip/following{/other_user}", "gists_url": "https://api.github.com/users/PanPip/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PanPip", "id": 16906989, "login": "PanPip", "node_id": "MDQ6VXNlcjE2OTA2OTg5", "organizations_url": "https://api.github.com/users/PanPip/orgs", "received_events_url": "https://api.github.com/users/PanPip/received_events", "repos_url": "https://api.github.com/users/PanPip/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PanPip/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PanPip/subscriptions", "type": "User", "url": "https://api.github.com/users/PanPip" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
6
2020-07-06T12:39:29Z
2020-08-22T16:49:47Z
2020-08-22T16:49:47Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example _Sorry for including an external dataset. I couldn't reproduce this bug with a smaller one._ ```python url = 'https://raw.githubusercontent.com/MislavSag/trademl/master/trademl/modeling/random_forest/X_TEST.csv' df = pd.read_csv(url, sep=',') df = X_TEST.loc[:,['RSI30','CMO30']] df.corr() > 1 ``` #### Problem description When applying .corr() on the given dataset the output Pearson's correlation is slightly >1 (6.661338e-16). I'd assume it should be equal to 1. ![picture](https://user-images.githubusercontent.com/16906989/86593669-ed455e00-bf95-11ea-84fe-2a790f894d5e.png) #### Expected Output The expected result would be correlation values <= 1. ![picture](https://user-images.githubusercontent.com/16906989/86593787-2d0c4580-bf96-11ea-8358-60b6f5aec462.png) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.0.post20200616 Cython : None pytest : None hypothesis : None sphinx : 3.1.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.15.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.49.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/35135/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35135/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35136
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35136/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35136/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35136/events
https://github.com/pandas-dev/pandas/pull/35136
651,521,911
MDExOlB1bGxSZXF1ZXN0NDQ0NzYxNzQz
35,136
CI: pin isort version
{ "avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4", "events_url": "https://api.github.com/users/AlexKirko/events{/privacy}", "followers_url": "https://api.github.com/users/AlexKirko/followers", "following_url": "https://api.github.com/users/AlexKirko/following{/other_user}", "gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexKirko", "id": 23253999, "login": "AlexKirko", "node_id": "MDQ6VXNlcjIzMjUzOTk5", "organizations_url": "https://api.github.com/users/AlexKirko/orgs", "received_events_url": "https://api.github.com/users/AlexKirko/received_events", "repos_url": "https://api.github.com/users/AlexKirko/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexKirko" }
[]
closed
false
null
[]
null
3
2020-07-06T13:04:58Z
2020-07-09T15:12:19Z
2020-07-06T14:19:44Z
MEMBER
null
- [X] xref #35134 - [X] 0 tests added / 0 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry. __this is a CI PR. I don't think we touch whatsnew for those.__ ### Scope <s>Remove the `--recursive` keyword from `code_checks.sh`, so that the newest version of isort can run without errors (it does recursive sorting by default).</s> Pin the version instead, because version 5 has changed the way isort sorts imports. Needs more work to switch safely.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35136/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35136/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35136.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35136", "merged_at": "2020-07-06T14:19:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35136.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35136" }
https://api.github.com/repos/pandas-dev/pandas/issues/35137
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35137/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35137/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35137/events
https://github.com/pandas-dev/pandas/issues/35137
651,525,561
MDU6SXNzdWU2NTE1MjU1NjE=
35,137
BUG:sort_values in groupby make some value lost
{ "avatar_url": "https://avatars.githubusercontent.com/u/6706396?v=4", "events_url": "https://api.github.com/users/leohazy/events{/privacy}", "followers_url": "https://api.github.com/users/leohazy/followers", "following_url": "https://api.github.com/users/leohazy/following{/other_user}", "gists_url": "https://api.github.com/users/leohazy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/leohazy", "id": 6706396, "login": "leohazy", "node_id": "MDQ6VXNlcjY3MDYzOTY=", "organizations_url": "https://api.github.com/users/leohazy/orgs", "received_events_url": "https://api.github.com/users/leohazy/received_events", "repos_url": "https://api.github.com/users/leohazy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/leohazy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/leohazy/subscriptions", "type": "User", "url": "https://api.github.com/users/leohazy" }
[ { "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": "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": "fbca04", "default": false, "description": "Apply, Aggregate, Transform", "id": 697792067, "name": "Apply", "node_id": "MDU6TGFiZWw2OTc3OTIwNjc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply" } ]
closed
false
null
[]
null
6
2020-07-06T13:10:12Z
2020-07-08T21:19:06Z
2020-07-08T21:19:06Z
NONE
null
- [ .] I have checked that this issue has not already been reported. - [ .] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example - source data refer to [b.csv](https://raw.githubusercontent.com/leohazy/bug/master/b.csv) ```python import pandas as pd a=pd.read_csv('https://raw.githubusercontent.com/leohazy/bug/master/b.csv') def holding0(x): x["holding"] = x["shares"].sum() print(x[['close_max','close_min']]) return x def holding(x): x["holding"] = x["shares"].sum() x = x.sort_values(by=["hold_start"]) print(x[['close_max','close_min']]) return x def holding1(x): x["holding"] = x["shares"].sum() x['hold_start']=x['hold_start'].apply(lambda x:pd.to_datetime(x,format="%Y-%m-%d")) x = x.sort_values(by=["hold_start"]) print(x[['close_max','close_min']]) return x def holding2(x): x["holding"] = int(x["shares"].sum()) x = x.sort_values(by=["hold_start"]) print(x[['close_max','close_min']]) return x def holding3(x): x["holding"] = float(x["shares"].sum()) x = x.sort_values(by=["hold_start"]) print(x[['close_max','close_min']]) return x def holding4(x): x["holding"] = x["shares"].sum() x.sort_values(by=["hold_start"],inplace=True) print(x[['close_max','close_min']]) return x def holding5(x): x["holding"] = x["shares"].sum() x=x.sort_values(by=["hold_start"]).copy() print(x[['close_max','close_min']]) return x b = a.groupby(by="companycode").apply(holding) ``` #### Problem description - after sort in groupby, several columns got only repeated values, such as ratio,shares,close_max,close_min(**columns after 'ratio'**) 0. apply with hoding(x) function,the 'close_max' and 'close_min' <details> <summary>result</summary> close_max close_min 33 16.9286 14.5889 43 16.9286 14.5889 13 16.8893 11.9444 23 16.8893 11.9444 53 16.8893 11.9444 close_max close_min 36 16.9286 14.5889 46 16.9286 14.5889 16 16.8893 11.9444 26 16.8893 11.9444 56 16.8893 11.9444 close_max close_min 6 16.8893 11.9444 close_max close_min 4 16.8893 11.9444 close_max close_min 39 16.9286 14.5889 49 16.9286 14.5889 19 16.8893 11.9444 29 16.8893 11.9444 59 16.8893 11.9444 close_max close_min 38 16.9286 14.5889 48 16.9286 14.5889 17 16.8893 11.9444 27 16.8893 11.9444 58 16.8893 11.9444 close_max close_min 5 16.8893 11.9444 close_max close_min 34 16.9286 14.5889 44 16.9286 14.5889 14 16.8893 11.9444 24 16.8893 11.9444 54 16.8893 11.9444 close_max close_min 7 16.8893 11.9444 close_max close_min 32 16.9286 14.5889 42 16.9286 14.5889 12 16.8893 11.9444 22 16.8893 11.9444 52 16.8893 11.9444 close_max close_min 0 16.8893 11.9444 close_max close_min 30 16.9286 14.5889 40 16.9286 14.5889 11 16.8893 11.9444 21 16.8893 11.9444 50 16.8893 11.9444 close_max close_min 31 16.9286 14.5889 41 16.9286 14.5889 10 16.8893 11.9444 20 16.8893 11.9444 51 16.8893 11.9444 close_max close_min 35 16.9286 14.5889 45 16.9286 14.5889 15 16.8893 11.9444 25 16.8893 11.9444 55 16.8893 11.9444 close_max close_min 3 16.8893 11.9444 close_max close_min 8 16.8893 11.9444 close_max close_min 9 16.8893 11.9444 close_max close_min 1 16.8893 11.9444 close_max close_min 37 16.9286 14.5889 47 16.9286 14.5889 18 16.8893 11.9444 28 16.8893 11.9444 57 16.8893 11.9444 close_max close_min 2 16.8893 11.9444 </details> 1. change 'hold_start' into datetime,got expected output <details> <summary>result</summary> close_max close_min 13 16.8893 11.9444 23 16.8893 11.9444 33 16.9286 14.5889 43 16.9286 14.5889 53 16.8893 11.9444 close_max close_min 16 32.56 24.55 26 32.56 24.55 36 30.45 25.90 46 30.45 25.90 56 32.56 24.55 close_max close_min 6 36.6211 24.5361 close_max close_min 4 76.3976 61.7438 close_max close_min 19 38.9398 28.2549 29 38.9398 28.2549 39 25.9433 16.4589 49 25.9433 16.4589 59 38.9398 28.2549 close_max close_min 17 22.4004 14.0188 27 22.4004 14.0188 38 14.8609 10.2045 48 14.8609 10.2045 58 22.4004 14.0188 close_max close_min 5 30.7038 23.6078 close_max close_min 14 120.50 80.3 24 120.50 80.3 34 93.12 70.0 44 93.12 70.0 54 120.50 80.3 close_max close_min 7 39.37 27.12 close_max close_min 12 77.2825 65.6768 22 77.2825 65.6768 32 79.5022 65.4191 42 79.5022 65.4191 52 77.2825 65.6768 close_max close_min 0 34.8514 25.0396 close_max close_min 11 135.105 108.1080 21 135.105 108.1080 30 113.939 98.7243 40 113.939 98.7243 50 135.105 108.1080 close_max close_min 10 1157.48 984.503 20 1157.48 984.503 31 1219.51 1105.090 41 1219.51 1105.090 51 1157.48 984.503 close_max close_min 15 58.1580 43.2304 25 58.1580 43.2304 35 47.4252 39.7685 45 47.4252 39.7685 55 58.1580 43.2304 close_max close_min 3 113.34 91.48 close_max close_min 8 56.0291 40.9621 close_max close_min 9 52.1465 42.1393 close_max close_min 1 31.8664 21.9908 close_max close_min 18 61.8531 48.5440 28 61.8531 48.5440 37 61.8132 47.8151 47 61.8132 47.8151 57 61.8531 48.5440 close_max close_min 2 66.2883 50.5529 </details> 2. change x["shares"].sum() into int,got expected output 3. change x["shares"].sum() into float,got error 4. use inplace=true in sort ,got expected output 5. use copy in sort,got error 6. use parse_dates=['hold_start'] in read_csv ,got error(against case 1,function holding1(x)) #### Expected Output got correct values after sort in groupby apply #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Darwin OS-release : 19.5.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : None.UTF-8 pandas : 1.0.5 numpy : 1.18.4 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 46.4.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.1 html5lib : None pymysql : None psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.14.0 pandas_datareader: 0.8.1 bs4 : None bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.1 matplotlib : 3.2.1 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35137/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35137/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35138
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35138/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35138/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35138/events
https://github.com/pandas-dev/pandas/issues/35138
651,562,770
MDU6SXNzdWU2NTE1NjI3NzA=
35,138
CI/DOC: autodoc failures for DataFrame.sparse methods with latest sphinx
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
1
2020-07-06T13:58:52Z
2020-08-20T07:24:56Z
2020-08-20T07:24:26Z
MEMBER
null
On master and on PRs, there is a CI failure: ``` WARNING: autodoc: failed to import method 'sparse.from_spmatrix' from module 'DataFrame'; the following exception was raised: No module named 'DataFrame' WARNING: autodoc: failed to import method 'sparse.to_coo' from module 'DataFrame'; the following exception was raised: No module named 'DataFrame' WARNING: autodoc: failed to import method 'sparse.to_dense' from module 'DataFrame'; the following exception was raised: No module named 'DataFrame' WARNING: autodoc: failed to import method 'sparse.from_coo' from module 'Series'; the following exception was raised: No module named 'Series' WARNING: autodoc: failed to import method 'sparse.to_coo' from module 'Series'; the following exception was raised: No module named 'Series' ``` Looking at the env of the failing ones and the last one that passed on master: sphinx upgraded from 3.1.1 to 3.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/35138/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35138/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35139
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35139/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35139/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35139/events
https://github.com/pandas-dev/pandas/pull/35139
651,565,914
MDExOlB1bGxSZXF1ZXN0NDQ0Nzk3MDY3
35,139
CI: pin sphinx <= 3.1.1 for autodoc failure
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-06T14:03:02Z
2020-07-06T14:35:16Z
2020-07-06T14:30:36Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/issues/35138
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35139/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35139/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35139.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35139", "merged_at": "2020-07-06T14:30:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35139.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35139" }
https://api.github.com/repos/pandas-dev/pandas/issues/35140
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35140/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35140/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35140/events
https://github.com/pandas-dev/pandas/pull/35140
651,584,395
MDExOlB1bGxSZXF1ZXN0NDQ0ODExNjEy
35,140
Fix regression on datetime in MultiIndex
{ "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": "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": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
6
2020-07-06T14:27:12Z
2020-07-08T15:40:22Z
2020-07-08T12:43:19Z
CONTRIBUTOR
null
- [x] closes #35015 - [x] tests added / passed - `tests.indexing.multiindex.test_datetime:test_multiindex_datetime_columns` - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry - Not needed - this was a regression
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35140/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35140/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35140.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35140", "merged_at": "2020-07-08T12:43:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35140.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35140" }
https://api.github.com/repos/pandas-dev/pandas/issues/35141
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35141/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35141/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35141/events
https://github.com/pandas-dev/pandas/pull/35141
651,619,399
MDExOlB1bGxSZXF1ZXN0NDQ0ODQwMTgy
35,141
DEPR: Deprecate n-dim indexing for Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-06T15:14:46Z
2020-07-06T23:25:32Z
2020-07-06T23:25:28Z
CONTRIBUTOR
null
Closes https://github.com/pandas-dev/pandas/issues/27837
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35141/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35141/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35141.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35141", "merged_at": "2020-07-06T23:25:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35141.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35141" }
https://api.github.com/repos/pandas-dev/pandas/issues/35142
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35142/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35142/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35142/events
https://github.com/pandas-dev/pandas/pull/35142
651,670,957
MDExOlB1bGxSZXF1ZXN0NDQ0ODgyMDIw
35,142
improved exception message
{ "avatar_url": "https://avatars.githubusercontent.com/u/16008406?v=4", "events_url": "https://api.github.com/users/nickmccullum/events{/privacy}", "followers_url": "https://api.github.com/users/nickmccullum/followers", "following_url": "https://api.github.com/users/nickmccullum/following{/other_user}", "gists_url": "https://api.github.com/users/nickmccullum/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nickmccullum", "id": 16008406, "login": "nickmccullum", "node_id": "MDQ6VXNlcjE2MDA4NDA2", "organizations_url": "https://api.github.com/users/nickmccullum/orgs", "received_events_url": "https://api.github.com/users/nickmccullum/received_events", "repos_url": "https://api.github.com/users/nickmccullum/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nickmccullum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nickmccullum/subscriptions", "type": "User", "url": "https://api.github.com/users/nickmccullum" }
[ { "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
17
2020-07-06T16:32:20Z
2020-11-04T08:29:21Z
2020-11-04T08:29:21Z
NONE
null
for ValueError: cannot reindex from a duplicate axis - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35142/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35142/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35142.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35142", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35142.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35142" }
https://api.github.com/repos/pandas-dev/pandas/issues/35143
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35143/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35143/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35143/events
https://github.com/pandas-dev/pandas/issues/35143
651,672,334
MDU6SXNzdWU2NTE2NzIzMzQ=
35,143
QST:What is the largest datetime in pandas to_datetime?
{ "avatar_url": "https://avatars.githubusercontent.com/u/57615109?v=4", "events_url": "https://api.github.com/users/vitthaljkulkarni/events{/privacy}", "followers_url": "https://api.github.com/users/vitthaljkulkarni/followers", "following_url": "https://api.github.com/users/vitthaljkulkarni/following{/other_user}", "gists_url": "https://api.github.com/users/vitthaljkulkarni/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vitthaljkulkarni", "id": 57615109, "login": "vitthaljkulkarni", "node_id": "MDQ6VXNlcjU3NjE1MTA5", "organizations_url": "https://api.github.com/users/vitthaljkulkarni/orgs", "received_events_url": "https://api.github.com/users/vitthaljkulkarni/received_events", "repos_url": "https://api.github.com/users/vitthaljkulkarni/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vitthaljkulkarni/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vitthaljkulkarni/subscriptions", "type": "User", "url": "https://api.github.com/users/vitthaljkulkarni" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2020-07-06T16:34:11Z
2020-07-06T16:46:36Z
2020-07-06T16:46:02Z
NONE
null
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [x] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- #### Question about pandas **Note**: If you'd still like to submit a question, please read [this guide]( https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your question. I am trying to read a date from excel. For validation, when I use 'pd.to_datetime' to compare against another datetime object, for date 9999-12-31, I am getting an exception: 'OutofBoundsDateTime', whereas I believe this should still be a valid MAXDATE as per standards. Here is a sample code where I am facing such issue: ```python # Your code here, if applicable import pandas as pd df = pd.DataFrame(["9999-12-31"]) pd.to_datetime(df[0]) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35143/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35143/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35144
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35144/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35144/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35144/events
https://github.com/pandas-dev/pandas/issues/35144
651,677,941
MDU6SXNzdWU2NTE2Nzc5NDE=
35,144
BUG: pd.crosstab fails when passed multiple columns, margins True and normalize True
{ "avatar_url": "https://avatars.githubusercontent.com/u/38143549?v=4", "events_url": "https://api.github.com/users/HughKelley/events{/privacy}", "followers_url": "https://api.github.com/users/HughKelley/followers", "following_url": "https://api.github.com/users/HughKelley/following{/other_user}", "gists_url": "https://api.github.com/users/HughKelley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HughKelley", "id": 38143549, "login": "HughKelley", "node_id": "MDQ6VXNlcjM4MTQzNTQ5", "organizations_url": "https://api.github.com/users/HughKelley/orgs", "received_events_url": "https://api.github.com/users/HughKelley/received_events", "repos_url": "https://api.github.com/users/HughKelley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HughKelley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HughKelley/subscriptions", "type": "User", "url": "https://api.github.com/users/HughKelley" }
[ { "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CloseChoice", "id": 31857876, "login": "CloseChoice", "node_id": "MDQ6VXNlcjMxODU3ODc2", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "repos_url": "https://api.github.com/users/CloseChoice/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "type": "User", "url": "https://api.github.com/users/CloseChoice" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CloseChoice", "id": 31857876, "login": "CloseChoice", "node_id": "MDQ6VXNlcjMxODU3ODc2", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "repos_url": "https://api.github.com/users/CloseChoice/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "type": "User", "url": "https://api.github.com/users/CloseChoice" } ]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
6
2020-07-06T16:41:57Z
2020-11-16T16:48:16Z
2020-08-19T17:59:04Z
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 df = pd.DataFrame({"A": ["foo", "foo", "foo", "foo", "foo", "bar", "bar", "bar", "bar"], "B": ["one", "one", "one", "two", "two", "one", "one", "two", "two"], "C": ["small", "large", "large", "small", "small", "large", "small", "small", "large"], "D": [1, 2, 2, 3, 3, 4, 5, 6, 7], "E": [2, 4, 5, 5, 6, 6, 8, 9, 9]}) pd.crosstab(index=df.C, columns=[df.A,df.B], margins=True, margins_name='Sub-Total', normalize='all') # returns ValueError: Sub-Total not in pivoted DataFrame ``` #### Problem description #27663 found that `pd.crosstab` failed when `margins` and `normalize` were true. This continues to be the case when more than one column is passed. This is not the case when a single column and multiple rows is passed. #### Output of ``pd.show_versions()`` INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.3 numpy : 1.18.1 pytz : 2020.1 dateutil : 2.8.1 pip : 20.0.2 setuptools : 47.1.1.post20200604 Cython : None pytest : None hypothesis : None sphinx : 3.1.1 blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.4 (dt dec pq3 ext lo64) jinja2 : 2.11.2 IPython : 7.13.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.3 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.17 tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : 1.2.9 numba : None <details> [paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35144/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35144/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35145
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35145/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35145/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35145/events
https://github.com/pandas-dev/pandas/issues/35145
651,705,686
MDU6SXNzdWU2NTE3MDU2ODY=
35,145
AttributeError: 'DataFrame' object has no attribute 'compare'
{ "avatar_url": "https://avatars.githubusercontent.com/u/22532833?v=4", "events_url": "https://api.github.com/users/RandyBetancourt/events{/privacy}", "followers_url": "https://api.github.com/users/RandyBetancourt/followers", "following_url": "https://api.github.com/users/RandyBetancourt/following{/other_user}", "gists_url": "https://api.github.com/users/RandyBetancourt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RandyBetancourt", "id": 22532833, "login": "RandyBetancourt", "node_id": "MDQ6VXNlcjIyNTMyODMz", "organizations_url": "https://api.github.com/users/RandyBetancourt/orgs", "received_events_url": "https://api.github.com/users/RandyBetancourt/received_events", "repos_url": "https://api.github.com/users/RandyBetancourt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RandyBetancourt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RandyBetancourt/subscriptions", "type": "User", "url": "https://api.github.com/users/RandyBetancourt" }
[]
closed
false
null
[]
null
2
2020-07-06T17:27:32Z
2020-07-06T17:42:08Z
2020-07-06T17:41:36Z
NONE
null
pandas .compare() from the [documentation ](https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.compare.html)returns: ```AttributeError: 'DataFrame' object has no attribute 'compare'``` ``` Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pandas as pd >>> import numpy as np >>> >>> print(pd.__name__, pd.__version__) pandas 1.0.3 >>> >>> df = pd.DataFrame( ... { ... "col1": ["a", "a", "b", "b", "a"], ... "col2": [1.0, 2.0, 3.0, np.nan, 5.0], ... "col3": [1.0, 2.0, 3.0, 4.0, 5.0] ... }, ... columns=["col1", "col2", "col3"], ... ) >>> df col1 col2 col3 0 a 1.0 1.0 1 a 2.0 2.0 2 b 3.0 3.0 3 b NaN 4.0 4 a 5.0 5.0 >>> >>> df2 = df.copy() >>> df2.loc[0, 'col1'] = 'c' >>> df2.loc[2, 'col3'] = 4.0 >>> df2 col1 col2 col3 0 c 1.0 1.0 1 a 2.0 2.0 2 b 3.0 4.0 3 b NaN 4.0 4 a 5.0 5.0 >>> >>> df.compare(df2) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\randy\Anaconda3\lib\site-packages\pandas\core\generic.py", line 5274, in __getattr__ return object.__getattribute__(self, name) AttributeError: 'DataFrame' object has no attribute 'compare' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35145/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35145/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35146
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35146/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35146/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35146/events
https://github.com/pandas-dev/pandas/pull/35146
651,726,042
MDExOlB1bGxSZXF1ZXN0NDQ0OTI1NjYx
35,146
Move mark registration
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-06T18:06:03Z
2020-10-05T11:22:40Z
2020-07-06T23:28:06Z
CONTRIBUTOR
null
Should avoid warnings like ``` D:\a\1\s\test_venv\lib\site-packages\pandas\tests\plotting\test_series.py:655: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html @pytest.mark.slow ``` in https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=38672&view=logs&j=c0130b29-789d-5a3c-6978-10796a508a7f&t=e120bc6c-1f5e-5a41-8f0a-1d992cd2fbfb
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35146/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35146/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35146.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35146", "merged_at": "2020-07-06T23:28:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35146.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35146" }
https://api.github.com/repos/pandas-dev/pandas/issues/35147
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35147/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35147/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35147/events
https://github.com/pandas-dev/pandas/issues/35147
651,727,150
MDU6SXNzdWU2NTE3MjcxNTA=
35,147
CI: MacPython failing TestPandasContainer.test_to_json_large_numbers
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "0e8a16", "default": false, "description": "32-bit systems", "id": 563047854, "name": "32bit", "node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" } ]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-06T18:08:13Z
2020-07-15T13:43:45Z
2020-07-15T13:43:45Z
CONTRIBUTOR
null
``` _________ TestPandasContainer.test_to_json_large_numbers[2147483648] __________ [gw0] win32 -- Python 3.7.7 D:\a\1\s\test_venv\Scripts\python.exe self = <pandas.tests.io.json.test_pandas.TestPandasContainer object at 0x2C6E2A70> bigNum = 2147483648 @pytest.mark.parametrize("bigNum", [sys.maxsize + 1, -(sys.maxsize + 2)]) def test_to_json_large_numbers(self, bigNum): # GH34473 series = Series(bigNum, dtype=object, index=["articleId"]) json = series.to_json() expected = '{"articleId":' + str(bigNum) + "}" assert json == expected # GH 20599 with pytest.raises(ValueError): json = StringIO(json) result = read_json(json) tm.assert_series_equal(series, result) df = DataFrame(bigNum, dtype=object, index=["articleId"], columns=[0]) json = df.to_json() expected = '{"0":{"articleId":' + str(bigNum) + "}}" assert json == expected # GH 20599 with pytest.raises(ValueError): json = StringIO(json) result = read_json(json) > tm.assert_frame_equal(df, result) E AssertionError: Attributes of DataFrame.iloc[:, 0] (column name="0") are different E E Attribute "dtype" are different E [left]: object E [right]: int64 ``` https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=38672&view=logs&j=c0130b29-789d-5a3c-6978-10796a508a7f&t=e120bc6c-1f5e-5a41-8f0a-1d992cd2fbfb xref https://github.com/pandas-dev/pandas/pull/34473. cc @arw2019.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35147/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35147/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35148
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35148/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35148/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35148/events
https://github.com/pandas-dev/pandas/issues/35148
651,727,893
MDU6SXNzdWU2NTE3Mjc4OTM=
35,148
CI: MacPython failing test_consistency_with_window
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "0e8a16", "default": false, "description": "32-bit systems", "id": 563047854, "name": "32bit", "node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
0
2020-07-06T18:09:41Z
2020-08-24T23:42:02Z
2020-08-24T23:42:02Z
CONTRIBUTOR
null
https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=38672&view=logs&j=c0130b29-789d-5a3c-6978-10796a508a7f&t=e120bc6c-1f5e-5a41-8f0a-1d992cd2fbfb&l=1286 ```python def test_consistency_with_window(): # consistent return values with window df = test_frame index_array = self.index_array indexer = self.rolling_indexer( index_array=index_array, window_size=self.window_size, ) start, end = indexer.get_window_bounds( len(indicies), min_periods, center, closed ) start = start.astype(np.int64) end = end.astype(np.int64) # Cannot use groupby_indicies as they might not be monotonic with the object # we're rolling over window_indicies = np.arange( window_indicies_start, window_indicies_start + len(indicies), ) window_indicies_start += len(indicies) # Extend as we'll be slicing window like [start, end) window_indicies = np.append( window_indicies, [window_indicies[-1] + 1] ).astype(np.int64) > start_arrays.append(window_indicies.take(start)) E TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe' test_venv\lib\site-packages\pandas\core\window\indexers.py:318: TypeError ``` cc @mroeschke if you know where to look / who to ping. I haven't looked yet.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35148/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35148/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35149
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35149/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35149/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35149/events
https://github.com/pandas-dev/pandas/pull/35149
651,775,586
MDExOlB1bGxSZXF1ZXN0NDQ0OTY2MjEx
35,149
ASV: tslibs.fields
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "ae68cc", "default": false, "description": "Performance (ASV) benchmarks", "id": 732775912, "name": "Benchmark", "node_id": "MDU6TGFiZWw3MzI3NzU5MTI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-07-06T19:41:32Z
2020-07-08T21:57:08Z
2020-07-08T21:51:13Z
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/35149/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35149/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35149.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35149", "merged_at": "2020-07-08T21:51:13Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35149.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35149" }
https://api.github.com/repos/pandas-dev/pandas/issues/35150
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35150/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35150/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35150/events
https://github.com/pandas-dev/pandas/pull/35150
651,789,761
MDExOlB1bGxSZXF1ZXN0NDQ0OTc3ODM2
35,150
BUG: pd.crosstab fails when passed multiple columns, margins True and normalize True
{ "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CloseChoice", "id": 31857876, "login": "CloseChoice", "node_id": "MDQ6VXNlcjMxODU3ODc2", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "repos_url": "https://api.github.com/users/CloseChoice/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "type": "User", "url": "https://api.github.com/users/CloseChoice" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-07-06T20:09:58Z
2020-08-20T00:09:02Z
2020-08-19T17:59:04Z
MEMBER
null
- [x] closes #35144 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35150/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35150/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35150.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35150", "merged_at": "2020-08-19T17:59:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35150.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35150" }
https://api.github.com/repos/pandas-dev/pandas/issues/35151
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35151/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35151/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35151/events
https://github.com/pandas-dev/pandas/pull/35151
651,852,619
MDExOlB1bGxSZXF1ZXN0NDQ1MDI5OTkx
35,151
CI: move py36 slow to azure (#34776)
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
8
2020-07-06T22:18:18Z
2020-07-07T22:27:19Z
2020-07-07T13:10:07Z
MEMBER
null
- [x] closes #34776 - [x] 0 tests added / 0 passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35151/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35151/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35151.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35151", "merged_at": "2020-07-07T13:10:07Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35151.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35151" }
https://api.github.com/repos/pandas-dev/pandas/issues/35152
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35152/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35152/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35152/events
https://github.com/pandas-dev/pandas/pull/35152
651,860,903
MDExOlB1bGxSZXF1ZXN0NDQ1MDM2ODgz
35,152
BUG: transform with nunique should have dtype int64
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-07-06T22:40:18Z
2020-07-10T22:47:43Z
2020-07-10T22:46:42Z
MEMBER
null
- [x] closes #35109 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry cc @WillAyd Removes casting on transformations which go through `_transform_fast`. The result is a reduction that is broadcast to the original index, so casting isn't necessary once special care is taken for categoricals when `observed=False` If this PR is accepted, I'll close #35130 which is for the same issue.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35152/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35152/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35152.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35152", "merged_at": "2020-07-10T22:46:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35152.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35152" }
https://api.github.com/repos/pandas-dev/pandas/issues/35153
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35153/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35153/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35153/events
https://github.com/pandas-dev/pandas/issues/35153
651,919,153
MDU6SXNzdWU2NTE5MTkxNTM=
35,153
BUG: DataFrame improperly storing ints as floats
{ "avatar_url": "https://avatars.githubusercontent.com/u/57472892?v=4", "events_url": "https://api.github.com/users/ww2406/events{/privacy}", "followers_url": "https://api.github.com/users/ww2406/followers", "following_url": "https://api.github.com/users/ww2406/following{/other_user}", "gists_url": "https://api.github.com/users/ww2406/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ww2406", "id": 57472892, "login": "ww2406", "node_id": "MDQ6VXNlcjU3NDcyODky", "organizations_url": "https://api.github.com/users/ww2406/orgs", "received_events_url": "https://api.github.com/users/ww2406/received_events", "repos_url": "https://api.github.com/users/ww2406/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ww2406/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ww2406/subscriptions", "type": "User", "url": "https://api.github.com/users/ww2406" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2020-07-07T01:25:17Z
2020-07-07T01:46:24Z
2020-07-07T01:35:43Z
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 seed = [{'start': 0, 'end': 0, 'dist': 5900.22782978315}, {'start': 0, 'end': -1, 'dist': 0.0}, {'start': -1, 'end': 0, 'dist': 14258.70864551041}, {'start': -1, 'end': -1, 'dist': 8397.882580246285}] df = pd.DataFrame(seed) print('Original dtypes:') print(df.dtypes) df['start']=df['start'].astype(int) df['end']=df['end'].astype(int) print('\r\nNew column dtypes:') print(df.dtypes) print('\r\nValue dtypes:') row = df.iloc[0] print(f"A: {row['start'].dtype}") print(f"B: {row['end'].dtype}") ``` #### Observed output Original dtypes: start int64 end int64 dist float64 dtype: object New column dtypes: start int64 end int64 dist float64 dtype: object Value dtypes: A: float64 B: float64 #### Problem description It seems that under some circumstances (I'm not sure what's unique about this particular case), pandas is storing integer columns as floats even when there is not a missing/NaN value. The column type is listed as int64, doing an `astype(int)` yields an int64 column, but the actual value dtypes are float64. They should be int64. #### Expected Output Original dtypes: start int64 end int64 dist float64 dtype: object New column dtypes: start int64 end int64 dist float64 dtype: object Value dtypes: A: **int64** B: **int64** #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Darwin OS-release : 19.5.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1.post20200622 Cython : 0.29.20 pytest : 5.4.3 hypothesis : 5.18.3 sphinx : 3.1.1 blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : 4.5.1 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.1 matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.9 numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35153/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35153/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35154
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35154/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35154/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35154/events
https://github.com/pandas-dev/pandas/pull/35154
651,929,473
MDExOlB1bGxSZXF1ZXN0NDQ1MDkzNjIz
35,154
REF: remove always-UTC arg from tz_convert, tz_convert_single
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-07T01:53:44Z
2020-07-09T22:04:13Z
2020-07-09T22:00:14Z
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/35154/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35154/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35154.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35154", "merged_at": "2020-07-09T22:00:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35154.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35154" }
https://api.github.com/repos/pandas-dev/pandas/issues/35155
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35155/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35155/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35155/events
https://github.com/pandas-dev/pandas/issues/35155
652,007,304
MDU6SXNzdWU2NTIwMDczMDQ=
35,155
BUG: Dollar symbol appears in dataframe rows which have numerical values
{ "avatar_url": "https://avatars.githubusercontent.com/u/18352937?v=4", "events_url": "https://api.github.com/users/Sibicoder/events{/privacy}", "followers_url": "https://api.github.com/users/Sibicoder/followers", "following_url": "https://api.github.com/users/Sibicoder/following{/other_user}", "gists_url": "https://api.github.com/users/Sibicoder/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Sibicoder", "id": 18352937, "login": "Sibicoder", "node_id": "MDQ6VXNlcjE4MzUyOTM3", "organizations_url": "https://api.github.com/users/Sibicoder/orgs", "received_events_url": "https://api.github.com/users/Sibicoder/received_events", "repos_url": "https://api.github.com/users/Sibicoder/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Sibicoder/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Sibicoder/subscriptions", "type": "User", "url": "https://api.github.com/users/Sibicoder" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
1
2020-07-07T05:16:20Z
2020-08-21T17:05:20Z
2020-07-07T05:45:45Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd pd.options.display.max_rows = 1000 pd.options.display.float_format = '${:,.2f}'.format df = pd.DataFrame(columns=['topic', 'key', 'min', 'avg', 'max', 'current']) list1 = [ ['aggregator1', 'NA', 628, '14.26 K', '15.39 K', 14014.27], ['aggregator2', 'changelog', 0, '4 k', '8 k', 21.2], ['aggregator3', 'CacheData', 0, '2 k', '3 k', 3432.2], ['aggregator4', 'EntityData', 0, 200, 600, 456.21], ['aggregator5', 'internalData', 482, '10.79 K', '11.65 K', 10646.77], ['aggregator6', 'externalData', 145, '3.47 K', '3.74 K', 3366.96] ] i = 0 for el in list1: df.loc[i] = el i = i + 1 print(df) print(df.to_html()) print(df.to_markdown()) ``` #### Problem description Sometimes when a dataframe is converted to markdown or HTML with to_markdown() or to_html(), some numeric values automatically get converted to currency, like $40 instead of 40. There is no mention of currency in the code I Used #### Expected Output $ sign should be avoided if user doesn't choose it #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.8.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-1048-aws machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.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 : 2.10 IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : 0.8.7 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35155/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35155/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35156
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35156/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35156/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35156/events
https://github.com/pandas-dev/pandas/issues/35156
652,071,906
MDU6SXNzdWU2NTIwNzE5MDY=
35,156
BUG: Int64 data casted to float64 when using [<column_name>] in a DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/13560473?v=4", "events_url": "https://api.github.com/users/NicolasGrosjean/events{/privacy}", "followers_url": "https://api.github.com/users/NicolasGrosjean/followers", "following_url": "https://api.github.com/users/NicolasGrosjean/following{/other_user}", "gists_url": "https://api.github.com/users/NicolasGrosjean/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/NicolasGrosjean", "id": 13560473, "login": "NicolasGrosjean", "node_id": "MDQ6VXNlcjEzNTYwNDcz", "organizations_url": "https://api.github.com/users/NicolasGrosjean/orgs", "received_events_url": "https://api.github.com/users/NicolasGrosjean/received_events", "repos_url": "https://api.github.com/users/NicolasGrosjean/repos", "site_admin": false, "starred_url": "https://api.github.com/users/NicolasGrosjean/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/NicolasGrosjean/subscriptions", "type": "User", "url": "https://api.github.com/users/NicolasGrosjean" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2020-07-07T07:24:04Z
2020-07-07T09:38:44Z
2020-07-07T09:38:44Z
NONE
null
- [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd df = pd.DataFrame([[0, 1.0], [2, 3.0]], columns=['intCol', 'floatCol']) print(type(df.loc[0, 'intCol'])) print(type(df.loc[0]['intCol'])) ``` #### Problem description I have create a Dataframe with a int and a float column. When accessing to a value of a row by .loc for the int column I have a numpy.int64. But when accessing by a column selection I have a numpy.int64. #### Expected Output In the code sample the expected output is : <class 'numpy.int64'> <class 'numpy.int64'> #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.0.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-109-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1.post20200622 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35156/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35156/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35157
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35157/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35157/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35157/events
https://github.com/pandas-dev/pandas/issues/35157
652,238,110
MDU6SXNzdWU2NTIyMzgxMTA=
35,157
July 2020 Developer Meeting
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "0bbec4", "default": false, "description": "Community topics (meetings, etc.)", "id": 2187005593, "name": "Community", "node_id": "MDU6TGFiZWwyMTg3MDA1NTkz", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Community" } ]
closed
false
null
[]
null
2
2020-07-07T11:16:37Z
2020-08-04T16:15:52Z
2020-08-04T16:15:52Z
CONTRIBUTOR
null
The monthly dev meeting is Wednesday July 8th, at 18:00 UTC. Our calendar is at https://pandas.pydata.org/docs/development/meeting.html#calendar to check your local time. Video Call: https://zoom.us/j/942410248 Minutes: https://docs.google.com/document/u/1/d/1tGbTiYORHiSPgVMXawiweGJlBw5dOkVJLY-licoBmBU/edit?ouid=102771015311436394588&usp=docs_home&ths=true Please add items you'd like to see discussed to the agenda. All are welcome to attend. FYI, I might not be able to attend, or I might just be on the phone. I think the Zoom call is structured to start automatically without me. @jreback and @jorisvandenbossche should also have Zoom accounts through NumFOCUS that can be used.
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35157/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35157/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35158
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35158/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35158/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35158/events
https://github.com/pandas-dev/pandas/issues/35158
652,239,793
MDU6SXNzdWU2NTIyMzk3OTM=
35,158
BUG: datetime total_seconds inaccurate
{ "avatar_url": "https://avatars.githubusercontent.com/u/56838676?v=4", "events_url": "https://api.github.com/users/frd-glovo/events{/privacy}", "followers_url": "https://api.github.com/users/frd-glovo/followers", "following_url": "https://api.github.com/users/frd-glovo/following{/other_user}", "gists_url": "https://api.github.com/users/frd-glovo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/frd-glovo", "id": 56838676, "login": "frd-glovo", "node_id": "MDQ6VXNlcjU2ODM4Njc2", "organizations_url": "https://api.github.com/users/frd-glovo/orgs", "received_events_url": "https://api.github.com/users/frd-glovo/received_events", "repos_url": "https://api.github.com/users/frd-glovo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/frd-glovo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/frd-glovo/subscriptions", "type": "User", "url": "https://api.github.com/users/frd-glovo" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
5
2020-07-07T11:19:12Z
2020-07-09T13:56:33Z
2020-07-09T13:56:18Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd df = pd.DataFrame({'x':['2020-07-07T10:33:14.971260986', '2020-07-07T10:17:14.971260986', '2020-07-07T10:11:14.971260986', '2020-07-07T09:59:13.971260986'],'y':['2020-07-07T10:35:14.971260986', '2020-07-07T10:24:14.971260986', '2020-07-07T10:15:14.971260986', '2020-07-07T10:04:14.971260986']}) df.x = pd.to_datetime(df.x) df.y = pd.to_datetime(df.y) print((df.y-df.x).dt.total_seconds()[0]) # 120.00000000000001 print((df.y-df.x).apply(lambda x: x.total_seconds())[0]) #120.0 ``` #### Problem description There seems to be a loss of precision when doing date substractions and using total_seconds method. As a reference, using an apply with the standard library total_seconds yields the correct value. #### Expected Output Value should be 120.0 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Darwin OS-release : 19.0.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : None.UTF-8 pandas : 1.0.5 numpy : 1.17.4 pytz : 2019.3 dateutil : 2.8.1 pip : 19.3.1 setuptools : 42.0.1 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.14.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.11 tables : None tabulate : 0.8.6 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35158/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35158/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35159
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35159/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35159/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35159/events
https://github.com/pandas-dev/pandas/issues/35159
652,290,394
MDU6SXNzdWU2NTIyOTAzOTQ=
35,159
BUG: subtract `pd.offsets.BDay()` from `Timestamp` gives different results when same are expected
{ "avatar_url": "https://avatars.githubusercontent.com/u/11057140?v=4", "events_url": "https://api.github.com/users/tobiaslocker/events{/privacy}", "followers_url": "https://api.github.com/users/tobiaslocker/followers", "following_url": "https://api.github.com/users/tobiaslocker/following{/other_user}", "gists_url": "https://api.github.com/users/tobiaslocker/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tobiaslocker", "id": 11057140, "login": "tobiaslocker", "node_id": "MDQ6VXNlcjExMDU3MTQw", "organizations_url": "https://api.github.com/users/tobiaslocker/orgs", "received_events_url": "https://api.github.com/users/tobiaslocker/received_events", "repos_url": "https://api.github.com/users/tobiaslocker/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tobiaslocker/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tobiaslocker/subscriptions", "type": "User", "url": "https://api.github.com/users/tobiaslocker" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
1
2020-07-07T12:41:17Z
2020-08-21T17:05:21Z
2020-07-07T12:49:37Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python def close_prices_start_date(date, period): start_date = date - period * pd.offsets.BDay() print( 'date.tzinfo =', date.tzinfo, 'date.freqstr =', date.freqstr, 'date.tzname() =', date.tzname(), 'date =', date, 'period =', period, 'result =', start_date) return start_date ``` #### Problem description The above function gives different results when called with the same parameters. I can't see any reason for that so my guess is that this behavior is unwanted. The parameter `date` comes from different `DataFrames` and is read with the following function: ```python def last_date_of_column(df, column_name): return df[column_name].index[-1] ``` I mention this, because the same dataframes give the same results, so it is reproducible. I won't provide the dataframes here, since any relevant information about the parameters should be in the function's print out. #### Expected Output When calling the above code with the same parameters `date` and `period` i expect to get the same result #### Output of ``pip freeze`` ```console $ pip freeze numpy==1.19.0 pandas==1.0.5 python-dateutil==2.8.1 pytz==2020.1 quantitative==0.1 schedule==0.6.0 six==1.15.0 ``` The print out in the function (result is on the very right and differs for any output for `AAPL US EQUITY`) ``` AAPL US EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-26 00:00:00 period = 20 result = 2020-05-29 00:00:00 9984 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 7203 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6963 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6861 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 AAPL US EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-26 00:00:00 period = 20 result = 2020-05-29 00:00:00 9984 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 7203 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6963 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6861 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 AAPL US EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-26 00:00:00 period = 20 result = 2020-05-29 00:00:00 9984 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 7203 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6963 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6861 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 AAPL US EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-26 00:00:00 period = 20 result = 2020-05-29 00:00:00 9984 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 7203 JT EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6963 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 6861 JP EQUITY date.tzinfo = None date.freqstr = None date.tzname() = None date = 2020-06-29 00:00:00 period = 20 result = 2020-06-01 00:00:00 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35159/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35159/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35160
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35160/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35160/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35160/events
https://github.com/pandas-dev/pandas/issues/35160
652,309,115
MDU6SXNzdWU2NTIzMDkxMTU=
35,160
CI: add sql tests back to py36
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
0
2020-07-07T13:09:27Z
2020-10-07T02:24:20Z
2020-10-07T02:24:20Z
CONTRIBUTOR
null
xref https://github.com/pandas-dev/pandas/issues/34776 removed in the PR: https://github.com/pandas-dev/pandas/pull/35151, we should add them back. cc @VirosaLi
{ "+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/35160/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35160/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35161
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35161/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35161/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35161/events
https://github.com/pandas-dev/pandas/issues/35161
652,385,979
MDU6SXNzdWU2NTIzODU5Nzk=
35,161
BUG: KeyError on MultiIndex when filtering by only two indexes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1135952?v=4", "events_url": "https://api.github.com/users/fabiorangel/events{/privacy}", "followers_url": "https://api.github.com/users/fabiorangel/followers", "following_url": "https://api.github.com/users/fabiorangel/following{/other_user}", "gists_url": "https://api.github.com/users/fabiorangel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fabiorangel", "id": 1135952, "login": "fabiorangel", "node_id": "MDQ6VXNlcjExMzU5NTI=", "organizations_url": "https://api.github.com/users/fabiorangel/orgs", "received_events_url": "https://api.github.com/users/fabiorangel/received_events", "repos_url": "https://api.github.com/users/fabiorangel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fabiorangel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabiorangel/subscriptions", "type": "User", "url": "https://api.github.com/users/fabiorangel" }
[ { "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": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
null
7
2020-07-07T14:47:59Z
2020-07-10T16:48:05Z
2020-07-09T18:53:30Z
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 ```python import pandas as pd df = pd.DataFrame({'col1':[1,2,1,2],'col2':['a','a','b','b'],'col3':['US','US','US','BR'],'values':[1.0,2.0,3.0,4.5]}) df.set_index(['col1','col2','col3'],inplace = True) df.loc[([1],['a'])] ``` ```python-traceback Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1762, in __getitem__ return self._getitem_tuple(key) File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1272, in _getitem_tuple return self._getitem_lowerdim(tup) File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1373, in _getitem_lowerdim return self._getitem_nested_tuple(tup) File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1453, in _getitem_nested_tuple obj = getattr(obj, self.name)._getitem_axis(key, axis=axis) File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1954, in _getitem_axis return self._getitem_iterable(key, axis=axis) File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1595, in _getitem_iterable keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False) File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1553, in _get_listlike_indexer keyarr, indexer, o._get_axis_number(axis), raise_missing=raise_missing File "/home/fabio.rangel/projects/audience_topic_viewership/.direnv/python-3.7.7/lib/python3.7/site-packages/pandas/core/indexing.py", line 1640, in _validate_read_indexer raise KeyError(f"None of [{key}] are in the [{axis_name}]") KeyError: "None of [Index(['a'], dtype='object')] are in the [columns]" ``` #### Problem description The problem occurs only when filtering using MultiIndex with a two-sized tuple. When using one, three or more it does not occurs. I tested using up to four indexes. #### Expected Output ```sh values col1 col2 col3 1 a US 1.0 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.7.final.0 python-bits : 64 OS : Linux OS-release : 4.4.0-174-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : pt_BR.UTF-8 LOCALE : pt_BR.UTF-8 pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.16.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.17.1 pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 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/35161/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35161/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35162
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35162/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35162/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35162/events
https://github.com/pandas-dev/pandas/issues/35162
652,496,337
MDU6SXNzdWU2NTI0OTYzMzc=
35,162
ENH: should pandas.core.arrays.Categorical have a dropna=False option?
{ "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
6
2020-07-07T17:30:41Z
2020-09-05T10:50:58Z
2020-09-05T10:50:58Z
MEMBER
null
I ran into this while working on #35078. Here's a simple reproducer: ``` In [1]: from pandas.core.arrays import Categorical In [2]: Categorical([1, 2, 3,4,4,4, None, None]) Out[2]: [1, 2, 3, 4, 4, 4, NaN, NaN] Categories (4, int64): [1, 2, 3, 4] ``` Do people think it's worth having a `dropna` argument for Categorical, so that one could do: ``` In [2]: Categorical([1, 2, 3,4,4,4, None, None], dropna=True) Out[2]: [1, 2, 3, 4, 4, 4, NaN, NaN] Categories (4, int64): [1, 2, 3, 4, NaN] ``` If we set `dropna=False` by default presumably there shouldn't be backward compatibility issues. I can see arguments either way! In case we do want to add this I'm happy work on it (and the solution in #35078 will be a lot cleaner)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35162/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35162/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35163
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35163/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35163/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35163/events
https://github.com/pandas-dev/pandas/pull/35163
652,505,386
MDExOlB1bGxSZXF1ZXN0NDQ1NTYwNzAy
35,163
CI: update to isort 5 (#35134)
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "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
[]
null
4
2020-07-07T17:46:29Z
2020-07-22T14:52:48Z
2020-07-22T14:52:22Z
MEMBER
null
- [x] closes #35134 - [x] 0 tests added / 0 passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35163/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35163/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35163.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35163", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35163.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35163" }
https://api.github.com/repos/pandas-dev/pandas/issues/35164
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35164/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35164/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35164/events
https://github.com/pandas-dev/pandas/pull/35164
652,516,745
MDExOlB1bGxSZXF1ZXN0NDQ1NTY5OTY0
35,164
Infer compression if file extension is uppercase
{ "avatar_url": "https://avatars.githubusercontent.com/u/14288042?v=4", "events_url": "https://api.github.com/users/willbowditch/events{/privacy}", "followers_url": "https://api.github.com/users/willbowditch/followers", "following_url": "https://api.github.com/users/willbowditch/following{/other_user}", "gists_url": "https://api.github.com/users/willbowditch/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/willbowditch", "id": 14288042, "login": "willbowditch", "node_id": "MDQ6VXNlcjE0Mjg4MDQy", "organizations_url": "https://api.github.com/users/willbowditch/orgs", "received_events_url": "https://api.github.com/users/willbowditch/received_events", "repos_url": "https://api.github.com/users/willbowditch/repos", "site_admin": false, "starred_url": "https://api.github.com/users/willbowditch/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/willbowditch/subscriptions", "type": "User", "url": "https://api.github.com/users/willbowditch" }
[ { "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" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
6
2020-07-07T18:06:03Z
2020-07-17T10:58:39Z
2020-07-17T10:58:30Z
CONTRIBUTOR
null
Inferring compression fails for files with uppercase extensions (e.g. `x.zip` works but `y.ZIP` does not) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35164/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35164/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35164.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35164", "merged_at": "2020-07-17T10:58:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35164.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35164" }
https://api.github.com/repos/pandas-dev/pandas/issues/35165
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35165/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35165/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35165/events
https://github.com/pandas-dev/pandas/pull/35165
652,547,640
MDExOlB1bGxSZXF1ZXN0NDQ1NTk1MzIy
35,165
Fixed apply_index
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-07-07T19:00:14Z
2020-07-15T12:25:37Z
2020-07-15T12:25:34Z
CONTRIBUTOR
null
Closes https://github.com/pandas-dev/pandas/issues/34580
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35165/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35165/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35165.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35165", "merged_at": "2020-07-15T12:25:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35165.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35165" }
https://api.github.com/repos/pandas-dev/pandas/issues/35166
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35166/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35166/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35166/events
https://github.com/pandas-dev/pandas/pull/35166
652,579,520
MDExOlB1bGxSZXF1ZXN0NDQ1NjIyOTky
35,166
Fixed Series.apply performance regression
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "fbca04", "default": false, "description": "Apply, Aggregate, Transform", "id": 697792067, "name": "Apply", "node_id": "MDU6TGFiZWw2OTc3OTIwNjc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-07T19:38:58Z
2020-07-08T12:40:56Z
2020-07-08T12:40:46Z
CONTRIBUTOR
null
Set the option once, rather than in the loop. Closes https://github.com/pandas-dev/pandas/issues/35047 ```python import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(1000, 3), columns=list("ABC")) %timeit df.apply(lambda x: x["A"] + x["B"], axis=1) ``` ``` # 1.0.4 22.5 ms ± 4.73 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # PR 10.4 ms ± 714 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35166/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35166/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35166.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35166", "merged_at": "2020-07-08T12:40:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35166.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35166" }
https://api.github.com/repos/pandas-dev/pandas/issues/35167
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35167/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35167/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35167/events
https://github.com/pandas-dev/pandas/pull/35167
652,597,087
MDExOlB1bGxSZXF1ZXN0NDQ1NjM4Mzky
35,167
CLN: remove unused freq kwarg in libparsing
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-07T20:02:15Z
2020-07-10T23:37:58Z
2020-07-10T22:20:52Z
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/35167/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35167/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35167.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35167", "merged_at": "2020-07-10T22:20:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35167.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35167" }
https://api.github.com/repos/pandas-dev/pandas/issues/35168
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35168/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35168/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35168/events
https://github.com/pandas-dev/pandas/pull/35168
652,612,369
MDExOlB1bGxSZXF1ZXN0NDQ1NjUxODcy
35,168
REF: collect get_dst_info-using functions in tslibs.vectorized
{ "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": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-07-07T20:22:31Z
2020-07-08T22:06:58Z
2020-07-08T21:50:17Z
MEMBER
null
I'm open to better names for the new module. With these all in the same place, we can separate out helper functions and de-duplicate a whole bunch of verbose 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/35168/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35168/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35168.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35168", "merged_at": "2020-07-08T21:50:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35168.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35168" }
https://api.github.com/repos/pandas-dev/pandas/issues/35169
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35169/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35169/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35169/events
https://github.com/pandas-dev/pandas/issues/35169
652,669,902
MDU6SXNzdWU2NTI2Njk5MDI=
35,169
Plan for a native string dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "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": "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
[]
null
27
2020-07-07T21:40:35Z
2021-07-22T14:51:35Z
2021-07-22T14:51:35Z
CONTRIBUTOR
null
Apache Arrow has support for natively storing UTF-8 data. And [work is ongoing](https://github.com/apache/arrow/pull/7449) adding kernels (e.g. `str.isupper()`) to operate on that data. This issue is to discuss how we can expose the native string dtype to pandas' users. There are several things to discuss: 1. How do users opt into this behavior? 2. A fallback mode for not implemented kernels. ### How do users opt into Arrow-backed StringArray? The primary difficulty is the additional Arrow dependency. I'm assuming that we are not ready to adopt it as a required dependency, so all of this will be opt-in for now (though this point is open for discussion). StringArray is marked as experimental, so our usual API-breaking restrictions rules don't apply. But we want to do this in a way that's not too disruptive. There are three was to get a `StringDtype`-dtype array today: 1. Infer: `pd.array(['a', 'b', None])` 2. Explicit `dtype=pd.StringDtype()` 3. String alias `dtype="string"` My preference is for all of these to stay consistent. They all either give a StringArray backed by an object-dtype ndarray or a StringArray backed by Arrow memory. I also have a preference for not keeping around our old implementation for too long. So I don't think we want something like `pd.PythonStringDtype()` as a way to get the StringArray backed by an object-dtype ndarray. The easiest way to support this is, I think, an option. ```python >>> pd.options.mode.use_arrow_string_dtype = True ``` Then all of those would create an Arrow-backed StringArray. ### Fallback Mode It's likely that Arrow 1.0 will not implement all the string kernels we need. So when someone does ```python >>> Series(['a', 'b'], dtype="string").str.normalize() # no arrow kernel ``` we have a few options: 1. Raise, stating that there's no kernel for normalize. 2. PerformanceWarning, astype to object, do the operation, and convert back I'm not sure which is best. My preference for now is probably to raise, but I could see doing either.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35169/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35169/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35170
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35170/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35170/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35170/events
https://github.com/pandas-dev/pandas/pull/35170
652,707,130
MDExOlB1bGxSZXF1ZXN0NDQ1NzM1NTYw
35,170
DOC: Add pint pandas ecosystem docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/23625371?v=4", "events_url": "https://api.github.com/users/znicholls/events{/privacy}", "followers_url": "https://api.github.com/users/znicholls/followers", "following_url": "https://api.github.com/users/znicholls/following{/other_user}", "gists_url": "https://api.github.com/users/znicholls/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/znicholls", "id": 23625371, "login": "znicholls", "node_id": "MDQ6VXNlcjIzNjI1Mzcx", "organizations_url": "https://api.github.com/users/znicholls/orgs", "received_events_url": "https://api.github.com/users/znicholls/received_events", "repos_url": "https://api.github.com/users/znicholls/repos", "site_admin": false, "starred_url": "https://api.github.com/users/znicholls/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/znicholls/subscriptions", "type": "User", "url": "https://api.github.com/users/znicholls" }
[ { "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": "23ef97", "default": false, "description": "pandas website", "id": 1508144531, "name": "Web", "node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-07T22:41:49Z
2020-07-10T20:33:25Z
2020-07-10T20:33:18Z
CONTRIBUTOR
null
- [ ] closes #xxxx (N/A) - [ ] tests added / passed (N/A) - [ ] passes `black pandas` (N/A) - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (N/A) - [ ] 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/35170/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35170/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35170.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35170", "merged_at": "2020-07-10T20:33:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35170.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35170" }
https://api.github.com/repos/pandas-dev/pandas/issues/35171
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35171/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35171/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35171/events
https://github.com/pandas-dev/pandas/pull/35171
652,841,770
MDExOlB1bGxSZXF1ZXN0NDQ1ODU2NzUw
35,171
PERF: periodarr_to_dt64arr
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-08T02:17:05Z
2020-07-09T23:21:34Z
2020-07-09T22:08:17Z
MEMBER
null
- [x] closes #33919 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Re-use `ensure_datetime64ns` for the subset of cases where that is applicable. I'm at a loss for why we get such a slowdown for the other cases. ``` before after ratio [42a6d445] [a0ece778] <master> <perf-periodarr_to_dt64arr> + 48.7±0.8ms 133±6ms 2.72 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 4000) + 48.0±1ms 131±0.8ms 2.72 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 5000) + 493±10μs 1.33±0.05ms 2.70 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 4000) + 47.8±0.4ms 125±3ms 2.62 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 4006) + 599±20μs 1.47±0.07ms 2.46 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 2000) + 60.6±0.9ms 149±7ms 2.45 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 3000) + 524±40μs 1.27±0.04ms 2.42 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 4006) + 587±10μs 1.42±0.04ms 2.41 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 1000) + 59.9±0.8ms 144±0.9ms 2.40 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 1000) + 526±40μs 1.26±0.05ms 2.39 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 5000) + 61.0±1ms 144±2ms 2.35 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 2011) + 60.8±0.5ms 143±0.9ms 2.35 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 2000) + 7.72±0.3μs 17.7±3μs 2.30 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 4000) + 63.7±0.6ms 145±3ms 2.28 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 1011) + 3.04±0.06μs 6.94±1μs 2.28 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 6000) + 611±10μs 1.38±0.06ms 2.27 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 2011) + 653±20μs 1.44±0.03ms 2.20 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 1011) + 2.82±0.07μs 6.12±0.2μs 2.17 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 6000) + 2.81±0.06μs 6.06±0.2μs 2.16 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 9000) + 2.99±0.06μs 6.16±0.2μs 2.06 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 8000) + 2.80±0.06μs 5.75±0.2μs 2.05 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 11000) + 2.95±0.09μs 6.02±0.4μs 2.04 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 9000) + 2.94±0.06μs 5.97±0.2μs 2.03 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 7000) + 701±50μs 1.41±0.01ms 2.01 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 3000) + 3.09±0.1μs 6.18±0.1μs 2.00 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 7000) + 3.02±0.2μs 6.02±0.3μs 1.99 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 8000) + 3.05±0.1μs 5.95±0.2μs 1.95 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 10000) + 7.98±0.3μs 15.4±0.3μs 1.93 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 4006) + 9.01±0.4μs 17.3±0.8μs 1.92 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 2011) + 2.99±0.1μs 5.66±0.2μs 1.89 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 11000) + 3.09±0.09μs 5.82±0.1μs 1.88 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 10000) + 8.20±0.4μs 15.3±0.5μs 1.87 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 5000) + 9.37±0.6μs 17.4±0.5μs 1.86 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 2000) + 9.28±0.6μs 17.2±0.7μs 1.85 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 3000) + 9.61±0.3μs 17.6±0.6μs 1.83 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 1011) + 10.1±0.7μs 17.5±0.7μs 1.73 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 1000) - 2.93±0.1μs 2.48±0.1μs 0.85 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 4000) - 2.90±0.04μs 2.44±0.08μs 0.84 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 2011) - 2.92±0.06μs 2.44±0.1μs 0.84 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 1011) - 3.08±0.1μs 2.56±0.1μs 0.83 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 2011) - 3.03±0.2μs 2.52±0.09μs 0.83 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 4006) - 9.41±0.4μs 7.79±0.2μs 0.83 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 8000) - 2.97±0.1μs 2.42±0.1μs 0.81 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 2000) - 2.99±0.1μs 2.40±0.07μs 0.80 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 4006) - 3.18±0.1μs 2.55±0.1μs 0.80 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 1000) - 3.21±0.2μs 2.48±0.03μs 0.77 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 5000) - 3.07±0.2μs 2.34±0.05μs 0.76 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 3000) - 3.08±0.1μs 2.34±0.04μs 0.76 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 5000) - 3.23±0.1μs 2.43±0.1μs 0.75 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 1000) - 3.16±0.1μs 2.37±0.05μs 0.75 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 2000) - 3.28±0.3μs 2.33±0.08μs 0.71 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 4000) - 3.44±0.3μs 2.36±0.1μs 0.69 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 1011) - 398±20μs 242±7μs 0.61 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 6000) - 39.0±1ms 23.7±0.4ms 0.61 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 6000) - 62.4±0.5ms 28.9±0.5ms 0.46 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 11000) - 64.4±0.2ms 28.6±0.4ms 0.44 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 10000) - 657±20μs 290±10μs 0.44 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 11000) - 64.7±0.4ms 27.9±0.4ms 0.43 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 9000) - 659±20μs 279±8μs 0.42 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 7000) - 64.1±0.6ms 27.1±0.4ms 0.42 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 8000) - 64.6±0.9ms 26.7±0.3ms 0.41 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 7000) - 661±20μs 272±8μs 0.41 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 8000) - 661±10μs 269±10μs 0.41 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 9000) - 698±50μs 282±7μs 0.40 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 10000) - 3.02±0.1μs 344±10ns 0.11 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(0, 12000) - 3.21±0.2μs 342±10ns 0.11 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1, 12000) - 10.6±0.5μs 339±10ns 0.03 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(100, 12000) - 661±20μs 346±5ns 0.00 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(10000, 12000) - 62.3±0.6ms 368±10ns 0.00 tslibs.period.TimePeriodArrToDT64Arr.time_periodarray_to_dt64arr(1000000, 12000) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35171/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35171/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35171.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35171", "merged_at": "2020-07-09T22:08:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35171.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35171" }
https://api.github.com/repos/pandas-dev/pandas/issues/35172
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35172/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35172/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35172/events
https://github.com/pandas-dev/pandas/issues/35172
652,874,268
MDU6SXNzdWU2NTI4NzQyNjg=
35,172
QST: I get an error when use to_sql func to save a dataframe to mysql for BLOB column.how to fix it ?
{ "avatar_url": "https://avatars.githubusercontent.com/u/21196092?v=4", "events_url": "https://api.github.com/users/945226956/events{/privacy}", "followers_url": "https://api.github.com/users/945226956/followers", "following_url": "https://api.github.com/users/945226956/following{/other_user}", "gists_url": "https://api.github.com/users/945226956/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/945226956", "id": 21196092, "login": "945226956", "node_id": "MDQ6VXNlcjIxMTk2MDky", "organizations_url": "https://api.github.com/users/945226956/orgs", "received_events_url": "https://api.github.com/users/945226956/received_events", "repos_url": "https://api.github.com/users/945226956/repos", "site_admin": false, "starred_url": "https://api.github.com/users/945226956/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/945226956/subscriptions", "type": "User", "url": "https://api.github.com/users/945226956" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
1
2020-07-08T03:04:53Z
2020-08-21T17:05:21Z
2020-07-08T03:40:58Z
NONE
null
my package list is: Package Version Note: you may need to restart the kernel to use updated packages. --------------------------------- ------------------- -cikit-learn 0.22.2.post1 asn1crypto 0.24.0 attrs 19.3.0 automan 1.0.0 autopep8 1.5.2 backcall 0.1.0 bcrypt 3.1.4 bitarray 1.2.1 bleach 3.1.4 cacheout 0.11.1 certifi 2018.11.29 cffi 1.12.2 chardet 3.0.4 Click 7.0 cloudpickle 1.4.1 colorama 0.4.3 configobj 5.0.6 cryptography 2.3.1 cycler 0.10.0 Cython 0.29.19 DBUtils 1.3 decorator 4.4.2 defusedxml 0.6.0 entrypoints 0.3 et-xmlfile 1.0.1 Flask 1.0.2 future 0.18.2 hyperopt 0.2.3 idna 2.6 imbalanced-learn 0.6.2 imblearn 0.0 importlib-metadata 1.5.0 impyla 0.14.0 ipykernel 5.1.4 ipython 7.13.0 ipython-genutils 0.2.0 itsdangerous 1.1.0 jdcal 1.4.1 jedi 0.16.0 Jinja2 2.10 joblib 0.14.1 jsonschema 3.2.0 jupyter-client 6.1.2 jupyter-contrib-core 0.3.3 jupyter-contrib-nbextensions 0.5.1 jupyter-core 4.6.3 jupyter-highlight-selected-word 0.2.0 jupyter-latex-envs 1.4.6 jupyter-nbextensions-configurator 0.4.1 kafka-python 1.3.5 kiwisolver 1.2.0 lxml 4.5.0 MarkupSafe 1.1.1 matplotlib 3.2.1 mistune 0.8.4 mysqlclient 1.4.6 nbconvert 5.6.1 nbformat 5.0.4 networkx 2.2 notebook 6.0.3 numpy 1.18.2 opencv-python 4.2.0.34 openpyxl 3.0.3 pandas 0.25.3 pandocfilters 1.4.2 paramiko 2.4.2 parso 0.6.2 patsy 0.5.1 pickleshare 0.7.5 Pillow 7.1.2 pip 20.0.2 ply 3.11 prometheus-client 0.7.1 prompt-toolkit 3.0.4 pyasn1 0.4.5 pycodestyle 2.5.0 pycparser 2.19 pydotplus 2.0.2 Pygments 2.6.1 PyHDFS 0.2.1 PyMySQL 0.9.2 PyNaCl 1.3.0 pyparsing 2.4.7 pyrsistent 0.16.0 python-dateutil 2.8.1 pytz 2018.9 pywin32 227 pywinpty 0.5.7 PyYAML 5.3.1 pyzmq 18.1.1 redis 3.2.1 requests 2.18.4 sasl 0.2.1 scikit-learn 0.19.1 scipy 1.4.1 seaborn 0.10.0 Send2Trash 1.5.0 setuptools 46.1.3.post20200330 simplejson 3.16.0 six 1.12.0 sklearn-pandas 1.8.0 sklearn2pmml 0.49.0 SQLAlchemy 1.3.15 statsmodels 0.11.1 terminado 0.8.3 testpath 0.4.4 thrift 0.10.0 thrift-sasl 0.2.1 thriftpy 0.3.9 tornado 6.0.4 tqdm 4.46.1 traitlets 4.3.3 urllib3 1.22 wcwidth 0.1.9 webencodings 0.5.1 Werkzeug 0.14.1 wheel 0.34.2 wincertstore 0.2 xgboost 0.6 xlrd 1.2.0 XlsxWriter 1.2.9 zipp 2.2.0 --- **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 from sqlalchemy.types import VARCHAR, Float, Integer, Date, Numeric,BLOB,CLOB from sqlalchemy import create_engine # db_conn_str = 'mysql+pymysql://user:pswd@localhost:3307/xxx?charset=utf8' con=create_engine(db_conn_str) # print(db_conn_str) a = pd.DataFrame({'a':[1,2,3,],'b':['dddddd','3','5']}) a.to_sql(name='test_blob', con=con, if_exists='append', dtype={'b':BLOB},index=False) ``` #### Problem description <details> --------------------------------------------------------------------------- TypeError Traceback (most recent call last) D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, *args) 1174 -> 1175 context = constructor(dialect, self, conn, *args) 1176 except BaseException as e: D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\default.py in _init_compiled(cls, dialect, connection, dbapi_connection, compiled, parameters) 833 ) --> 834 for key in compiled_params 835 ) D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\default.py in <genexpr>(.0) 833 ) --> 834 for key in compiled_params 835 ) D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\sql\sqltypes.py in process(value) 912 if value is not None: --> 913 return DBAPIBinary(value) 914 else: D:\Anaconda3\envs\py3-back\lib\site-packages\pymysql\__init__.py in Binary(x) 84 else: ---> 85 return bytes(x) 86 TypeError: string argument without an encoding The above exception was the direct cause of the following exception: StatementError Traceback (most recent call last) <ipython-input-66-e1bff449d290> in <module> 6 a = pd.DataFrame({'a':[1,2,3,],'b':['dddddd','3','5']}) 7 ----> 8 a.to_sql(name='test_blob', con=con, if_exists='append', dtype={'b':BLOB},index=False) ~\AppData\Roaming\Python\Python36\site-packages\pandas\core\generic.py in to_sql(self, name, con, schema, if_exists, index, index_label, chunksize, dtype, method) 2710 chunksize=chunksize, 2711 dtype=dtype, -> 2712 method=method, 2713 ) 2714 ~\AppData\Roaming\Python\Python36\site-packages\pandas\io\sql.py in to_sql(frame, name, con, schema, if_exists, index, index_label, chunksize, dtype, method) 516 chunksize=chunksize, 517 dtype=dtype, --> 518 method=method, 519 ) 520 ~\AppData\Roaming\Python\Python36\site-packages\pandas\io\sql.py in to_sql(self, frame, name, if_exists, index, index_label, schema, chunksize, dtype, method) 1318 ) 1319 table.create() -> 1320 table.insert(chunksize, method=method) 1321 if not name.isdigit() and not name.islower(): 1322 # check for potentially case sensitivity issues (GH7815) ~\AppData\Roaming\Python\Python36\site-packages\pandas\io\sql.py in insert(self, chunksize, method) 754 755 chunk_iter = zip(*[arr[start_i:end_i] for arr in data_list]) --> 756 exec_insert(conn, keys, chunk_iter) 757 758 def _query_iterator( ~\AppData\Roaming\Python\Python36\site-packages\pandas\io\sql.py in _execute_insert(self, conn, keys, data_iter) 668 """ 669 data = [dict(zip(keys, row)) for row in data_iter] --> 670 conn.execute(self.table.insert(), data) 671 672 def _execute_insert_multi(self, conn, keys, data_iter): D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\base.py in execute(self, object_, *multiparams, **params) 982 ) 983 else: --> 984 return meth(self, multiparams, params) 985 986 def _execute_function(self, func, multiparams, params): D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\sql\elements.py in _execute_on_connection(self, connection, multiparams, params) 291 def _execute_on_connection(self, connection, multiparams, params): 292 if self.supports_execution: --> 293 return connection._execute_clauseelement(self, multiparams, params) 294 else: 295 raise exc.ObjectNotExecutableError(self) D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\base.py in _execute_clauseelement(self, elem, multiparams, params) 1101 distilled_params, 1102 compiled_sql, -> 1103 distilled_params, 1104 ) 1105 if self._has_events or self.engine._has_events: D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, *args) 1176 except BaseException as e: 1177 self._handle_dbapi_exception( -> 1178 e, util.text_type(statement), parameters, None, None 1179 ) 1180 D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\base.py in _handle_dbapi_exception(self, e, statement, parameters, cursor, context) 1480 elif should_wrap: 1481 util.raise_( -> 1482 sqlalchemy_exception, with_traceback=exc_info[2], from_=e 1483 ) 1484 else: D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\util\compat.py in raise_(***failed resolving arguments***) 176 177 try: --> 178 raise exception 179 finally: 180 # credit to D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\base.py in _execute_context(self, dialect, constructor, statement, parameters, *args) 1173 conn = self._revalidate_connection() 1174 -> 1175 context = constructor(dialect, self, conn, *args) 1176 except BaseException as e: 1177 self._handle_dbapi_exception( D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\default.py in _init_compiled(cls, dialect, connection, dbapi_connection, compiled, parameters) 832 else compiled_params[key], 833 ) --> 834 for key in compiled_params 835 ) 836 D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\engine\default.py in <genexpr>(.0) 832 else compiled_params[key], 833 ) --> 834 for key in compiled_params 835 ) 836 D:\Anaconda3\envs\py3-back\lib\site-packages\sqlalchemy\sql\sqltypes.py in process(value) 911 def process(value): 912 if value is not None: --> 913 return DBAPIBinary(value) 914 else: 915 return None D:\Anaconda3\envs\py3-back\lib\site-packages\pymysql\__init__.py in Binary(x) 83 return bytearray(x) 84 else: ---> 85 return bytes(x) 86 87 StatementError: (builtins.TypeError) string argument without an encoding [SQL: INSERT INTO test_blob (a, b) VALUES (%(a)s, %(b)s)] [parameters: [{'a': 1, 'b': 'dddddd'}, {'a': 2, 'b': '3'}, {'a': 3, 'b': '5'}]] </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/35172/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35172/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35173
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35173/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35173/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35173/events
https://github.com/pandas-dev/pandas/issues/35173
652,976,794
MDU6SXNzdWU2NTI5NzY3OTQ=
35,173
BUG: groupby / resample / aggregate produces wrong results
{ "avatar_url": "https://avatars.githubusercontent.com/u/8036639?v=4", "events_url": "https://api.github.com/users/roy2006/events{/privacy}", "followers_url": "https://api.github.com/users/roy2006/followers", "following_url": "https://api.github.com/users/roy2006/following{/other_user}", "gists_url": "https://api.github.com/users/roy2006/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/roy2006", "id": 8036639, "login": "roy2006", "node_id": "MDQ6VXNlcjgwMzY2Mzk=", "organizations_url": "https://api.github.com/users/roy2006/orgs", "received_events_url": "https://api.github.com/users/roy2006/received_events", "repos_url": "https://api.github.com/users/roy2006/repos", "site_admin": false, "starred_url": "https://api.github.com/users/roy2006/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/roy2006/subscriptions", "type": "User", "url": "https://api.github.com/users/roy2006" }
[ { "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": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
2
2020-07-08T05:25:04Z
2020-07-09T11:06:29Z
2020-07-09T11:06:15Z
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 data = """ date revenue name 0 2020-02-24 9 n_1 1 2020-05-12 8 n_2 2 2020-03-28 9 n_2 3 2020-01-14 2 n_0""" df = pd.read_csv(StringIO(data), sep = "\s+", engine = "python") df.date = pd.to_datetime(df.date) gb = df.groupby("name").resample("M", on="date") res1 = gb.sum()[['revenue']] # ==> # revenue # name date # n_0 2020-01-31 2 # n_1 2020-02-29 9 # n_2 2020-03-31 9 # 2020-04-30 0 # 2020-05-31 8 res2 = gb.aggregate({'revenue':'sum'}) # ==> # revenue # name date # n_0 2020-05-31 2 # n_1 2020-01-31 9 # n_2 2020-02-29 8 # 2020-03-31 9 ``` #### Problem description As the code sample above shows, there are two issues: * `agg(sum)` produces different results from just `sum`. * The results of `agg(sum)` are plain wrong. The name "n_2" has no data in Feb, and yet - the aggregation shows that it does. #### Expected Output The correct output is the one produced by `sum`. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Darwin OS-release : 19.5.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.17.4 pytz : 2019.3 dateutil : 2.8.0 pip : 19.3.1 setuptools : 41.6.0 Cython : None pytest : 5.4.3 hypothesis : 5.18.0 sphinx : None blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : 4.5.0 html5lib : 1.0.1 pymysql : None psycopg2 : 2.8.4 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : 7.10.1 pandas_datareader: 0.8.1 bs4 : 4.9.0 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.16 tables : None tabulate : None xarray : 0.15.1 xlrd : 1.2.0 xlwt : None xlsxwriter : 1.2.9 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/35173/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35173/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35174
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35174/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35174/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35174/events
https://github.com/pandas-dev/pandas/issues/35174
652,987,486
MDU6SXNzdWU2NTI5ODc0ODY=
35,174
ENH: Inconsistency: .astype("string") should convert int-Series to string
{ "avatar_url": "https://avatars.githubusercontent.com/u/13617985?v=4", "events_url": "https://api.github.com/users/FlorianWetschoreck/events{/privacy}", "followers_url": "https://api.github.com/users/FlorianWetschoreck/followers", "following_url": "https://api.github.com/users/FlorianWetschoreck/following{/other_user}", "gists_url": "https://api.github.com/users/FlorianWetschoreck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/FlorianWetschoreck", "id": 13617985, "login": "FlorianWetschoreck", "node_id": "MDQ6VXNlcjEzNjE3OTg1", "organizations_url": "https://api.github.com/users/FlorianWetschoreck/orgs", "received_events_url": "https://api.github.com/users/FlorianWetschoreck/received_events", "repos_url": "https://api.github.com/users/FlorianWetschoreck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/FlorianWetschoreck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/FlorianWetschoreck/subscriptions", "type": "User", "url": "https://api.github.com/users/FlorianWetschoreck" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
null
2
2020-07-08T05:49:26Z
2020-08-21T17:05:22Z
2020-07-08T11:08:33Z
NONE
null
```python pd.Series(['1', '2', '3'], dtype="string").astype("int") ``` Turns the String Series into an Integer Series and converts the values. However, the inverse operation raises an Error: ```python pd.Series([1, 2, 3], dtype="int").astype("string") ``` In order to be consistent, the inverse operation should also work. Currently, I think that the best alternative solutions are something like this: ```python pd.Series(pd.Series([1, 2, 3], dtype="int").apply(str), dtype="string") ``` or ```python pd.Series([1, 2, 3], dtype="int").apply(str).convert_dtypes() ``` But those solutions are too convoluted and not consistent with the above API.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35174/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35174/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35175
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35175/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35175/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35175/events
https://github.com/pandas-dev/pandas/pull/35175
653,136,998
MDExOlB1bGxSZXF1ZXN0NDQ2MTExOTMz
35,175
DOC: fix code snippets for generic indexing
{ "avatar_url": "https://avatars.githubusercontent.com/u/884012?v=4", "events_url": "https://api.github.com/users/maximesong/events{/privacy}", "followers_url": "https://api.github.com/users/maximesong/followers", "following_url": "https://api.github.com/users/maximesong/following{/other_user}", "gists_url": "https://api.github.com/users/maximesong/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maximesong", "id": 884012, "login": "maximesong", "node_id": "MDQ6VXNlcjg4NDAxMg==", "organizations_url": "https://api.github.com/users/maximesong/orgs", "received_events_url": "https://api.github.com/users/maximesong/received_events", "repos_url": "https://api.github.com/users/maximesong/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maximesong/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maximesong/subscriptions", "type": "User", "url": "https://api.github.com/users/maximesong" }
[ { "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": "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": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-08T09:24:03Z
2020-07-09T22:06:43Z
2020-07-09T22:06:36Z
CONTRIBUTOR
null
The code example for generic indexing is the same as positional/label indexing above. I think generic indexing here intended to be referred to something like `df[0:3]` and `df['bar':'kar']`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35175/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35175/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35175.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35175", "merged_at": "2020-07-09T22:06:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35175.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35175" }
https://api.github.com/repos/pandas-dev/pandas/issues/35176
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35176/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35176/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35176/events
https://github.com/pandas-dev/pandas/issues/35176
653,203,421
MDU6SXNzdWU2NTMyMDM0MjE=
35,176
ENH: ListDtype / ListArray
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" }, { "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
7
2020-07-08T11:06:59Z
2021-10-24T16:51:01Z
null
CONTRIBUTOR
null
This issue is for adding a ListDtype. This might be useful on it's own, and will be useful for https://github.com/pandas-dev/pandas/issues/35169 when we have string operations that return a List of values per scalar element. I think the primary points to discuss are around 1. How the `value_type` of the List, the `T` in `List[T]`, should be specified by the user 2. How, if at all, to switch between the `list_` and `large_list` types. xref https://github.com/rapidsai/cudf/issues/5610, where cudf is implementing a ListDtype. Let's chime in over there if we have any thoughts.
{ "+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/35176/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35176/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35177
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35177/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35177/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35177/events
https://github.com/pandas-dev/pandas/issues/35177
653,253,292
MDU6SXNzdWU2NTMyNTMyOTI=
35,177
BUG: ImportError: cannot import name 'Collection' from 'typing'
{ "avatar_url": "https://avatars.githubusercontent.com/u/66012082?v=4", "events_url": "https://api.github.com/users/niju1/events{/privacy}", "followers_url": "https://api.github.com/users/niju1/followers", "following_url": "https://api.github.com/users/niju1/following{/other_user}", "gists_url": "https://api.github.com/users/niju1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/niju1", "id": 66012082, "login": "niju1", "node_id": "MDQ6VXNlcjY2MDEyMDgy", "organizations_url": "https://api.github.com/users/niju1/orgs", "received_events_url": "https://api.github.com/users/niju1/received_events", "repos_url": "https://api.github.com/users/niju1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/niju1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/niju1/subscriptions", "type": "User", "url": "https://api.github.com/users/niju1" }
[ { "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": "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
6
2020-07-08T12:22:15Z
2020-08-21T17:05:22Z
2020-08-19T12:21:16Z
NONE
null
- [ ] I have checked that this issue has not already been reported. - [ ] I have confirmed this bug exists on the latest version of pandas. - [ ] (optional) I have confirmed this bug exists on the master branch of pandas. --- **Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug. #### Code Sample, a copy-pastable example ```python import pandas as pd data = pd.read_csv('Simulations Übersicht_Labled_intrusion.csv') print(data.head(5)) ``` #### Problem description base) ballal@i6.emi.fhg.de:/home-24/ballal/Skripte/Rule Extraction $ python3 decisiontree.py Traceback (most recent call last): File "decisiontree.py", line 1, in <module> import pandas as pd File "/home/ballal/anaconda3/lib/python3.7/site-packages/pandas/__init__.py", line 54, in <module> from pandas.core.api import ( File "/home/ballal/anaconda3/lib/python3.7/site-packages/pandas/core/api.py", line 6, in <module> from pandas.core.dtypes.dtypes import ( File "/home/ballal/anaconda3/lib/python3.7/site-packages/pandas/core/dtypes/dtypes.py", line 10, in <module> from pandas._typing import Ordered File "/home/ballal/anaconda3/lib/python3.7/site-packages/pandas/_typing.py", line 2, in <module> from typing import ( ImportError: cannot import name 'Collection' from 'typing' (/usr/lib/python3.4/site-packages/typing.py) I cannot import pandas. I installed the latest version of pandas too. #### Expected Output #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35177/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35177/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35178
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35178/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35178/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35178/events
https://github.com/pandas-dev/pandas/issues/35178
653,358,499
MDU6SXNzdWU2NTMzNTg0OTk=
35,178
ENH: use EA.argmin/argmax in EA._reduce / Series.argmin/argmax
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
1
2020-07-08T14:46:26Z
2020-07-08T15:10:00Z
null
MEMBER
null
Follow-up on https://github.com/pandas-dev/pandas/pull/27801: that PR added `ExtensionArray.argmin()/argmax()` methods, but this is not yet used in the equivalent Series methods (through `_reduce`). When adding this, we will need to decide on the following issues as well: * API/BUG: Series.argmin/max with all-NaN data returns -1 ? #33941 * API: argmin/argmax behaviour for nullable dtypes with skipna=False #33942
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35178/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35178/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35179
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35179/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35179/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35179/events
https://github.com/pandas-dev/pandas/issues/35179
653,367,023
MDU6SXNzdWU2NTMzNjcwMjM=
35,179
TST verify inplace ops return None
{ "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" }
[ { "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" } ]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-08T14:56:54Z
2020-07-09T22:05:34Z
2020-07-09T22:05:34Z
CONTRIBUTOR
null
test if pandas methods, when called inplace, return None drop_duplicates https://github.com/pandas-dev/pandas/pull/35121. **merged** dropna https://github.com/pandas-dev/pandas/pull/35180
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35179/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35179/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35180
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35180/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35180/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35180/events
https://github.com/pandas-dev/pandas/pull/35180
653,397,530
MDExOlB1bGxSZXF1ZXN0NDQ2MzI0NzA2
35,180
Tst verify dropna returns None inplace (#35179)
{ "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" }
[]
closed
false
null
[]
null
0
2020-07-08T15:37:01Z
2020-07-08T16:44:21Z
2020-07-08T16:44:21Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35180/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35180/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35180.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35180", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35180.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35180" }
https://api.github.com/repos/pandas-dev/pandas/issues/35181
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35181/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35181/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35181/events
https://github.com/pandas-dev/pandas/pull/35181
653,459,826
MDExOlB1bGxSZXF1ZXN0NDQ2Mzc1MjA4
35,181
TST Verifiy that dropna returns none when called inplace (#35179)
{ "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-08T17:09:01Z
2020-07-10T10:20:35Z
2020-07-09T22:05:35Z
CONTRIBUTOR
null
Closes https://github.com/pandas-dev/pandas/issues/35179
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35181/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35181/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35181.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35181", "merged_at": "2020-07-09T22:05:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35181.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35181" }
https://api.github.com/repos/pandas-dev/pandas/issues/35182
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35182/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35182/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35182/events
https://github.com/pandas-dev/pandas/pull/35182
653,469,379
MDExOlB1bGxSZXF1ZXN0NDQ2MzgyNjMy
35,182
ENH: Add compute.use_numba configuration for automatically using numba
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "5319e7", "default": false, "description": "numba-accelerated operations", "id": 2138993554, "name": "numba", "node_id": "MDU6TGFiZWwyMTM4OTkzNTU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/numba" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-08T17:25:12Z
2020-07-15T16:32:26Z
2020-07-15T12:28:04Z
MEMBER
null
- [x] closes #33966 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35182/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35182/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35182.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35182", "merged_at": "2020-07-15T12:28:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35182.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35182" }
https://api.github.com/repos/pandas-dev/pandas/issues/35183
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35183/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35183/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35183/events
https://github.com/pandas-dev/pandas/pull/35183
653,485,480
MDExOlB1bGxSZXF1ZXN0NDQ2Mzk1MDA3
35,183
Json Visual Clutter cleanup
{ "avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4", "events_url": "https://api.github.com/users/WillAyd/events{/privacy}", "followers_url": "https://api.github.com/users/WillAyd/followers", "following_url": "https://api.github.com/users/WillAyd/following{/other_user}", "gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillAyd", "id": 609873, "login": "WillAyd", "node_id": "MDQ6VXNlcjYwOTg3Mw==", "organizations_url": "https://api.github.com/users/WillAyd/orgs", "received_events_url": "https://api.github.com/users/WillAyd/received_events", "repos_url": "https://api.github.com/users/WillAyd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions", "type": "User", "url": "https://api.github.com/users/WillAyd" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-08T17:50:58Z
2020-07-22T18:56:47Z
2020-07-09T21:57:05Z
MEMBER
null
Removed PRINTMARK symbols and ran `clang-format -sort-includes=0 -i -style="{IndentWidth: 4}" pandas/_libs/src/ujson/python/objToJSON.c`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35183/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35183/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35183.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35183", "merged_at": "2020-07-09T21:57:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35183.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35183" }
https://api.github.com/repos/pandas-dev/pandas/issues/35184
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35184/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35184/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35184/events
https://github.com/pandas-dev/pandas/pull/35184
653,490,749
MDExOlB1bGxSZXF1ZXN0NDQ2Mzk5MTQw
35,184
CI: MacPython failing TestPandasContainer.test_to_json_large_numbers
{ "avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4", "events_url": "https://api.github.com/users/arw2019/events{/privacy}", "followers_url": "https://api.github.com/users/arw2019/followers", "following_url": "https://api.github.com/users/arw2019/following{/other_user}", "gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arw2019", "id": 48889395, "login": "arw2019", "node_id": "MDQ6VXNlcjQ4ODg5Mzk1", "organizations_url": "https://api.github.com/users/arw2019/orgs", "received_events_url": "https://api.github.com/users/arw2019/received_events", "repos_url": "https://api.github.com/users/arw2019/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arw2019/subscriptions", "type": "User", "url": "https://api.github.com/users/arw2019" }
[ { "color": "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": "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
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
7
2020-07-08T17:59:53Z
2020-07-16T18:55:14Z
2020-07-15T13:43:45Z
MEMBER
null
- [x] closes #35147 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35184/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35184/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35184.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35184", "merged_at": "2020-07-15T13:43:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35184.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35184" }
https://api.github.com/repos/pandas-dev/pandas/issues/35185
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35185/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35185/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35185/events
https://github.com/pandas-dev/pandas/issues/35185
653,519,262
MDU6SXNzdWU2NTM1MTkyNjI=
35,185
BUG: read_sql parse_dates does not allow for "errors" arg
{ "avatar_url": "https://avatars.githubusercontent.com/u/7591857?v=4", "events_url": "https://api.github.com/users/Trollgeir/events{/privacy}", "followers_url": "https://api.github.com/users/Trollgeir/followers", "following_url": "https://api.github.com/users/Trollgeir/following{/other_user}", "gists_url": "https://api.github.com/users/Trollgeir/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Trollgeir", "id": 7591857, "login": "Trollgeir", "node_id": "MDQ6VXNlcjc1OTE4NTc=", "organizations_url": "https://api.github.com/users/Trollgeir/orgs", "received_events_url": "https://api.github.com/users/Trollgeir/received_events", "repos_url": "https://api.github.com/users/Trollgeir/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Trollgeir/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Trollgeir/subscriptions", "type": "User", "url": "https://api.github.com/users/Trollgeir" }
[ { "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": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/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" } ]
{ "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
2020-07-08T18:49:58Z
2020-12-14T01:41:44Z
2020-12-14T01:41:44Z
NONE
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (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 query = ... connection = ... parse_dates_dict = {'column_name': {'errors': 'coerce'}} pandas.read_sql(query, parse_dates=parse_dates_dict) ``` #### Problem description According to the api for [read_sql](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_sql.html), the `parse_date` argument should be able to contain a dict of dicts with kwargs per column to be passed along to `pandas.to_datetime()`, as shown in the example above. However, this will result in the error: `TypeError: to_datetime() got multiple values for keyword argument 'errors'` This is because of [this line of code:](https://github.com/pandas-dev/pandas/blob/v1.0.5/pandas/io/sql.py#L81) `return to_datetime(col, errors="ignore", **format)` - where `format` is our kwargs from that specific column. Specifically, the hardcoded `errors` argument collides with the passed kwarg. It seems like the `errors` argument cannot be overridden by kwargs in this implementation. #### Expected Output Expect `errors` arg in to be overridden by the kwargs argument, or that the documentation explicitly says that it cannot be overridden for some reason.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35185/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35185/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35186
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35186/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35186/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35186/events
https://github.com/pandas-dev/pandas/pull/35186
653,533,645
MDExOlB1bGxSZXF1ZXN0NDQ2NDMzOTc4
35,186
Performance regression in stat_ops.FrameMultiIndexOps.time_op
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-07-08T19:15:05Z
2020-07-25T15:02:04Z
2020-07-09T09:26:01Z
MEMBER
null
- [ ] closes #35050 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``` import pandas as pd import numpy as np levels = [np.arange(10), np.arange(100), np.arange(100)] codes = [ np.arange(10).repeat(10000), np.tile(np.arange(100).repeat(100), 10), np.tile(np.tile(np.arange(100), 100), 10), ] index = pd.MultiIndex(levels=levels, codes=codes) df = pd.DataFrame(np.random.randn(len(index), 4), index=index) %timeit df.std(level=1) # 9.09 ms ± 59.4 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) -> master # 7.39 ms ± 71.9 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) -> 0.25.3 # 7.21 ms ± 113 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) -> 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/35186/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35186/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35186.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35186", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35186.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35186" }
https://api.github.com/repos/pandas-dev/pandas/issues/35187
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35187/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35187/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35187/events
https://github.com/pandas-dev/pandas/pull/35187
653,712,895
MDExOlB1bGxSZXF1ZXN0NDQ2NTc4MjI0
35,187
Add date overflow message to tz_localize (#32967)
{ "avatar_url": "https://avatars.githubusercontent.com/u/5392964?v=4", "events_url": "https://api.github.com/users/gabrielNT/events{/privacy}", "followers_url": "https://api.github.com/users/gabrielNT/followers", "following_url": "https://api.github.com/users/gabrielNT/following{/other_user}", "gists_url": "https://api.github.com/users/gabrielNT/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gabrielNT", "id": 5392964, "login": "gabrielNT", "node_id": "MDQ6VXNlcjUzOTI5NjQ=", "organizations_url": "https://api.github.com/users/gabrielNT/orgs", "received_events_url": "https://api.github.com/users/gabrielNT/received_events", "repos_url": "https://api.github.com/users/gabrielNT/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gabrielNT/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gabrielNT/subscriptions", "type": "User", "url": "https://api.github.com/users/gabrielNT" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-09T02:25:32Z
2020-07-16T01:51:29Z
2020-07-16T01:51:19Z
CONTRIBUTOR
null
- [x] closes #32967 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Added an error message to tz_localize when the timestamp overflows. I got a little confused by the history in #32979 as some changes were lost on the force pushes, but I tried to handle all review comments.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35187/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35187/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35187.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35187", "merged_at": "2020-07-16T01:51:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35187.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35187" }
https://api.github.com/repos/pandas-dev/pandas/issues/35188
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35188/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35188/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35188/events
https://github.com/pandas-dev/pandas/issues/35188
653,842,865
MDU6SXNzdWU2NTM4NDI4NjU=
35,188
Possible performance regression in Series.xs() and DataFrame.xs() with MultiIndex.
{ "avatar_url": "https://avatars.githubusercontent.com/u/18346451?v=4", "events_url": "https://api.github.com/users/taozuoqiao/events{/privacy}", "followers_url": "https://api.github.com/users/taozuoqiao/followers", "following_url": "https://api.github.com/users/taozuoqiao/following{/other_user}", "gists_url": "https://api.github.com/users/taozuoqiao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/taozuoqiao", "id": 18346451, "login": "taozuoqiao", "node_id": "MDQ6VXNlcjE4MzQ2NDUx", "organizations_url": "https://api.github.com/users/taozuoqiao/orgs", "received_events_url": "https://api.github.com/users/taozuoqiao/received_events", "repos_url": "https://api.github.com/users/taozuoqiao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/taozuoqiao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/taozuoqiao/subscriptions", "type": "User", "url": "https://api.github.com/users/taozuoqiao" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
open
false
null
[]
null
1
2020-07-09T07:47:58Z
2021-06-29T01:31:34Z
null
NONE
null
Performance of `Series.xs()` when getting values at specified index and the **first level** of a large dataset seems to have regressed significantly, after pandas was upgraded to v1.0.5 from v0.25.3. So is `DataFrame.xs()`. code: ```python import numpy as np import pandas as pd n=1e4 data = pd.Series(np.arange(n**2), index=pd.MultiIndex.from_product([np.arange(n), -np.arange(n)])) %timeit data.xs(100, level=0) #first level %timeit data.xs(-100, level=1) #second level ``` outcome ```python ## 0.25.3 %timeit data.xs(100, level=0) 571 µs ± 1.79 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) %timeit data.xs(-100, level=1) 193 ms ± 947 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) ## 1.0.5 %timeit data.xs(100, level=0) 683 ms ± 3.35 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) %timeit data.xs(-100, level=1) 197 ms ± 2.42 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35188/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35188/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35189
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35189/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35189/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35189/events
https://github.com/pandas-dev/pandas/issues/35189
653,845,853
MDU6SXNzdWU2NTM4NDU4NTM=
35,189
BUG: sorting a MultiIndex with pd.Period does not sort correctly when assigning new values inplace
{ "avatar_url": "https://avatars.githubusercontent.com/u/18526614?v=4", "events_url": "https://api.github.com/users/rhsmits91/events{/privacy}", "followers_url": "https://api.github.com/users/rhsmits91/followers", "following_url": "https://api.github.com/users/rhsmits91/following{/other_user}", "gists_url": "https://api.github.com/users/rhsmits91/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhsmits91", "id": 18526614, "login": "rhsmits91", "node_id": "MDQ6VXNlcjE4NTI2NjE0", "organizations_url": "https://api.github.com/users/rhsmits91/orgs", "received_events_url": "https://api.github.com/users/rhsmits91/received_events", "repos_url": "https://api.github.com/users/rhsmits91/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhsmits91/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhsmits91/subscriptions", "type": "User", "url": "https://api.github.com/users/rhsmits91" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
null
1
2020-07-09T07:52:26Z
2020-08-21T17:05:22Z
2020-07-09T09:20:30Z
NONE
null
This is a problem on pandas 1.0.5: ```python import pandas as pd s = pd.Series( { ("A", pd.Period("2021")): 20, ("A", pd.Period("2020")): 10, } ) s.sort_index(level=1, sort_remaining=False) # gives: # A 2020 10 # 2021 20 # dtype: int64 # --> works! s[("B", pd.Period("2019"))] = 15 s.sort_index(level=1, sort_remaining=False) # gives: # A 2020 10 # 2021 20 # B 2019 15 # dtype: int64 # --> wrong? s.sort_index(level=1, sort_remaining=False, ascending=False) # gives: # B 2019 15 # A 2021 20 # 2020 10 # dtype: int64 # --> wrong? ``` #### Problem description The problem seems to be that adding new periods is giving a wrong ordering of the periods in MultiIndex levels, so that sorting takes the wrong order to sort them. If I do `s.index.levels[-1]` I can see the levels are ordered wrong - and when I do `s.index.levels.sort_values()` they are ordered correctly. So, it seems like internally the wrong ordering is somehow used? Is this indeed a bug - are there ways I can help to fix it? If not, is there a work around for me to achieve what I need to achieve? Thanks a lot, Ron
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35189/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35189/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35190
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35190/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35190/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35190/events
https://github.com/pandas-dev/pandas/pull/35190
653,935,559
MDExOlB1bGxSZXF1ZXN0NDQ2NzU3MDUy
35,190
Be specific about more indexes or values
{ "avatar_url": "https://avatars.githubusercontent.com/u/2605791?v=4", "events_url": "https://api.github.com/users/Lewiscowles1986/events{/privacy}", "followers_url": "https://api.github.com/users/Lewiscowles1986/followers", "following_url": "https://api.github.com/users/Lewiscowles1986/following{/other_user}", "gists_url": "https://api.github.com/users/Lewiscowles1986/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Lewiscowles1986", "id": 2605791, "login": "Lewiscowles1986", "node_id": "MDQ6VXNlcjI2MDU3OTE=", "organizations_url": "https://api.github.com/users/Lewiscowles1986/orgs", "received_events_url": "https://api.github.com/users/Lewiscowles1986/received_events", "repos_url": "https://api.github.com/users/Lewiscowles1986/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Lewiscowles1986/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Lewiscowles1986/subscriptions", "type": "User", "url": "https://api.github.com/users/Lewiscowles1986" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
11
2020-07-09T10:04:56Z
2020-07-14T17:21:47Z
2020-07-14T17:05:59Z
CONTRIBUTOR
null
The generic "are not equal" really frustrated me just now when someone was conveying their issue. This specific two errors lets me know which way around, although I believe having more indexes than data shows a place in the api for a default value (possibly per-index) which would allow this to later be reduced to the case I feel I fully understand of more data than indexes, which I think probably is unsolvable generally. I can see that both have problems, but I still think it's more important to be specific about which side is mismatched. - [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35190/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35190/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35190.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35190", "merged_at": "2020-07-14T17:05:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35190.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35190" }
https://api.github.com/repos/pandas-dev/pandas/issues/35191
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35191/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35191/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35191/events
https://github.com/pandas-dev/pandas/issues/35191
654,071,402
MDU6SXNzdWU2NTQwNzE0MDI=
35,191
ENH: Print and manipulate rows
{ "avatar_url": "https://avatars.githubusercontent.com/u/60784139?v=4", "events_url": "https://api.github.com/users/SayanJerr/events{/privacy}", "followers_url": "https://api.github.com/users/SayanJerr/followers", "following_url": "https://api.github.com/users/SayanJerr/following{/other_user}", "gists_url": "https://api.github.com/users/SayanJerr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SayanJerr", "id": 60784139, "login": "SayanJerr", "node_id": "MDQ6VXNlcjYwNzg0MTM5", "organizations_url": "https://api.github.com/users/SayanJerr/orgs", "received_events_url": "https://api.github.com/users/SayanJerr/received_events", "repos_url": "https://api.github.com/users/SayanJerr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SayanJerr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SayanJerr/subscriptions", "type": "User", "url": "https://api.github.com/users/SayanJerr" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/60784139?v=4", "events_url": "https://api.github.com/users/SayanJerr/events{/privacy}", "followers_url": "https://api.github.com/users/SayanJerr/followers", "following_url": "https://api.github.com/users/SayanJerr/following{/other_user}", "gists_url": "https://api.github.com/users/SayanJerr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SayanJerr", "id": 60784139, "login": "SayanJerr", "node_id": "MDQ6VXNlcjYwNzg0MTM5", "organizations_url": "https://api.github.com/users/SayanJerr/orgs", "received_events_url": "https://api.github.com/users/SayanJerr/received_events", "repos_url": "https://api.github.com/users/SayanJerr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SayanJerr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SayanJerr/subscriptions", "type": "User", "url": "https://api.github.com/users/SayanJerr" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/60784139?v=4", "events_url": "https://api.github.com/users/SayanJerr/events{/privacy}", "followers_url": "https://api.github.com/users/SayanJerr/followers", "following_url": "https://api.github.com/users/SayanJerr/following{/other_user}", "gists_url": "https://api.github.com/users/SayanJerr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SayanJerr", "id": 60784139, "login": "SayanJerr", "node_id": "MDQ6VXNlcjYwNzg0MTM5", "organizations_url": "https://api.github.com/users/SayanJerr/orgs", "received_events_url": "https://api.github.com/users/SayanJerr/received_events", "repos_url": "https://api.github.com/users/SayanJerr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SayanJerr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SayanJerr/subscriptions", "type": "User", "url": "https://api.github.com/users/SayanJerr" } ]
null
2
2020-07-09T13:42:34Z
2020-08-21T17:05:23Z
2020-07-10T05:24:20Z
NONE
null
#### Is your feature request related to a problem? [this should provide a description of what the problem is, e.g. "I wish I could use pandas to do [...]"] #### Describe the solution you'd like [this should provide a description of the feature request, e.g. "`DataFrame.foo` should get a new parameter `bar` that [...]", try to write a docstring for the desired feature] #### API breaking implications [this should provide a description of how this feature will affect the API] #### Describe alternatives you've considered [this should provide a description of any alternative solutions or features you've considered] #### Additional context [add any other context, code examples, or references to existing implementations about the feature request here] ```python # Your code here, if applicable ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35191/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35191/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35192
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35192/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35192/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35192/events
https://github.com/pandas-dev/pandas/pull/35192
654,087,870
MDExOlB1bGxSZXF1ZXN0NDQ2ODgyNjk3
35,192
Create sayan2
{ "avatar_url": "https://avatars.githubusercontent.com/u/60784139?v=4", "events_url": "https://api.github.com/users/SayanJerr/events{/privacy}", "followers_url": "https://api.github.com/users/SayanJerr/followers", "following_url": "https://api.github.com/users/SayanJerr/following{/other_user}", "gists_url": "https://api.github.com/users/SayanJerr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SayanJerr", "id": 60784139, "login": "SayanJerr", "node_id": "MDQ6VXNlcjYwNzg0MTM5", "organizations_url": "https://api.github.com/users/SayanJerr/orgs", "received_events_url": "https://api.github.com/users/SayanJerr/received_events", "repos_url": "https://api.github.com/users/SayanJerr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SayanJerr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SayanJerr/subscriptions", "type": "User", "url": "https://api.github.com/users/SayanJerr" }
[ { "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": "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" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/60784139?v=4", "events_url": "https://api.github.com/users/SayanJerr/events{/privacy}", "followers_url": "https://api.github.com/users/SayanJerr/followers", "following_url": "https://api.github.com/users/SayanJerr/following{/other_user}", "gists_url": "https://api.github.com/users/SayanJerr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SayanJerr", "id": 60784139, "login": "SayanJerr", "node_id": "MDQ6VXNlcjYwNzg0MTM5", "organizations_url": "https://api.github.com/users/SayanJerr/orgs", "received_events_url": "https://api.github.com/users/SayanJerr/received_events", "repos_url": "https://api.github.com/users/SayanJerr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SayanJerr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SayanJerr/subscriptions", "type": "User", "url": "https://api.github.com/users/SayanJerr" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/60784139?v=4", "events_url": "https://api.github.com/users/SayanJerr/events{/privacy}", "followers_url": "https://api.github.com/users/SayanJerr/followers", "following_url": "https://api.github.com/users/SayanJerr/following{/other_user}", "gists_url": "https://api.github.com/users/SayanJerr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/SayanJerr", "id": 60784139, "login": "SayanJerr", "node_id": "MDQ6VXNlcjYwNzg0MTM5", "organizations_url": "https://api.github.com/users/SayanJerr/orgs", "received_events_url": "https://api.github.com/users/SayanJerr/received_events", "repos_url": "https://api.github.com/users/SayanJerr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/SayanJerr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SayanJerr/subscriptions", "type": "User", "url": "https://api.github.com/users/SayanJerr" } ]
null
3
2020-07-09T14:05:02Z
2020-07-09T22:03:18Z
2020-07-09T22:03:11Z
NONE
null
code to extract row from database and replace values within row - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35192/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35192/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35192.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35192", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35192.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35192" }
https://api.github.com/repos/pandas-dev/pandas/issues/35193
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35193/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35193/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35193/events
https://github.com/pandas-dev/pandas/issues/35193
654,230,405
MDU6SXNzdWU2NTQyMzA0MDU=
35,193
Python3.6 FreeBSD pip3 install pandas fails with error 1
{ "avatar_url": "https://avatars.githubusercontent.com/u/68001318?v=4", "events_url": "https://api.github.com/users/andibb/events{/privacy}", "followers_url": "https://api.github.com/users/andibb/followers", "following_url": "https://api.github.com/users/andibb/following{/other_user}", "gists_url": "https://api.github.com/users/andibb/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andibb", "id": 68001318, "login": "andibb", "node_id": "MDQ6VXNlcjY4MDAxMzE4", "organizations_url": "https://api.github.com/users/andibb/orgs", "received_events_url": "https://api.github.com/users/andibb/received_events", "repos_url": "https://api.github.com/users/andibb/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andibb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andibb/subscriptions", "type": "User", "url": "https://api.github.com/users/andibb" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
3
2020-07-09T17:31:14Z
2020-08-21T17:05:23Z
2020-07-11T15:54:36Z
NONE
null
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- #### Question about pandas **Note**: If you'd still like to submit a question, please read [this guide]( https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your question. ```python # Your code here, if applicable ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35193/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35193/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35194
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35194/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35194/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35194/events
https://github.com/pandas-dev/pandas/issues/35194
654,290,873
MDU6SXNzdWU2NTQyOTA4NzM=
35,194
BUG: Adding two DataFrames together with duplicate column names in one results in infinite loop
{ "avatar_url": "https://avatars.githubusercontent.com/u/7226751?v=4", "events_url": "https://api.github.com/users/tdpetrou/events{/privacy}", "followers_url": "https://api.github.com/users/tdpetrou/followers", "following_url": "https://api.github.com/users/tdpetrou/following{/other_user}", "gists_url": "https://api.github.com/users/tdpetrou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tdpetrou", "id": 7226751, "login": "tdpetrou", "node_id": "MDQ6VXNlcjcyMjY3NTE=", "organizations_url": "https://api.github.com/users/tdpetrou/orgs", "received_events_url": "https://api.github.com/users/tdpetrou/received_events", "repos_url": "https://api.github.com/users/tdpetrou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tdpetrou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tdpetrou/subscriptions", "type": "User", "url": "https://api.github.com/users/tdpetrou" }
[ { "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": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-09T19:18:44Z
2020-07-16T22:49:13Z
2020-07-16T22:49:13Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example ```python df1 = pd.DataFrame(data=[[0]], columns=['second']) df2 = pd.DataFrame(data=[[0, 0, 0]], columns=['first', 'second', 'second']) ``` <img width="191" alt="Screen Shot 2020-07-09 at 3 15 10 PM" src="https://user-images.githubusercontent.com/7226751/87081253-01d46100-c1f7-11ea-9767-5265010c62f7.png"> Adding them together never completes (infinite loop?) ```python df1 + df2 ``` #### Problem description When adding two DataFrame where one has duplicate column names and the other has one (or more) of the duplicated columns, the operation never completes #### Expected Output Expected to follow rules of automatic alignment of the index. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.3.final.0 python-bits : 64 OS : Darwin OS-release : 19.4.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.1.1.post20200529 Cython : None pytest : 5.4.2 hypothesis : None sphinx : 3.1.2 blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.1 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.1 matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.2 pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : None tables : None tabulate : 0.8.7 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35194/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35194/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35195
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35195/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35195/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35195/events
https://github.com/pandas-dev/pandas/pull/35195
654,318,468
MDExOlB1bGxSZXF1ZXN0NDQ3MDY5Mjc1
35,195
PERF: MonthOffset.apply_index
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-09T20:10:39Z
2020-07-10T14:12:55Z
2020-07-10T12:13:21Z
MEMBER
null
- [x] closes #35048 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``` import pandas as pd import numpy as np N = 10000 rng = pd.date_range(start="1/1/2000", periods=N, freq="T") offset = pd.offsets.MonthBegin() In [6]: %timeit offset + rng 463 µs ± 19 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- PR 508 µs ± 18.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- 1.0.4 736 µs ± 15 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- master ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35195/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35195/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35195.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35195", "merged_at": "2020-07-10T12:13:20Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35195.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35195" }
https://api.github.com/repos/pandas-dev/pandas/issues/35196
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35196/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35196/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35196/events
https://github.com/pandas-dev/pandas/pull/35196
654,325,311
MDExOlB1bGxSZXF1ZXN0NDQ3MDc0OTcx
35,196
PERF: lookups on Timestamp 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" }
[]
closed
false
null
[]
null
6
2020-07-09T20:23:12Z
2020-07-09T21:37:32Z
2020-07-09T21:35:29Z
MEMBER
null
This is pretty ugly, but it avoids python-space attribute lookups e.g. `__Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_microsecond)` cc @scoder is there a way to make this unnecessary? I'm imagining a cdef property that aliased these attributes appropriately.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35196/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35196/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35196.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35196", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35196.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35196" }
https://api.github.com/repos/pandas-dev/pandas/issues/35197
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35197/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35197/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35197/events
https://github.com/pandas-dev/pandas/issues/35197
654,352,876
MDU6SXNzdWU2NTQzNTI4NzY=
35,197
API: make DTA/DTI == string behavior match DTI.get_loc partial-string-matching?
{ "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": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
closed
false
null
[]
null
1
2020-07-09T21:16:13Z
2021-06-19T03:40:46Z
2021-06-19T03:40:46Z
MEMBER
null
In most cases, there is a relationship between `index.get_loc` and `index.__eq__`. `index.get_loc(key)` roughly matches `(index == key).nonzero()` `DatetimeIndex.get_loc` has special treatment for strings that we could extend to DatetimeIndex (and DatetimeArray) `__eq__`. ``` >>> dti = pd.date_range("2016-01-01 20:00", periods=10, freq="H") >>> s = "2016-01-01 >>> dti.get_loc(s) slice(0, 4, None) >>> dti == s array([False, False, False, False, False, False, False, False, False, False]) ``` Under this proposal, the last comparison here would give `array([True, True, True, True, False, False, False, False, False, False])` The main benefit of this would be internal consistency. Possibly some code sharing, but I'm not ready to make any promises on that front.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35197/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35197/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35198
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35198/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35198/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35198/events
https://github.com/pandas-dev/pandas/pull/35198
654,384,858
MDExOlB1bGxSZXF1ZXN0NDQ3MTI0MDM5
35,198
REF: remove libresolution
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-07-09T22:25:16Z
2020-07-10T14:15:20Z
2020-07-10T12:16:28Z
MEMBER
null
It only has one function left, and that fits fine in fields.pyx
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35198/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35198/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35198.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35198", "merged_at": "2020-07-10T12:16:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35198.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35198" }
https://api.github.com/repos/pandas-dev/pandas/issues/35199
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35199/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35199/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35199/events
https://github.com/pandas-dev/pandas/pull/35199
654,385,942
MDExOlB1bGxSZXF1ZXN0NDQ3MTI0OTQ5
35,199
REF: re-use get_firstbday, get_lastbday in fields.pyx
{ "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": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-09T22:27:50Z
2020-07-09T23:46:48Z
2020-07-09T23:40: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/35199/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35199/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35199.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35199", "merged_at": "2020-07-09T23:40:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35199.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35199" }
https://api.github.com/repos/pandas-dev/pandas/issues/35200
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35200/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35200/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35200/events
https://github.com/pandas-dev/pandas/issues/35200
654,402,672
MDU6SXNzdWU2NTQ0MDI2NzI=
35,200
Strange dtype behavior for numeric strings when using to_csv and read_csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/7197136?v=4", "events_url": "https://api.github.com/users/rjboczar/events{/privacy}", "followers_url": "https://api.github.com/users/rjboczar/followers", "following_url": "https://api.github.com/users/rjboczar/following{/other_user}", "gists_url": "https://api.github.com/users/rjboczar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rjboczar", "id": 7197136, "login": "rjboczar", "node_id": "MDQ6VXNlcjcxOTcxMzY=", "organizations_url": "https://api.github.com/users/rjboczar/orgs", "received_events_url": "https://api.github.com/users/rjboczar/received_events", "repos_url": "https://api.github.com/users/rjboczar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rjboczar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rjboczar/subscriptions", "type": "User", "url": "https://api.github.com/users/rjboczar" }
[]
closed
false
null
[]
null
1
2020-07-09T23:13:21Z
2020-07-09T23:24:28Z
2020-07-09T23:24:14Z
NONE
null
Version 0.25.2 The following code writes out a column containing strings of the numerals 0 to N-1 plus a string 'None', and then reads it back in. ```python for N in [10,100,1000,10000,100000,1000000]: A = pd.DataFrame(list(range(N)) + list(range(N)), columns=['a']) A['a'] = A['a'].map(str) A.loc[N-1,'a'] = 'None' # Test A.to_csv('./test.csv', index=False) B = pd.read_csv('./test.csv') print(len(A['a'].unique()), len(B['a'].unique())) ``` However, the output is ``` 11 11 101 101 1001 1001 10001 10001 100001 100001 1000001 1524288 ``` _Only_ at the N=1000000 case, the values read back in get cast to a mix of int and string, and a warning is thrown ``` .../interactiveshell.py:3049: DtypeWarning: Columns (0) have mixed types. Specify dtype option on import or set low_memory=False. interactivity=interactivity, compiler=compiler, result=result) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35200/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35200/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35201
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35201/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35201/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35201/events
https://github.com/pandas-dev/pandas/pull/35201
654,406,546
MDExOlB1bGxSZXF1ZXN0NDQ3MTQxNjgw
35,201
BUG: GroupBy.count() and GroupBy.sum() incorreclty return NaN instead of 0 for missing categories
{ "avatar_url": "https://avatars.githubusercontent.com/u/3813175?v=4", "events_url": "https://api.github.com/users/smithto1/events{/privacy}", "followers_url": "https://api.github.com/users/smithto1/followers", "following_url": "https://api.github.com/users/smithto1/following{/other_user}", "gists_url": "https://api.github.com/users/smithto1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smithto1", "id": 3813175, "login": "smithto1", "node_id": "MDQ6VXNlcjM4MTMxNzU=", "organizations_url": "https://api.github.com/users/smithto1/orgs", "received_events_url": "https://api.github.com/users/smithto1/received_events", "repos_url": "https://api.github.com/users/smithto1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smithto1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smithto1/subscriptions", "type": "User", "url": "https://api.github.com/users/smithto1" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
null
1
2020-07-09T23:23:32Z
2020-07-15T01:33:42Z
2020-07-15T01:33:41Z
MEMBER
null
- [x] closes #31422 - [x] closes #35028 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry *Behavioural Changes* Fixing two related bugs: when grouping on multiple categoricals, `.sum()` and `.count()` would return `NaN` for the missing categories, but they are expected to return `0` for the missing categories. Both these bugs are fixed. *Tests* Tests were added in PR #35022 when these bugs were discovered and the tests were marked with an `xfail`. For this PR the `xfails` are removed and the tests are passing normally. As well, a few other existing tests were expecting `sum()` to return `NaN`; these have been updated so that the tests now expect to get `0` (which is the desired behaviour). *Pivot* The change to `.sum()` also impacts the `df.pivot_table()` if it is called with `aggfunc=sum` and is pivoted on a Categorical column with `observed=False`. This is not explicitly mentioned in either of the bugs, but it does make the behaviour consistent (i.e. the sum of a missing category is zero, not `NaN`). One test on test_pivot.py was updated to reflect this change. *Default Behaviour* Because `df.groupby()` and `df.pivot_table()` have `observed=False` as the default, the default behaviour will change for a user calling `df.groupby().sum()` or `df.pivot_table(..., aggfunc='sum')` if they are grouping/pivoting on a categorical with missing categories. Previously the default would give them `NaN` for the missing categories, now the default will give them `0`. What is the appropriate to highlight/document this change to the default behaviour?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35201/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35201/timeline
null
1
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35201.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35201", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35201.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35201" }
https://api.github.com/repos/pandas-dev/pandas/issues/35202
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35202/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35202/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35202/events
https://github.com/pandas-dev/pandas/issues/35202
654,408,645
MDU6SXNzdWU2NTQ0MDg2NDU=
35,202
BUG: `len(df.groupby(..., dropna=False))` raises ValueError: Categorical categories cannot be null
{ "avatar_url": "https://avatars.githubusercontent.com/u/7367411?v=4", "events_url": "https://api.github.com/users/ssche/events{/privacy}", "followers_url": "https://api.github.com/users/ssche/followers", "following_url": "https://api.github.com/users/ssche/following{/other_user}", "gists_url": "https://api.github.com/users/ssche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ssche", "id": 7367411, "login": "ssche", "node_id": "MDQ6VXNlcjczNjc0MTE=", "organizations_url": "https://api.github.com/users/ssche/orgs", "received_events_url": "https://api.github.com/users/ssche/received_events", "repos_url": "https://api.github.com/users/ssche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ssche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ssche/subscriptions", "type": "User", "url": "https://api.github.com/users/ssche" }
[ { "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" } ]
open
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4", "events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}", "followers_url": "https://api.github.com/users/charlesdong1991/followers", "following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}", "gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/charlesdong1991", "id": 9269816, "login": "charlesdong1991", "node_id": "MDQ6VXNlcjkyNjk4MTY=", "organizations_url": "https://api.github.com/users/charlesdong1991/orgs", "received_events_url": "https://api.github.com/users/charlesdong1991/received_events", "repos_url": "https://api.github.com/users/charlesdong1991/repos", "site_admin": false, "starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions", "type": "User", "url": "https://api.github.com/users/charlesdong1991" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4", "events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}", "followers_url": "https://api.github.com/users/charlesdong1991/followers", "following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}", "gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/charlesdong1991", "id": 9269816, "login": "charlesdong1991", "node_id": "MDQ6VXNlcjkyNjk4MTY=", "organizations_url": "https://api.github.com/users/charlesdong1991/orgs", "received_events_url": "https://api.github.com/users/charlesdong1991/received_events", "repos_url": "https://api.github.com/users/charlesdong1991/repos", "site_admin": false, "starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions", "type": "User", "url": "https://api.github.com/users/charlesdong1991" } ]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2020-07-09T23:29:10Z
2020-07-11T00:01:58Z
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. (only in current master; dropna=False didn't exist previously) - [x] (optional) I have confirmed this bug exists on the master branch of pandas. --- #### Code Sample, a copy-pastable example ```python >>> df = pd.DataFrame({'a': [pd.to_datetime('2019-02-12'), pd.to_datetime('2019-02-12'), pd.to_datetime('2019-02-13'), pd.NaT], 'b': [1, 2, 3, 4]}) >>> >>> dfg = df.groupby(['a'], dropna=False) >>> len(dfg) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/groupby/groupby.py", line 539, in __len__ return len(self.groups) File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/groupby/groupby.py", line 558, in groups return self.grouper.groups File "pandas/_libs/properties.pyx", line 33, in pandas._libs.properties.CachedProperty.__get__ File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/groupby/ops.py", line 257, in groups return self.groupings[0].groups File "pandas/_libs/properties.pyx", line 33, in pandas._libs.properties.CachedProperty.__get__ File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/groupby/grouper.py", line 598, in groups return self.index.groupby(Categorical.from_codes(self.codes, self.group_index)) File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/arrays/categorical.py", line 606, in from_codes dtype = CategoricalDtype._from_values_or_dtype( File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/dtypes/dtypes.py", line 365, in _from_values_or_dtype dtype = CategoricalDtype(categories, ordered) File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/dtypes/dtypes.py", line 252, in __init__ self._finalize(categories, ordered, fastpath=False) File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/dtypes/dtypes.py", line 406, in _finalize categories = self.validate_categories(categories, fastpath=fastpath) File "./venv/pandas-1/lib64/python3.8/site-packages/pandas/core/dtypes/dtypes.py", line 579, in validate_categories raise ValueError("Categorical categories cannot be null") ValueError: Categorical categories cannot be null ``` #### Problem description When using groupby with the option of `dropna=False`, it may happen that a `ValueError` is being raised when the result of `len(groupby(..., dropna=False))` is obtained. This works fine in older version of Pandas (0.25.x) which always dropped na rows by default. Even in the current master version (1.1.0.dev0+2054.gc15f08084) `len(...)` still works fine when `dropna=True` is used. The interesting bit (for me at least) is that categoricals are somehow used while there are no categoricals in the dataframe to begin with. Perhaps this is a code path that is not meant to be executed. #### Expected Output No exception being raised (there isn't any categorical after all) and `len(...)` isn't modifying anything so an exception is totally unexpected. #### Output of ``pd.show_versions()`` <details> ``` >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit : c15f0808428b5cdb4eaea290fb26a71c3534630b python : 3.8.3.final.0 python-bits : 64 OS : Linux OS-release : 5.7.7-200.fc32.x86_64 Version : #1 SMP Wed Jul 1 19:53:01 UTC 2020 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_AU.UTF-8 LOCALE : en_AU.UTF-8 pandas : 1.1.0.dev0+2054.gc15f08084 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1 setuptools : 46.1.3 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 pytables : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None numba : None ``` </details>
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35202/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35202/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35203
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35203/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35203/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35203/events
https://github.com/pandas-dev/pandas/issues/35203
654,417,181
MDU6SXNzdWU2NTQ0MTcxODE=
35,203
BUG: indexing with -1 doesn't work anymore in expanding function
{ "avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4", "events_url": "https://api.github.com/users/CloseChoice/events{/privacy}", "followers_url": "https://api.github.com/users/CloseChoice/followers", "following_url": "https://api.github.com/users/CloseChoice/following{/other_user}", "gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CloseChoice", "id": 31857876, "login": "CloseChoice", "node_id": "MDQ6VXNlcjMxODU3ODc2", "organizations_url": "https://api.github.com/users/CloseChoice/orgs", "received_events_url": "https://api.github.com/users/CloseChoice/received_events", "repos_url": "https://api.github.com/users/CloseChoice/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions", "type": "User", "url": "https://api.github.com/users/CloseChoice" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
null
3
2020-07-09T23:55:48Z
2020-07-10T16:24:57Z
2020-07-10T15:46:25Z
MEMBER
null
- [x] I have checked that this issue has not already been reported. - [x] I have confirmed this bug exists on the latest version of pandas. - [ ] (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 # setup df = pd.DataFrame([5,7,4,12,3,4,1], columns=['Value']) # calculate countif df['Count'] = df.Value.expanding(1).apply(lambda x: np.sum(np.where(x > x[-1], 1, 0))).astype('int') ``` raises `Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/home/tobias/anaconda3/envs/py38/lib/python3.8/site-packages/pandas/core/window/expanding.py", line 152, in apply return super().apply(func, raw=raw, args=args, kwargs=kwargs) File "/home/tobias/anaconda3/envs/py38/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 1300, in apply return self._apply( File "/home/tobias/anaconda3/envs/py38/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 507, in _apply result = calc(values) File "/home/tobias/anaconda3/envs/py38/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 495, in calc return func(x, start, end, min_periods) File "/home/tobias/anaconda3/envs/py38/lib/python3.8/site-packages/pandas/core/window/rolling.py", line 1326, in apply_func return window_func(values, begin, end, min_periods) File "pandas/_libs/window/aggregations.pyx", line 1375, in pandas._libs.window.aggregations.roll_generic_fixed File "<stdin>", line 2, in <lambda> File "/home/tobias/anaconda3/envs/py38/lib/python3.8/site-packages/pandas/core/series.py", line 871, in __getitem__ result = self.index.get_value(self, key) File "/home/tobias/anaconda3/envs/py38/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 4405, in get_value return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None)) File "pandas/_libs/index.pyx", line 80, in pandas._libs.index.IndexEngine.get_value File "pandas/_libs/index.pyx", line 90, in pandas._libs.index.IndexEngine.get_value File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 998, in pandas._libs.hashtable.Int64HashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1005, in pandas._libs.hashtable.Int64HashTable.get_item KeyError: -1 ` #### Problem description [this should explain **why** the current behaviour is a problem and why the expected output is a better solution] #### Expected Output On 0.25.2 this resulted in ``` Value Count 0 5 0 1 7 0 2 4 2 3 12 0 4 3 4 5 4 3 6 1 6 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.0.final.0 python-bits : 64 OS : Linux OS-release : 4.10.0-35-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : de_DE.UTF-8 LOCALE : de_DE.UTF-8 pandas : 1.0.5 numpy : 1.17.4 pytz : 2019.3 dateutil : 2.8.1 pip : 19.3.1 setuptools : 42.0.2.post20191203 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.10.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.3.3 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35203/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35203/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35204
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35204/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35204/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35204/events
https://github.com/pandas-dev/pandas/issues/35204
654,461,564
MDU6SXNzdWU2NTQ0NjE1NjQ=
35,204
QST: value assignment by using '.loc' with boolean and label indexing
{ "avatar_url": "https://avatars.githubusercontent.com/u/25794386?v=4", "events_url": "https://api.github.com/users/jaydu1/events{/privacy}", "followers_url": "https://api.github.com/users/jaydu1/followers", "following_url": "https://api.github.com/users/jaydu1/following{/other_user}", "gists_url": "https://api.github.com/users/jaydu1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jaydu1", "id": 25794386, "login": "jaydu1", "node_id": "MDQ6VXNlcjI1Nzk0Mzg2", "organizations_url": "https://api.github.com/users/jaydu1/orgs", "received_events_url": "https://api.github.com/users/jaydu1/received_events", "repos_url": "https://api.github.com/users/jaydu1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jaydu1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jaydu1/subscriptions", "type": "User", "url": "https://api.github.com/users/jaydu1" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
2
2020-07-10T02:21:36Z
2020-07-10T15:26:11Z
2020-07-10T15:25:52Z
NONE
null
- [Yes] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions. - [No] I have asked my usage related question on [StackOverflow](https://stackoverflow.com). --- #### Question about pandas To assign values from one column of a dataframe to another column with boolean and label indexing, I found the following code works. But I didn't find any document about it, so I am wondering if this method is proper/safe to use? Thanks. ```python df = pd.DataFrame({'A':np.arange(5), 'B':[0,1,0,1,0], 'C':-np.ones(5)}) print(df) df.loc[df['B']==1, 'A'] = df['C'] # Value error if we use # df.loc[df['B']==1, 'A'] = -np.ones(5) print(df) ''' Output: A B C 0 0 0 -1.0 1 1 1 -1.0 2 2 0 -1.0 3 3 1 -1.0 4 4 0 -1.0 A B C 0 0.0 0 -1.0 1 -1.0 1 -1.0 2 2.0 0 -1.0 3 -1.0 1 -1.0 4 4.0 0 -1.0 ''' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35204/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35204/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35205
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35205/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35205/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35205/events
https://github.com/pandas-dev/pandas/pull/35205
654,495,510
MDExOlB1bGxSZXF1ZXN0NDQ3MjEyMTQ0
35,205
CLN: tighten types to get_rule_month
{ "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": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-07-10T04:11:10Z
2020-07-10T14:12:09Z
2020-07-10T12:15:22Z
MEMBER
null
We're a bit inconsistent about whether we are extracting freq.freqstr vs freq.rule_code; I'd like to get DateOffsets out of libparsing altogether before long.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35205/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35205/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35205.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35205", "merged_at": "2020-07-10T12:15:22Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35205.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35205" }
https://api.github.com/repos/pandas-dev/pandas/issues/35206
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35206/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35206/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35206/events
https://github.com/pandas-dev/pandas/issues/35206
654,543,494
MDU6SXNzdWU2NTQ1NDM0OTQ=
35,206
DOC: s3fs is required when using `read_csv` with an S3 URI
{ "avatar_url": "https://avatars.githubusercontent.com/u/1658117?v=4", "events_url": "https://api.github.com/users/MartinThoma/events{/privacy}", "followers_url": "https://api.github.com/users/MartinThoma/followers", "following_url": "https://api.github.com/users/MartinThoma/following{/other_user}", "gists_url": "https://api.github.com/users/MartinThoma/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MartinThoma", "id": 1658117, "login": "MartinThoma", "node_id": "MDQ6VXNlcjE2NTgxMTc=", "organizations_url": "https://api.github.com/users/MartinThoma/orgs", "received_events_url": "https://api.github.com/users/MartinThoma/received_events", "repos_url": "https://api.github.com/users/MartinThoma/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MartinThoma/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MartinThoma/subscriptions", "type": "User", "url": "https://api.github.com/users/MartinThoma" }
[ { "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" }, { "color": "e4a5f1", "default": false, "description": "Local or Cloud (AWS, GCS, etc.) IO Issues", "id": 49381477, "name": "IO Network", "node_id": "MDU6TGFiZWw0OTM4MTQ3Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Network" } ]
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" }
6
2020-07-10T06:25:50Z
2021-08-08T16:53:56Z
null
NONE
null
#### Location of the documentation [pandas.read_csv](https://dev.pandas.io/docs/reference/api/pandas.read_csv.html) #### Documentation problem I've just noticed that `s3fs` is required when you read an URL from s3. While it is documented that you can read from S3, the implication that you need to install an extra is not documented. Also, it would be nice if this was a pandas extra in setup.py (e.g. `s3`).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35206/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35206/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35207
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35207/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35207/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35207/events
https://github.com/pandas-dev/pandas/pull/35207
654,579,456
MDExOlB1bGxSZXF1ZXN0NDQ3MjgwNzgy
35,207
ENH: raise limit for completion number of columns and warn beyond
{ "avatar_url": "https://avatars.githubusercontent.com/u/590921?v=4", "events_url": "https://api.github.com/users/bthyreau/events{/privacy}", "followers_url": "https://api.github.com/users/bthyreau/followers", "following_url": "https://api.github.com/users/bthyreau/following{/other_user}", "gists_url": "https://api.github.com/users/bthyreau/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bthyreau", "id": 590921, "login": "bthyreau", "node_id": "MDQ6VXNlcjU5MDkyMQ==", "organizations_url": "https://api.github.com/users/bthyreau/orgs", "received_events_url": "https://api.github.com/users/bthyreau/received_events", "repos_url": "https://api.github.com/users/bthyreau/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bthyreau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bthyreau/subscriptions", "type": "User", "url": "https://api.github.com/users/bthyreau" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "207de5", "default": false, "description": "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
[]
null
2
2020-07-10T07:41:05Z
2020-11-22T04:57:46Z
2020-11-22T04:57:46Z
CONTRIBUTOR
null
Hi, Currently the user-completion (ipython "\<tab\>") on a dataframe with more than 100 columns will silently ignore some columns, letting an unaware user confused on whether data disapeared. This is actually documented, and due to an arbitrary limit set to workaround a performance issue ( See #18587 ) Dataframe with more than 100 columns are quite common, so this can potentially affect and suprise many users. Therefore, I suggest to increase that limit to, say, 1000. In any case, it would probably be good to warn the user hitting that limit. The attached quickfix raises the limit to 1000 and adds a warning beyond. (Note that I didn't experience any completion latency increasing with the axis size, so I'm not sure whether this limit is still relevant in the first 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/35207/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35207/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35207.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35207", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/35207.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35207" }
https://api.github.com/repos/pandas-dev/pandas/issues/35208
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35208/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35208/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35208/events
https://github.com/pandas-dev/pandas/pull/35208
654,651,790
MDExOlB1bGxSZXF1ZXN0NDQ3MzM1MDk1
35,208
ROADMAP: add consistent missing values for all dtypes to the roadmap
{ "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": "1d76db", "default": false, "description": "A proposal for the roadmap.", "id": 1653939309, "name": "Roadmap", "node_id": "MDU6TGFiZWwxNjUzOTM5MzA5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Roadmap" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
21
2020-07-10T09:34:16Z
2020-08-20T15:50:22Z
2020-08-20T14:52:53Z
MEMBER
null
The more detailed motivation is described in https://hackmd.io/@jorisvandenbossche/Sk0wMeAmB, and many aspects have already been discussed in https://github.com/pandas-dev/pandas/issues/28095 and linked issues. (and there are probably still other details / practical aspects that can be further discussed in dedicated issues) Last year when I made the `pd.NA` proposal (and which resulted in using that for the nullable integer, boolean and string dtypes), which described it as "can be used consistently across all data types", the implicit / aspirational end goal of this proposal for me always was to *actually* have this for all dtypes (and as the default, at some point). I tried to discuss this goal more explicitly on the mailing list earlier this year (in the thread about pandas 2.0: https://mail.python.org/pipermail/pandas-dev/2020-February/001180.html). But we never really "officially" adopted this as a goal / roadmap item, or discussed about doing that. Proposing to add a section about it to the roadmap is an attempt to do this (as that is actually how it's described to do it in our [roadmap](https://pandas.pydata.org/docs/dev/development/roadmap.html#roadmap-evolution)). The aforementioned mailing list thread mostly resulted in a discussion about how to integrate the new semantics in the datetime-like dtypes (pd.NaT vs pd.NA, keep pd.NaT but change its behaviour, etc). This is still a technical discussion we further need to resolve, but note that I kept the text on that in the PR somewhat vague on purpose for this reason: *"..: all data types should support missing values and with the same behaviour"* And the general disclaimer that is also in our roadmap: *An item being on the roadmap does not mean that it will* necessarily *happen, even with unlimited funding. During the implementation period we may discover issues preventing the adoption of the feature.* cc @pandas-dev/pandas-core @pandas-dev/pandas-triage
{ "+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/35208/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35208/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35208.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35208", "merged_at": "2020-08-20T14:52:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35208.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35208" }
https://api.github.com/repos/pandas-dev/pandas/issues/35209
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35209/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35209/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35209/events
https://github.com/pandas-dev/pandas/issues/35209
654,653,688
MDU6SXNzdWU2NTQ2NTM2ODg=
35,209
ArrowIOError: Invalid parquet file. Corrupt footer. When modifying files in S3 (Bump s3fs to 0.4.2)
{ "avatar_url": "https://avatars.githubusercontent.com/u/30092892?v=4", "events_url": "https://api.github.com/users/miguelfdag/events{/privacy}", "followers_url": "https://api.github.com/users/miguelfdag/followers", "following_url": "https://api.github.com/users/miguelfdag/following{/other_user}", "gists_url": "https://api.github.com/users/miguelfdag/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/miguelfdag", "id": 30092892, "login": "miguelfdag", "node_id": "MDQ6VXNlcjMwMDkyODky", "organizations_url": "https://api.github.com/users/miguelfdag/orgs", "received_events_url": "https://api.github.com/users/miguelfdag/received_events", "repos_url": "https://api.github.com/users/miguelfdag/repos", "site_admin": false, "starred_url": "https://api.github.com/users/miguelfdag/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/miguelfdag/subscriptions", "type": "User", "url": "https://api.github.com/users/miguelfdag" }
[ { "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" } ]
open
false
null
[]
null
5
2020-07-10T09:37:37Z
2021-08-08T16:56:36Z
null
NONE
null
When loading a file that has been modified in S3 directly with pd.read_parquet() from **another terminal**, we get the ArrowIOError: Invalid parquet file. Corrupt footer. Error. The code to replicate this error is: ``` import pandas as pd pd.show_versions() n = 5 df = pd.DataFrame() for i in range(n): df[str(i)] = [1, 2, 3] bucket = 'XXXXXX' file_name = f's3://{bucket}/dataframe.pqt' df.to_parquet(file_name) df = pd.read_parquet(file_name) ``` Then upload a modified DataFrame with the same name from another terminal: ``` import pandas as pd n = 6 df = pd.DataFrame() for i in range(n): df[str(i)] = [1, 2, 3] bucket = 'XXXXXX' file_name = f's3://{bucket}/dataframe.pqt' df.to_parquet(file_name) ``` And after trying to read it again from the first one: ``` df = pd.read_parquet(file_name) ``` We get an error: ``` ----> 1 df = pd.read_parquet(file_name) ~/venv/lib/python3.6/site-packages/pandas/io/parquet.py in read_parquet(path, engine, columns, **kwargs) 313 314 impl = get_engine(engine) --> 315 return impl.read(path, columns=columns, **kwargs) ~/venv/lib/python3.6/site-packages/pandas/io/parquet.py in read(self, path, columns, **kwargs) 129 def read(self, path, columns=None, **kwargs): 130 parquet_ds = self.api.parquet.ParquetDataset( --> 131 path, filesystem=get_fs_for_path(path), **kwargs 132 ) 133 kwargs["columns"] = columns ~/venv/lib/python3.6/site-packages/pyarrow/parquet.py in __init__(self, path_or_paths, filesystem, schema, metadata, split_row_groups, validate_schema, filters, metadata_nthreads, read_dictionary, memory_map, buffer_size) 1058 1059 if validate_schema: -> 1060 self.validate_schemas() 1061 1062 def equals(self, other): ~/venv/lib/python3.6/site-packages/pyarrow/parquet.py in validate_schemas(self) 1090 self.schema = self.common_metadata.schema 1091 else: -> 1092 self.schema = self.pieces[0].get_metadata().schema 1093 elif self.schema is None: 1094 self.schema = self.metadata.schema ~/venv/lib/python3.6/site-packages/pyarrow/parquet.py in get_metadata(self) 558 metadata : FileMetaData 559 """ --> 560 f = self.open() 561 return f.metadata 562 ~/venv/lib/python3.6/site-packages/pyarrow/parquet.py in open(self) 565 Returns instance of ParquetFile 566 """ --> 567 reader = self.open_file_func(self.path) 568 if not isinstance(reader, ParquetFile): 569 reader = ParquetFile(reader, **self.file_options) ~/venv/lib/python3.6/site-packages/pyarrow/parquet.py in _open_dataset_file(dataset, path, meta) 940 read_dictionary=dataset.read_dictionary, 941 common_metadata=dataset.common_metadata, --> 942 buffer_size=dataset.buffer_size 943 ) 944 ~/venv/lib/python3.6/site-packages/pyarrow/parquet.py in __init__(self, source, metadata, common_metadata, read_dictionary, memory_map, buffer_size) 135 self.reader.open(source, use_memory_map=memory_map, 136 buffer_size=buffer_size, --> 137 read_dictionary=read_dictionary, metadata=metadata) 138 self.common_metadata = common_metadata 139 self._nested_paths_by_prefix = self._build_nested_paths() ~/venv/lib/python3.6/site-packages/pyarrow/_parquet.pyx in pyarrow._parquet.ParquetReader.open() ~/venv/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowIOError: Invalid parquet file. Corrupt footer. ``` The output from `pd.show_versions()` is: ``` INSTALLED VERSIONS ------------------ commit : None python : 3.6.8.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-61-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.4 numpy : 1.17.2 pytz : 2019.3 dateutil : 2.8.0 pip : 20.1.1 setuptools : 41.4.0 Cython : None pytest : 5.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.8.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.15.0 pytables : None pytest : 5.2.1 pyxlsb : None s3fs : 0.3.5 scipy : 1.4.1 sqlalchemy : 1.3.10 tables : None tabulate : 0.8.5 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.46.0 ``` In order to reproduce the error, the DataFrame in S3 must be modified from a different terminal, uploading the modified DataFrame and reading it again from the same terminal will not raise the error.
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35209/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35209/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35210
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35210/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35210/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35210/events
https://github.com/pandas-dev/pandas/pull/35210
654,674,672
MDExOlB1bGxSZXF1ZXN0NDQ3MzUzNjc5
35,210
Tst return none inplace series
{ "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" }
[ { "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": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-07-10T10:13:39Z
2020-07-10T19:32:38Z
2020-07-10T19:32:34Z
CONTRIBUTOR
null
verify we return None for all inplace calls in /series related: https://github.com/pandas-dev/pandas/pull/35181#event-3531612625
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35210/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35210/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35210.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35210", "merged_at": "2020-07-10T19:32:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35210.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35210" }
https://api.github.com/repos/pandas-dev/pandas/issues/35211
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35211/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35211/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35211/events
https://github.com/pandas-dev/pandas/issues/35211
654,712,454
MDU6SXNzdWU2NTQ3MTI0NTQ=
35,211
BUG: in read_excel for mangled columns only the original/first column dtype is correct, col.N is not parsed correctly
{ "avatar_url": "https://avatars.githubusercontent.com/u/13677331?v=4", "events_url": "https://api.github.com/users/jeroenbrouwer/events{/privacy}", "followers_url": "https://api.github.com/users/jeroenbrouwer/followers", "following_url": "https://api.github.com/users/jeroenbrouwer/following{/other_user}", "gists_url": "https://api.github.com/users/jeroenbrouwer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeroenbrouwer", "id": 13677331, "login": "jeroenbrouwer", "node_id": "MDQ6VXNlcjEzNjc3MzMx", "organizations_url": "https://api.github.com/users/jeroenbrouwer/orgs", "received_events_url": "https://api.github.com/users/jeroenbrouwer/received_events", "repos_url": "https://api.github.com/users/jeroenbrouwer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeroenbrouwer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeroenbrouwer/subscriptions", "type": "User", "url": "https://api.github.com/users/jeroenbrouwer" }
[ { "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" }, { "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-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
2020-07-10T11:25:18Z
2021-05-12T13:55:50Z
2021-05-12T13:55:50Z
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 This requires setting up an excel file. Reproducible by setting 2 columns with equal headers like `a` and a row with values `1`. Schematic: ``` a a 1 1 ``` Then using: ```python df = pd.read_excel(file, dtype={'a': str}) assert type(df['a'][0]) == type(df['a.1'][0]) ``` #### Problem description The problem is that column `a` is parsed as a `str` and column `a.1` is parsed as a `float64`. #### Expected Output Both `a` and `a.1` should be parsed as `str`, such that the assertion is passed. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Darwin OS-release : 19.4.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : en_US.UTF-8 LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.19.0 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 40.8.0 Cython : 0.29.20 pytest : 5.3.5 hypothesis : None sphinx : 3.0.4 blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : 4.5.1 html5lib : None pymysql : None psycopg2 : 2.8.5 (dt dec pq3 ext lo64) jinja2 : 2.11.1 IPython : 7.15.0 pandas_datareader: None bs4 : 4.9.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.1 matplotlib : 3.2.1 numexpr : None odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.5 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : 1.2.9 numba : 0.50.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35211/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35211/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35212
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35212/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35212/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35212/events
https://github.com/pandas-dev/pandas/pull/35212
654,774,462
MDExOlB1bGxSZXF1ZXN0NDQ3NDMzNTM4
35,212
Fix strange behavior when precision display option is zero (#20359)
{ "avatar_url": "https://avatars.githubusercontent.com/u/26968986?v=4", "events_url": "https://api.github.com/users/gimseng/events{/privacy}", "followers_url": "https://api.github.com/users/gimseng/followers", "following_url": "https://api.github.com/users/gimseng/following{/other_user}", "gists_url": "https://api.github.com/users/gimseng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gimseng", "id": 26968986, "login": "gimseng", "node_id": "MDQ6VXNlcjI2OTY4OTg2", "organizations_url": "https://api.github.com/users/gimseng/orgs", "received_events_url": "https://api.github.com/users/gimseng/received_events", "repos_url": "https://api.github.com/users/gimseng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gimseng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gimseng/subscriptions", "type": "User", "url": "https://api.github.com/users/gimseng" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-07-10T13:15:20Z
2020-07-17T09:29:04Z
2020-07-10T19:33:14Z
CONTRIBUTOR
null
- [x] closes #20359 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Notes: - [x] I added a unit test for the example given in #20359 - [x] As far as the context of this code is concerned, I replacde '.' with decimal string (passed from self when called) in case of non-standard decimal use
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35212/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35212/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35212.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35212", "merged_at": "2020-07-10T19:33:13Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35212.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35212" }
https://api.github.com/repos/pandas-dev/pandas/issues/35213
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35213/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35213/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35213/events
https://github.com/pandas-dev/pandas/pull/35213
654,819,368
MDExOlB1bGxSZXF1ZXN0NDQ3NDcwMzUw
35,213
Add xarray copyright notice to comply with reuse under Apache License
{ "avatar_url": "https://avatars.githubusercontent.com/u/3460034?v=4", "events_url": "https://api.github.com/users/jthielen/events{/privacy}", "followers_url": "https://api.github.com/users/jthielen/followers", "following_url": "https://api.github.com/users/jthielen/following{/other_user}", "gists_url": "https://api.github.com/users/jthielen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jthielen", "id": 3460034, "login": "jthielen", "node_id": "MDQ6VXNlcjM0NjAwMzQ=", "organizations_url": "https://api.github.com/users/jthielen/orgs", "received_events_url": "https://api.github.com/users/jthielen/received_events", "repos_url": "https://api.github.com/users/jthielen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jthielen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jthielen/subscriptions", "type": "User", "url": "https://api.github.com/users/jthielen" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-07-10T14:24:58Z
2020-07-10T14:55:40Z
2020-07-10T14:55:39Z
CONTRIBUTOR
null
In https://github.com/xarray-contrib/pint-xarray/pull/11, @keewis and I noticed that pandas's (pandas'?...possessive forms are weird) reuse with modification of xarray code added in https://github.com/pandas-dev/pandas/commit/eee83e23ba0c5b32e27db3faca931ddb4c9619aa did not include xarray's copyright notice as required by the Apache License, Version 2.0 (which is not included in the license text itself, unlike MIT or BSD). I'm not sure how big of a deal this is, but given that pint-xarray is going ahead and modeling its code citation practice after that of pandas, I wanted to see what the thoughts are here on it. This PR takes a simple fix and just adds the copyright notice to top of the `LICENSES/XARRAY_LICENSE` file. Also, I'm not sure if this requires a whatsnew entry or not. - ~~closes #xxxx~~ - ~~tests added / passed~~ - ~~passes `black pandas`~~ - ~~passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~ - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35213/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35213/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35213.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35213", "merged_at": "2020-07-10T14:55:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35213.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35213" }
https://api.github.com/repos/pandas-dev/pandas/issues/35214
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35214/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35214/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35214/events
https://github.com/pandas-dev/pandas/pull/35214
654,845,210
MDExOlB1bGxSZXF1ZXN0NDQ3NDkxNTk4
35,214
Drop Python 3.6 support
{ "avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4", "events_url": "https://api.github.com/users/fangchenli/events{/privacy}", "followers_url": "https://api.github.com/users/fangchenli/followers", "following_url": "https://api.github.com/users/fangchenli/following{/other_user}", "gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fangchenli", "id": 7614606, "login": "fangchenli", "node_id": "MDQ6VXNlcjc2MTQ2MDY=", "organizations_url": "https://api.github.com/users/fangchenli/orgs", "received_events_url": "https://api.github.com/users/fangchenli/received_events", "repos_url": "https://api.github.com/users/fangchenli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions", "type": "User", "url": "https://api.github.com/users/fangchenli" }
[ { "color": "d93f0b", "default": false, "description": "Required and optional dependencies", "id": 527603109, "name": "Dependencies", "node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
16
2020-07-10T15:04:33Z
2020-08-11T16:10:21Z
2020-08-11T01:17:48Z
MEMBER
null
- [x] closes #34472 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 1, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35214/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35214/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35214.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35214", "merged_at": "2020-08-11T01:17:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35214.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35214" }
https://api.github.com/repos/pandas-dev/pandas/issues/35215
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35215/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35215/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35215/events
https://github.com/pandas-dev/pandas/issues/35215
654,860,372
MDU6SXNzdWU2NTQ4NjAzNzI=
35,215
BUG: memory spike in DatetimeIndex after .loc based assignment
{ "avatar_url": "https://avatars.githubusercontent.com/u/1246446?v=4", "events_url": "https://api.github.com/users/mdering/events{/privacy}", "followers_url": "https://api.github.com/users/mdering/followers", "following_url": "https://api.github.com/users/mdering/following{/other_user}", "gists_url": "https://api.github.com/users/mdering/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mdering", "id": 1246446, "login": "mdering", "node_id": "MDQ6VXNlcjEyNDY0NDY=", "organizations_url": "https://api.github.com/users/mdering/orgs", "received_events_url": "https://api.github.com/users/mdering/received_events", "repos_url": "https://api.github.com/users/mdering/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mdering/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mdering/subscriptions", "type": "User", "url": "https://api.github.com/users/mdering" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "Issue that has not been reviewed by a pandas team member", "id": 1954720290, "name": "Needs Triage", "node_id": "MDU6TGFiZWwxOTU0NzIwMjkw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage" } ]
closed
false
null
[]
null
4
2020-07-10T15:28:09Z
2020-09-03T18:20:12Z
2020-09-03T02:00:42Z
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 n = 1500000 idx = pd.date_range(end = pd.Timestamp.now().floor("1T"), freq='1T', periods=n) srs1 = pd.Series(np.random.random(n), idx) srs2 = pd.Series(np.random.random(n), idx) print(sys.getsizeof(srs1.index)) # 12000032 print(sys.getsizeof(srs2.index)) # 12000032 filter_srs = srs1[srs1 > .9].index srs2.loc[filter_srs] = .9 print(sys.getsizeof(srs2.index)) # 53943072 assert (srs1.index == srs2.index).all() ``` #### Problem description hi pandas, after filtering a series on some index, theres a strange spike in memory usage of the index where it can grow in size by a factor of > 4. I know this is a strange use case but its a MWE of a version where the `srs2` index might be mutated. The `nbytes` attributes of the indexes stay the same, but the overall memory usage according to sys grows larger and stays large. Also, if i do something like `srs2.index = pd.DatetimeIndex(srs2.index)` the memory usage falls back to a normal level #### Expected Output I would expect all of them to be the same. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Darwin OS-release : 19.5.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.5 numpy : 1.18.5 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 47.3.1.post20200622 Cython : 0.29.20 pytest : 5.4.3 hypothesis : 5.18.3 sphinx : 3.1.2 blosc : None feather : None xlsxwriter : 1.2.9 lxml.etree : 4.5.1 html5lib : 1.1 pymysql : None psycopg2 : None jinja2 : 2.11.2 IPython : 7.16.1 pandas_datareader: None bs4 : 4.9.1 bottleneck : 1.3.2 fastparquet : None gcsfs : None lxml.etree : 4.5.1 matplotlib : 3.2.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.4 pandas_gbq : None pyarrow : None pytables : None pytest : 5.4.3 pyxlsb : None s3fs : None scipy : 1.5.0 sqlalchemy : 1.3.18 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.9 numba : 0.50.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35215/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35215/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/35216
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/35216/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/35216/comments
https://api.github.com/repos/pandas-dev/pandas/issues/35216/events
https://github.com/pandas-dev/pandas/pull/35216
654,890,795
MDExOlB1bGxSZXF1ZXN0NDQ3NTI3OTU5
35,216
TST add corner cases in test_constructors
{ "avatar_url": "https://avatars.githubusercontent.com/u/35864265?v=4", "events_url": "https://api.github.com/users/r-toroxel/events{/privacy}", "followers_url": "https://api.github.com/users/r-toroxel/followers", "following_url": "https://api.github.com/users/r-toroxel/following{/other_user}", "gists_url": "https://api.github.com/users/r-toroxel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/r-toroxel", "id": 35864265, "login": "r-toroxel", "node_id": "MDQ6VXNlcjM1ODY0MjY1", "organizations_url": "https://api.github.com/users/r-toroxel/orgs", "received_events_url": "https://api.github.com/users/r-toroxel/received_events", "repos_url": "https://api.github.com/users/r-toroxel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/r-toroxel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/r-toroxel/subscriptions", "type": "User", "url": "https://api.github.com/users/r-toroxel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-07-10T16:18:31Z
2020-07-11T10:45:09Z
2020-07-11T10:44:57Z
CONTRIBUTOR
null
add two more corner cases to frame/test_constructors.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/35216/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/35216/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/35216.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/35216", "merged_at": "2020-07-11T10:44:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/35216.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35216" }