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/27713
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27713/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27713/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27713/events
https://github.com/pandas-dev/pandas/issues/27713
476,234,175
MDU6SXNzdWU0NzYyMzQxNzU=
27,713
DOC: Fix docstring quotes in pandas.PeriodIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/18401396?v=4", "events_url": "https://api.github.com/users/abkosar/events{/privacy}", "followers_url": "https://api.github.com/users/abkosar/followers", "following_url": "https://api.github.com/users/abkosar/following{/other_user}", "gists_url": "https://api.github.com/users/abkosar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abkosar", "id": 18401396, "login": "abkosar", "node_id": "MDQ6VXNlcjE4NDAxMzk2", "organizations_url": "https://api.github.com/users/abkosar/orgs", "received_events_url": "https://api.github.com/users/abkosar/received_events", "repos_url": "https://api.github.com/users/abkosar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abkosar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abkosar/subscriptions", "type": "User", "url": "https://api.github.com/users/abkosar" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
15
2019-08-02T15:22:57Z
2019-08-05T13:41:29Z
2019-08-02T21:12:01Z
CONTRIBUTOR
null
I am trying to work on fixing the docstring errors GL01 and GL02. The `validate_docstrings.py` gave a lot of them so I picked `pandas.PeriodIndex`: ``` pandas.PeriodIndex.day: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.day: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.dayofweek: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.dayofweek: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.dayofyear: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.dayofyear: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.days_in_month: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.days_in_month: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.daysinmonth: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.daysinmonth: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.hour: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.hour: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.minute: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.minute: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.month: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.month: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.quarter: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.quarter: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.second: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.second: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.week: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.week: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.weekday: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.weekday: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.weekofyear: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.weekofyear: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.PeriodIndex.year: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.PeriodIndex.year: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) ``` However I need some help navigating to the related docstrings for each of these attributes. I thought I could find the `PeriodIndex` class at `pandas.core.indexes.period` which I did but I can't find any of the attributes (so the docstrings) in that file. I am fairly new to contributing to Pandas so maybe I am making a dumb mistake or looking at the wrong place so I would appreciate some guidance. Thanks!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27713/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27713/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27714
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27714/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27714/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27714/events
https://github.com/pandas-dev/pandas/pull/27714
476,239,285
MDExOlB1bGxSZXF1ZXN0MzAzODM1NDkx
27,714
REF/CLN: maybe_downcast_to_dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-02T15:34:09Z
2019-08-04T23:12:38Z
2019-08-04T21:52:45Z
MEMBER
null
Separate out a numeric-only maybe_downcast_to_dtype_numeric from maybe_downcast_to_dtype. Avoid a giant try/except by checking the correct things up front. The non-numeric portion of maybe_downcast_to_dtype casts to datetime64, datetime64tz, or PeriodArray. Following #27683 the next step in cleaning up internals is going to be getting rid of _try_cast_result, which will involve replacing a usage of maybe_cast_to_dtype with the less-broadly-scoped maybe_cast_to_dtype_numeric.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27714/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27714/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27714.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27714", "merged_at": "2019-08-04T21:52:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27714.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27714" }
https://api.github.com/repos/pandas-dev/pandas/issues/27715
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27715/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27715/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27715/events
https://github.com/pandas-dev/pandas/pull/27715
476,243,017
MDExOlB1bGxSZXF1ZXN0MzAzODM4NDk5
27,715
TST: troubleshoot inconsistent xfails
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
8
2019-08-02T15:42:37Z
2019-08-05T14:28:35Z
2019-08-05T11:55:36Z
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/27715/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27715/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27715.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27715", "merged_at": "2019-08-05T11:55:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27715.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27715" }
https://api.github.com/repos/pandas-dev/pandas/issues/27716
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27716/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27716/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27716/events
https://github.com/pandas-dev/pandas/pull/27716
476,255,250
MDExOlB1bGxSZXF1ZXN0MzAzODQ4NDc3
27,716
pandas.PeriodIndex and pandas.DateTimeIndex docstring quotes fix
{ "avatar_url": "https://avatars.githubusercontent.com/u/18401396?v=4", "events_url": "https://api.github.com/users/abkosar/events{/privacy}", "followers_url": "https://api.github.com/users/abkosar/followers", "following_url": "https://api.github.com/users/abkosar/following{/other_user}", "gists_url": "https://api.github.com/users/abkosar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abkosar", "id": 18401396, "login": "abkosar", "node_id": "MDQ6VXNlcjE4NDAxMzk2", "organizations_url": "https://api.github.com/users/abkosar/orgs", "received_events_url": "https://api.github.com/users/abkosar/received_events", "repos_url": "https://api.github.com/users/abkosar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abkosar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abkosar/subscriptions", "type": "User", "url": "https://api.github.com/users/abkosar" }
[ { "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-02T16:11:27Z
2019-08-02T21:12:03Z
2019-08-02T21:12:01Z
CONTRIBUTOR
null
- [x] closes #27713 - [ ] 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/27716/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27716/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27716.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27716", "merged_at": "2019-08-02T21:12:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27716.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27716" }
https://api.github.com/repos/pandas-dev/pandas/issues/27717
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27717/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27717/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27717/events
https://github.com/pandas-dev/pandas/pull/27717
476,257,410
MDExOlB1bGxSZXF1ZXN0MzAzODUwMjEz
27,717
remove confusing instructions and link.
{ "avatar_url": "https://avatars.githubusercontent.com/u/14300539?v=4", "events_url": "https://api.github.com/users/ncernek/events{/privacy}", "followers_url": "https://api.github.com/users/ncernek/followers", "following_url": "https://api.github.com/users/ncernek/following{/other_user}", "gists_url": "https://api.github.com/users/ncernek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ncernek", "id": 14300539, "login": "ncernek", "node_id": "MDQ6VXNlcjE0MzAwNTM5", "organizations_url": "https://api.github.com/users/ncernek/orgs", "received_events_url": "https://api.github.com/users/ncernek/received_events", "repos_url": "https://api.github.com/users/ncernek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ncernek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ncernek/subscriptions", "type": "User", "url": "https://api.github.com/users/ncernek" }
[ { "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
3
2019-08-02T16:16:54Z
2019-08-12T21:24:56Z
2019-08-05T13:32:32Z
CONTRIBUTOR
null
- [ ] closes #27707 - [ ] 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/27717/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27717/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27717.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27717", "merged_at": "2019-08-05T13:32:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27717.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27717" }
https://api.github.com/repos/pandas-dev/pandas/issues/27718
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27718/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27718/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27718/events
https://github.com/pandas-dev/pandas/issues/27718
476,282,976
MDU6SXNzdWU0NzYyODI5NzY=
27,718
Set to_csv(index=False) by default
{ "avatar_url": "https://avatars.githubusercontent.com/u/44505908?v=4", "events_url": "https://api.github.com/users/adecourcy/events{/privacy}", "followers_url": "https://api.github.com/users/adecourcy/followers", "following_url": "https://api.github.com/users/adecourcy/following{/other_user}", "gists_url": "https://api.github.com/users/adecourcy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/adecourcy", "id": 44505908, "login": "adecourcy", "node_id": "MDQ6VXNlcjQ0NTA1OTA4", "organizations_url": "https://api.github.com/users/adecourcy/orgs", "received_events_url": "https://api.github.com/users/adecourcy/received_events", "repos_url": "https://api.github.com/users/adecourcy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/adecourcy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/adecourcy/subscriptions", "type": "User", "url": "https://api.github.com/users/adecourcy" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 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" }
6
2019-08-02T17:28:33Z
2019-12-04T01:10:59Z
2019-12-04T01:10:54Z
NONE
null
By default, the optional "index" parameter of the "to_csv" method is set to True. However, I would argue this violates the principal of least surprise. That is to say, when calling this method I, as a user, would expect that my data frame is converted into a CSV format as is, with no data added or removed that I did not explicitly add or remove myself. Adding an index column without the user specification is kind of weird, unexpected behavior. Not unlike adding a column for type of reference hashing, or dropping a random column from the data frame without the user specifying this in advance. Thus, I would argue that the "index" parameter should be set to False by default.
{ "+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/27718/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27718/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27719
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27719/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27719/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27719/events
https://github.com/pandas-dev/pandas/pull/27719
476,292,186
MDExOlB1bGxSZXF1ZXN0MzAzODc4MTAy
27,719
Removed continued parametrization of FilePathOrBuffer
{ "avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4", "events_url": "https://api.github.com/users/WillAyd/events{/privacy}", "followers_url": "https://api.github.com/users/WillAyd/followers", "following_url": "https://api.github.com/users/WillAyd/following{/other_user}", "gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillAyd", "id": 609873, "login": "WillAyd", "node_id": "MDQ6VXNlcjYwOTg3Mw==", "organizations_url": "https://api.github.com/users/WillAyd/orgs", "received_events_url": "https://api.github.com/users/WillAyd/received_events", "repos_url": "https://api.github.com/users/WillAyd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions", "type": "User", "url": "https://api.github.com/users/WillAyd" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-02T17:54:39Z
2020-01-16T00:35:08Z
2019-08-25T16:03:22Z
MEMBER
null
follow up to #27598 to simplify things a bit. I think it was a mistake to add `IO[AnyStr]` as `AnyStr` is a TypeVar and not something to actually parametrize with. The source for `IO` already does this: https://github.com/python/cpython/blob/8990ac0ab0398bfb9c62031288030fe7c630c2c7/Lib/typing.py#L1452 I'm not sure why mypy doesn't error on this. @simonjayhawkins
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27719/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27719/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27719.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27719", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27719.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27719" }
https://api.github.com/repos/pandas-dev/pandas/issues/27720
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27720/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27720/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27720/events
https://github.com/pandas-dev/pandas/pull/27720
476,315,458
MDExOlB1bGxSZXF1ZXN0MzAzODk2NjY4
27,720
BUG: fix replace_list
{ "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" } ]
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
3
2019-08-02T19:01:24Z
2019-08-05T14:44:19Z
2019-08-05T11:58:49Z
MEMBER
null
- [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/27720/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27720/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27720.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27720", "merged_at": "2019-08-05T11:58:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27720.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27720" }
https://api.github.com/repos/pandas-dev/pandas/issues/27721
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27721/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27721/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27721/events
https://github.com/pandas-dev/pandas/issues/27721
476,356,758
MDU6SXNzdWU0NzYzNTY3NTg=
27,721
problem in groupby-rank w/ multindex column
{ "avatar_url": "https://avatars.githubusercontent.com/u/5004800?v=4", "events_url": "https://api.github.com/users/bridwell/events{/privacy}", "followers_url": "https://api.github.com/users/bridwell/followers", "following_url": "https://api.github.com/users/bridwell/following{/other_user}", "gists_url": "https://api.github.com/users/bridwell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bridwell", "id": 5004800, "login": "bridwell", "node_id": "MDQ6VXNlcjUwMDQ4MDA=", "organizations_url": "https://api.github.com/users/bridwell/orgs", "received_events_url": "https://api.github.com/users/bridwell/received_events", "repos_url": "https://api.github.com/users/bridwell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bridwell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bridwell/subscriptions", "type": "User", "url": "https://api.github.com/users/bridwell" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "207de5", "default": false, "description": null, "id": ...
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
4
2019-08-02T21:08:27Z
2021-04-21T21:55:33Z
2021-04-21T21:55:33Z
NONE
null
#### Example ```python df = pd.concat({ 'a': pd.DataFrame({ 'col1': [1, 2], 'col2': [3, 4] }), 'b': pd.DataFrame({ 'col3': [5, 6], 'col4': [7, 8] }), }, axis=1) ``` <table border="1" class="dataframe"> <thead> <tr> <th></th> <th colspan="2" halign="left">a</th> <th colspan="2" halign="left">b</th> </tr> <tr> <th></th> <th>col1</th> <th>col2</th> <th>col3</th> <th>col4</th> </tr> </thead> <tbody> <tr> <th>0</th> <td>1</td> <td>3</td> <td>5</td> <td>7</td> </tr> <tr> <th>1</th> <td>2</td> <td>4</td> <td>6</td> <td>8</td> </tr> </tbody> </table> ```python df.groupby(level=0, axis=1).rank(axis=1, ascending=False, method='first') ``` **_ValueError: Shape of passed values is (4, 2), indices imply (2, 2)_** #### Problem description Should return a data frame with values indicating the rank for each row and within each upper level column. This works in 0.22.0 but in 0.24.2 it fails with the ValueError. It fails in both py 2.7 and py 3.68. #### Expected Output <table border="1" class="dataframe"> <thead> <tr> <th></th> <th colspan="2" halign="left">a</th> <th colspan="2" halign="left">b</th> </tr> <tr> <th></th> <th>col1</th> <th>col2</th> <th>col3</th> <th>col4</th> </tr> </thead> <tbody> <tr> <th>0</th> <td>2.0</td> <td>1.0</td> <td>2.0</td> <td>1.0</td> </tr> <tr> <th>1</th> <td>2.0</td> <td>1.0</td> <td>2.0</td> <td>1.0</td> </tr> </tbody> </table> #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 2.7.13.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 79 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.22.0 pytest: 3.0.5 pip: 9.0.1 setuptools: 27.2.0 Cython: 0.25.2 numpy: 1.11.3 scipy: 0.18.1 pyarrow: None xarray: None IPython: 5.1.0 sphinx: 1.5.1 patsy: 0.4.1 dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: 1.2.0 tables: 3.4.2 numexpr: 2.6.1 feather: None matplotlib: 2.0.0 openpyxl: 2.4.1 xlrd: 1.0.0 xlwt: 1.2.0 xlsxwriter: 0.9.6 lxml: 3.7.2 bs4: 4.5.3 html5lib: 1.0.1 sqlalchemy: 1.1.5 pymysql: None psycopg2: 2.7.3.2 (dt dec pq3 ext lo64) jinja2: 2.9.4 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27721/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27721/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27722
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27722/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27722/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27722/events
https://github.com/pandas-dev/pandas/issues/27722
476,362,890
MDU6SXNzdWU0NzYzNjI4OTA=
27,722
What to use instead of pd.read_msgpack/df.to_msgpack
{ "avatar_url": "https://avatars.githubusercontent.com/u/6045025?v=4", "events_url": "https://api.github.com/users/sshleifer/events{/privacy}", "followers_url": "https://api.github.com/users/sshleifer/followers", "following_url": "https://api.github.com/users/sshleifer/following{/other_user}", "gists_url": "https://api.github.com/users/sshleifer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sshleifer", "id": 6045025, "login": "sshleifer", "node_id": "MDQ6VXNlcjYwNDUwMjU=", "organizations_url": "https://api.github.com/users/sshleifer/orgs", "received_events_url": "https://api.github.com/users/sshleifer/received_events", "repos_url": "https://api.github.com/users/sshleifer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sshleifer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sshleifer/subscriptions", "type": "User", "url": "https://api.github.com/users/sshleifer" }
[]
closed
false
null
[]
null
15
2019-08-02T21:29:46Z
2021-05-03T16:20:17Z
2019-08-09T18:14:00Z
NONE
null
``` FutureWarning: to_msgpack is deprecated and will be removed in a future version. It is recommended to use pyarrow for on-the-wire transmission of pandas objects. ``` Is there a link/pointer for how to do this?
{ "+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/27722/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27722/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27723
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27723/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27723/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27723/events
https://github.com/pandas-dev/pandas/pull/27723
476,366,157
MDExOlB1bGxSZXF1ZXN0MzAzOTM4NTY5
27,723
CLN: collected cleanups from other branches
{ "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-02T21:41:51Z
2019-08-05T16:37:58Z
2019-08-05T15:52:45Z
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/27723/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27723/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27723.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27723", "merged_at": "2019-08-05T15:52:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27723.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27723" }
https://api.github.com/repos/pandas-dev/pandas/issues/27724
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27724/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27724/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27724/events
https://github.com/pandas-dev/pandas/issues/27724
476,375,251
MDU6SXNzdWU0NzYzNzUyNTE=
27,724
STYLE: pre-commit does not use flake8-comprehensions plugin
{ "avatar_url": "https://avatars.githubusercontent.com/u/5332445?v=4", "events_url": "https://api.github.com/users/jschendel/events{/privacy}", "followers_url": "https://api.github.com/users/jschendel/followers", "following_url": "https://api.github.com/users/jschendel/following{/other_user}", "gists_url": "https://api.github.com/users/jschendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jschendel", "id": 5332445, "login": "jschendel", "node_id": "MDQ6VXNlcjUzMzI0NDU=", "organizations_url": "https://api.github.com/users/jschendel/orgs", "received_events_url": "https://api.github.com/users/jschendel/received_events", "repos_url": "https://api.github.com/users/jschendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jschendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jschendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jschendel" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
0
2019-08-02T22:19:00Z
2019-08-04T21:38:53Z
2019-08-04T21:38:53Z
MEMBER
null
We use `flake8-comprehensions` as part of the CI process when linting code, and it's included in our `environment.yml` file, but it's not run as part of `pre-commit`. For a simple example, add the following line of code to a file in the codebase: ```python sum([x + 1 for x in range(3)]) ``` Then in the command line run: ```shell git add . pre-commit run flake8 ``` And the `pre-commit` check passes. However, running `flake8` from the command line (like what is done in CI) fails due to the `flake8-comprehensions` plugin being included: ```shell flake8 path/to/changed/file.py ``` Gives me the error: ```shell C407 Unnecessary list comprehension - 'sum' can take a generator. ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27724/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27724/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27725
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27725/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27725/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27725/events
https://github.com/pandas-dev/pandas/pull/27725
476,375,459
MDExOlB1bGxSZXF1ZXN0MzAzOTQ2MTY5
27,725
STYLE: Add flake8-comprehensions to pre-commit configuration
{ "avatar_url": "https://avatars.githubusercontent.com/u/5332445?v=4", "events_url": "https://api.github.com/users/jschendel/events{/privacy}", "followers_url": "https://api.github.com/users/jschendel/followers", "following_url": "https://api.github.com/users/jschendel/following{/other_user}", "gists_url": "https://api.github.com/users/jschendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jschendel", "id": 5332445, "login": "jschendel", "node_id": "MDQ6VXNlcjUzMzI0NDU=", "organizations_url": "https://api.github.com/users/jschendel/orgs", "received_events_url": "https://api.github.com/users/jschendel/received_events", "repos_url": "https://api.github.com/users/jschendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jschendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jschendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jschendel" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-02T22:19:58Z
2019-08-05T18:39:39Z
2019-08-04T21:38:54Z
MEMBER
null
- [x] closes #27724 Running `pre-commit` with this change catches the error described in the 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/27725/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27725/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27725.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27725", "merged_at": "2019-08-04T21:38:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27725.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27725" }
https://api.github.com/repos/pandas-dev/pandas/issues/27726
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27726/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27726/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27726/events
https://github.com/pandas-dev/pandas/pull/27726
476,388,181
MDExOlB1bGxSZXF1ZXN0MzAzOTU2NDQw
27,726
BUG: fix+test DTA/TDA/PA add/sub 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": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" }, { "color": "6138b...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-02T23:27:33Z
2019-08-05T14:28:54Z
2019-08-05T11:45:25Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Looking forward to doing a couple of test-cleanup passes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27726/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27726/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27726.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27726", "merged_at": "2019-08-05T11:45:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27726.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27726" }
https://api.github.com/repos/pandas-dev/pandas/issues/27727
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27727/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27727/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27727/events
https://github.com/pandas-dev/pandas/pull/27727
476,408,002
MDExOlB1bGxSZXF1ZXN0MzAzOTcxMjc4
27,727
REF: define concat classmethods in the appropriate places
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-03T02:44:17Z
2019-08-05T14:30:58Z
2019-08-05T11:54:25Z
MEMBER
null
cc @jorisvandenbossche we briefly discussed at the sprint the idea that `dtype.concat` is a weird place to define these functions. This PR takes the subset of `dtypes.concat` methods that are a) private and b) equivalent to `klass._concat_same_dtype` for some `klass` and moves the implementation to the appropriate class. The categorical one is left in place for now because a) it is public and b) it'd be a pretty big move in and of itself.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27727/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27727/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27727.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27727", "merged_at": "2019-08-05T11:54:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27727.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27727" }
https://api.github.com/repos/pandas-dev/pandas/issues/27728
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27728/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27728/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27728/events
https://github.com/pandas-dev/pandas/issues/27728
476,437,326
MDU6SXNzdWU0NzY0MzczMjY=
27,728
Unable to change normalize property of objects from to_offset()
{ "avatar_url": "https://avatars.githubusercontent.com/u/33317356?v=4", "events_url": "https://api.github.com/users/villebro/events{/privacy}", "followers_url": "https://api.github.com/users/villebro/followers", "following_url": "https://api.github.com/users/villebro/following{/other_user}", "gists_url": "https://api.github.com/users/villebro/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/villebro", "id": 33317356, "login": "villebro", "node_id": "MDQ6VXNlcjMzMzE3MzU2", "organizations_url": "https://api.github.com/users/villebro/orgs", "received_events_url": "https://api.github.com/users/villebro/received_events", "repos_url": "https://api.github.com/users/villebro/repos", "site_admin": false, "starred_url": "https://api.github.com/users/villebro/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/villebro/subscriptions", "type": "User", "url": "https://api.github.com/users/villebro" }
[]
closed
false
null
[]
null
2
2019-08-03T10:09:38Z
2019-08-03T16:37:51Z
2019-08-03T16:37:51Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python from datetime import date from pandas.tseries.frequencies import to_offset from pandas.tseries.offsets import DateOffset dt = date.today() offset = to_offset("52W") print(f"type: {type(offset)}\ndict: {offset.__dict__}") print(f"{dt} -> {dt + offset}") try: offset.normalize = True except AttributeError as ex: print(f"\n{ex}") offset = DateOffset(normalize=True, **offset.kwds) print(f"\ntype: {type(offset)}\ndict: {offset.__dict__}") print(f"{dt} -> {dt + offset}") ``` Yields ``` type: <class 'pandas.tseries.offsets.Week'> dict: {'n': 52, 'normalize': False, '_cache': {}, 'weekday': 6} 2019-08-03 -> 2020-07-26 00:00:00 DateOffset objects are immutable. type: <class 'pandas.tseries.offsets.DateOffset'> dict: {'n': 1, 'normalize': True, '_cache': {}, '_offset': relativedelta(weekday=SU), '_use_relativedelta': True, 'weekday': 6} 2019-08-03 -> 2019-08-04 00:00:00 ``` #### Problem description Since Pandas `0.24` the `DateOffset` objects are immutable. Previously it was possible to change the `normalize` property after receiving an object from `to_offset()`, but now there doesn't seem to be any mechanism for doing this. While it seems possible to create a new instance of `DateOffset` with `normalize = True`, the type of the object changes and doesn't work correctly. What is the best way of getting an object from `to_offset()` with `normalize` set to `True`? From an end-user perspective, the best solution would probably be to add a normalize attribute to the function, like so: ```python def to_offset(freq, normalize=False): ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Darwin OS-release : 18.6.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 : 0.25.0 numpy : 1.17.0 pytz : 2019.2 dateutil : 2.8.0 pip : 19.2.1 setuptools : 41.0.1 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : None sqlalchemy : None tables : None xarray : None xlrd : None xlwt : None xlsxwriter : 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/27728/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27728/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27729
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27729/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27729/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27729/events
https://github.com/pandas-dev/pandas/issues/27729
476,444,851
MDU6SXNzdWU0NzY0NDQ4NTE=
27,729
use DataFrame.style and can't get [cellstyle] as expected
{ "avatar_url": "https://avatars.githubusercontent.com/u/53602003?v=4", "events_url": "https://api.github.com/users/whatagain/events{/privacy}", "followers_url": "https://api.github.com/users/whatagain/followers", "following_url": "https://api.github.com/users/whatagain/following{/other_user}", "gists_url": "https://api.github.com/users/whatagain/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/whatagain", "id": 53602003, "login": "whatagain", "node_id": "MDQ6VXNlcjUzNjAyMDAz", "organizations_url": "https://api.github.com/users/whatagain/orgs", "received_events_url": "https://api.github.com/users/whatagain/received_events", "repos_url": "https://api.github.com/users/whatagain/repos", "site_admin": false, "starred_url": "https://api.github.com/users/whatagain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/whatagain/subscriptions", "type": "User", "url": "https://api.github.com/users/whatagain" }
[ { "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 objec...
closed
false
null
[]
null
2
2019-08-03T11:57:44Z
2021-02-10T07:23:21Z
2021-02-10T07:23:21Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here df = DataFrame(np.arange(60).reshape(15,4),columns=['a','b','c','d']) df1 = df>50 def b_color(val): color = 'red' if val ==True else '' return 'color: %s' % color h_df = df1.style.applymap(b_color) h_df._translate()['cellstyle'] ``` #### Problem description i'm using DataFrame.style and i want to extract the 'cellstyle' but the props are all showed empty the output is like this: 'cellstyle': [{'props': [], 'selector': 'row0_col0'}, {'props': [], 'selector': 'row0_col1'}, {'props': [], 'selector': 'row0_col2'}, {'props': [], 'selector': 'row0_col3'}, however, the output of h_df is normal and the color is applyed at the right position #### Expected Output #### Output of ``pd.show_versions()`` INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: AMD64 Family 21 Model 16 Stepping 1, AuthenticAMD byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.23.4 pytest: 3.2.1 pip: 9.0.1 setuptools: 36.5.0.post20170921 Cython: 0.26.1 numpy: 1.15.1 scipy: 0.19.1 pyarrow: None xarray: None IPython: 6.1.0 sphinx: 1.6.3 patsy: 0.4.1 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.2 feather: None matplotlib: 2.1.0 openpyxl: 2.4.8 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.0 bs4: 4.6.0 html5lib: 0.999999999 sqlalchemy: 1.1.13 pymysql: None psycopg2: None jinja2: 2.9.6 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27729/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27729/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27730
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27730/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27730/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27730/events
https://github.com/pandas-dev/pandas/pull/27730
476,466,122
MDExOlB1bGxSZXF1ZXN0MzA0MDA5OTQz
27,730
BUG: update dict of sheets before check
{ "avatar_url": "https://avatars.githubusercontent.com/u/5841616?v=4", "events_url": "https://api.github.com/users/Zoynels/events{/privacy}", "followers_url": "https://api.github.com/users/Zoynels/followers", "following_url": "https://api.github.com/users/Zoynels/following{/other_user}", "gists_url": "https://api.github.com/users/Zoynels/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Zoynels", "id": 5841616, "login": "Zoynels", "node_id": "MDQ6VXNlcjU4NDE2MTY=", "organizations_url": "https://api.github.com/users/Zoynels/orgs", "received_events_url": "https://api.github.com/users/Zoynels/received_events", "repos_url": "https://api.github.com/users/Zoynels/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Zoynels/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Zoynels/subscriptions", "type": "User", "url": "https://api.github.com/users/Zoynels" }
[ { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
null
[]
null
9
2019-08-03T16:14:33Z
2019-11-07T21:09:43Z
2019-11-07T21:09:42Z
NONE
null
```python import pandas as pd df = pd.DataFrame( { "id": ["1", "2", "3", "4", "5"], "Feature1": ["A", "C", "E", "G", "I"], "Feature2": ["B", "D", "F", "H", "J"], }, columns=["id", "Feature1", "Feature2"], ) writer = pd.ExcelWriter(path="testOutput.xlsx", mode="a", engine="openpyxl") df.to_excel(writer, sheet_name="Main") writer.save() writer.close() ``` #### Problem description I have excel file with existing sheet "Main", and if I try to append some dataframe to this sheet, on first df.to_excel() pandas creates new sheet with name "Main1" and saves information to this new sheet. But if once to_excel(), than pandas add new sheet to dictionary and saves to existing sheet. So, on start appen pandas don't know nothing about existing sheets, and check in **_openpyxl.py** file don't realy work ```python if sheet_name in self.sheets: wks = self.sheets[sheet_name] else: wks = self.book.create_sheet() wks.title = sheet_name self.sheets[sheet_name] = wks ``` so I add new code to update sheetname-list before check. - [x] without issue - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] remove the different (ambiguity) behavior of the function in the case of the existence of a sheet of the book. When the first time the DataFrame is written to the sheet, a new sheet is created (moreover, if we try to write to the sheet with the name "main" which alreary exist in the book, now sheet "main1" will be created. And we try to write another DataFrame inside the current function on the same sheet "main", function again wrote to the sheet "main1", although we asked it to write to the sheet "main". So now if sheet exist then it will write to existing sheet, if doesn't exist it will create sheet with name which we want.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27730/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27730/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27730.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27730", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27730.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27730" }
https://api.github.com/repos/pandas-dev/pandas/issues/27731
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27731/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27731/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27731/events
https://github.com/pandas-dev/pandas/issues/27731
476,473,015
MDU6SXNzdWU0NzY0NzMwMTU=
27,731
Object dtype for int64 and Int64 values in column
{ "avatar_url": "https://avatars.githubusercontent.com/u/5841616?v=4", "events_url": "https://api.github.com/users/Zoynels/events{/privacy}", "followers_url": "https://api.github.com/users/Zoynels/followers", "following_url": "https://api.github.com/users/Zoynels/following{/other_user}", "gists_url": "https://api.github.com/users/Zoynels/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Zoynels", "id": 5841616, "login": "Zoynels", "node_id": "MDQ6VXNlcjU4NDE2MTY=", "organizations_url": "https://api.github.com/users/Zoynels/orgs", "received_events_url": "https://api.github.com/users/Zoynels/received_events", "repos_url": "https://api.github.com/users/Zoynels/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Zoynels/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Zoynels/subscriptions", "type": "User", "url": "https://api.github.com/users/Zoynels" }
[]
closed
false
null
[]
null
1
2019-08-03T17:34:27Z
2019-08-04T23:15:39Z
2019-08-04T23:15:39Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np df1 = pd.DataFrame({"id": ["1", "2", "3", "4", "5"]}, columns=["id"]).astype('float64').astype('int64') df2 = pd.DataFrame({"id": ["1", "2", "3", "4", "5"]}, columns=["id"]).astype('float64').astype('Int64') df3 = pd.concat([df1, df2], axis="index", sort=False) for col in df3.columns: for i in df3[col]: print(f"[{i}] has type: {type(i)}") print("df1: " + str(df1['id'].dtype)) print("df2: " + str(df2['id'].dtype)) print("df3: " + str(df3['id'].dtype)) ``` #### Problem description What is the difference between "Int64" and "int64"? After concat it has "object" dtype. #### Real Output ```python [1] has type: <class 'int'> [2] has type: <class 'int'> [3] has type: <class 'int'> [4] has type: <class 'int'> [5] has type: <class 'int'> [1] has type: <class 'int'> [2] has type: <class 'int'> [3] has type: <class 'int'> [4] has type: <class 'int'> [5] has type: <class 'int'> df1: int64 df2: Int64 df3: object ``` #### Expected Output ```python [1] has type: <class 'int'> [2] has type: <class 'int'> [3] has type: <class 'int'> [4] has type: <class 'int'> [5] has type: <class 'int'> [1] has type: <class 'int'> [2] has type: <class 'int'> [3] has type: <class 'int'> [4] has type: <class 'int'> [5] has type: <class 'int'> df1: int64 df2: int64 df3: int64 ``` or ```python [1] has type: <class 'numpy.int64'> [2] has type: <class 'numpy.int64'> [3] has type: <class 'numpy.int64'> [4] has type: <class 'numpy.int64'> [5] has type: <class 'numpy.int64'> [1] has type: <class 'numpy.int64'> [2] has type: <class 'numpy.int64'> [3] has type: <class 'numpy.int64'> [4] has type: <class 'numpy.int64'> [5] has type: <class 'numpy.int64'> df1: Int64 df2: Int64 df3: Int64 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 0.25.0 numpy : 1.16.4 pytz : 2019.1 dateutil : 2.8.0 pip : 19.0.3 setuptools : 41.0.0 Cython : None pytest : 5.0.1 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.1.8 lxml.etree : 4.3.4 html5lib : None pymysql : 0.9.3 psycopg2 : 2.8.3 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : 7.6.1 pandas_datareader: None bs4 : 4.7.1 bottleneck : 1.2.1 fastparquet : 0.3.1 gcsfs : 0.3.0 lxml.etree : 4.3.4 matplotlib : 3.1.1 numexpr : 2.6.9 odfpy : None openpyxl : 2.6.2 pandas_gbq : None pyarrow : 0.14.0 pytables : None s3fs : None scipy : 1.3.0 sqlalchemy : 1.3.5 tables : None xarray : 0.12.3 xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.1.8 </details> If there are no difference between them, thed dtype recognize uncorrecter, but if it is different, then may be need to change "name", case sensitive type I think is very bugy.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27731/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27731/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27732
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27732/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27732/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27732/events
https://github.com/pandas-dev/pandas/pull/27732
476,481,955
MDExOlB1bGxSZXF1ZXN0MzA0MDIwNTUx
27,732
TYPING: more type hints for io.common
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
0
2019-08-03T19:25:40Z
2019-08-30T15:26:28Z
2019-08-30T15:26:28Z
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/27732/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27732/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27732.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27732", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27732.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27732" }
https://api.github.com/repos/pandas-dev/pandas/issues/27733
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27733/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27733/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27733/events
https://github.com/pandas-dev/pandas/pull/27733
476,486,636
MDExOlB1bGxSZXF1ZXN0MzA0MDIzNzYy
27,733
BUG: fix to_datetime(dti, utc=True)
{ "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": "5319e7", "default": false, "description": "Timezone ...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
2
2019-08-03T20:26:27Z
2019-08-05T21:09:30Z
2019-08-05T20:29:17Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ATM `to_datetime(naive_dti, utc=True)` returns naive incorrect, same for naive `DatetimeArray`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27733/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27733/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27733.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27733", "merged_at": "2019-08-05T20:29:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27733.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27733" }
https://api.github.com/repos/pandas-dev/pandas/issues/27734
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27734/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27734/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27734/events
https://github.com/pandas-dev/pandas/pull/27734
476,488,883
MDExOlB1bGxSZXF1ZXN0MzA0MDI1MTc3
27,734
TYPING: type hints for io.formats.latex
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-03T20:58:05Z
2019-08-05T09:34:26Z
2019-08-04T21:21:56Z
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/27734/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27734/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27734.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27734", "merged_at": "2019-08-04T21:21:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27734.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27734" }
https://api.github.com/repos/pandas-dev/pandas/issues/27735
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27735/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27735/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27735/events
https://github.com/pandas-dev/pandas/pull/27735
476,502,064
MDExOlB1bGxSZXF1ZXN0MzA0MDMzNzky
27,735
REF: separate out invalid ops
{ "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-04T00:35:40Z
2019-08-05T16:38:29Z
2019-08-05T15:52:11Z
MEMBER
null
We moved ops.py to `ops.__init__` a while back, still need to get the bulk of it out of `__init__`. This separates out templated invalid operations, which are the main things that outside modules import (this helps us move towards getting rid of the `import pandas as pd` in the main 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/27735/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27735/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27735.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27735", "merged_at": "2019-08-05T15:52:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27735.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27735" }
https://api.github.com/repos/pandas-dev/pandas/issues/27736
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27736/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27736/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27736/events
https://github.com/pandas-dev/pandas/pull/27736
476,517,212
MDExOlB1bGxSZXF1ZXN0MzA0MDQzNjg3
27,736
REF: pandas/core/window.py into multiple files
{ "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": "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": "d4c5f9", "default": false, "de...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
7
2019-08-04T05:33:41Z
2019-08-07T16:53:20Z
2019-08-07T13:32:48Z
MEMBER
null
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Splits `pandas/core/window.py` into more logical division of: `pandas/core/window/rolling.py` `pandas/core/window/expanding.py` `pandas/core/window/ewm.py` `pandas/core/window/common.py`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27736/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27736/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27736.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27736", "merged_at": "2019-08-07T13:32:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27736.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27736" }
https://api.github.com/repos/pandas-dev/pandas/issues/27737
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27737/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27737/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27737/events
https://github.com/pandas-dev/pandas/issues/27737
476,536,749
MDU6SXNzdWU0NzY1MzY3NDk=
27,737
to_csv and read_csv return inconsistent result when value contains \r
{ "avatar_url": "https://avatars.githubusercontent.com/u/13927774?v=4", "events_url": "https://api.github.com/users/KaitoHH/events{/privacy}", "followers_url": "https://api.github.com/users/KaitoHH/followers", "following_url": "https://api.github.com/users/KaitoHH/following{/other_user}", "gists_url": "https://api.github.com/users/KaitoHH/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/KaitoHH", "id": 13927774, "login": "KaitoHH", "node_id": "MDQ6VXNlcjEzOTI3Nzc0", "organizations_url": "https://api.github.com/users/KaitoHH/orgs", "received_events_url": "https://api.github.com/users/KaitoHH/received_events", "repos_url": "https://api.github.com/users/KaitoHH/repos", "site_admin": false, "starred_url": "https://api.github.com/users/KaitoHH/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/KaitoHH/subscriptions", "type": "User", "url": "https://api.github.com/users/KaitoHH" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 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
2019-08-04T10:10:59Z
2020-12-13T16:46:32Z
2020-12-13T16:45:42Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python dff = pd.DataFrame(data={'a':['a1\r','a2'],'b':['b1','b2']}) print("===BEFORE SAVE===") print(dff) dff.to_csv('test.csv', index=False) print("===AFTER SAVE===") print(pd.read_csv('test.csv')) ``` The result will be ``` ===BEFORE SAVE=== a b 0 a1\r b1 1 a2 b2 ===AFTER SAVE=== a b 0 a1 NaN 1 NaN b1 2 a2 b2 ``` #### Problem description The problem can be resolved by adding `quoting=csv.QUOTE_NONNUMERIC` option, but it seems like a bug under default parameters of `to_csv`. #### Expected Output ``` ===BEFORE SAVE=== a b 0 a1\r b1 1 a2 b2 ===AFTER SAVE=== a b 0 a1\r b1 1 a2 b2 ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-151-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.6.3 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.13 numpy: 1.16.4 scipy: 1.3.0 pyarrow: None xarray: None IPython: 7.5.0 sphinx: 2.1.2 patsy: None dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.1.0 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: 4.8.0 html5lib: None sqlalchemy: 1.3.5 pymysql: None psycopg2: None jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27737/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27737/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27738
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27738/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27738/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27738/events
https://github.com/pandas-dev/pandas/pull/27738
476,541,199
MDExOlB1bGxSZXF1ZXN0MzA0MDU5MTg5
27,738
DOC: update docstrings following refactor of buffer handling
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas ob...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-04T11:08:54Z
2019-08-05T09:35:04Z
2019-08-04T21:28:23Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/pull/27598#discussion_r310128723
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27738/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27738/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27738.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27738", "merged_at": "2019-08-04T21:28:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27738.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27738" }
https://api.github.com/repos/pandas-dev/pandas/issues/27739
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27739/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27739/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27739/events
https://github.com/pandas-dev/pandas/pull/27739
476,568,336
MDExOlB1bGxSZXF1ZXN0MzA0MDc3OTk4
27,739
BUG: fix+test PA+all-NaT TDA
{ "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": "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": "5319e7"...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-04T16:05:31Z
2019-08-04T23:11:29Z
2019-08-04T21:40:45Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry In conjunction with one more branch coming up, we're going to simplify the tar out of Series arithmetic ops.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27739/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27739/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27739.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27739", "merged_at": "2019-08-04T21:40:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27739.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27739" }
https://api.github.com/repos/pandas-dev/pandas/issues/27740
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27740/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27740/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27740/events
https://github.com/pandas-dev/pandas/pull/27740
476,570,361
MDExOlB1bGxSZXF1ZXN0MzA0MDc5MzQw
27,740
BUG: Fix NaT +/- DTA/TDA
{ "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": "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": "5319e7"...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-04T16:28:31Z
2019-08-04T23:08:43Z
2019-08-04T23:01:03Z
MEMBER
null
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry After this bugfix, we can change all existing uses of `dispatch_to_index_op` in `core.ops.__init__` to use `dispatch_to_extension_op`. Once we do that, we can collapse ~50 lines of typechecking-dispatching code to all use `dispatch_to_extension_op`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27740/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27740/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27740.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27740", "merged_at": "2019-08-04T23:01:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27740.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27740" }
https://api.github.com/repos/pandas-dev/pandas/issues/27741
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27741/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27741/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27741/events
https://github.com/pandas-dev/pandas/pull/27741
476,588,758
MDExOlB1bGxSZXF1ZXN0MzA0MDkxODM1
27,741
CLN: deprivatize names in pd.core.common
{ "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" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-04T20:06:22Z
2019-08-04T21:26:47Z
2019-08-04T21:26:43Z
CONTRIBUTOR
null
Some clean-up, as these functions don't need to start with a "_".
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27741/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27741/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27741.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27741", "merged_at": "2019-08-04T21:26:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27741.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27741" }
https://api.github.com/repos/pandas-dev/pandas/issues/27742
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27742/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27742/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27742/events
https://github.com/pandas-dev/pandas/pull/27742
476,598,075
MDExOlB1bGxSZXF1ZXN0MzA0MDk4MTgw
27,742
Backport PR #27712 on branch 0.25.x (BUG: partial string indexing with scalar)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "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": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-04T21:55:22Z
2019-08-05T06:35:59Z
2019-08-05T06:35:59Z
NONE
null
Backport PR #27712: BUG: partial string indexing with scalar
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27742/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27742/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27742.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27742", "merged_at": "2019-08-05T06:35:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27742.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27742" }
https://api.github.com/repos/pandas-dev/pandas/issues/27743
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27743/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27743/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27743/events
https://github.com/pandas-dev/pandas/pull/27743
476,598,367
MDExOlB1bGxSZXF1ZXN0MzA0MDk4Mzcy
27,743
Backport PR #27702 on branch 0.25.x (BUG: Concatenation warning still appears with sort=False)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "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": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-04T21:59:22Z
2019-08-05T06:35:41Z
2019-08-05T06:35:41Z
NONE
null
Backport PR #27702: BUG: Concatenation warning still appears with sort=False
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27743/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27743/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27743.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27743", "merged_at": "2019-08-05T06:35:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27743.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27743" }
https://api.github.com/repos/pandas-dev/pandas/issues/27744
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27744/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27744/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27744/events
https://github.com/pandas-dev/pandas/issues/27744
476,604,631
MDU6SXNzdWU0NzY2MDQ2MzE=
27,744
DEPR: remove Index.is_all_dates?
{ "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": "5319e7", "default": false, "description": "Functiona...
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
2019-08-04T23:15:04Z
2020-09-30T02:17:40Z
2020-09-30T02:17:40Z
MEMBER
null
xref #27712
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27744/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27744/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27745
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27745/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27745/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27745/events
https://github.com/pandas-dev/pandas/issues/27745
476,604,719
MDU6SXNzdWU0NzY2MDQ3MTk=
27,745
DEPR: remove alias of Categorical.take_nd to Categorical.take
{ "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": "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
0
2019-08-04T23:15:58Z
2019-11-29T22:39:28Z
2019-11-29T22:39:28Z
MEMBER
null
xref #27723
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27745/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27745/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27746
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27746/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27746/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27746/events
https://github.com/pandas-dev/pandas/pull/27746
476,604,855
MDExOlB1bGxSZXF1ZXN0MzA0MTAyNzYw
27,746
CLN: Move base.StringMixin to computations.common
{ "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" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
3
2019-08-04T23:17:33Z
2019-08-05T13:25:11Z
2019-08-05T11:41:53Z
CONTRIBUTOR
null
``StringMixin`` should be removed, but I can't figure out how to remove it without breaking tests, so this moves ``StringMixin`` to core.computation, which is the only module, where it is currently used. This makes ``core.base.py`` a bit 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/27746/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27746/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27746.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27746", "merged_at": "2019-08-05T11:41:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27746.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27746" }
https://api.github.com/repos/pandas-dev/pandas/issues/27747
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27747/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27747/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27747/events
https://github.com/pandas-dev/pandas/pull/27747
476,607,364
MDExOlB1bGxSZXF1ZXN0MzA0MTA0NTI0
27,747
REF: combine dispatch_to_index_op into dispatch_to_extension_op
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "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...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-04T23:48:15Z
2019-08-05T14:29:57Z
2019-08-05T11:44:37Z
MEMBER
null
Took a couple of preliminaries, but now we can merge these two together and we're within striking distance of being able to collapse all of the Series ops into much simpler functions.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27747/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27747/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27747.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27747", "merged_at": "2019-08-05T11:44:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27747.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27747" }
https://api.github.com/repos/pandas-dev/pandas/issues/27748
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27748/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27748/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27748/events
https://github.com/pandas-dev/pandas/issues/27748
476,608,876
MDU6SXNzdWU0NzY2MDg4NzY=
27,748
Reference docs: Nearly empty page for pandas.DataFrame.plot
{ "avatar_url": "https://avatars.githubusercontent.com/u/703084?v=4", "events_url": "https://api.github.com/users/vlbrown/events{/privacy}", "followers_url": "https://api.github.com/users/vlbrown/followers", "following_url": "https://api.github.com/users/vlbrown/following{/other_user}", "gists_url": "https://api.github.com/users/vlbrown/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vlbrown", "id": 703084, "login": "vlbrown", "node_id": "MDQ6VXNlcjcwMzA4NA==", "organizations_url": "https://api.github.com/users/vlbrown/orgs", "received_events_url": "https://api.github.com/users/vlbrown/received_events", "repos_url": "https://api.github.com/users/vlbrown/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vlbrown/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vlbrown/subscriptions", "type": "User", "url": "https://api.github.com/users/vlbrown" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
3
2019-08-05T00:05:01Z
2020-01-22T08:43:23Z
2020-01-22T08:43:23Z
NONE
null
The web page https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.html is essentially empty. It should, instead, include the content from https://pandas.pydata.org/pandas-docs/version/0.23/generated/pandas.DataFrame.plot.html ![Screen Shot 2019-08-04 at 17 03 33](https://user-images.githubusercontent.com/703084/62431177-e05f2100-b6d9-11e9-880e-a06dbf09fe0a.png) ![Screen Shot 2019-08-04 at 17 03 51](https://user-images.githubusercontent.com/703084/62431178-e523d500-b6d9-11e9-9ede-693d17a92a88.png)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27748/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27748/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27749
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27749/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27749/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27749/events
https://github.com/pandas-dev/pandas/issues/27749
476,643,316
MDU6SXNzdWU0NzY2NDMzMTY=
27,749
to_csv() and read_csv() do not preserve dtype for a column with integer values but whose original dtype is `object`.
{ "avatar_url": "https://avatars.githubusercontent.com/u/53719251?v=4", "events_url": "https://api.github.com/users/svadali1/events{/privacy}", "followers_url": "https://api.github.com/users/svadali1/followers", "following_url": "https://api.github.com/users/svadali1/following{/other_user}", "gists_url": "https://api.github.com/users/svadali1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/svadali1", "id": 53719251, "login": "svadali1", "node_id": "MDQ6VXNlcjUzNzE5MjUx", "organizations_url": "https://api.github.com/users/svadali1/orgs", "received_events_url": "https://api.github.com/users/svadali1/received_events", "repos_url": "https://api.github.com/users/svadali1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/svadali1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/svadali1/subscriptions", "type": "User", "url": "https://api.github.com/users/svadali1" }
[ { "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": "0052cc", "...
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
2019-08-05T03:49:19Z
2019-08-08T11:54:06Z
2019-08-08T11:54:05Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import csv import pandas as pd data_dict = {'visitor_id': [123, 456], 'name': ['John Doe', 'Jane Doe']} data_df = pd.DataFrame(data_dict) data_df['visitor_id'] = data_df['visitor_id'].astype(str) # Original dtype for visitor_id is object print(data_df.dtypes) # dtype for visitor_id is int64 when data file is read back using to_csv() data_df.to_csv('./data_file.csv', index=False) read_data_df = pd.read_csv('./data_file.csv') print(read_data_df.dtypes) # dtype for visitor_id is float64 when data file is read back using to_csv() # with csv.QUOTE_NONNUMERIC data_df.to_csv('./data_file.csv', index=False, quoting=csv.QUOTE_NONNUMERIC) read_data_df = pd.read_csv('./data_file.csv', quoting=csv.QUOTE_NONNUMERIC) print(read_data_df.dtypes) ``` #### Problem description When a Pandas dataframe has a column with integer values but whose dtype is actually `object`, using `to_csv()` and then reading back the csv file using `read_csv()` does not preserve the column's dtype. I have not seen a similar issue posted before (may have missed in my search). I am on Pandas 0.23 and upgrading to pandas 0.25 does not solve the issue. #### Expected Output The dtype for a column should be preserved for columns which have integer values but with dtype `object`. #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: None LOCALE: en_US.UTF-8 pandas: 0.24.1 pytest: 4.3.1 pip: 19.0.1 setuptools: 40.7.3 Cython: 0.28.2 numpy: 1.15.4 scipy: 1.2.0 pyarrow: 0.11.1 xarray: None IPython: 7.2.0 sphinx: 1.7.4 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.4.3 numexpr: 2.6.5 feather: None matplotlib: 3.0.2 openpyxl: 2.5.3 xlrd: 1.1.0 xlwt: 1.2.0 xlsxwriter: 1.0.4 lxml.etree: 4.2.1 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.18 pymysql: 0.9.3 psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: 0.2.1 fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27749/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27749/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27750
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27750/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27750/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27750/events
https://github.com/pandas-dev/pandas/issues/27750
476,761,313
MDU6SXNzdWU0NzY3NjEzMTM=
27,750
Suppress UnicodeEncodeError when executing to_csv method
{ "avatar_url": "https://avatars.githubusercontent.com/u/795197?v=4", "events_url": "https://api.github.com/users/shigemk2/events{/privacy}", "followers_url": "https://api.github.com/users/shigemk2/followers", "following_url": "https://api.github.com/users/shigemk2/following{/other_user}", "gists_url": "https://api.github.com/users/shigemk2/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shigemk2", "id": 795197, "login": "shigemk2", "node_id": "MDQ6VXNlcjc5NTE5Nw==", "organizations_url": "https://api.github.com/users/shigemk2/orgs", "received_events_url": "https://api.github.com/users/shigemk2/received_events", "repos_url": "https://api.github.com/users/shigemk2/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shigemk2/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shigemk2/subscriptions", "type": "User", "url": "https://api.github.com/users/shigemk2" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "5319e7", "default": false, "description": "read_csv...
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" }
7
2019-08-05T09:46:01Z
2021-09-12T15:08:02Z
2021-09-12T15:08:02Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # error pattern import pandas as pd unicode_data = [["key", "\u070a"]] df = pd.DataFrame(unicode_data) df.to_csv("./test.csv", encoding="cp932") # UnicodeEncodeError: 'cp932' codec can't encode character '\u070a' in position 6: illegal multibyte sequence ``` ```python # good pattern import pandas as pd unicode_data = [["key", "\u070a"]] df = pd.DataFrame(unicode_data) with open("./test.csv", mode="w", encoding="cp932", errors="ignore") as f: df.to_csv(f) ``` #### Problem description UnicodeEncodeError occurs when executing to_csv with eoncode parameter SHIFT-JIS or cp932. We are able to avoid this error using `with open`(good pattern), this code is redundant. So I want to suppress UnicodeEncodeError with to_csv's parameter. #### Expected Output ```python # good pattern import pandas as pd unicode_data = [["key", "\u070a"]] df = pd.DataFrame(unicode_data) df.to_csv("./test.csv", encoding="cp932", ignore_error=True) ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.2.final.0 python-bits : 64 OS : Darwin OS-release : 18.6.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : ja_JP.UTF-8 LOCALE : ja_JP.UTF-8 pandas : 0.25.0 numpy : 1.16.2 pytz : 2018.9 dateutil : 2.8.0 pip : 19.0.3 setuptools : 40.8.0 Cython : None pytest : 4.3.1 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 : 2.6.1 pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : None sqlalchemy : 1.3.1 tables : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : 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/27750/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27750/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27751
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27751/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27751/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27751/events
https://github.com/pandas-dev/pandas/issues/27751
476,808,222
MDU6SXNzdWU0NzY4MDgyMjI=
27,751
No way of keeping groupby column with ffill/bfill/pad
{ "avatar_url": "https://avatars.githubusercontent.com/u/41048?v=4", "events_url": "https://api.github.com/users/goriccardo/events{/privacy}", "followers_url": "https://api.github.com/users/goriccardo/followers", "following_url": "https://api.github.com/users/goriccardo/following{/other_user}", "gists_url": "https://api.github.com/users/goriccardo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/goriccardo", "id": 41048, "login": "goriccardo", "node_id": "MDQ6VXNlcjQxMDQ4", "organizations_url": "https://api.github.com/users/goriccardo/orgs", "received_events_url": "https://api.github.com/users/goriccardo/received_events", "repos_url": "https://api.github.com/users/goriccardo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/goriccardo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/goriccardo/subscriptions", "type": "User", "url": "https://api.github.com/users/goriccardo" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "AD7FA8", "default": false, "description": null, "id": ...
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" }
8
2019-08-05T11:31:46Z
2019-08-05T15:34:52Z
2019-08-05T12:55:35Z
NONE
null
```python df = pd.DataFrame(0, index=[1,2,3,4], columns=['a', 'b', 'c']) # Starting from 0.25 groupby pad behaves like other groupby functions in removing the grouping column df.groupby(df.a).mean() b c a 0 0 0 df.groupby(df.a).pad() b c 1 0 0 2 0 0 3 0 0 4 0 0 # However for other functions it is possible to keep the group column using as_index=False df.groupby(df.a, as_index=False).mean() a b c 0 0 0 0 # For ffill/bfill/pad instead the keyword as_index does not help as the column is not being used as the index anyway df.groupby(df.a, as_index=False).pad() b c 1 0 0 2 0 0 3 0 0 4 0 0 # There is no way of keeping the column, except creating a useless copy of the column series df.groupby(df.a.copy()).pad() a b c 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 ``` #### Problem description Starting from 0.25 ffill behaves like other groupby functions in removing the group column. As far as I understand there is no non-hacky way of getting the old behaviour back. This is not consistent with what happens with other functions where the keyword argument as_index can be used to keep the grouping column. The only way of having the old behaviour is to create a copy of the column. However this whole thing of view-dependent-behaviour is not only very confusing (at least to me) but it is also inefficient as it requires a useless copy. Moreover it is not a backward compatible solution. I would suggest to either add a keep_group_columns that works consistently with all groupy functions or to add a special keyword only for groupby functions that keep the original index.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27751/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27751/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27752
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27752/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27752/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27752/events
https://github.com/pandas-dev/pandas/pull/27752
476,818,004
MDExOlB1bGxSZXF1ZXN0MzA0MjY4NDA1
27,752
Backport PR #27715 on branch 0.25.x (TST: troubleshoot inconsistent xfails)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-05T11:55:58Z
2019-08-05T12:56:32Z
2019-08-05T12:56:32Z
NONE
null
Backport PR #27715: TST: troubleshoot inconsistent xfails
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27752/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27752/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27752.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27752", "merged_at": "2019-08-05T12:56:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27752.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27752" }
https://api.github.com/repos/pandas-dev/pandas/issues/27753
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27753/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27753/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27753/events
https://github.com/pandas-dev/pandas/pull/27753
476,819,305
MDExOlB1bGxSZXF1ZXN0MzA0MjY5NDcx
27,753
Backport PR #27720 on branch 0.25.x (BUG: fix replace_list)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-05T11:58:58Z
2019-08-05T12:56:44Z
2019-08-05T12:56:44Z
NONE
null
Backport PR #27720: BUG: fix replace_list
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27753/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27753/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27753.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27753", "merged_at": "2019-08-05T12:56:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27753.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27753" }
https://api.github.com/repos/pandas-dev/pandas/issues/27754
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27754/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27754/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27754/events
https://github.com/pandas-dev/pandas/pull/27754
476,826,021
MDExOlB1bGxSZXF1ZXN0MzA0Mjc0OTQ3
27,754
Slightly rephrase SPSS doc
{ "avatar_url": "https://avatars.githubusercontent.com/u/4377312?v=4", "events_url": "https://api.github.com/users/cbrnr/events{/privacy}", "followers_url": "https://api.github.com/users/cbrnr/followers", "following_url": "https://api.github.com/users/cbrnr/following{/other_user}", "gists_url": "https://api.github.com/users/cbrnr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cbrnr", "id": 4377312, "login": "cbrnr", "node_id": "MDQ6VXNlcjQzNzczMTI=", "organizations_url": "https://api.github.com/users/cbrnr/orgs", "received_events_url": "https://api.github.com/users/cbrnr/received_events", "repos_url": "https://api.github.com/users/cbrnr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cbrnr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cbrnr/subscriptions", "type": "User", "url": "https://api.github.com/users/cbrnr" }
[ { "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-05T12:15:09Z
2019-08-05T13:29:11Z
2019-08-05T13:27:42Z
CONTRIBUTOR
null
As a follow-up to #27594 (which I couldn't review in due time), here are some minor improvements for the SPSS user guide text.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27754/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27754/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27754.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27754", "merged_at": "2019-08-05T13:27:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27754.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27754" }
https://api.github.com/repos/pandas-dev/pandas/issues/27755
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27755/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27755/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27755/events
https://github.com/pandas-dev/pandas/pull/27755
476,834,537
MDExOlB1bGxSZXF1ZXN0MzA0MjgxODIy
27,755
BUG: Fix numpy boolean subtraction error in Series.diff
{ "avatar_url": "https://avatars.githubusercontent.com/u/7977855?v=4", "events_url": "https://api.github.com/users/Unprocessable/events{/privacy}", "followers_url": "https://api.github.com/users/Unprocessable/followers", "following_url": "https://api.github.com/users/Unprocessable/following{/other_user}", "gists_url": "https://api.github.com/users/Unprocessable/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Unprocessable", "id": 7977855, "login": "Unprocessable", "node_id": "MDQ6VXNlcjc5Nzc4NTU=", "organizations_url": "https://api.github.com/users/Unprocessable/orgs", "received_events_url": "https://api.github.com/users/Unprocessable/received_events", "repos_url": "https://api.github.com/users/Unprocessable/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Unprocessable/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Unprocessable/subscriptions", "type": "User", "url": "https://api.github.com/users/Unprocessable" }
[]
closed
false
null
[]
null
11
2019-08-05T12:34:44Z
2019-09-30T11:25:24Z
2019-09-02T18:44:21Z
CONTRIBUTOR
null
This fixes #27755, for more than three years now NumPy has not allowed the subtraction of boolean series. TypeError Traceback (most recent call last) <ipython-input-46-3da3b949c6bd> in <module> 1 data = pd.Series([0,-1,-2,-3,-4,-3,-2,-1,0,-1,-1,0,-1,-2,-3,-2,0]) 2 filtered = data.between(-2,0, inclusive = True) ----> 3 filtered.diff() 4 print(filtered) ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\series.py in diff(self, periods) 2191 dtype: float64 2192 """ -> 2193 result = algorithms.diff(com.values_from_object(self), periods) 2194 return self._constructor(result, index=self.index).__finalize__(self) 2195 ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\algorithms.py in diff(arr, n, axis) 1817 out_arr[res_indexer] = result 1818 else: -> 1819 out_arr[res_indexer] = arr[res_indexer] - arr[lag_indexer] 1820 1821 if is_timedelta: TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead. - [x] closes #17294 - [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/27755/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27755/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27755.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27755", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27755.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27755" }
https://api.github.com/repos/pandas-dev/pandas/issues/27756
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27756/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27756/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27756/events
https://github.com/pandas-dev/pandas/issues/27756
476,854,099
MDU6SXNzdWU0NzY4NTQwOTk=
27,756
Error reading parquet from s3 with s3fs >= 0.3.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/6295246?v=4", "events_url": "https://api.github.com/users/CJStadler/events{/privacy}", "followers_url": "https://api.github.com/users/CJStadler/followers", "following_url": "https://api.github.com/users/CJStadler/following{/other_user}", "gists_url": "https://api.github.com/users/CJStadler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CJStadler", "id": 6295246, "login": "CJStadler", "node_id": "MDQ6VXNlcjYyOTUyNDY=", "organizations_url": "https://api.github.com/users/CJStadler/orgs", "received_events_url": "https://api.github.com/users/CJStadler/received_events", "repos_url": "https://api.github.com/users/CJStadler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CJStadler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CJStadler/subscriptions", "type": "User", "url": "https://api.github.com/users/CJStadler" }
[ { "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": "0e8a16", "...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
13
2019-08-05T13:17:11Z
2019-08-12T19:10:50Z
2019-08-12T19:10:50Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.read_parquet('s3://my-bucket/df.parquet') ``` Raises ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/.../pandas/io/parquet.py", line 294, in read_parquet return impl.read(path, columns=columns, **kwargs) File "/.../pandas/io/parquet.py", line 192, in read parquet_file = self.api.ParquetFile(path, open_with=s3.s3.open) AttributeError: 'S3File' object has no attribute 's3' ``` #### Problem description In version 0.3.0 s3fs removed the `S3File.s3` attribute. It is replaced by `S3File.fs` (which is inherited from `fsspec.AbstractBufferedFile.fs`. Should pandas check the s3fs version and call the right attribute based on that? #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Darwin OS-release : 18.6.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 0.25.0 numpy : 1.17.0 pytz : 2019.1 dateutil : 2.8.0 pip : 19.2.1 setuptools : 41.0.1 Cython : None pytest : 4.4.1 hypothesis : None sphinx : 2.1.2 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.3 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : 0.3.1 gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None s3fs : 0.3.1 scipy : 1.3.0 sqlalchemy : 1.3.5 tables : None xarray : None xlrd : None xlwt : None xlsxwriter : 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/27756/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27756/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27757
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27757/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27757/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27757/events
https://github.com/pandas-dev/pandas/pull/27757
476,873,607
MDExOlB1bGxSZXF1ZXN0MzA0MzEzMzg4
27,757
Added diff testing file
{ "avatar_url": "https://avatars.githubusercontent.com/u/7977855?v=4", "events_url": "https://api.github.com/users/Unprocessable/events{/privacy}", "followers_url": "https://api.github.com/users/Unprocessable/followers", "following_url": "https://api.github.com/users/Unprocessable/following{/other_user}", "gists_url": "https://api.github.com/users/Unprocessable/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Unprocessable", "id": 7977855, "login": "Unprocessable", "node_id": "MDQ6VXNlcjc5Nzc4NTU=", "organizations_url": "https://api.github.com/users/Unprocessable/orgs", "received_events_url": "https://api.github.com/users/Unprocessable/received_events", "repos_url": "https://api.github.com/users/Unprocessable/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Unprocessable/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Unprocessable/subscriptions", "type": "User", "url": "https://api.github.com/users/Unprocessable" }
[]
closed
false
null
[]
null
1
2019-08-05T13:55:19Z
2019-08-05T14:05:53Z
2019-08-05T14:05:53Z
CONTRIBUTOR
null
Should test the diff for a specific series. - [ ] 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/27757/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27757/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27757.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27757", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27757.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27757" }
https://api.github.com/repos/pandas-dev/pandas/issues/27758
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27758/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27758/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27758/events
https://github.com/pandas-dev/pandas/issues/27758
476,885,307
MDU6SXNzdWU0NzY4ODUzMDc=
27,758
Cannot plot empty Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/946727?v=4", "events_url": "https://api.github.com/users/randomstuff/events{/privacy}", "followers_url": "https://api.github.com/users/randomstuff/followers", "following_url": "https://api.github.com/users/randomstuff/following{/other_user}", "gists_url": "https://api.github.com/users/randomstuff/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/randomstuff", "id": 946727, "login": "randomstuff", "node_id": "MDQ6VXNlcjk0NjcyNw==", "organizations_url": "https://api.github.com/users/randomstuff/orgs", "received_events_url": "https://api.github.com/users/randomstuff/received_events", "repos_url": "https://api.github.com/users/randomstuff/repos", "site_admin": false, "starred_url": "https://api.github.com/users/randomstuff/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/randomstuff/subscriptions", "type": "User", "url": "https://api.github.com/users/randomstuff" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
5
2019-08-05T14:17:05Z
2019-09-11T19:26:19Z
2019-09-11T19:26:19Z
CONTRIBUTOR
null
#### Code Sample ```python import pandas as pd import matplotlib.pyplot as plt ax = plt.subplots(1)[1] ax.set_xlim((0, 10)) ax.set_ylim((0, 10)) x = pd.Series([], index=pd.Index([], dtype=float), dtype=float) x.plot(ax=ax) ``` #### Problem description It is not possible to `.plot()` an empty `Series` or `DataFrame`. When `.plot()` is called on an empty `Series` or `DataFrame`, an exception is raised: <pre> ~/software/venv-scipy/lib/python3.7/site-packages/pandas/plotting/_matplotlib/core.py in _compute_plot_data(self) 412 # no non-numeric frames or series allowed 413 if is_empty: --> 414 raise TypeError("no numeric data to plot") 415 416 # GH25587: cast ExtensionArray of pandas (IntegerArray, etc.) to TypeError: no numeric data to plot </pre> This is problematic because code path which are supposed to work can suddenly fail when the data to plot is empty (for example, there was no data for the requested time-range). In order to be robust to this, the code needs to include a lot of things such as: ```python if not x.empty: x.plot(ax=ax) `` #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Linux OS-release : 4.19.0-5-amd64 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : fr_FR.utf8 LOCALE : fr_FR.UTF-8 pandas : 0.25.0 numpy : 1.17.0 pytz : 2019.2 dateutil : 2.8.0 pip : 18.1 setuptools : 40.8.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : 7.7.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : None sqlalchemy : None tables : None xarray : None xlrd : None xlwt : None xlsxwriter : 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/27758/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27758/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27759
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27759/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27759/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27759/events
https://github.com/pandas-dev/pandas/pull/27759
476,886,953
MDExOlB1bGxSZXF1ZXN0MzA0MzI0MTI0
27,759
TST: missed from #27720
{ "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
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-05T14:20:16Z
2019-08-05T16:44:44Z
2019-08-05T15:03:45Z
MEMBER
null
pointed out by @simonjayhawkins
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27759/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27759/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27759.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27759", "merged_at": "2019-08-05T15:03:45Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27759.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27759" }
https://api.github.com/repos/pandas-dev/pandas/issues/27760
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27760/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27760/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27760/events
https://github.com/pandas-dev/pandas/issues/27760
476,979,448
MDU6SXNzdWU0NzY5Nzk0NDg=
27,760
merge_ordered() should accept left_index and right_index args
{ "avatar_url": "https://avatars.githubusercontent.com/u/16600275?v=4", "events_url": "https://api.github.com/users/austin3dickey/events{/privacy}", "followers_url": "https://api.github.com/users/austin3dickey/followers", "following_url": "https://api.github.com/users/austin3dickey/following{/other_user}", "gists_url": "https://api.github.com/users/austin3dickey/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/austin3dickey", "id": 16600275, "login": "austin3dickey", "node_id": "MDQ6VXNlcjE2NjAwMjc1", "organizations_url": "https://api.github.com/users/austin3dickey/orgs", "received_events_url": "https://api.github.com/users/austin3dickey/received_events", "repos_url": "https://api.github.com/users/austin3dickey/repos", "site_admin": false, "starred_url": "https://api.github.com/users/austin3dickey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/austin3dickey/subscriptions", "type": "User", "url": "https://api.github.com/users/austin3dickey" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "02d7e1", "default": false, "description": "Concat, ...
open
false
null
[]
null
0
2019-08-05T17:41:39Z
2019-11-02T21:59:25Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python INDEX_COLS = ['group', 'timestamp'] left = pandas.DataFrame({ 'group': ['a', 'a', 'b', 'b'], 'timestamp': [0, 1, 2, 5], 'obs1': [10, 11, 12, 15] }).set_index(INDEX_COLS) right = pandas.DataFrame({ 'group': ['a', 'a', 'b', 'b'], 'timestamp': [0, 1, 3, 4], 'obs2': [20, 21, 23, 24] }).set_index(INDEX_COLS) pandas.merge_ordered(left, right) # Traceback (most recent call last): # File "<stdin>", line 1, in <module> # File "python3.6/site-packages/pandas/core/reshape/merge.py", line 226, in merge_ordered # result = _merger(left, right) # File "python3.6/site-packages/pandas/core/reshape/merge.py", line 212, in _merger # how=how) # File "python3.6/site-packages/pandas/core/reshape/merge.py", line 1252, in __init__ # sort=True # factorize sorts # File "python3.6/site-packages/pandas/core/reshape/merge.py", line 524, in __init__ # self._validate_specification() # File "python3.6/site-packages/pandas/core/reshape/merge.py", line 1033, in _validate_specification # lidx=self.left_index, ridx=self.right_index)) # pandas.errors.MergeError: No common columns to perform merge on. Merge options: left_on=None, right_on=None, left_index=False, right_index=False ``` #### Problem description The error message above implies that I should be able to merge these two timeseries DataFrames using `left_index=True` and `right_index=True`. But these are not arguments to the `merge_ordered()` function like they are to other merging functions. I could work around this by doing the following: ```python pandas.merge_ordered(left, right, left_on=INDEX_COLS, right_on=INDEX_COLS).set_index(INDEX_COLS) ``` but that seems unnecessarily verbose, and possibly less performant than if I could do ```python pandas.merge_ordered(left, right, left_index=True, right_index=True) ``` #### Proposal It looks like `merge_ordered()` uses `_OrderedMerge` under the hood which can take the `left_index` and `right_index` arguments (and the code example above works as expected if those arguments are passed through). Would you consider adding these arguments? I can create a PR if there's appetite. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Darwin OS-release: 17.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.2.0 pip: 19.0.1 setuptools: 40.7.3 Cython: None numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.4 patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27760/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27760/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27761
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27761/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27761/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27761/events
https://github.com/pandas-dev/pandas/issues/27761
476,989,423
MDU6SXNzdWU0NzY5ODk0MjM=
27,761
Error in business-day logic in CustomBusinessDay?
{ "avatar_url": "https://avatars.githubusercontent.com/u/2153614?v=4", "events_url": "https://api.github.com/users/rhstanton/events{/privacy}", "followers_url": "https://api.github.com/users/rhstanton/followers", "following_url": "https://api.github.com/users/rhstanton/following{/other_user}", "gists_url": "https://api.github.com/users/rhstanton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhstanton", "id": 2153614, "login": "rhstanton", "node_id": "MDQ6VXNlcjIxNTM2MTQ=", "organizations_url": "https://api.github.com/users/rhstanton/orgs", "received_events_url": "https://api.github.com/users/rhstanton/received_events", "repos_url": "https://api.github.com/users/rhstanton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhstanton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhstanton/subscriptions", "type": "User", "url": "https://api.github.com/users/rhstanton" }
[ { "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, ...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-05T18:07:09Z
2019-10-24T00:04:13Z
2019-10-24T00:04:13Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here # Labor Day calendar import pandas as pd from pandas.tseries.holiday import AbstractHolidayCalendar, USLaborDay class testCalendar(AbstractHolidayCalendar): rules = [ USLaborDay, ] cal = testCalendar() workDay = pd.offsets.CustomBusinessDay(calendar=cal) # Print dates of Labor Day for yr in [2021, 2032]: print("Labor day", yr, "is on ", cal.holidays(pd.to_datetime(str(yr-1)+'-12-31'), pd.to_datetime(str(yr) + '-12-31'))) print("\n") # Check next working day for Saturday before Labor Day for dateText in ['2021-09-04', '2032-09-04']: date = pd.to_datetime(dateText) print(dateText, "is a", date.strftime('%A') + ". Roll forward to", date + 0 * workDay) ``` #### Problem description Here's the output: Labor day 2021 is on DatetimeIndex(['2021-09-06'], dtype='datetime64[ns]', freq='WOM-1MON') Labor day 2032 is on DatetimeIndex(['2032-09-06'], dtype='datetime64[ns]', freq='WOM-1MON') 2021-09-04 is a Saturday. Roll forward to 2021-09-07 00:00:00 2032-09-04 is a Saturday. Roll forward to 2032-09-06 00:00:00 The calendar knows that Labor day is on Monday, Sept. 6 in both 2021 and 2032. However, when I ask to move to the next working day from Saturday, Sept. 4, I get the (correct) answer Sept.7 for 2021, but the (wrong) answer Sept 6 (which is Labor Day) for 2032. Is this a bug, or am I doing something wrong? Thanks. **Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates! **Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary. For documentation-related issues, you can check the latest versions of the docs on `master` here: https://pandas-docs.github.io/pandas-docs-travis/ If the issue has not been resolved there, go ahead and file it in the issue tracker. #### Expected Output #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Darwin OS-release: 17.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 5.0.1 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.12 numpy: 1.16.4 scipy: 1.3.0 pyarrow: None xarray: None IPython: 7.6.1 sphinx: 2.1.2 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: 1.2.1 tables: 3.5.2 numexpr: 2.6.9 feather: None matplotlib: 3.1.0 openpyxl: 2.6.2 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.8 lxml.etree: 4.3.4 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.5 pymysql: None psycopg2: None jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27761/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27761/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27762
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27762/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27762/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27762/events
https://github.com/pandas-dev/pandas/pull/27762
477,014,565
MDExOlB1bGxSZXF1ZXN0MzA0NDI1ODcy
27,762
BUG: right merge not preserve row order (#27453)
{ "avatar_url": "https://avatars.githubusercontent.com/u/14300539?v=4", "events_url": "https://api.github.com/users/ncernek/events{/privacy}", "followers_url": "https://api.github.com/users/ncernek/followers", "following_url": "https://api.github.com/users/ncernek/following{/other_user}", "gists_url": "https://api.github.com/users/ncernek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ncernek", "id": 14300539, "login": "ncernek", "node_id": "MDQ6VXNlcjE0MzAwNTM5", "organizations_url": "https://api.github.com/users/ncernek/orgs", "received_events_url": "https://api.github.com/users/ncernek/received_events", "repos_url": "https://api.github.com/users/ncernek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ncernek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ncernek/subscriptions", "type": "User", "url": "https://api.github.com/users/ncernek" }
[ { "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
[]
null
21
2019-08-05T19:13:16Z
2020-01-24T17:15:10Z
2020-01-23T03:48:40Z
CONTRIBUTOR
null
- [ ] closes #27453 - [ ] 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/27762/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27762/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27762.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27762", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27762.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27762" }
https://api.github.com/repos/pandas-dev/pandas/issues/27763
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27763/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27763/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27763/events
https://github.com/pandas-dev/pandas/pull/27763
477,043,797
MDExOlB1bGxSZXF1ZXN0MzA0NDQ5NzUw
27,763
Backport PR #27733 on branch 0.25.x (BUG: fix to_datetime(dti, utc=True))
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[]
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-05T20:29:30Z
2019-08-06T15:33:38Z
2019-08-06T15:33:38Z
NONE
null
Backport PR #27733: BUG: fix to_datetime(dti, utc=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/27763/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27763/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27763.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27763", "merged_at": "2019-08-06T15:33:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27763.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27763" }
https://api.github.com/repos/pandas-dev/pandas/issues/27764
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27764/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27764/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27764/events
https://github.com/pandas-dev/pandas/pull/27764
477,069,450
MDExOlB1bGxSZXF1ZXN0MzA0NDcwMTYz
27,764
CLN/REF: Remove _try_cast_result, _try_coerce_and_cast_result
{ "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-05T21:37:00Z
2019-08-06T16:03:44Z
2019-08-06T15:40:40Z
MEMBER
null
This finishes getting the post-call casting/coersion out of the Blocks. Pre-call coercion is still in there, exclusively for TimedeltaBlock and DatetimeBlock, i.e. will not be necessary if/when those are backed by EA.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27764/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27764/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27764.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27764", "merged_at": "2019-08-06T15:40:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27764.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27764" }
https://api.github.com/repos/pandas-dev/pandas/issues/27765
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27765/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27765/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27765/events
https://github.com/pandas-dev/pandas/pull/27765
477,069,475
MDExOlB1bGxSZXF1ZXN0MzA0NDcwMTgw
27,765
TYPING: more type hints for io.formats.printing
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
3
2019-08-05T21:37:03Z
2019-08-24T07:45:54Z
2019-08-23T22:36:59Z
MEMBER
null
xref #27568 ``` $ mypy pandas/io/formats/printing.py --check-untyped-defs --follow-imports skip pandas\io\formats\printing.py:194: error: "str" has no attribute "decode"; maybe "encode"? ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27765/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27765/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27765.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27765", "merged_at": "2019-08-23T22:36:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27765.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27765" }
https://api.github.com/repos/pandas-dev/pandas/issues/27766
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27766/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27766/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27766/events
https://github.com/pandas-dev/pandas/issues/27766
477,114,072
MDU6SXNzdWU0NzcxMTQwNzI=
27,766
Windowing fails on read-only arrays
{ "avatar_url": "https://avatars.githubusercontent.com/u/684364?v=4", "events_url": "https://api.github.com/users/kernc/events{/privacy}", "followers_url": "https://api.github.com/users/kernc/followers", "following_url": "https://api.github.com/users/kernc/following{/other_user}", "gists_url": "https://api.github.com/users/kernc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kernc", "id": 684364, "login": "kernc", "node_id": "MDQ6VXNlcjY4NDM2NA==", "organizations_url": "https://api.github.com/users/kernc/orgs", "received_events_url": "https://api.github.com/users/kernc/received_events", "repos_url": "https://api.github.com/users/kernc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kernc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kernc/subscriptions", "type": "User", "url": "https://api.github.com/users/kernc" }
[ { "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...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-06T00:38:54Z
2019-08-06T15:39:20Z
2019-08-06T15:39:20Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python >>> arr = np.array([1, 3, np.nan, 3, 5]) >>> arr.setflags(write=False) >>> pd.Series(arr).rolling(2).mean().values --------------------------------------------------------------------------- ValueError: assignment destination is read-only ``` #### Expected Output ```py >>> pd.Series(arr).rolling(2).mean().values array([nan, 2., nan, nan, 4.]) ``` #### Problem description https://github.com/pandas-dev/pandas/pull/27391#discussion_r309941141 missed a copy call before writing into array, which is user's data and which may be read-only. #### Output of ``pd.show_versions()`` pandas 0.25.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/27766/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27766/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27767
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27767/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27767/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27767/events
https://github.com/pandas-dev/pandas/pull/27767
477,114,724
MDExOlB1bGxSZXF1ZXN0MzA0NTA2MTc4
27,767
BUG: Fix windowing over read-only arrays
{ "avatar_url": "https://avatars.githubusercontent.com/u/684364?v=4", "events_url": "https://api.github.com/users/kernc/events{/privacy}", "followers_url": "https://api.github.com/users/kernc/followers", "following_url": "https://api.github.com/users/kernc/following{/other_user}", "gists_url": "https://api.github.com/users/kernc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kernc", "id": 684364, "login": "kernc", "node_id": "MDQ6VXNlcjY4NDM2NA==", "organizations_url": "https://api.github.com/users/kernc/orgs", "received_events_url": "https://api.github.com/users/kernc/received_events", "repos_url": "https://api.github.com/users/kernc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kernc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kernc/subscriptions", "type": "User", "url": "https://api.github.com/users/kernc" }
[ { "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": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
2
2019-08-06T00:42:26Z
2019-08-06T15:39:34Z
2019-08-06T15:39:20Z
CONTRIBUTOR
null
- [x] closes #27766 - [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/27767/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27767/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27767.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27767", "merged_at": "2019-08-06T15:39:20Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27767.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27767" }
https://api.github.com/repos/pandas-dev/pandas/issues/27768
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27768/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27768/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27768/events
https://github.com/pandas-dev/pandas/pull/27768
477,122,547
MDExOlB1bGxSZXF1ZXN0MzA0NTEyMjEy
27,768
CLN: short-circuit case in Block.replace
{ "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
5
2019-08-06T01:23:57Z
2019-08-12T19:04:19Z
2019-08-12T18:58:43Z
MEMBER
null
Running out of try/excepts to get rid of
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27768/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27768/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27768.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27768", "merged_at": "2019-08-12T18:58:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27768.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27768" }
https://api.github.com/repos/pandas-dev/pandas/issues/27769
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27769/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27769/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27769/events
https://github.com/pandas-dev/pandas/pull/27769
477,135,673
MDExOlB1bGxSZXF1ZXN0MzA0NTIyNDk0
27,769
REF: Make CategoricalIndex comparison defer to Categorical comparison
{ "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": "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": "006b75", "default": false, "description": "A...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
3
2019-08-06T02:22:00Z
2019-08-14T21:37:58Z
2019-08-13T12:05:44Z
MEMBER
null
Partially addresses #19513. After this, CategoricalIndex will be defining comparison ops identically to DTA/TDA/PA, could share some 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/27769/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27769/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27769.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27769", "merged_at": "2019-08-13T12:05:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27769.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27769" }
https://api.github.com/repos/pandas-dev/pandas/issues/27770
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27770/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27770/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27770/events
https://github.com/pandas-dev/pandas/pull/27770
477,155,656
MDExOlB1bGxSZXF1ZXN0MzA0NTM3MjA0
27,770
[BLD] Add script that fails build if git tags do not exist
{ "avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4", "events_url": "https://api.github.com/users/qwhelan/events{/privacy}", "followers_url": "https://api.github.com/users/qwhelan/followers", "following_url": "https://api.github.com/users/qwhelan/following{/other_user}", "gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qwhelan", "id": 440095, "login": "qwhelan", "node_id": "MDQ6VXNlcjQ0MDA5NQ==", "organizations_url": "https://api.github.com/users/qwhelan/orgs", "received_events_url": "https://api.github.com/users/qwhelan/received_events", "repos_url": "https://api.github.com/users/qwhelan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions", "type": "User", "url": "https://api.github.com/users/qwhelan" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-06T03:53:13Z
2019-08-07T13:27:04Z
2019-08-07T13:27:04Z
CONTRIBUTOR
null
The Travis build process can fail in hard to decipher ways if git tags are not synced between `upstream` and a developer's repo. This failure mode would occur in the main repo if we go 2000 commits (current clone depth, ~9 months) without tagging a release. This PR explicitly fails the build with instructions of how to resolve if this situation is encountered. The underlying issue is that `versioneer` and the underlying `git describe` rely on tags to exist in the local repo for the purposes of creating a version description like: ``` v0.25.0-116-gee54d95952 ``` As Travis makes a shallow clone, these tags are will not exist if: - A developer has not explicitly synced tags between repos (the default git behavior) - `pandas` goes 2000 commits without tagging a commit If tags do not exist, we get something like: ``` 0+untagged.2000.g66ada8c ``` Which causes causes tests involving downstream libraries like `pyarrow`, `statsmodels`, etc to fail their internal version checks in sometimes indecipherable ways like this: ``` =================================== FAILURES =================================== ____________________________ TestFeather.test_error ____________________________ [gw0] linux -- Python 3.7.3 /home/travis/miniconda3/envs/pandas-dev/bin/python self = <pandas.tests.io.test_feather.TestFeather object at 0x7f353ab95c18> def test_error(self): for obj in [ pd.Series([1, 2, 3]), 1, "foo", pd.Timestamp("20130101"), np.array([1, 2, 3]), ]: > self.check_error_on_write(obj, ValueError) pandas/tests/io/test_feather.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas/tests/io/test_feather.py:27: in check_error_on_write to_feather(df, path) pandas/io/feather_format.py:24: in to_feather from pyarrow import feather _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ from distutils.version import LooseVersion import os import six import pandas as pd import warnings > from pyarrow.compat import pdapi E ImportError: cannot import name 'pdapi' from 'pyarrow.compat' (/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pyarrow/compat.py) ``` With some digging, you can eventually find that the root cause is: ``` self = LooseVersion ('0+untagged.2000.g66ada8c'), other = LooseVersion ('0.21') def _cmp (self, other): if isinstance(other, str): other = LooseVersion(other) if self.version == other.version: return 0 > if self.version < other.version: E TypeError: '<' not supported between instances of 'str' and 'int' ``` Syncing tags between repos resolves the issue. - [ ] 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/27770/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27770/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27770.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27770", "merged_at": "2019-08-07T13:27:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27770.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27770" }
https://api.github.com/repos/pandas-dev/pandas/issues/27771
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27771/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27771/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27771/events
https://github.com/pandas-dev/pandas/issues/27771
477,178,395
MDU6SXNzdWU0NzcxNzgzOTU=
27,771
to_csv has changed the number
{ "avatar_url": "https://avatars.githubusercontent.com/u/26021194?v=4", "events_url": "https://api.github.com/users/honghong2333/events{/privacy}", "followers_url": "https://api.github.com/users/honghong2333/followers", "following_url": "https://api.github.com/users/honghong2333/following{/other_user}", "gists_url": "https://api.github.com/users/honghong2333/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/honghong2333", "id": 26021194, "login": "honghong2333", "node_id": "MDQ6VXNlcjI2MDIxMTk0", "organizations_url": "https://api.github.com/users/honghong2333/orgs", "received_events_url": "https://api.github.com/users/honghong2333/received_events", "repos_url": "https://api.github.com/users/honghong2333/repos", "site_admin": false, "starred_url": "https://api.github.com/users/honghong2333/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/honghong2333/subscriptions", "type": "User", "url": "https://api.github.com/users/honghong2333" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "5319e7", ...
closed
false
null
[]
null
2
2019-08-06T05:36:36Z
2019-10-07T21:29:21Z
2019-10-07T21:23:41Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python df1 = pd.read_csv("./data/test.csv") print(df1) df1.to_csv("./data/test1.csv") test.csv has only one column "a" and one number is "656.964",when I prepare to use "to_csv" then it has changed to 656.9639999. I hope you can help solve this problem.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27771/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27771/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27772
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27772/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27772/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27772/events
https://github.com/pandas-dev/pandas/issues/27772
477,259,540
MDU6SXNzdWU0NzcyNTk1NDA=
27,772
to_excel with MultiIndex adds a blank line
{ "avatar_url": "https://avatars.githubusercontent.com/u/6884584?v=4", "events_url": "https://api.github.com/users/stefanopassador/events{/privacy}", "followers_url": "https://api.github.com/users/stefanopassador/followers", "following_url": "https://api.github.com/users/stefanopassador/following{/other_user}", "gists_url": "https://api.github.com/users/stefanopassador/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stefanopassador", "id": 6884584, "login": "stefanopassador", "node_id": "MDQ6VXNlcjY4ODQ1ODQ=", "organizations_url": "https://api.github.com/users/stefanopassador/orgs", "received_events_url": "https://api.github.com/users/stefanopassador/received_events", "repos_url": "https://api.github.com/users/stefanopassador/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stefanopassador/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stefanopassador/subscriptions", "type": "User", "url": "https://api.github.com/users/stefanopassador" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", ...
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" }
24
2019-08-06T09:06:37Z
2021-09-23T09:05:13Z
null
NONE
null
#### Code Sample ```python data = [[1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12]] multi_index = pd.MultiIndex.from_product([['a', 'b'], ['one', 'two', 'three']]) df = pd.DataFrame(data, columns=multi_index, index=[1, 2]) df.to_excel('test_files/test.xlsx') ``` #### Problem description When exporting an xlsx file from a dataframe with MultiIndex, a blank line is added. Here a screenshot representing the problem: ![image](https://user-images.githubusercontent.com/6884584/62526705-161b1b80-b83a-11e9-885d-6ed742cb497e.png) This is happening with pandas 0.25.0. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 0.25.0 numpy : 1.16.4 pytz : 2019.1 dateutil : 2.8.0 pip : 19.2 setuptools : 40.8.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : 0.2.3 lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : 2.6.2 pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : None sqlalchemy : None tables : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None </details>
{ "+1": 7, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 7, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27772/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27772/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27773
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27773/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27773/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27773/events
https://github.com/pandas-dev/pandas/pull/27773
477,299,064
MDExOlB1bGxSZXF1ZXN0MzA0NjUwNTcx
27,773
BUG: _can_use_numexpr fails when passed large Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/1828155?v=4", "events_url": "https://api.github.com/users/ccharlesgb/events{/privacy}", "followers_url": "https://api.github.com/users/ccharlesgb/followers", "following_url": "https://api.github.com/users/ccharlesgb/following{/other_user}", "gists_url": "https://api.github.com/users/ccharlesgb/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ccharlesgb", "id": 1828155, "login": "ccharlesgb", "node_id": "MDQ6VXNlcjE4MjgxNTU=", "organizations_url": "https://api.github.com/users/ccharlesgb/orgs", "received_events_url": "https://api.github.com/users/ccharlesgb/received_events", "repos_url": "https://api.github.com/users/ccharlesgb/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ccharlesgb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ccharlesgb/subscriptions", "type": "User", "url": "https://api.github.com/users/ccharlesgb" }
[ { "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": ...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
9
2019-08-06T10:27:57Z
2019-08-19T17:20:29Z
2019-08-19T17:20:24Z
CONTRIBUTOR
null
This fixes a regression introduced in #27145 where _can_use_numexpr would fail if passed a Series and not a DataFrame. I decided not to use run_arithmetic in the test_suite because there is a separate issue when running floordiv that is out of the scope of the fix. I will open a separate issue in improving the test coverage of "test_expressions.py" as it currently does not check any of the arguments you can pass to the operators, such as 'axis', 'level' and 'fill_value'. - [x] closes #27636 - [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/27773/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27773/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27773.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27773", "merged_at": "2019-08-19T17:20:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27773.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27773" }
https://api.github.com/repos/pandas-dev/pandas/issues/27774
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27774/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27774/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27774/events
https://github.com/pandas-dev/pandas/pull/27774
477,300,600
MDExOlB1bGxSZXF1ZXN0MzA0NjUxODQ5
27,774
DEPR: Removed the previously deprecated ExtensionArray._formatting_values
{ "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": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" }, { "color": "6138b5", "default": f...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
0
2019-08-06T10:31:33Z
2019-08-08T14:20:03Z
2019-08-07T06:23:26Z
MEMBER
null
and revert #17143, see https://github.com/pandas-dev/pandas/pull/17143#issuecomment-505080265
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27774/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27774/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27774.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27774", "merged_at": "2019-08-07T06:23:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27774.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27774" }
https://api.github.com/repos/pandas-dev/pandas/issues/27775
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27775/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27775/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27775/events
https://github.com/pandas-dev/pandas/issues/27775
477,311,530
MDU6SXNzdWU0NzczMTE1MzA=
27,775
IndexError: tuple index out of range after upgrade to 0.25
{ "avatar_url": "https://avatars.githubusercontent.com/u/12762442?v=4", "events_url": "https://api.github.com/users/Foadsf/events{/privacy}", "followers_url": "https://api.github.com/users/Foadsf/followers", "following_url": "https://api.github.com/users/Foadsf/following{/other_user}", "gists_url": "https://api.github.com/users/Foadsf/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Foadsf", "id": 12762442, "login": "Foadsf", "node_id": "MDQ6VXNlcjEyNzYyNDQy", "organizations_url": "https://api.github.com/users/Foadsf/orgs", "received_events_url": "https://api.github.com/users/Foadsf/received_events", "repos_url": "https://api.github.com/users/Foadsf/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Foadsf/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Foadsf/subscriptions", "type": "User", "url": "https://api.github.com/users/Foadsf" }
[ { "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": ...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
13
2019-08-06T10:56:09Z
2019-08-09T07:36:58Z
2019-08-09T07:36:58Z
NONE
null
Root cause (in both cases using `df = pd.DataFrame({'a': [1, 2, 3]})`): ``` In [71]: pd.__version__ Out[71]: '0.25.0' In [73]: df.index[:, None] Out[73]: Int64Index([0, 1, 2], dtype='int64') In [74]: df.index[:, None].shape Out[74]: (3,) ``` vs ``` In [10]: pd.__version__ Out[10]: '0.24.2' In [13]: df.index[:, None] Out[13]: Int64Index([0, 1, 2], dtype='int64') In [14]: df.index[:, None].shape Out[14]: (3, 1) ``` So before, indexing with `[:, None]` (in numpy a way to add a dimension to get 2D array) actually resulting in Index with ndim of 2 (but which is of course inconsistent state of the Index object) Matplotlib relied on this fact when an Index is passed to `plt.plot`, as reported in https://github.com/matplotlib/matplotlib/issues/14992 --- I have explained the issue [here ](https://stackoverflow.com/questions/57372557/matplotlib-drops-indexerror-tuple-index-out-of-range-after-upgrade)and [here ](https://github.com/matplotlib/matplotlib/issues/14992#issue-477267556)in details. Basically, after upgrading to the version `0.25` I got the error: > IndexError: tuple index out of range while attempting to plot a CSV 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/27775/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27775/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27776
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27776/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27776/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27776/events
https://github.com/pandas-dev/pandas/issues/27776
477,344,917
MDU6SXNzdWU0NzczNDQ5MTc=
27,776
Multilevel Column Index Assignment Doesn't Work
{ "avatar_url": "https://avatars.githubusercontent.com/u/27946571?v=4", "events_url": "https://api.github.com/users/flyjuice/events{/privacy}", "followers_url": "https://api.github.com/users/flyjuice/followers", "following_url": "https://api.github.com/users/flyjuice/following{/other_user}", "gists_url": "https://api.github.com/users/flyjuice/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flyjuice", "id": 27946571, "login": "flyjuice", "node_id": "MDQ6VXNlcjI3OTQ2NTcx", "organizations_url": "https://api.github.com/users/flyjuice/orgs", "received_events_url": "https://api.github.com/users/flyjuice/received_events", "repos_url": "https://api.github.com/users/flyjuice/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flyjuice/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flyjuice/subscriptions", "type": "User", "url": "https://api.github.com/users/flyjuice" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on s...
open
false
null
[]
null
1
2019-08-06T12:14:21Z
2019-11-02T22:00:20Z
null
NONE
null
```python import pandas as pd pd.set_option('display.max_columns', None) idx = pd.IndexSlice df = pd.DataFrame(index=pd.Index([pd.Timestamp('20080101 23:00'), pd.Timestamp('20080101 23:01')]), columns = pd.MultiIndex.from_product([[1,2],['A','B']])) print(df) df.loc[:,idx[:,'A']]=0 print(df) df.loc[:,idx[:,'B']] = df.loc[:,idx[:,'A']] print(df) ``` ``` 1 2 A B A B 2008-01-01 23:00:00 NaN NaN NaN NaN 2008-01-01 23:01:00 NaN NaN NaN NaN 1 2 A B A B 2008-01-01 23:00:00 0 NaN 0 NaN 2008-01-01 23:01:00 0 NaN 0 NaN 1 2 A B A B 2008-01-01 23:00:00 0 NaN 0 NaN 2008-01-01 23:01:00 0 NaN 0 NaN ``` I believe I use the correct Pandas idioms. But Column B is still NaN after assignment. If you initialize column B first, it also destroys the values with NaNs afterwards. Sorry for the formatting, for some reason forum will not do what it is supposed to do for code blocks. It may be related to but not the same: #10440
{ "+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/27776/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27776/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27777
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27777/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27777/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27777/events
https://github.com/pandas-dev/pandas/pull/27777
477,360,445
MDExOlB1bGxSZXF1ZXN0MzA0Njk5ODM5
27,777
Avoid calling S3File.s3
{ "avatar_url": "https://avatars.githubusercontent.com/u/6295246?v=4", "events_url": "https://api.github.com/users/CJStadler/events{/privacy}", "followers_url": "https://api.github.com/users/CJStadler/followers", "following_url": "https://api.github.com/users/CJStadler/following{/other_user}", "gists_url": "https://api.github.com/users/CJStadler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/CJStadler", "id": 6295246, "login": "CJStadler", "node_id": "MDQ6VXNlcjYyOTUyNDY=", "organizations_url": "https://api.github.com/users/CJStadler/orgs", "received_events_url": "https://api.github.com/users/CJStadler/received_events", "repos_url": "https://api.github.com/users/CJStadler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/CJStadler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/CJStadler/subscriptions", "type": "User", "url": "https://api.github.com/users/CJStadler" }
[ { "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", "...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
9
2019-08-06T12:48:03Z
2019-08-12T19:10:55Z
2019-08-12T19:10:50Z
CONTRIBUTOR
null
When reading from S3 using fastparquet. This attribute was removed in s3fs 0.3.0. This change avoids accessing it by using a new method `get_file_and_filesystem` which returns the filesystem in addition to the file. - [x] closes #27756 - [ ] 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/27777/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27777/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27777.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27777", "merged_at": "2019-08-12T19:10:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27777.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27777" }
https://api.github.com/repos/pandas-dev/pandas/issues/27778
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27778/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27778/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27778/events
https://github.com/pandas-dev/pandas/issues/27778
477,362,313
MDU6SXNzdWU0NzczNjIzMTM=
27,778
ENH: allow new column names argument in DataFrame arithmetic ops
{ "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" }
[ { "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
3
2019-08-06T12:51:50Z
2019-08-09T18:32:22Z
2019-08-09T18:32:21Z
MEMBER
null
Right now, for arithmetic operations like `add`, `div`, `pow` etc, the default is to rewrite input columns with new values (which are processed by those arithmetic operations), e.g. ```python df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]}) df.div(10) ``` And this will return something like ``` | a | b | |----|----| | 0.1 | 0.4 | | 0.2 | 0.5 | | 0.3 | 0.6 | ``` And we could also assign it to new cols by: ```python df[['c', 'd']] = df.div(10) ``` But it's gonna be good to have something like ```python df = df.div(10, new_cols=['c', 'd']) ``` So that the chaining can be used afterwards and in practice I feel very useful to have this enhancement. If it's okay, I would be very glad to implement this feature.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27778/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27778/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27779
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27779/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27779/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27779/events
https://github.com/pandas-dev/pandas/issues/27779
477,400,086
MDU6SXNzdWU0Nzc0MDAwODY=
27,779
Give more precise warning when passing `header=-1` in `pandas.read_csv`, or don't throw error
{ "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": "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": "5319...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
3
2019-08-06T14:02:00Z
2019-08-15T20:27:18Z
2019-08-15T20:27:18Z
MEMBER
null
#### Code Sample, a copy-pastable example if possible ```python from io import StringIO import pandas as pd print(f"Using pandas version {pd.__version__}") pd.read_csv(StringIO('spam'), header=-1) ``` > Using pandas version 0.25.0 > >--------------------------------------------------------------------------- >OverflowError #### Problem description In previous versions of pandas (e.g. 0.24.2), this would have worked fine. Instead, now, one has to pass `header=None`. However, when working with old code after having updated pandas, it may be unclear where the problem lies. #### Expected Output ``` 0 0 spam ``` #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-55-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 0.25.0 numpy : 1.16.4 pytz : 2019.1 dateutil : 2.8.0 pip : 19.1.1 setuptools : 41.0.1 Cython : 0.29.12 pytest : 4.5.0 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : 7.7.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.0 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.13.0 pytables : None s3fs : 0.2.1 scipy : 1.3.0 sqlalchemy : 1.3.5 tables : None xarray : None xlrd : None xlwt : None xlsxwriter : 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/27779/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27779/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27780
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27780/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27780/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27780/events
https://github.com/pandas-dev/pandas/pull/27780
477,413,932
MDExOlB1bGxSZXF1ZXN0MzA0NzQzNjE2
27,780
DOC: Add CoC to the README
{ "avatar_url": "https://avatars.githubusercontent.com/u/28490392?v=4", "events_url": "https://api.github.com/users/sparalic/events{/privacy}", "followers_url": "https://api.github.com/users/sparalic/followers", "following_url": "https://api.github.com/users/sparalic/following{/other_user}", "gists_url": "https://api.github.com/users/sparalic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sparalic", "id": 28490392, "login": "sparalic", "node_id": "MDQ6VXNlcjI4NDkwMzky", "organizations_url": "https://api.github.com/users/sparalic/orgs", "received_events_url": "https://api.github.com/users/sparalic/received_events", "repos_url": "https://api.github.com/users/sparalic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sparalic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sparalic/subscriptions", "type": "User", "url": "https://api.github.com/users/sparalic" }
[ { "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-06T14:26:35Z
2019-08-10T07:52:36Z
2019-08-10T04:17:14Z
CONTRIBUTOR
null
- [ ] closes # xxx - [ ] 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/27780/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27780/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27780.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27780", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27780.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27780" }
https://api.github.com/repos/pandas-dev/pandas/issues/27781
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27781/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27781/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27781/events
https://github.com/pandas-dev/pandas/issues/27781
477,433,734
MDU6SXNzdWU0Nzc0MzM3MzQ=
27,781
Filtering dataframe with sparse column leads to NAs in sparse column
{ "avatar_url": "https://avatars.githubusercontent.com/u/18263836?v=4", "events_url": "https://api.github.com/users/stelsemeyer/events{/privacy}", "followers_url": "https://api.github.com/users/stelsemeyer/followers", "following_url": "https://api.github.com/users/stelsemeyer/following{/other_user}", "gists_url": "https://api.github.com/users/stelsemeyer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stelsemeyer", "id": 18263836, "login": "stelsemeyer", "node_id": "MDQ6VXNlcjE4MjYzODM2", "organizations_url": "https://api.github.com/users/stelsemeyer/orgs", "received_events_url": "https://api.github.com/users/stelsemeyer/received_events", "repos_url": "https://api.github.com/users/stelsemeyer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stelsemeyer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stelsemeyer/subscriptions", "type": "User", "url": "https://api.github.com/users/stelsemeyer" }
[ { "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": ...
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" }
17
2019-08-06T15:00:41Z
2021-07-10T19:27:45Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df1 = pd.DataFrame({"A": pd.SparseArray([0, 0, 0]), 'B': [1,2,3]}) # df1_filtered will have NAs in column A df1_filtered = df1.loc[df1['B'] != 2] df2 = pd.DataFrame({"A": pd.SparseArray([0, 1, 0]), 'B': [1,2,3]}) # df2_filtered has no NAs in column A df2_filtered = df2.loc[df2['B'] != 2] ``` where `df1_filtered` will look like ``` A B 0 NaN 1 2 NaN 3 ``` and `df2_filtered` like ``` A B 0 0 1 2 0 3 ``` #### Problem description Filtering a dataframe with an all-zero sparse column can lead to NAs in the sparse column. #### Expected Output Both data frames should be the same, as filtering a dataframe with non-missing data should not lead to missing data. #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit : None pandas : 0.25.0 numpy : 1.16.2 pytz : 2019.1 dateutil : 2.8.0 pip : 19.2.1 setuptools : 39.1.0 Cython : None pytest : 4.3.1 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : 2.8.3 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : 7.6.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : 0.2.1 lxml.etree : None matplotlib : 3.1.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.13.0 pytables : None s3fs : 0.2.0 scipy : 1.2.1 sqlalchemy : 1.3.5 tables : None xarray : None xlrd : None xlwt : None xlsxwriter : None </details>
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27781/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27781/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27782
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27782/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27782/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27782/events
https://github.com/pandas-dev/pandas/pull/27782
477,454,884
MDExOlB1bGxSZXF1ZXN0MzA0Nzc2OTcz
27,782
Backport PR #27767 on branch 0.25.x (BUG: Fix windowing over read-only arrays)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-06T15:39:47Z
2019-08-06T20:52:56Z
2019-08-06T20:52:55Z
NONE
null
Backport PR #27767: BUG: Fix windowing over read-only arrays
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27782/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27782/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27782.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27782", "merged_at": "2019-08-06T20:52:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27782.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27782" }
https://api.github.com/repos/pandas-dev/pandas/issues/27783
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27783/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27783/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27783/events
https://github.com/pandas-dev/pandas/pull/27783
477,457,911
MDExOlB1bGxSZXF1ZXN0MzA0Nzc5NDA4
27,783
Backport PR #27663 on branch 0.25.x (BUG: pd.crosstab not working when margin and normalize are set together)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
0
2019-08-06T15:45:42Z
2019-08-07T03:51:51Z
2019-08-07T03:51:51Z
NONE
null
Backport PR #27663: BUG: pd.crosstab not working when margin and normalize are set together
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27783/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27783/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27783.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27783", "merged_at": "2019-08-07T03:51:51Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27783.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27783" }
https://api.github.com/repos/pandas-dev/pandas/issues/27784
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27784/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27784/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27784/events
https://github.com/pandas-dev/pandas/pull/27784
477,509,727
MDExOlB1bGxSZXF1ZXN0MzA0ODIxMTc0
27,784
ENH: allow object-dtype Index to do arithmetic ops
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "eb6420", "default": false, "description": "Non-arit...
closed
false
null
[]
null
3
2019-08-06T17:41:09Z
2019-08-14T15:11:00Z
2019-08-13T00:08:40Z
MEMBER
null
Implement ops in the base Index class to work the same as Series versions.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27784/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27784/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27784.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27784", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27784.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27784" }
https://api.github.com/repos/pandas-dev/pandas/issues/27785
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27785/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27785/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27785/events
https://github.com/pandas-dev/pandas/issues/27785
477,534,267
MDU6SXNzdWU0Nzc1MzQyNjc=
27,785
BUG: NonConsolidatebleBlock with ndim 1 'take_nd' with len 1 gives wrong ndim
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "fbca04", "default": false, "description": "Related to non-user acce...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
2
2019-08-06T18:38:31Z
2019-08-07T17:51:34Z
2019-08-07T17:51:33Z
MEMBER
null
When doing an indexing operation on an EA column that results in a single row, the resulting SingleBlockManager / Block has an inconsistent internal state: ``` In [62]: df = pd.DataFrame({'a': pd.Series([1, 2, 3], dtype='Int64'), 'b': [1, 2, 3]}) In [63]: df.loc[[0], 'a']._data Out[63]: SingleBlockManager Items: Int64Index([0], dtype='int64') ExtensionBlock: slice(0, 1, 1), 1 x 1, dtype: Int64 In [64]: df.loc[[0], 'a']._data.ndim Out[64]: 1 In [65]: df.loc[[0], 'a']._data._block.ndim Out[65]: 2 In [66]: df.loc[[0], 'b']._data Out[66]: SingleBlockManager Items: Int64Index([0], dtype='int64') IntBlock: 1 dtype: int64 In [67]: df.loc[[0], 'b']._data._block.ndim Out[67]: 1 ``` So `df.loc[[0], 'a']` gives a Series as result that holds a 2d block, which leads to other bugs (although not directly visible in the repr. Example: https://github.com/geopandas/geopandas/issues/1078) The reason for this is that `Block.take_nd` does not specify the ndim of the resulting new Block, and thus this is inferred in the `NonConsolidatableBlock.__init__`: https://github.com/pandas-dev/pandas/blob/640d9e1f5fe8ab64d1f6496b8216c28185e53225/pandas/core/internals/blocks.py#L1593-L1598 But, this `len(placement)` is not only 1 in case of a 2D block, but also if you have a 1D block with values of len 1 ... This bug shows with any EA, so also eg Categorical. And it seems to go back to pandas 0.23, and still manifests on 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/27785/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27785/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27786
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27786/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27786/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27786/events
https://github.com/pandas-dev/pandas/pull/27786
477,541,972
MDExOlB1bGxSZXF1ZXN0MzA0ODQ3MTE5
27,786
BUG: fix construction of NonConsolidatableBlock with inconsistent ndim
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "6138b5", "default": false, "description": "Extending pandas with cu...
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
5
2019-08-06T18:56:26Z
2019-08-07T17:50:41Z
2019-08-07T13:25:37Z
MEMBER
null
- [x] closes #27785 - [ ] 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/27786/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27786/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27786.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27786", "merged_at": "2019-08-07T13:25:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27786.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27786" }
https://api.github.com/repos/pandas-dev/pandas/issues/27787
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27787/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27787/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27787/events
https://github.com/pandas-dev/pandas/pull/27787
477,553,370
MDExOlB1bGxSZXF1ZXN0MzA0ODU2NDQ2
27,787
Fix miniconda path issue #26962
{ "avatar_url": "https://avatars.githubusercontent.com/u/10116000?v=4", "events_url": "https://api.github.com/users/bhavaniravi/events{/privacy}", "followers_url": "https://api.github.com/users/bhavaniravi/followers", "following_url": "https://api.github.com/users/bhavaniravi/following{/other_user}", "gists_url": "https://api.github.com/users/bhavaniravi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bhavaniravi", "id": 10116000, "login": "bhavaniravi", "node_id": "MDQ6VXNlcjEwMTE2MDAw", "organizations_url": "https://api.github.com/users/bhavaniravi/orgs", "received_events_url": "https://api.github.com/users/bhavaniravi/received_events", "repos_url": "https://api.github.com/users/bhavaniravi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bhavaniravi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bhavaniravi/subscriptions", "type": "User", "url": "https://api.github.com/users/bhavaniravi" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "207de5", "default": false, "description": ...
closed
false
null
[]
null
2
2019-08-06T19:24:35Z
2019-12-23T16:13:05Z
2019-08-07T09:38:42Z
CONTRIBUTOR
null
- [x] closes #26962 - [ ] 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/27787/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27787/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27787.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27787", "merged_at": "2019-08-07T09:38:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27787.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27787" }
https://api.github.com/repos/pandas-dev/pandas/issues/27788
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27788/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27788/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27788/events
https://github.com/pandas-dev/pandas/pull/27788
477,569,511
MDExOlB1bGxSZXF1ZXN0MzA0ODY5NTQ5
27,788
TST: Add tests for groupby categorical values with axis=1
{ "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" }
[ { "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": "729FCF", "d...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-06T20:05:29Z
2019-08-07T13:57:41Z
2019-08-07T13:57:34Z
MEMBER
null
This is xref https://github.com/pandas-dev/pandas/pull/27700#issuecomment-517703401 - [x] closes #13420 - [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/27788/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27788/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27788.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27788", "merged_at": "2019-08-07T13:57:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27788.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27788" }
https://api.github.com/repos/pandas-dev/pandas/issues/27789
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27789/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27789/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27789/events
https://github.com/pandas-dev/pandas/issues/27789
477,577,223
MDU6SXNzdWU0Nzc1NzcyMjM=
27,789
DOC: add print statement in to_latex example
{ "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": "0e8a16", "default": true, "description": null, "id": 7171206...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
0
2019-08-06T20:24:36Z
2019-08-08T11:43:18Z
2019-08-08T11:42:54Z
MEMBER
null
The docstring of `to_latext` shows a small example (https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_latex.html) as ``` >>> df = pd.DataFrame({'name': ['Raphael', 'Donatello'], ... 'mask': ['red', 'purple'], ... 'weapon': ['sai', 'bo staff']}) >>> df.to_latex(index=False) # doctest: +NORMALIZE_WHITESPACE '\\begin{tabular}{lll}\n\\toprule\n name & mask & weapon \\\\\n\\midrule\n Raphael & red & sai \\\\\n Donatello & purple & bo staff \\\\\n\\bottomrule\n\\end{tabular}\n' ``` I think it would be nice to also add a print statement like `print(df.to_latex(index=False))`(typically you want to be able to copy it to your tex file, and so you first need to print it to have something you can copy paste)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27789/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27789/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27790
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27790/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27790/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27790/events
https://github.com/pandas-dev/pandas/pull/27790
477,583,249
MDExOlB1bGxSZXF1ZXN0MzA0ODgwOTg2
27,790
BUG: Increase range of dates for holiday calculations
{ "avatar_url": "https://avatars.githubusercontent.com/u/2153614?v=4", "events_url": "https://api.github.com/users/rhstanton/events{/privacy}", "followers_url": "https://api.github.com/users/rhstanton/followers", "following_url": "https://api.github.com/users/rhstanton/following{/other_user}", "gists_url": "https://api.github.com/users/rhstanton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rhstanton", "id": 2153614, "login": "rhstanton", "node_id": "MDQ6VXNlcjIxNTM2MTQ=", "organizations_url": "https://api.github.com/users/rhstanton/orgs", "received_events_url": "https://api.github.com/users/rhstanton/received_events", "repos_url": "https://api.github.com/users/rhstanton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rhstanton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rhstanton/subscriptions", "type": "User", "url": "https://api.github.com/users/rhstanton" }
[ { "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, ...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
28
2019-08-06T20:39:12Z
2019-10-24T01:58:44Z
2019-10-24T00:04:13Z
CONTRIBUTOR
null
- [x] closes #27761 - [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/27790/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27790/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27790.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27790", "merged_at": "2019-10-24T00:04:13Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27790.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27790" }
https://api.github.com/repos/pandas-dev/pandas/issues/27791
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27791/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27791/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27791/events
https://github.com/pandas-dev/pandas/pull/27791
477,636,023
MDExOlB1bGxSZXF1ZXN0MzA0OTI0MzEz
27,791
CLN: Assorted Cleanups
{ "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...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-06T23:23:59Z
2019-08-08T13:33:19Z
2019-08-08T12:37:41Z
MEMBER
null
- make PTA/DTA strftime() return ndarray instead of Index - fix a xfailed Series[Period] test - avoid imports of Index subclass in arrays.categorical and arrays.datetimelike - some typing
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27791/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27791/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27791.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27791", "merged_at": "2019-08-08T12:37:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27791.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27791" }
https://api.github.com/repos/pandas-dev/pandas/issues/27792
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27792/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27792/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27792/events
https://github.com/pandas-dev/pandas/pull/27792
477,673,896
MDExOlB1bGxSZXF1ZXN0MzA0OTUzNzgy
27,792
CLN: remove nested error handling
{ "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
3
2019-08-07T02:24:52Z
2019-08-07T17:18:46Z
2019-08-07T16:54:43Z
MEMBER
null
The removed code is not covered in the test suite, so this makes for a nice little simplification. Moreover, since the condition above on 1369-1373 is an ugly one, de-nesting this function will give us a good shot and further simplifying this code. That said, this could be considered an API change, since now the "errors" kwarg doesn't actually do anything.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27792/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27792/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27792.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27792", "merged_at": "2019-08-07T16:54:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27792.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27792" }
https://api.github.com/repos/pandas-dev/pandas/issues/27793
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27793/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27793/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27793/events
https://github.com/pandas-dev/pandas/pull/27793
477,716,680
MDExOlB1bGxSZXF1ZXN0MzA0OTg2Njgy
27,793
DEPR: Remove previously deprecated IntervalIndex.from_intervals
{ "avatar_url": "https://avatars.githubusercontent.com/u/5332445?v=4", "events_url": "https://api.github.com/users/jschendel/events{/privacy}", "followers_url": "https://api.github.com/users/jschendel/followers", "following_url": "https://api.github.com/users/jschendel/following{/other_user}", "gists_url": "https://api.github.com/users/jschendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jschendel", "id": 5332445, "login": "jschendel", "node_id": "MDQ6VXNlcjUzMzI0NDU=", "organizations_url": "https://api.github.com/users/jschendel/orgs", "received_events_url": "https://api.github.com/users/jschendel/received_events", "repos_url": "https://api.github.com/users/jschendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jschendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jschendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jschendel" }
[ { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" }, { "color": "009800", "default": f...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-07T05:36:32Z
2019-08-07T14:35:51Z
2019-08-07T13:16:50Z
MEMBER
null
Didn't see any references to `IntervalIndex.from_intervals` in the docs. We deprecated this before `IntervalArray` was implemented, so no `from_intervals` to worry about there; `IntervalArray` file just has a "shared" docstring for `from_intervals` that isn't actually shared.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27793/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27793/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27793.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27793", "merged_at": "2019-08-07T13:16:50Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27793.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27793" }
https://api.github.com/repos/pandas-dev/pandas/issues/27794
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27794/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27794/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27794/events
https://github.com/pandas-dev/pandas/issues/27794
477,735,755
MDU6SXNzdWU0Nzc3MzU3NTU=
27,794
Min/max does not work for dates with timezones if there are missing values in the data frame
{ "avatar_url": "https://avatars.githubusercontent.com/u/4216919?v=4", "events_url": "https://api.github.com/users/joelrich/events{/privacy}", "followers_url": "https://api.github.com/users/joelrich/followers", "following_url": "https://api.github.com/users/joelrich/following{/other_user}", "gists_url": "https://api.github.com/users/joelrich/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joelrich", "id": 4216919, "login": "joelrich", "node_id": "MDQ6VXNlcjQyMTY5MTk=", "organizations_url": "https://api.github.com/users/joelrich/orgs", "received_events_url": "https://api.github.com/users/joelrich/received_events", "repos_url": "https://api.github.com/users/joelrich/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joelrich/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joelrich/subscriptions", "type": "User", "url": "https://api.github.com/users/joelrich" }
[ { "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": "Timezone data dtype", ...
open
false
null
[]
null
9
2019-08-07T06:41:53Z
2021-07-10T19:28:04Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.concat([ pd.date_range(start='1/1/2018', end='1/30/2018').to_series().dt.tz_localize("UTC"), pd.date_range(start='1/1/2018', end='1/20/2018').to_series().dt.tz_localize("UTC") ], axis=1) df.min(axis=1) ``` #### Problem description Without `tz_localize`, everything works as expected. Also, if both columns have the same length and time zones, it works just fine. However, the combination of time zones and different lengths results in: ``` 2018-01-01 NaN 2018-01-02 NaN 2018-01-03 NaN 2018-01-04 NaN 2018-01-05 NaN 2018-01-06 NaN 2018-01-07 NaN 2018-01-08 NaN 2018-01-09 NaN 2018-01-10 NaN 2018-01-11 NaN ... ``` of type float64. #### Expected Output List of dates #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.5.final.0 python-bits : 64 OS : Linux OS-release : 4.4.0-17134-Microsoft machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 0.25.0 numpy : 1.17.0 pytz : 2019.1 dateutil : 2.8.0 pip : 19.1.1 setuptools : 41.0.1 Cython : 0.29.10 pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.1.8 lxml.etree : 4.3.4 html5lib : None pymysql : None psycopg2 : 2.8.2 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : 7.5.0 pandas_datareader: None bs4 : None bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : 4.3.4 matplotlib : 3.1.1 numexpr : 2.6.9 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : 1.3.0 sqlalchemy : 1.3.3 tables : 3.5.2 xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : 1.1.8 </details> I have found some related fixed issues, but not exactly this one.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27794/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27794/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27795
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27795/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27795/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27795/events
https://github.com/pandas-dev/pandas/issues/27795
477,767,057
MDU6SXNzdWU0Nzc3NjcwNTc=
27,795
df.astype(dict) drops 'names' on a multiindex
{ "avatar_url": "https://avatars.githubusercontent.com/u/711638?v=4", "events_url": "https://api.github.com/users/tunnij/events{/privacy}", "followers_url": "https://api.github.com/users/tunnij/followers", "following_url": "https://api.github.com/users/tunnij/following{/other_user}", "gists_url": "https://api.github.com/users/tunnij/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tunnij", "id": 711638, "login": "tunnij", "node_id": "MDQ6VXNlcjcxMTYzOA==", "organizations_url": "https://api.github.com/users/tunnij/orgs", "received_events_url": "https://api.github.com/users/tunnij/received_events", "repos_url": "https://api.github.com/users/tunnij/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tunnij/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tunnij/subscriptions", "type": "User", "url": "https://api.github.com/users/tunnij" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": 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
2019-08-07T07:58:57Z
2019-08-07T19:01:01Z
2019-08-07T19:00:39Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.DataFrame( data=[1., 2., 3.], columns=pd.MultiIndex.from_tuples( [('A', 'X')], names=['Top', 'Bottom'], ) ) df2 = df.astype({('A', 'X'): 'int'}) print(df.columns.names) print(df2.columns.names) ``` #### Problem description `df2` should have the same `column.names` as `df`. What actually happens is that the `column.names` become `[None, None]`. If instead the definition of `df2` becomes: ```python df2 = df.astype('int') ``` Then the expected behavior is observed. #### Expected Output `['Top', 'Bottom']` #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 2.7.15.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-327.36.3.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.22.0 pytest: 4.6.2 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.28.5 numpy: 1.14.5 scipy: 1.0.1 pyarrow: None xarray: 0.11.3 IPython: 5.8.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 2.2.3 openpyxl: 2.6.2 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.8 lxml: 4.2.4 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.5 pymysql: None psycopg2: 2.7.5 (dt dec pq3 ext lo64) jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27795/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27795/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27796
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27796/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27796/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27796/events
https://github.com/pandas-dev/pandas/issues/27796
477,774,239
MDU6SXNzdWU0Nzc3NzQyMzk=
27,796
Missing spaces between lines and y-axis
{ "avatar_url": "https://avatars.githubusercontent.com/u/27836456?v=4", "events_url": "https://api.github.com/users/arthurire/events{/privacy}", "followers_url": "https://api.github.com/users/arthurire/followers", "following_url": "https://api.github.com/users/arthurire/following{/other_user}", "gists_url": "https://api.github.com/users/arthurire/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/arthurire", "id": 27836456, "login": "arthurire", "node_id": "MDQ6VXNlcjI3ODM2NDU2", "organizations_url": "https://api.github.com/users/arthurire/orgs", "received_events_url": "https://api.github.com/users/arthurire/received_events", "repos_url": "https://api.github.com/users/arthurire/repos", "site_admin": false, "starred_url": "https://api.github.com/users/arthurire/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/arthurire/subscriptions", "type": "User", "url": "https://api.github.com/users/arthurire" }
[]
closed
false
null
[]
null
1
2019-08-07T08:14:23Z
2019-08-08T16:23:06Z
2019-08-08T16:23:06Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import matplotlib.pyplot as plt plt.plot([1,2],[2,4]) pd.DataFrame([2,4],index=[1,2]).plot() ``` ![image](https://user-images.githubusercontent.com/27836456/62605822-750d8d00-b92d-11e9-97ab-964bb09512f7.png) ![image](https://user-images.githubusercontent.com/27836456/62605848-80f94f00-b92d-11e9-9b2b-cf6596595229.png) #### Problem description Plots generated by df.plot() and plt.plot() are different and I expected them exactly the same. As you can see, all the spaces between y-axis and lines are missing when I use pd.DataFrame.plot(). When you have a large dataset and there's a rapid change at the end, the change might be covered by the border, makes the plot hard to read. ![image](https://user-images.githubusercontent.com/27836456/62606618-38db2c00-b92f-11e9-90bc-47c5ed7442e7.png) ![image](https://user-images.githubusercontent.com/27836456/62606610-324cb480-b92f-11e9-92ef-111f705e5a1e.png) pandas version:0.25.0 matplotlib version:3.1.1 Latest version that works: pandas:0.23.x matplotlib 3.0.3 #### Expected Output Two figures should look exactly the same. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Darwin OS-release : 18.6.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : zh_CN.UTF-8 LOCALE : zh_CN.UTF-8 pandas : 0.25.0 numpy : 1.17.0 pytz : 2019.2 dateutil : 2.8.0 pip : 19.2.1 setuptools : 41.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.1 IPython : 7.7.0 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : None sqlalchemy : None tables : None xarray : None xlrd : None xlwt : None xlsxwriter : 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/27796/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27796/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27797
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27797/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27797/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27797/events
https://github.com/pandas-dev/pandas/issues/27797
477,782,632
MDU6SXNzdWU0Nzc3ODI2MzI=
27,797
groupby().ffill() column disappeared in pandas==0.25.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/5236149?v=4", "events_url": "https://api.github.com/users/fujiaxiang/events{/privacy}", "followers_url": "https://api.github.com/users/fujiaxiang/followers", "following_url": "https://api.github.com/users/fujiaxiang/following{/other_user}", "gists_url": "https://api.github.com/users/fujiaxiang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fujiaxiang", "id": 5236149, "login": "fujiaxiang", "node_id": "MDQ6VXNlcjUyMzYxNDk=", "organizations_url": "https://api.github.com/users/fujiaxiang/orgs", "received_events_url": "https://api.github.com/users/fujiaxiang/received_events", "repos_url": "https://api.github.com/users/fujiaxiang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fujiaxiang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fujiaxiang/subscriptions", "type": "User", "url": "https://api.github.com/users/fujiaxiang" }
[]
closed
false
null
[]
null
2
2019-08-07T08:31:02Z
2019-08-07T10:21:46Z
2019-08-07T10:14:49Z
MEMBER
null
#### Code Sample ```python import pandas as pd df = pd.DataFrame([[1, 1], [2, 2], [1, None], [2, None]], columns=['a', 'b']) df.groupby('a').ffill() ``` #### Problem description Dataframe df itself: ``` a b 0 1 1.0 1 2 2.0 2 1 NaN 3 2 NaN ``` Output of ```df.groupby('a').ffill()``` in 0.25.0: ``` b 0 1.0 1 2.0 2 1.0 3 2.0 ``` Output of ```df.groupby('a').ffill()``` in 0.24.2: ``` a b 0 1 1.0 1 2 2.0 2 1 1.0 3 2 2.0 ``` The output of the above code in pandas==0.25.0 drops columns "a", which is kind of weird and also different from 0.24.2. I believe people would expected column "a" to be still there as a column or as an index. The behavior in 0.24.2 is intuitive, natural and easy to use. [this should explain **why** the current behaviour is a problem and why the expected output is a better solution.] #### Expected Output ``` a b 0 1 1.0 1 2 2.0 2 1 1.0 3 2 2.0 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 85 Stepping 4, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 0.25.0 numpy : 1.16.2 pytz : 2018.9 dateutil : 2.8.0 pip : 19.0.3 setuptools : 41.0.1 Cython : 0.29.6 pytest : 4.3.1 hypothesis : None sphinx : 1.8.5 blosc : None feather : None xlsxwriter : 1.1.5 lxml.etree : 4.3.2 html5lib : 1.0.1 pymysql : None psycopg2 : 2.7.6.1 (dt dec pq3 ext lo64) jinja2 : 2.10 IPython : 7.4.0 pandas_datareader: None bs4 : 4.7.1 bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : 4.3.2 matplotlib : 3.0.3 numexpr : 2.6.9 odfpy : None openpyxl : 2.6.1 pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : 1.2.1 sqlalchemy : 1.2.19 tables : 3.5.1 xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.1.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/27797/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27797/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27798
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27798/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27798/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27798/events
https://github.com/pandas-dev/pandas/pull/27798
477,831,458
MDExOlB1bGxSZXF1ZXN0MzA1MDc1MzAw
27,798
DOC: add print statement in to_latex example
{ "avatar_url": "https://avatars.githubusercontent.com/u/43701530?v=4", "events_url": "https://api.github.com/users/sameshl/events{/privacy}", "followers_url": "https://api.github.com/users/sameshl/followers", "following_url": "https://api.github.com/users/sameshl/following{/other_user}", "gists_url": "https://api.github.com/users/sameshl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sameshl", "id": 43701530, "login": "sameshl", "node_id": "MDQ6VXNlcjQzNzAxNTMw", "organizations_url": "https://api.github.com/users/sameshl/orgs", "received_events_url": "https://api.github.com/users/sameshl/received_events", "repos_url": "https://api.github.com/users/sameshl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sameshl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sameshl/subscriptions", "type": "User", "url": "https://api.github.com/users/sameshl" }
[ { "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": "006b75", "default": false, "description": "to_latex", "id": ...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2019-08-07T10:05:05Z
2019-08-08T11:43:06Z
2019-08-08T11:42:55Z
CONTRIBUTOR
null
changed `df.to_latex` to `print(df.to_latex)` closes #27789
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27798/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27798/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27798.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27798", "merged_at": "2019-08-08T11:42:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27798.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27798" }
https://api.github.com/repos/pandas-dev/pandas/issues/27799
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27799/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27799/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27799/events
https://github.com/pandas-dev/pandas/issues/27799
477,834,340
MDU6SXNzdWU0Nzc4MzQzNDA=
27,799
BUG: pivot_table fails with aggfunc='size' and margins=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/2961313?v=4", "events_url": "https://api.github.com/users/kpflugshaupt/events{/privacy}", "followers_url": "https://api.github.com/users/kpflugshaupt/followers", "following_url": "https://api.github.com/users/kpflugshaupt/following{/other_user}", "gists_url": "https://api.github.com/users/kpflugshaupt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kpflugshaupt", "id": 2961313, "login": "kpflugshaupt", "node_id": "MDQ6VXNlcjI5NjEzMTM=", "organizations_url": "https://api.github.com/users/kpflugshaupt/orgs", "received_events_url": "https://api.github.com/users/kpflugshaupt/received_events", "repos_url": "https://api.github.com/users/kpflugshaupt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kpflugshaupt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kpflugshaupt/subscriptions", "type": "User", "url": "https://api.github.com/users/kpflugshaupt" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
open
false
null
[]
null
0
2019-08-07T10:10:49Z
2021-07-10T19:29:18Z
null
CONTRIBUTOR
null
#### Code Sample: Calculating a simple cross table ```python import pandas as pd # prepare DataFrame df = pd.DataFrame({ 'nr': [1,2,3,4,5,6,7,8], 'nr2': [1,2,3,4,5,6,7,8], 'cl':list('aabbcccc') }) df['cl_cat'] = df.cl.astype('category') ``` This works: ```python df.pivot_table(index='nr', columns='nr2', aggfunc='size', fill_value=0, margins=False) ``` ``` nr2 1 2 3 4 5 6 7 8 nr 1 1 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 0 3 0 0 1 0 0 0 0 0 4 0 0 0 1 0 0 0 0 5 0 0 0 0 1 0 0 0 6 0 0 0 0 0 1 0 0 7 0 0 0 0 0 0 1 0 8 0 0 0 0 0 0 0 1 ``` This (`margins=True`) crashes with **KeyError: (1, 'All')** and **ValueError: Names should be list-like for a MultiIndex**: ```python df.pivot_table(index='nr', columns='nr2', aggfunc='size', fill_value=0, margins=True) ``` ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 2889 try: -> 2890 return self._engine.get_loc(key) 2891 except KeyError: pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas\_libs\index_class_helper.pxi in pandas._libs.index.Int64Engine._check_type() KeyError: (1, 'All') During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\internals\managers.py in set(self, item, value) 1067 try: -> 1068 loc = self.items.get_loc(item) 1069 except KeyError: C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 2891 except KeyError: -> 2892 return self._engine.get_loc(self._maybe_cast_indexer(key)) 2893 indexer = self.get_indexer([key], method=method, tolerance=tolerance) pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc() pandas\_libs\index_class_helper.pxi in pandas._libs.index.Int64Engine._check_type() KeyError: (1, 'All') During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) <ipython-input-85-ddda268badda> in <module> ----> 1 df.pivot_table(index='nr', columns='nr2', aggfunc='size', fill_value=0, margins=True) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py in pivot_table(self, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name, observed) 6065 dropna=dropna, 6066 margins_name=margins_name, -> 6067 observed=observed, 6068 ) 6069 C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\reshape\pivot.py in pivot_table(data, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name, observed) 160 observed=dropna, 161 margins_name=margins_name, --> 162 fill_value=fill_value, 163 ) 164 C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\reshape\pivot.py in _add_margins(table, data, values, rows, cols, aggfunc, observed, margins_name, fill_value) 229 observed, 230 grand_margin, --> 231 margins_name, 232 ) 233 if not isinstance(marginal_result_set, tuple): C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\reshape\pivot.py in _generate_marginal_results(table, data, values, rows, cols, aggfunc, observed, grand_margin, margins_name) 312 piece = piece.copy() 313 try: --> 314 piece[all_key] = margin[key] 315 except TypeError: 316 C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py in __setitem__(self, key, value) 3465 else: 3466 # set column -> 3467 self._set_item(key, value) 3468 3469 def _setitem_slice(self, key, value): C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py in _set_item(self, key, value) 3543 self._ensure_valid_index(value) 3544 value = self._sanitize_column(key, value) -> 3545 NDFrame._set_item(self, key, value) 3546 3547 # check if we are modifying a copy C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\generic.py in _set_item(self, key, value) 3380 3381 def _set_item(self, key, value): -> 3382 self._data.set(key, value) 3383 self._clear_item_cache() 3384 C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\internals\managers.py in set(self, item, value) 1069 except KeyError: 1070 # This item wasn't present, just insert at end -> 1071 self.insert(len(self.items), item, value) 1072 return 1073 C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\internals\managers.py in insert(self, loc, item, value, allow_duplicates) 1176 1177 # insert to the axis; this could possibly raise a TypeError -> 1178 new_axis = self.items.insert(loc, item) 1179 1180 block = make_block(values=value, ndim=self.ndim, placement=slice(loc, loc + 1)) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\numeric.py in insert(self, loc, item) 144 if is_scalar(item) and isna(item): 145 item = self._na_value --> 146 return super().insert(loc, item) 147 148 def _union(self, other, sort): C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in insert(self, loc, item) 5302 """ 5303 _self = np.asarray(self) -> 5304 item = self._coerce_scalar_to_index(item)._ndarray_values 5305 idx = np.concatenate((_self[:loc], item, _self[loc:])) 5306 return self._shallow_copy_with_infer(idx) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in _coerce_scalar_to_index(self, item) 4148 dtype = None 4149 -> 4150 return Index([item], dtype=dtype, **self._get_attributes_dict()) 4151 4152 def _to_safe_for_reshape(self): C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in __new__(cls, data, dtype, copy, name, fastpath, tupleize_cols, **kwargs) 531 532 return MultiIndex.from_tuples( --> 533 data, names=name or kwargs.get("names") 534 ) 535 # other iterable of some kind C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\multi.py in from_tuples(cls, tuples, sortorder, names) 487 arrays = zip(*tuples) 488 --> 489 return MultiIndex.from_arrays(arrays, sortorder=sortorder, names=names) 490 491 @classmethod C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\multi.py in from_arrays(cls, arrays, sortorder, names) 427 sortorder=sortorder, 428 names=names, --> 429 verify_integrity=False, 430 ) 431 C:\ProgramData\Anaconda3\lib\site-packages\pandas\util\_decorators.py in wrapper(*args, **kwargs) 206 else: 207 kwargs[new_arg_name] = new_arg_value --> 208 return func(*args, **kwargs) 209 210 return wrapper C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\multi.py in __new__(cls, levels, codes, sortorder, names, dtype, copy, name, verify_integrity, _set_identity) 262 if names is not None: 263 # handles name validation --> 264 result._set_names(names) 265 266 if sortorder is not None: C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\multi.py in _set_names(self, names, level, validate) 1207 # Don't allow a single string for names in a MultiIndex 1208 if names is not None and not is_list_like(names): -> 1209 raise ValueError("Names should be list-like for a MultiIndex") 1210 names = list(names) 1211 ValueError: Names should be list-like for a MultiIndex ``` These (index variable string/categorical) both crash the same way: ```python df.pivot_table(index='cl', columns='nr2', aggfunc='size', fill_value=0, margins=True) df.pivot_table(index='cl_cat', columns='nr2', aggfunc='size', fill_value=0, margins=True) ``` This (`aggfunc='sum'`) works, but does a different thing: ```python df.pivot_table(index='nr', columns='nr2', aggfunc='sum', fill_value=0, margins=True) ``` #### Problem description Margin sums cannot be calculated with pivot_table if `aggfunc='size'` is set (to calculate crosstables). #### Expected Output Margin sums like those resulting from ```python pd.crosstab(index=df.nr, columns=df.nr2, margins=True) ``` ``` nr2 1 2 3 4 5 6 7 8 All nr 1 1 0 0 0 0 0 0 0 1 2 0 1 0 0 0 0 0 0 1 3 0 0 1 0 0 0 0 0 1 4 0 0 0 1 0 0 0 0 1 5 0 0 0 0 1 0 0 0 1 6 0 0 0 0 0 1 0 0 1 7 0 0 0 0 0 0 1 0 1 8 0 0 0 0 0 0 0 1 1 All 1 1 1 1 1 1 1 1 8 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 0.25.0 numpy : 1.16.4 pytz : 2019.1 dateutil : 2.8.0 pip : 19.1.1 setuptools : 41.0.1 Cython : 0.29.12 pytest : 5.0.1 hypothesis : None sphinx : 2.1.2 blosc : None feather : None xlsxwriter : 1.1.8 lxml.etree : 4.3.4 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : 7.7.0 pandas_datareader: None bs4 : 4.7.1 bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : 4.3.4 matplotlib : 3.1.1 numexpr : 2.6.9 odfpy : None openpyxl : 2.6.2 pandas_gbq : None pyarrow : 0.11.1 pytables : None s3fs : None scipy : 1.3.0 sqlalchemy : 1.3.5 tables : 3.5.2 xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.1.8 </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/27799/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27799/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27800
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27800/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27800/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27800/events
https://github.com/pandas-dev/pandas/issues/27800
477,921,074
MDU6SXNzdWU0Nzc5MjEwNzQ=
27,800
BUG: aggregation on ordered categorical column drops grouping index or crashes, depending on context
{ "avatar_url": "https://avatars.githubusercontent.com/u/2961313?v=4", "events_url": "https://api.github.com/users/kpflugshaupt/events{/privacy}", "followers_url": "https://api.github.com/users/kpflugshaupt/followers", "following_url": "https://api.github.com/users/kpflugshaupt/following{/other_user}", "gists_url": "https://api.github.com/users/kpflugshaupt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kpflugshaupt", "id": 2961313, "login": "kpflugshaupt", "node_id": "MDQ6VXNlcjI5NjEzMTM=", "organizations_url": "https://api.github.com/users/kpflugshaupt/orgs", "received_events_url": "https://api.github.com/users/kpflugshaupt/received_events", "repos_url": "https://api.github.com/users/kpflugshaupt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kpflugshaupt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kpflugshaupt/subscriptions", "type": "User", "url": "https://api.github.com/users/kpflugshaupt" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Categorical Dat...
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" }
14
2019-08-07T13:13:15Z
2020-08-21T22:34:52Z
2020-08-21T22:34:52Z
CONTRIBUTOR
null
### Code Sample Build the model data frame: ```python df = pd.DataFrame({ 'nr': [1,2,3,4,5,6,7,8], 'cat_ord': list('aabbccdd'), 'cat':list('aaaabbbb') }) df = df.astype({'cat': 'category', 'cat_ord': 'category'}) df['cat_ord'] = df['cat_ord'].cat.as_ordered() ``` When grouping, single aggregations on a _numeric column_ work: ```python df.groupby('cat').agg({'nr': 'min'}) ``` ``` nr cat a 1 b 5 ``` **Single aggregations** on an _ordered categorical column_ work, but drop the grouping index: ```python df.groupby('cat').agg({'cat_ord': 'min'}) ``` ``` cat_ord 0 a 1 c ``` **Combined single aggregations** on a _numeric_ and an _ordered categorical_ column work: ```python df.groupby('cat').agg({'nr': 'min', 'cat_ord': 'min'}) ``` ``` nr cat_ord cat a 1 a b 5 c ``` **Multiple aggregations** on an _ordered categorical_ column work, but drop the grouping index: ```python df.groupby('cat').agg({'cat_ord': ['min', 'max']}) ``` ``` cat_ord min max 0 a b 1 c d ``` **Combined aggregations** on a _numeric_ (single) and an _ordered categorical_ column (multiple) fail with a **TypeError**: ```python df.groupby('cat').agg({'nr': 'min', 'cat_ord': ['min', 'max']}) ``` ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-148-b446de510106> in <module> ----> 1 df.groupby('cat').agg({'nr': 'min', 'cat_ord': ['min', 'max']}) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\groupby\generic.py in aggregate(self, arg, *args, **kwargs) 1453 @Appender(_shared_docs["aggregate"]) 1454 def aggregate(self, arg=None, *args, **kwargs): -> 1455 return super().aggregate(arg, *args, **kwargs) 1456 1457 agg = aggregate C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\groupby\generic.py in aggregate(self, func, *args, **kwargs) 227 func = _maybe_mangle_lambdas(func) 228 --> 229 result, how = self._aggregate(func, _level=_level, *args, **kwargs) 230 if how is None: 231 return result C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\base.py in _aggregate(self, arg, *args, **kwargs) 528 # return a MI DataFrame 529 --> 530 return concat([result[k] for k in keys], keys=keys, axis=1), True 531 532 elif isinstance(self, ABCSeries) and is_any_series(): C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\reshape\concat.py in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, sort, copy) 256 ) 257 --> 258 return op.get_result() 259 260 C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\reshape\concat.py in get_result(self) 466 obj_labels = mgr.axes[ax] 467 if not new_labels.equals(obj_labels): --> 468 indexers[ax] = obj_labels.reindex(new_labels)[1] 469 470 mgrs_indexers.append((obj._data, indexers)) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\category.py in reindex(self, target, method, level, limit, tolerance) 616 # coerce to a regular index here! 617 result = Index(np.array(self), name=self.name) --> 618 new_target, indexer, _ = result._reindex_non_unique(np.array(target)) 619 else: 620 C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in _reindex_non_unique(self, target) 3434 3435 target = ensure_index(target) -> 3436 indexer, missing = self.get_indexer_non_unique(target) 3437 check = indexer != -1 3438 new_labels = self.take(indexer[check]) C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_indexer_non_unique(self, target) 4792 tgt_values = target._ndarray_values 4793 -> 4794 indexer, missing = self._engine.get_indexer_non_unique(tgt_values) 4795 return ensure_platform_int(indexer), missing 4796 pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_indexer_non_unique() TypeError: '<' not supported between instances of 'str' and 'int' ``` **Combined aggregations** on a _numeric_ (multiple) and an _ordered categorical_ column (single) also fail with the same **TypeError**: ```python df.groupby('cat').agg({'nr': ['min', 'max'], 'cat_ord': 'min'}) ``` ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-164-b1d70184bd81> in <module> ----> 1 df.groupby('cat').agg({'nr': ['min', 'max'], 'cat_ord': 'min'}) ... pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_indexer_non_unique() TypeError: '<' not supported between instances of 'str' and 'int' ``` ### Problem description Aggregations on ordered categoricals drop the grouping index, or crash, as shown above. This makes it hard to calculate combined aggregations over big data sets correctly and efficiently. ### Expected Output Aggregations on ordered categoricals should work as on non-categorical columns. ### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.3.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 0.25.0 numpy : 1.16.4 pytz : 2019.1 dateutil : 2.8.0 pip : 19.1.1 setuptools : 41.0.1 Cython : 0.29.12 pytest : 5.0.1 hypothesis : None sphinx : 2.1.2 blosc : None feather : None xlsxwriter : 1.1.8 lxml.etree : 4.3.4 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : 7.7.0 pandas_datareader: None bs4 : 4.7.1 bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : 4.3.4 matplotlib : 3.1.1 numexpr : 2.6.9 odfpy : None openpyxl : 2.6.2 pandas_gbq : None pyarrow : 0.11.1 pytables : None s3fs : None scipy : 1.3.0 sqlalchemy : 1.3.5 tables : 3.5.2 xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.1.8 </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/27800/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27800/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27801
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27801/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27801/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27801/events
https://github.com/pandas-dev/pandas/pull/27801
477,974,243
MDExOlB1bGxSZXF1ZXN0MzA1MTg1NTM3
27,801
ENH: Add argmax and argmin to ExtensionArray
{ "avatar_url": "https://avatars.githubusercontent.com/u/14367887?v=4", "events_url": "https://api.github.com/users/makbigc/events{/privacy}", "followers_url": "https://api.github.com/users/makbigc/followers", "following_url": "https://api.github.com/users/makbigc/following{/other_user}", "gists_url": "https://api.github.com/users/makbigc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/makbigc", "id": 14367887, "login": "makbigc", "node_id": "MDQ6VXNlcjE0MzY3ODg3", "organizations_url": "https://api.github.com/users/makbigc/orgs", "received_events_url": "https://api.github.com/users/makbigc/received_events", "repos_url": "https://api.github.com/users/makbigc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/makbigc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/makbigc/subscriptions", "type": "User", "url": "https://api.github.com/users/makbigc" }
[ { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
{ "closed_at": "2020-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" }
40
2019-08-07T14:45:47Z
2020-07-08T14:47:45Z
2020-07-08T14:38:16Z
CONTRIBUTOR
null
- closes #24382 - tests added - passes `black pandas` - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - whatsnew entry The methods added in this PR ignore `nan` ,i.e., `skipna=True`. The existing `categorical.min` return `nan` if `categorical` contain any `nan`. This behavior is expected in `test_min_max` (tests/arrays/categorical/test_analytics.py).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27801/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27801/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27801.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27801", "merged_at": "2020-07-08T14:38:16Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27801.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27801" }
https://api.github.com/repos/pandas-dev/pandas/issues/27802
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27802/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27802/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27802/events
https://github.com/pandas-dev/pandas/issues/27802
478,008,651
MDU6SXNzdWU0NzgwMDg2NTE=
27,802
DOC: Series.str.slice() should show that negative values for start are allowed
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0e8a16", "default": true, "description": null, "id": 7171206...
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" }
0
2019-08-07T15:48:41Z
2019-08-09T12:55:23Z
2019-08-09T12:55:23Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python In [1]: import pandas as pd In [2]: pd.__version__ Out[2]: '0.25.0' In [3]: s = pd.Series(["A1", "BC2", "DEF3"]) In [4]: s Out[4]: 0 A1 1 BC2 2 DEF3 dtype: object In [5]: s.str.slice(start=-1) Out[5]: 0 1 1 2 2 3 dtype: object In [6]: s.str[:-1] Out[6]: 0 A 1 BC 2 DEF dtype: object ``` #### Problem description It is not apparent from the documentation at https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.slice.html that you can specify negative values for the `start` and `stop` arguments. So I think this should be stated, as well as used in some examples (as shown above). #### Expected Output N/A #### Output of ``pd.show_versions()`` N/A
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27802/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27802/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27803
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27803/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27803/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27803/events
https://github.com/pandas-dev/pandas/pull/27803
478,016,736
MDExOlB1bGxSZXF1ZXN0MzA1MjIwMjkz
27,803
REF: Simplify _comp_method_SERIES
{ "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-07T16:04:41Z
2019-08-09T15:39:54Z
2019-08-08T12:35:31Z
MEMBER
null
- Do raising checks earlier on, matching how this is done elsewhere (moving towards #23853) - Comment on line 1034 notes possibly-inconsistent behavior that we should either change or add an explanatory comment for. - Ditto line 1058 - Before long we'll be able to collapse all of the dispatch_to_extension_op cases into one case; I'm still troubleshooting some corner cases of this on another branch. - After this, `na_op` is only called in one place, meaning it will be easier to make further de-nesting/de-closuring simplifications in follow-ups. - Putting all the finalize/_constructor business at the end will make it easier to separate out the array-specific middle and apply it to a) PandasArray and b) Block-wise.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27803/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27803/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27803.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27803", "merged_at": "2019-08-08T12:35:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27803.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27803" }
https://api.github.com/repos/pandas-dev/pandas/issues/27804
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27804/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27804/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27804/events
https://github.com/pandas-dev/pandas/pull/27804
478,063,911
MDExOlB1bGxSZXF1ZXN0MzA1MjU4Mzkx
27,804
[WIP] Improve CI/CD pipeline performance
{ "avatar_url": "https://avatars.githubusercontent.com/u/10116000?v=4", "events_url": "https://api.github.com/users/bhavaniravi/events{/privacy}", "followers_url": "https://api.github.com/users/bhavaniravi/followers", "following_url": "https://api.github.com/users/bhavaniravi/following{/other_user}", "gists_url": "https://api.github.com/users/bhavaniravi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bhavaniravi", "id": 10116000, "login": "bhavaniravi", "node_id": "MDQ6VXNlcjEwMTE2MDAw", "organizations_url": "https://api.github.com/users/bhavaniravi/orgs", "received_events_url": "https://api.github.com/users/bhavaniravi/received_events", "repos_url": "https://api.github.com/users/bhavaniravi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bhavaniravi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bhavaniravi/subscriptions", "type": "User", "url": "https://api.github.com/users/bhavaniravi" }
[ { "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
[]
null
6
2019-08-07T17:57:37Z
2019-10-22T01:48:03Z
2019-10-22T01:48:03Z
CONTRIBUTOR
null
- [X] closes #24028 - [ ] 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/27804/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27804/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27804.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27804", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27804.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27804" }
https://api.github.com/repos/pandas-dev/pandas/issues/27805
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27805/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27805/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27805/events
https://github.com/pandas-dev/pandas/issues/27805
478,064,158
MDU6SXNzdWU0NzgwNjQxNTg=
27,805
DataFrame and Series iterators have many inconsistencies
{ "avatar_url": "https://avatars.githubusercontent.com/u/6099299?v=4", "events_url": "https://api.github.com/users/benthayer/events{/privacy}", "followers_url": "https://api.github.com/users/benthayer/followers", "following_url": "https://api.github.com/users/benthayer/following{/other_user}", "gists_url": "https://api.github.com/users/benthayer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/benthayer", "id": 6099299, "login": "benthayer", "node_id": "MDQ6VXNlcjYwOTkyOTk=", "organizations_url": "https://api.github.com/users/benthayer/orgs", "received_events_url": "https://api.github.com/users/benthayer/received_events", "repos_url": "https://api.github.com/users/benthayer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/benthayer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/benthayer/subscriptions", "type": "User", "url": "https://api.github.com/users/benthayer" }
[]
closed
false
null
[]
null
2
2019-08-07T17:58:13Z
2019-08-11T23:15:22Z
2019-08-11T23:15:22Z
CONTRIBUTOR
null
There seem to be many inconsistencies between the iterators of `Series` and `DataFrame`. I'll lay them out here. To address these, we'll probably need to open up several other issues. And before anyone reading this gets squeamish, **I'd like to offer my help in fixing these problems.** `Series.items()` and `DataFrame.items()` don't have similar behavior and this is confusing, especially since the docs state `DataFrame.items()` is 'Equivalent to `Series.items()` for `DataFrame`.' Which is simply not true. This is also an issue for `Series.iteritems()` and `DataFrame.iteritems()`: `Series.iteritems()` is exactly the same as `Series.items()`, which both yield `(index, value)` `DataFrame.iteritems()` is exactly the same as `DataFrame.items()` except for in the documentation `.items()` uses "Yields" in the docs while `.iteritems()` uses "Returns", another inconsistency. Both of these yield `(column, df[column])`. On another note, `iter(DataFrame)` is functionally equivalent to `iter(DataFrame.columns)`, which is worth noting, and at least from my perspective, not an expected behavior. Under the current implementation, I'd expect the same results as `DataFrame.iteritems()` or, under my preferred implementation, I'd expect the same results as `DataFrame.iterrows()`. `iter(Series)` is the one method out of all of these that makes the most sense to me as it simply yields `value`. Still, this behavior is dissimilar to `iter(DataFrame)`, which, in my opinion,results in unnecessary confusion. There are other inconsistencies between `DataFrame.iterrows()`, `DataFrame.itertuples()`, and `Series.iteritems()`/`Series.items()`. All of them have similar functionality. The most similar functionality is between `DataFrame.iterrows()` and `Series.iteritems()`/`Series.items()`, which both return `(index, row/value)` `DataFrame.itertuples()` is the only one that has an `index` parameter, which allows us to include or exclude the index in the tuple that's being iterated over. Itertuples does have a different behavior than the other iterators though since it includes the index in the tuple instead of outside the iterator. `Series.itertuples()` does not exist, but merits existence since with the indexes included, it would behave the same as `DataFrame.itertuples()` and return something like `(index, value)` or `(multiindex1, multiindex2, value)`. Nonetheless, being able to decide whether to include the index in other situations would be useful so I could do things like what I would do now with `map(lambda x: x[1], my_series.iteritems())`. In my situation, I'm most in need of a `Series.itertuples()` with a similar functionailty as the current `DataFrame.itertuples()`. I understand that I can just do this simply with `my_series.to_frame().itertuples()` or `map(lambda x: (x[0][0], x[0][1], x[1]), my_series` (I have a multiindex) but it seems like there should be a better way and there are a lot of other inconsistencies that should be fixed before that happens. I'm happy to do a lot of the work for this myself, but I would need guidance on how to go about this since implementing these changes involves some decision-making. Also, with the breadth of this post, I might have missed something or made a mistake somewhere, but I think I've generally cataloged the majority of the problems.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27805/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27805/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27806
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27806/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27806/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27806/events
https://github.com/pandas-dev/pandas/pull/27806
478,065,871
MDExOlB1bGxSZXF1ZXN0MzA1MjYwMDAw
27,806
BUG: fix construction of NonConsolidatableBlock with inconsistent ndim (#27786)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[]
closed
false
null
[]
{ "closed_at": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
1
2019-08-07T18:02:30Z
2019-08-07T21:08:37Z
2019-08-07T21:08:37Z
MEMBER
null
Manual backport of https://github.com/pandas-dev/pandas/pull/27786, meeseeksdev seemed to be inactive for a moment (PR was properly milestoned).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27806/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27806/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27806.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27806", "merged_at": "2019-08-07T21:08:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27806.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27806" }
https://api.github.com/repos/pandas-dev/pandas/issues/27807
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27807/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27807/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27807/events
https://github.com/pandas-dev/pandas/pull/27807
478,067,502
MDExOlB1bGxSZXF1ZXN0MzA1MjYxMzE2
27,807
BUG: fix+test op(NaT, ndarray), also simplify
{ "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": "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
2
2019-08-07T18:06:42Z
2019-08-15T14:19:41Z
2019-08-15T12:41:33Z
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/27807/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27807/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27807.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27807", "merged_at": "2019-08-15T12:41:33Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27807.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27807" }
https://api.github.com/repos/pandas-dev/pandas/issues/27808
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27808/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27808/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27808/events
https://github.com/pandas-dev/pandas/pull/27808
478,117,160
MDExOlB1bGxSZXF1ZXN0MzA1MzAxNzgx
27,808
VIS: Fix DataFrame.plot() produces incorrect legend markers when plotting multiple series on the same axis
{ "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" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
10
2019-08-07T20:10:10Z
2021-01-31T10:02:37Z
2019-08-16T11:38:47Z
MEMBER
null
I found out that the reason this happens is because `subplots` is not updated accordingly when `plt.subplots()` is used and assign to `ax`, e.g. `fig, ax = plt.subplots(nrows=1, ncols=3)`. I tested my solution and things all get solved, and figure looks very correct like below: ![Screen Shot 2019-08-07 at 10 03 39 PM](https://user-images.githubusercontent.com/9269816/62654665-95a30a80-b960-11e9-94ad-ab43a0e8a3cf.png) BTW, i am not very sure how to properly test this, and would be nice to know! - [x] closes #18222 - [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/27808/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27808/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27808.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27808", "merged_at": "2019-08-16T11:38:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27808.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27808" }
https://api.github.com/repos/pandas-dev/pandas/issues/27809
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27809/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27809/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27809/events
https://github.com/pandas-dev/pandas/pull/27809
478,144,879
MDExOlB1bGxSZXF1ZXN0MzA1MzI0NTgz
27,809
CI: remove pytest pins
{ "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": "2019-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "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": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
2
2019-08-07T21:20:42Z
2019-08-08T16:22:48Z
2019-08-08T11:00:23Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27809/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27809/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27809.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27809", "merged_at": "2019-08-08T11:00:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27809.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27809" }
https://api.github.com/repos/pandas-dev/pandas/issues/27810
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27810/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27810/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27810/events
https://github.com/pandas-dev/pandas/pull/27810
478,149,602
MDExOlB1bGxSZXF1ZXN0MzA1MzI4NTM1
27,810
TST: skip test if running non-installed
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "8AE234", "d...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-07T21:33:24Z
2019-08-13T13:57:29Z
2019-08-13T12:06:27Z
MEMBER
null
If running the tests without the branch installed, this test fails. Skip it instead.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27810/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27810/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27810.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27810", "merged_at": "2019-08-13T12:06:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27810.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27810" }
https://api.github.com/repos/pandas-dev/pandas/issues/27811
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27811/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27811/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27811/events
https://github.com/pandas-dev/pandas/pull/27811
478,166,295
MDExOlB1bGxSZXF1ZXN0MzA1MzQyNDIz
27,811
REF: separate method-pinning functions
{ "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-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-08-07T22:26:00Z
2019-08-08T13:33:55Z
2019-08-08T12:33:12Z
MEMBER
null
These are the ones that are executed at import-time and then never needed again.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27811/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27811/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27811.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27811", "merged_at": "2019-08-08T12:33:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27811.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27811" }
https://api.github.com/repos/pandas-dev/pandas/issues/27812
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27812/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27812/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27812/events
https://github.com/pandas-dev/pandas/issues/27812
478,211,779
MDU6SXNzdWU0NzgyMTE3Nzk=
27,812
BUG:No xlabel for twinx axes in subploted figures
{ "avatar_url": "https://avatars.githubusercontent.com/u/53884734?v=4", "events_url": "https://api.github.com/users/daijpeng/events{/privacy}", "followers_url": "https://api.github.com/users/daijpeng/followers", "following_url": "https://api.github.com/users/daijpeng/following{/other_user}", "gists_url": "https://api.github.com/users/daijpeng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/daijpeng", "id": 53884734, "login": "daijpeng", "node_id": "MDQ6VXNlcjUzODg0NzM0", "organizations_url": "https://api.github.com/users/daijpeng/orgs", "received_events_url": "https://api.github.com/users/daijpeng/received_events", "repos_url": "https://api.github.com/users/daijpeng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/daijpeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/daijpeng/subscriptions", "type": "User", "url": "https://api.github.com/users/daijpeng" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, ...
open
false
null
[]
null
6
2019-08-08T01:53:22Z
2021-07-10T19:29:58Z
null
NONE
null
#### Code Sample ```python import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib as mpl df=pd.DataFrame() t1 = np.arange(1, 9.0, 1) df['TIME'] = t1 df['DAT1'] = t1 df['DAT2'] = np.arange(9, 1.0, -1) fig = plt.figure(constrained_layout=True) gs = mpl.gridspec.GridSpec(2, 3, figure=fig) ax1 = fig.add_subplot(gs[0, :]) ax3 = fig.add_subplot(gs[1, :]) color = 'tab:red' ax1.set_xlabel('time (s)') ax1.set_ylabel('exp', color=color) df.plot(ax=ax1, x='TIME', y='DAT1') ax1.tick_params(axis='y', labelcolor=color) **ax2 = ax1.twinx() # instantiate a second axes that shares the same x-axis color = 'tab:blue' ax2.set_ylabel('sin', color=color) # we already handled the x-label with ax1 df.plot(ax=ax1, x='TIME', y='DAT2') ax2.tick_params(axis='y', labelcolor=color)** fig.tight_layout() # otherwise the right y-label is slightly clipped plt.show() ``` #### Problem description When using GridSpec to set the layout, xlabels are not displayed if twinx is used ![Figure_1](https://user-images.githubusercontent.com/53884734/62669423-2100b800-b9c2-11e9-94c2-b62449c955c9.png) If the following code is commented out: “”“ ax2 = ax1.twinx() # instantiate a second axes that shares the same x-axis color = 'tab:blue' ax2.set_ylabel('sin', color=color) # we already handled the x-label with ax1 df.plot(ax=ax1, x='TIME', y='DAT2') ax2.tick_params(axis='y', labelcolor=color) ”“” You can see that xlabel can be displayed: ![Figure_2](https://user-images.githubusercontent.com/53884734/62669426-24943f00-b9c2-11e9-8d32-80c94df286fb.png) #### Expected Output show xlabels #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 23 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: zh_CN LOCALE: None.None pandas: 0.24.2 pytest: 4.3.1 pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.4.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.5 lxml.etree: 4.3.2 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27812/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27812/timeline
null
null
null