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/31415
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31415/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31415/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31415/events
https://github.com/pandas-dev/pandas/issues/31415
556,817,380
MDU6SXNzdWU1NTY4MTczODA=
31,415
Bug in AbstractHolidayCalendar.holidays
{ "avatar_url": "https://avatars.githubusercontent.com/u/881019?v=4", "events_url": "https://api.github.com/users/dhirschfeld/events{/privacy}", "followers_url": "https://api.github.com/users/dhirschfeld/followers", "following_url": "https://api.github.com/users/dhirschfeld/following{/other_user}", "gists_url": "https://api.github.com/users/dhirschfeld/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhirschfeld", "id": 881019, "login": "dhirschfeld", "node_id": "MDQ6VXNlcjg4MTAxOQ==", "organizations_url": "https://api.github.com/users/dhirschfeld/orgs", "received_events_url": "https://api.github.com/users/dhirschfeld/received_events", "repos_url": "https://api.github.com/users/dhirschfeld/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhirschfeld/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhirschfeld/subscriptions", "type": "User", "url": "https://api.github.com/users/dhirschfeld" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-29T12:01:14Z
2020-02-09T20:54:38Z
2020-02-09T20:54:38Z
CONTRIBUTOR
null
...when there are no rules. ```python from pandas.tseries.holiday import AbstractHolidayCalendar class ExampleCalendar(AbstractHolidayCalendar): pass cal = ExampleCalendar() ``` ```python In [58]: cal.holidays(pd.Timestamp('01-Jan-2020'), pd.Timestamp('01-Jan-2021')) Traceback (most recent call last): File "<ipython-input-58-022244d4e794>", line 1, in <module> cal.holidays(pd.Timestamp('01-Jan-2020'), pd.Timestamp('01-Jan-2021')) File "C:\Users\dhirschf\envs\dev\lib\site-packages\pandas\tseries\holiday.py", line 422, in holidays self._cache = (start, end, holidays.sort_index()) AttributeError: 'NoneType' object has no attribute 'sort_index' In [59]: pd.__version__ Out[59]: '0.25.3' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31415/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31415/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31416
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31416/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31416/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31416/events
https://github.com/pandas-dev/pandas/pull/31416
556,826,194
MDExOlB1bGxSZXF1ZXN0MzY4NTI2Njg1
31,416
Fix bug in calculation of holidays
{ "avatar_url": "https://avatars.githubusercontent.com/u/881019?v=4", "events_url": "https://api.github.com/users/dhirschfeld/events{/privacy}", "followers_url": "https://api.github.com/users/dhirschfeld/followers", "following_url": "https://api.github.com/users/dhirschfeld/following{/other_user}", "gists_url": "https://api.github.com/users/dhirschfeld/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhirschfeld", "id": 881019, "login": "dhirschfeld", "node_id": "MDQ6VXNlcjg4MTAxOQ==", "organizations_url": "https://api.github.com/users/dhirschfeld/orgs", "received_events_url": "https://api.github.com/users/dhirschfeld/received_events", "repos_url": "https://api.github.com/users/dhirschfeld/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhirschfeld/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhirschfeld/subscriptions", "type": "User", "url": "https://api.github.com/users/dhirschfeld" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
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" }
9
2020-01-29T12:19:32Z
2020-02-09T23:25:28Z
2020-02-09T20:54:38Z
CONTRIBUTOR
null
Closes #31415 - [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31416/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31416/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31416.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31416", "merged_at": "2020-02-09T20:54:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31416.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31416" }
https://api.github.com/repos/pandas-dev/pandas/issues/31417
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31417/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31417/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31417/events
https://github.com/pandas-dev/pandas/issues/31417
556,859,946
MDU6SXNzdWU1NTY4NTk5NDY=
31,417
helper method to sanitize column names of a pandas DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/36153955?v=4", "events_url": "https://api.github.com/users/zahash/events{/privacy}", "followers_url": "https://api.github.com/users/zahash/followers", "following_url": "https://api.github.com/users/zahash/following{/other_user}", "gists_url": "https://api.github.com/users/zahash/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zahash", "id": 36153955, "login": "zahash", "node_id": "MDQ6VXNlcjM2MTUzOTU1", "organizations_url": "https://api.github.com/users/zahash/orgs", "received_events_url": "https://api.github.com/users/zahash/received_events", "repos_url": "https://api.github.com/users/zahash/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zahash/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zahash/subscriptions", "type": "User", "url": "https://api.github.com/users/zahash" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" } ]
closed
false
null
[]
null
2
2020-01-29T13:24:41Z
2021-07-27T05:34:42Z
2021-07-27T05:34:41Z
NONE
null
I will add a method to sanitize column names of a pandas DataFrame and make a pull request Below is the test code ```python from pandas import DataFrame import pandas._testing as tm def test_sanitize_column_names(): df = DataFrame( { "A ": [1], "b": [1], " 485 5(468a)44 44 4 ? $@e3 * C cc c D ": [1], } ) df.sanitize_column_names() expected_df = DataFrame({"a": [1], "b": [1], "485_5468a44_44_4_e3_c_cc_c_d": [1]}) tm.assert_frame_equal(df, expected_df) ``` This issue is about an enhancement
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31417/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31417/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31418
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31418/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31418/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31418/events
https://github.com/pandas-dev/pandas/pull/31418
556,861,566
MDExOlB1bGxSZXF1ZXN0MzY4NTU2MjI2
31,418
Sanitize column names
{ "avatar_url": "https://avatars.githubusercontent.com/u/36153955?v=4", "events_url": "https://api.github.com/users/zahash/events{/privacy}", "followers_url": "https://api.github.com/users/zahash/followers", "following_url": "https://api.github.com/users/zahash/following{/other_user}", "gists_url": "https://api.github.com/users/zahash/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zahash", "id": 36153955, "login": "zahash", "node_id": "MDQ6VXNlcjM2MTUzOTU1", "organizations_url": "https://api.github.com/users/zahash/orgs", "received_events_url": "https://api.github.com/users/zahash/received_events", "repos_url": "https://api.github.com/users/zahash/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zahash/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zahash/subscriptions", "type": "User", "url": "https://api.github.com/users/zahash" }
[]
closed
false
null
[]
null
5
2020-01-29T13:27:32Z
2020-01-30T13:43:27Z
2020-01-30T13:43:08Z
NONE
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] 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/31418/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31418/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31418.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31418", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/31418.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31418" }
https://api.github.com/repos/pandas-dev/pandas/issues/31419
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31419/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31419/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31419/events
https://github.com/pandas-dev/pandas/pull/31419
556,908,391
MDExOlB1bGxSZXF1ZXN0MzY4NTk1Mjc0
31,419
Backport PR #31150: API: generalized check_array_indexer for validating array-like getitem indexers
{ "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": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "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-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
2020-01-29T14:44:14Z
2020-01-29T16:30:33Z
2020-01-29T15:13:08Z
MEMBER
null
Backport https://github.com/pandas-dev/pandas/pull/31150
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31419/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31419/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31419.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31419", "merged_at": "2020-01-29T15:13:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31419.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31419" }
https://api.github.com/repos/pandas-dev/pandas/issues/31420
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31420/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31420/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31420/events
https://github.com/pandas-dev/pandas/issues/31420
556,925,996
MDU6SXNzdWU1NTY5MjU5OTY=
31,420
Can't pre-define dtype when reading data
{ "avatar_url": "https://avatars.githubusercontent.com/u/6256806?v=4", "events_url": "https://api.github.com/users/abrahamdu/events{/privacy}", "followers_url": "https://api.github.com/users/abrahamdu/followers", "following_url": "https://api.github.com/users/abrahamdu/following{/other_user}", "gists_url": "https://api.github.com/users/abrahamdu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abrahamdu", "id": 6256806, "login": "abrahamdu", "node_id": "MDQ6VXNlcjYyNTY4MDY=", "organizations_url": "https://api.github.com/users/abrahamdu/orgs", "received_events_url": "https://api.github.com/users/abrahamdu/received_events", "repos_url": "https://api.github.com/users/abrahamdu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abrahamdu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abrahamdu/subscriptions", "type": "User", "url": "https://api.github.com/users/abrahamdu" }
[]
closed
false
null
[]
null
2
2020-01-29T15:11:26Z
2020-01-29T17:29:26Z
2020-01-29T17:29:26Z
NONE
null
I am reading a pipe delimited file without headings into Pandas and I am using Pandas version 0.24.2. And this is public data so no worries around confidentiality. The data looks like: 999778247820|R|JPMORGAN CHASE BANK, NATIONAL ASSOCIATION|7.375|113000|360|02/2001|04/2001|95|95|1|52|665|Y|P|SF|1|P|IL|601|30|FRM||1|N 999783196683|R|OTHER|7.25|59000|360|01/2001|04/2001|97|97|2|43|682|Y|P|PU|1|P|HI|967|30|FRM|676|1|N 999783470376|C|BANK OF AMERICA, N.A.|7.875|110000|360|12/2000|02/2001|74|74|2|26|700|N|P|SF|1|P|NY|125||FRM|698||N 999786911479|C|BANK OF AMERICA, N.A.|7.5|57000|360|12/2000|02/2001|90|90|1|28|699|N|P|SF|1|P|TX|781|25|FRM||1|N 999786913710|R|JPMORGAN CHASE BANK, NA|7.125|114000|360|01/2001|04/2001|73|73|2|16|745|N|C|SF|1|P|WA|992||FRM|||N 999788833695|B|OTHER|9|50000|360|10/2000|12/2000|90|90|2|40|674|N|P|SF|2|I|WI|535|25|FRM|737|1|N This is the code I am using: ```python orig_files_fnma = glob.glob("/...1/Acquisition*.txt") col_names = ["loan_id", "origination_channel","seller_name","original_interest_rate","original_upb","original_loan_term","origination_date","first_payment_date","original_ltv","original_cltv","number_of_borrowers","original_dti", "borrower_fico_at_origination","first_time_home_buyer_indicator", "loan_purpose","property_type","number_of_units","occupancy_type","property_state","zip_code_short","primary_mortgage_insurance_percent", "product_type","coborrower_fico_at_origination","mortgage_insurance_type","relocation_mortgage_indicator"] col_type = {"loan_id": "object","origination_channel": "object","seller_name": "object","original_interest_rate": "float","original_upb": "float","original_loan_term": "int","origination_date": "object", "first_payment_date": "object","original_ltv": "object","original_cltv": "object","number_of_borrowers": "int","original_dti": "float","borrower_fico_at_origination": "int", "first_time_home_buyer_indicator": "object", "loan_purpose": "object","property_type": "object","number_of_units": "int","occupancy_type": "object","property_state": "object", "zip_code_short": "object","primary_mortgage_insurance_percent": "float", "product_type": "object","coborrower_fico_at_origination": "int","mortgage_insurance_type": "object","relocation_mortgage_indicator": "object"} dfs = [] temp_df = [] for orig_files_fnma in orig_files_fnma: temp_df = pd.read_csv(orig_files_fnma, sep = '|', header = None, names = col_names, dtype = col_type, index_col = None, parse_dates=True, verbose = True, engine='python') dfs.append(temp_df) ``` Always getting the following errors: ```python Filled 1 NA values in column original_ltv Filled 52 NA values in column original_cltv ValueError: Unable to convert column number_of_borrowers to type int ``` I do find out if I don't pre-define the dtype and .astype to change the data type after loading. But ask if possible that I can pre-define the data type first like the code above. Also, I want to define the length of object for 20 length. What is the right code to do so? Thanks a lot!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31420/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31420/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31421
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31421/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31421/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31421/events
https://github.com/pandas-dev/pandas/pull/31421
556,926,977
MDExOlB1bGxSZXF1ZXN0MzY4NjEwNzYz
31,421
Backport PR #31411 on branch 1.0.x (COMPAT: dont pass dtype to datetime64)
{ "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": "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
2020-01-29T15:13:02Z
2020-01-29T16:13:05Z
2020-01-29T16:13:05Z
NONE
null
Backport PR #31411: COMPAT: dont pass dtype to datetime64
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31421/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31421/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31421.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31421", "merged_at": "2020-01-29T16:13:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31421.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31421" }
https://api.github.com/repos/pandas-dev/pandas/issues/31422
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31422/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31422/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31422/events
https://github.com/pandas-dev/pandas/issues/31422
556,935,462
MDU6SXNzdWU1NTY5MzU0NjI=
31,422
Inconsistent behavior when groupby pandas Categorical variables
{ "avatar_url": "https://avatars.githubusercontent.com/u/97392?v=4", "events_url": "https://api.github.com/users/DigitalPig/events{/privacy}", "followers_url": "https://api.github.com/users/DigitalPig/followers", "following_url": "https://api.github.com/users/DigitalPig/following{/other_user}", "gists_url": "https://api.github.com/users/DigitalPig/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DigitalPig", "id": 97392, "login": "DigitalPig", "node_id": "MDQ6VXNlcjk3Mzky", "organizations_url": "https://api.github.com/users/DigitalPig/orgs", "received_events_url": "https://api.github.com/users/DigitalPig/received_events", "repos_url": "https://api.github.com/users/DigitalPig/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DigitalPig/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DigitalPig/subscriptions", "type": "User", "url": "https://api.github.com/users/DigitalPig" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/3813175?v=4", "events_url": "https://api.github.com/users/smithto1/events{/privacy}", "followers_url": "https://api.github.com/users/smithto1/followers", "following_url": "https://api.github.com/users/smithto1/following{/other_user}", "gists_url": "https://api.github.com/users/smithto1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smithto1", "id": 3813175, "login": "smithto1", "node_id": "MDQ6VXNlcjM4MTMxNzU=", "organizations_url": "https://api.github.com/users/smithto1/orgs", "received_events_url": "https://api.github.com/users/smithto1/received_events", "repos_url": "https://api.github.com/users/smithto1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smithto1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smithto1/subscriptions", "type": "User", "url": "https://api.github.com/users/smithto1" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/3813175?v=4", "events_url": "https://api.github.com/users/smithto1/events{/privacy}", "followers_url": "https://api.github.com/users/smithto1/followers", "following_url": "https://api.github.com/users/smithto1/following{/other_user}", "gists_url": "https://api.github.com/users/smithto1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smithto1", "id": 3813175, "login": "smithto1", "node_id": "MDQ6VXNlcjM4MTMxNzU=", "organizations_url": "https://api.github.com/users/smithto1/orgs", "received_events_url": "https://api.github.com/users/smithto1/received_events", "repos_url": "https://api.github.com/users/smithto1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smithto1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smithto1/subscriptions", "type": "User", "url": "https://api.github.com/users/smithto1" } ]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
12
2020-01-29T15:26:09Z
2020-08-07T15:21:12Z
2020-08-07T15:21:12Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np test = pd.DataFrame( { 'col1': pd.Series(pd.Categorical(["a", "b", "c", "a"],categories=["a", "b", "c", "d"])), 'col2': np.random.randint(0,100, size=4), 'col3': [12,32,23,22] } ) test['col2'] = pd.cut(test['col2'], [0,50,100]) # Group by two variables print(test.groupby(['col1', 'col2']).sum()) # Group by a single variable print(test.groupby(['col1']).sum()) ``` This gives the result: ``` col1 col2 a (0, 50] 22.0 (50, 100] 12.0 b (0, 50] NaN (50, 100] 32.0 c (0, 50] 23.0 (50, 100] NaN d (0, 50] NaN (50, 100] NaN col3 col1 a 34 b 32 c 23 d 0 ``` #### Problem description Clearly there is no record for category 'd'. When you group by one column, category 'd' result in sum of 0. When you do group by two columns, those non-existed row result in NaN. Those two are inconsistent. #### Expected Output Both results for `d` rows should be the same. I think NaN makes more sense. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Darwin OS-release : 19.2.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 0.25.3 numpy : 1.17.3 pytz : 2019.3 dateutil : 2.8.1 pip : 19.3.1 setuptools : 44.0.0.post20200102 Cython : None pytest : 5.3.2 hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.2 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.15.1 pytables : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : 3.6.1 xarray : None xlrd : None xlwt : None xlsxwriter : None </details> Cross ref to dask/dask#5838
{ "+1": 4, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 4, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31422/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31422/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31423
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31423/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31423/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31423/events
https://github.com/pandas-dev/pandas/pull/31423
556,953,712
MDExOlB1bGxSZXF1ZXN0MzY4NjMzMTAx
31,423
PERF: postpone imports in Index constructor
{ "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": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2020-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
2020-01-29T15:54:19Z
2020-01-29T18:38:46Z
2020-01-29T17:25:29Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/issues/30790, it's for improving this one mentioned in that issue: ``` arr_str = np.array(["foo", "bar", "baz"], dtype=object) %timeit pd.Index(arr_str) ``` Only importing the index classes when we actually need them gives a 15-20% speedup. Last week when profiling the Index constructor, I noticed that those imports actually take quite a bit of time (and it's a change that was introduced after 0.25, https://github.com/pandas-dev/pandas/pull/28141). I didn't get any further with profiling (this alone doesn't explain the full slowdown), but thought it's an easy one to already do anyway.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31423/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31423/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31423.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31423", "merged_at": "2020-01-29T17:25:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31423.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31423" }
https://api.github.com/repos/pandas-dev/pandas/issues/31424
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31424/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31424/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31424/events
https://github.com/pandas-dev/pandas/pull/31424
557,007,974
MDExOlB1bGxSZXF1ZXN0MzY4Njc3Nzg4
31,424
Backport PR #31423 on branch 1.0.x (PERF: postpone imports in Index constructor)
{ "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": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2020-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
2020-01-29T17:25:43Z
2020-01-29T18:23:37Z
2020-01-29T18:10:44Z
NONE
null
Backport PR #31423: PERF: postpone imports in Index constructor
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31424/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31424/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31424.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31424", "merged_at": "2020-01-29T18:10:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31424.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31424" }
https://api.github.com/repos/pandas-dev/pandas/issues/31425
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31425/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31425/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31425/events
https://github.com/pandas-dev/pandas/pull/31425
557,031,724
MDExOlB1bGxSZXF1ZXN0MzY4Njk3MTEz
31,425
REF: do all convert_tolerance casting inside Index.get_loc
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
6
2020-01-29T18:13:40Z
2020-02-01T22:40:47Z
2020-02-01T22:30:05Z
MEMBER
null
As a bonus we get better exception messages in the affected tests.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31425/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31425/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31425.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31425", "merged_at": "2020-02-01T22:30:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31425.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31425" }
https://api.github.com/repos/pandas-dev/pandas/issues/31426
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31426/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31426/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31426/events
https://github.com/pandas-dev/pandas/pull/31426
557,063,966
MDExOlB1bGxSZXF1ZXN0MzY4NzIzMzE3
31,426
ENH: implement _typing.DtypeObj
{ "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": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-01-29T19:20:35Z
2020-01-31T04:17:40Z
2020-01-31T04:16:29Z
MEMBER
null
like Dtype, but doesnt include strings.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31426/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31426/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31426.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31426", "merged_at": "2020-01-31T04:16:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31426.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31426" }
https://api.github.com/repos/pandas-dev/pandas/issues/31427
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31427/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31427/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31427/events
https://github.com/pandas-dev/pandas/pull/31427
557,071,471
MDExOlB1bGxSZXF1ZXN0MzY4NzI5MzQ2
31,427
REF: use inherit_names for TimedeltaIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "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": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-01-29T19:34:52Z
2020-01-31T16:04:55Z
2020-01-31T03:13:40Z
MEMBER
null
ATM we have two separate ways of doing inheritance/pass-through for our EA-backed Indexes. This moves TDI over to all-inherit_names, Will do the same for other EA-Indexes in their own PRs.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31427/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31427/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31427.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31427", "merged_at": "2020-01-31T03:13:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31427.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31427" }
https://api.github.com/repos/pandas-dev/pandas/issues/31428
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31428/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31428/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31428/events
https://github.com/pandas-dev/pandas/pull/31428
557,096,451
MDExOlB1bGxSZXF1ZXN0MzY4NzQ5NjYw
31,428
BUG: regression when applying groupby aggregation on categorical colu…
{ "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": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "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-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
2020-01-29T20:26:12Z
2020-01-30T10:18:05Z
2020-01-29T20:54:37Z
CONTRIBUTOR
null
Backport of https://github.com/pandas-dev/pandas/pull/31359
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31428/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31428/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31428.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31428", "merged_at": "2020-01-29T20:54:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31428.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31428" }
https://api.github.com/repos/pandas-dev/pandas/issues/31429
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31429/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31429/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31429/events
https://github.com/pandas-dev/pandas/pull/31429
557,098,578
MDExOlB1bGxSZXF1ZXN0MzY4NzUxMzk5
31,429
DOC: separate section with experimental features in 1.0.0 whatsnew
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "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
2020-01-29T20:30:27Z
2020-01-30T09:55:56Z
2020-01-29T21:05:04Z
MEMBER
null
Just a thought I had, to put the experimental features (pd.NA, string, boolean dtypes) in a separate section, better highlighting that those are experimental. Since @TomAugspurger basically wants to release now, this is certainly not a blocker :)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31429/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31429/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31429.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31429", "merged_at": "2020-01-29T21:05:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31429.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31429" }
https://api.github.com/repos/pandas-dev/pandas/issues/31430
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31430/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31430/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31430/events
https://github.com/pandas-dev/pandas/pull/31430
557,115,432
MDExOlB1bGxSZXF1ZXN0MzY4NzY1MjE3
31,430
release date
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-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
2020-01-29T21:06:32Z
2020-01-29T21:43:38Z
2020-01-29T21:42:30Z
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/31430/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31430/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31430.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31430", "merged_at": "2020-01-29T21:42:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31430.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31430" }
https://api.github.com/repos/pandas-dev/pandas/issues/31431
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31431/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31431/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31431/events
https://github.com/pandas-dev/pandas/pull/31431
557,118,605
MDExOlB1bGxSZXF1ZXN0MzY4NzY3ODYy
31,431
DOC: separate section with experimental features in 1.0.0 whatsnew (#…
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-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
2020-01-29T21:13:04Z
2020-01-30T09:54:02Z
2020-01-29T21:42:21Z
CONTRIBUTOR
null
…31429) Backport https://github.com/pandas-dev/pandas/pull/3142
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31431/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31431/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31431.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31431", "merged_at": "2020-01-29T21:42:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31431.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31431" }
https://api.github.com/repos/pandas-dev/pandas/issues/31432
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31432/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31432/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31432/events
https://github.com/pandas-dev/pandas/pull/31432
557,133,356
MDExOlB1bGxSZXF1ZXN0MzY4NzgwMTUx
31,432
Backport PR #31430 on branch 1.0.x (release date)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "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
2020-01-29T21:43:26Z
2020-01-30T09:53:27Z
2020-01-29T21:43:38Z
NONE
null
Backport PR #31430: release date
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31432/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31432/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31432.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31432", "merged_at": "2020-01-29T21:43:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31432.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31432" }
https://api.github.com/repos/pandas-dev/pandas/issues/31433
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31433/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31433/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31433/events
https://github.com/pandas-dev/pandas/pull/31433
557,161,088
MDExOlB1bGxSZXF1ZXN0MzY4ODAzNDM4
31,433
REF: use inherit_names for PeriodIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-01-29T22:42:03Z
2020-01-31T04:19:53Z
2020-01-31T03:21:24Z
MEMBER
null
analogous to #31427.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31433/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31433/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31433.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31433", "merged_at": "2020-01-31T03:21:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31433.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31433" }
https://api.github.com/repos/pandas-dev/pandas/issues/31434
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31434/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31434/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31434/events
https://github.com/pandas-dev/pandas/issues/31434
557,172,248
MDU6SXNzdWU1NTcxNzIyNDg=
31,434
pandas web and docs structure
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "23ef97", "default": false, "description": "pandas website", "id": 1508144531, "name": "Web", "node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web" } ]
closed
false
null
[]
null
3
2020-01-29T23:10:23Z
2020-01-30T14:22:11Z
2020-01-30T14:22:11Z
CONTRIBUTOR
null
The site served by `web` assumes that the docs are served from a `/docs/` directory relative to the root. The content of that directory should be equivalent to what we have at https://pandas.pydata.org/pandas-docs/version/1.0.0/, so `/version/1.0.0/` or `/version/stable/`. Should I symlink `/docs/` to `/version/stable/`? Does that mess with canonical urls? cc @datapythonista.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31434/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31434/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31435
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31435/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31435/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31435/events
https://github.com/pandas-dev/pandas/pull/31435
557,183,855
MDExOlB1bGxSZXF1ZXN0MzY4ODIxNjc0
31,435
ENH: Added index to testing assert message when series values differ
{ "avatar_url": "https://avatars.githubusercontent.com/u/18662115?v=4", "events_url": "https://api.github.com/users/amilbourne/events{/privacy}", "followers_url": "https://api.github.com/users/amilbourne/followers", "following_url": "https://api.github.com/users/amilbourne/following{/other_user}", "gists_url": "https://api.github.com/users/amilbourne/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amilbourne", "id": 18662115, "login": "amilbourne", "node_id": "MDQ6VXNlcjE4NjYyMTE1", "organizations_url": "https://api.github.com/users/amilbourne/orgs", "received_events_url": "https://api.github.com/users/amilbourne/received_events", "repos_url": "https://api.github.com/users/amilbourne/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amilbourne/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amilbourne/subscriptions", "type": "User", "url": "https://api.github.com/users/amilbourne" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
11
2020-01-29T23:44:41Z
2020-03-22T20:42:42Z
2020-03-22T20:42:35Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This implements the suggestion made in #31190 In short, where the values in 2 series differ, the assert exception message includes the index as well as the values. This helps when using assert_frame_equal with check_like=True, since the index may be reordered, making the output hard to understand.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31435/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31435/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31435.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31435", "merged_at": "2020-03-22T20:42:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31435.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31435" }
https://api.github.com/repos/pandas-dev/pandas/issues/31436
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31436/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31436/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31436/events
https://github.com/pandas-dev/pandas/pull/31436
557,211,112
MDExOlB1bGxSZXF1ZXN0MzY4ODQzMjQ1
31,436
TST: make sure fixture params are sorted 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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-30T01:14:52Z
2020-01-30T19:21:33Z
2020-01-30T19:15:24Z
MEMBER
null
ATM running tests with --n 4 breaks locally because the tests that get collected dont match across processes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31436/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31436/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31436.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31436", "merged_at": "2020-01-30T19:15:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31436.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31436" }
https://api.github.com/repos/pandas-dev/pandas/issues/31437
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31437/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31437/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31437/events
https://github.com/pandas-dev/pandas/pull/31437
557,225,215
MDExOlB1bGxSZXF1ZXN0MzY4ODU0NDU2
31,437
BUG: PeriodIndex.is_monotonic with leading NaT
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-01-30T02:09:48Z
2020-01-31T15:53:04Z
2020-01-31T14:27:38Z
MEMBER
null
Before long I expect to just have PeriodEngine subclass DatetimeEngine.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31437/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31437/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31437.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31437", "merged_at": "2020-01-31T14:27:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31437.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31437" }
https://api.github.com/repos/pandas-dev/pandas/issues/31438
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31438/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31438/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31438/events
https://github.com/pandas-dev/pandas/pull/31438
557,229,468
MDExOlB1bGxSZXF1ZXN0MzY4ODU3NjA1
31,438
DOC: Fix 1.0.0 contributors
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-30T02:24:22Z
2020-01-31T22:50:56Z
2020-01-30T08:29:56Z
CONTRIBUTOR
null
I've also applied this locally in the doc build env.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31438/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31438/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31438.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31438", "merged_at": "2020-01-30T08:29:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31438.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31438" }
https://api.github.com/repos/pandas-dev/pandas/issues/31439
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31439/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31439/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31439/events
https://github.com/pandas-dev/pandas/issues/31439
557,237,772
MDU6SXNzdWU1NTcyMzc3NzI=
31,439
"Tuple of Lists" method doesn't applicable for DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/41546976?v=4", "events_url": "https://api.github.com/users/GYHHAHA/events{/privacy}", "followers_url": "https://api.github.com/users/GYHHAHA/followers", "following_url": "https://api.github.com/users/GYHHAHA/following{/other_user}", "gists_url": "https://api.github.com/users/GYHHAHA/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/GYHHAHA", "id": 41546976, "login": "GYHHAHA", "node_id": "MDQ6VXNlcjQxNTQ2OTc2", "organizations_url": "https://api.github.com/users/GYHHAHA/orgs", "received_events_url": "https://api.github.com/users/GYHHAHA/received_events", "repos_url": "https://api.github.com/users/GYHHAHA/repos", "site_admin": false, "starred_url": "https://api.github.com/users/GYHHAHA/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GYHHAHA/subscriptions", "type": "User", "url": "https://api.github.com/users/GYHHAHA" }
[]
closed
false
null
[]
null
2
2020-01-30T02:59:08Z
2020-01-30T12:31:24Z
2020-01-30T12:31:24Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python >>>df = pd.DataFrame({'col':np.ones(9)},index=pd.MultiIndex.\ from_product([['A','B','C'],['a','b','c']])).sort_index() >>>df['col'].loc[(['A','B'],['b','c'])] A b 1.0 c 1.0 B b 1.0 c 1.0 Name: col, dtype: float64 >>>df.loc[(['A','B'],['b','c'])] KeyError: "None of [Index(['b', 'c'], dtype='object')] are in the [columns]" ``` #### Problem description It seems that the "tuple of lists" method doesn't applicable for dataframe. Originally, I thought these two operations will return the same numerical result.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31439/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31439/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31440
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31440/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31440/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31440/events
https://github.com/pandas-dev/pandas/pull/31440
557,260,636
MDExOlB1bGxSZXF1ZXN0MzY4ODgyMzgw
31,440
BUG: Fix qcut for nullable integers
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
4
2020-01-30T04:34:24Z
2020-02-02T22:22:40Z
2020-02-02T22:19:06Z
MEMBER
null
- [x] tests added / passed - [x] passes `black pandas` - [x] whatsnew entry Related to #31389 but doesn't close any issues that I'm aware of. Seems the problems were indexing into a numpy array with a BooleanArray and using searchsorted in the presence of pd.NA.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31440/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31440/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31440.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31440", "merged_at": "2020-02-02T22:19:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31440.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31440" }
https://api.github.com/repos/pandas-dev/pandas/issues/31441
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31441/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31441/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31441/events
https://github.com/pandas-dev/pandas/issues/31441
557,323,183
MDU6SXNzdWU1NTczMjMxODM=
31,441
TypeError: copy() takes no keyword arguments
{ "avatar_url": "https://avatars.githubusercontent.com/u/14983438?v=4", "events_url": "https://api.github.com/users/BayerSe/events{/privacy}", "followers_url": "https://api.github.com/users/BayerSe/followers", "following_url": "https://api.github.com/users/BayerSe/following{/other_user}", "gists_url": "https://api.github.com/users/BayerSe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/BayerSe", "id": 14983438, "login": "BayerSe", "node_id": "MDQ6VXNlcjE0OTgzNDM4", "organizations_url": "https://api.github.com/users/BayerSe/orgs", "received_events_url": "https://api.github.com/users/BayerSe/received_events", "repos_url": "https://api.github.com/users/BayerSe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/BayerSe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/BayerSe/subscriptions", "type": "User", "url": "https://api.github.com/users/BayerSe" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
{ "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" }
[ { "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" } ]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
8
2020-01-30T07:53:02Z
2020-02-01T15:14:52Z
2020-02-01T15:14:52Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.DataFrame(['A', 'A', 'B', 'B'], columns=['grps']) df.groupby('grps').apply(lambda x: x.index.to_list()) ``` ```python Traceback (most recent call last): File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 735, in apply result = self._python_apply_general(f) File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 751, in _python_apply_general keys, values, mutated = self.grouper.apply(f, self._selected_obj, self.axis) File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/ops.py", line 171, in apply result_values, mutated = splitter.fast_apply(f, group_keys) File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/ops.py", line 925, in fast_apply return libreduction.apply_frame_axis0(sdata, f, names, starts, ends) File "pandas/_libs/reduction.pyx", line 505, in pandas._libs.reduction.apply_frame_axis0 TypeError: copy() takes no keyword arguments During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3319, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-2-a3e576516eed>", line 4, in <module> df.groupby('grps').apply(lambda x: x.index.to_list()) File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 746, in apply return self._python_apply_general(f) File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 751, in _python_apply_general keys, values, mutated = self.grouper.apply(f, self._selected_obj, self.axis) File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/ops.py", line 171, in apply result_values, mutated = splitter.fast_apply(f, group_keys) File "/home/bay2rng/miniconda3/envs/p356_rtp_production_scheduling/lib/python3.7/site-packages/pandas/core/groupby/ops.py", line 925, in fast_apply return libreduction.apply_frame_axis0(sdata, f, names, starts, ends) File "pandas/_libs/reduction.pyx", line 505, in pandas._libs.reduction.apply_frame_axis0 TypeError: copy() takes no keyword arguments ``` #### Problem description This snippet is working well on version 0.25.3. It breaks in version 1.0.0. #### Expected Output ```python A [0, 1] B [2, 3] dtype: object ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-72-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200127 Cython : None pytest : 5.3.2 hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.15.1 pytables : None pytest : 5.3.2 pyxlsb : None s3fs : None scipy : 1.4.1 sqlalchemy : 1.3.13 tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 6, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 6, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31441/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31441/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31442
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31442/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31442/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31442/events
https://github.com/pandas-dev/pandas/pull/31442
557,338,522
MDExOlB1bGxSZXF1ZXN0MzY4OTQ1MDY3
31,442
Backport PR #31438 on branch 1.0.x (DOC: Fix 1.0.0 contributors)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
1
2020-01-30T08:31:13Z
2020-01-30T10:21:46Z
2020-01-30T10:21:46Z
NONE
null
Backport PR #31438: DOC: Fix 1.0.0 contributors
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31442/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31442/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31442.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31442", "merged_at": "2020-01-30T10:21:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31442.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31442" }
https://api.github.com/repos/pandas-dev/pandas/issues/31443
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31443/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31443/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31443/events
https://github.com/pandas-dev/pandas/pull/31443
557,338,961
MDExOlB1bGxSZXF1ZXN0MzY4OTQ1NDA1
31,443
Backport PR #30907 on branch 1.0.x (DOC: add 1.0.1 whatsnew file)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-30T08:32:16Z
2020-01-30T10:22:25Z
2020-01-30T10:22:24Z
NONE
null
Backport PR #30907: DOC: add 1.0.1 whatsnew 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/31443/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31443/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31443.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31443", "merged_at": "2020-01-30T10:22:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31443.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31443" }
https://api.github.com/repos/pandas-dev/pandas/issues/31444
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31444/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31444/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31444/events
https://github.com/pandas-dev/pandas/issues/31444
557,361,090
MDU6SXNzdWU1NTczNjEwOTA=
31,444
Enhancement: code sugar for index.get_level_values
{ "avatar_url": "https://avatars.githubusercontent.com/u/7373718?v=4", "events_url": "https://api.github.com/users/mhooreman/events{/privacy}", "followers_url": "https://api.github.com/users/mhooreman/followers", "following_url": "https://api.github.com/users/mhooreman/following{/other_user}", "gists_url": "https://api.github.com/users/mhooreman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mhooreman", "id": 7373718, "login": "mhooreman", "node_id": "MDQ6VXNlcjczNzM3MTg=", "organizations_url": "https://api.github.com/users/mhooreman/orgs", "received_events_url": "https://api.github.com/users/mhooreman/received_events", "repos_url": "https://api.github.com/users/mhooreman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mhooreman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhooreman/subscriptions", "type": "User", "url": "https://api.github.com/users/mhooreman" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
open
false
null
[]
null
1
2020-01-30T09:18:23Z
2020-04-25T13:35:28Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python data.index.get_level_values('foobar') == 42 # would like to have data.index['foobar'] == 42 ``` #### Problem description Filtering data frame row by one column of multi index is quite common. Unless I've missed something, the current implementation need `get_index_value`. It would be nice to have a more direct way to select one MultiIndex column, like we can do with the data frame columns. <details> ``` INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-74-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 0.25.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0 Cython : 0.29.14 pytest : None hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.2 html5lib : None pymysql : None psycopg2 : 2.8.4 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.1 fastparquet : None gcsfs : None lxml.etree : 4.4.2 matplotlib : 3.1.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None xarray : None xlrd : 1.2.0 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/31444/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31444/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31445
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31445/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31445/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31445/events
https://github.com/pandas-dev/pandas/issues/31445
557,362,577
MDU6SXNzdWU1NTczNjI1Nzc=
31,445
Feature request: code sugar for index.get_level_values
{ "avatar_url": "https://avatars.githubusercontent.com/u/7373718?v=4", "events_url": "https://api.github.com/users/mhooreman/events{/privacy}", "followers_url": "https://api.github.com/users/mhooreman/followers", "following_url": "https://api.github.com/users/mhooreman/following{/other_user}", "gists_url": "https://api.github.com/users/mhooreman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mhooreman", "id": 7373718, "login": "mhooreman", "node_id": "MDQ6VXNlcjczNzM3MTg=", "organizations_url": "https://api.github.com/users/mhooreman/orgs", "received_events_url": "https://api.github.com/users/mhooreman/received_events", "repos_url": "https://api.github.com/users/mhooreman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mhooreman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mhooreman/subscriptions", "type": "User", "url": "https://api.github.com/users/mhooreman" }
[]
closed
false
null
[]
null
4
2020-01-30T09:21:09Z
2020-01-30T11:20:25Z
2020-01-30T09:26:27Z
NONE
null
(Sorry, I have closed issue 31444 by mistake, hence re-creating it) #### Code Sample ```python data.index.get_level_values('foobar') == 42 # would like to have data.index['foobar'] == 42 ``` #### Problem description Filtering data frame row by one column of multi index is quite common. Unless I've missed something, the current implementation need `get_index_value`. It would be nice to have a more direct way to select one MultiIndex column, like we can do with the data frame columns. <details> ``` INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-74-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 0.25.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0 Cython : 0.29.14 pytest : None hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.2 html5lib : None pymysql : None psycopg2 : 2.8.4 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.1 fastparquet : None gcsfs : None lxml.etree : 4.4.2 matplotlib : 3.1.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None xarray : None xlrd : 1.2.0 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/31445/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31445/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31446
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31446/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31446/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31446/events
https://github.com/pandas-dev/pandas/issues/31446
557,414,538
MDU6SXNzdWU1NTc0MTQ1Mzg=
31,446
REGR: Array.__setitem__ failing with nullable boolean mask
{ "avatar_url": "https://avatars.githubusercontent.com/u/15109293?v=4", "events_url": "https://api.github.com/users/mcitoler/events{/privacy}", "followers_url": "https://api.github.com/users/mcitoler/followers", "following_url": "https://api.github.com/users/mcitoler/following{/other_user}", "gists_url": "https://api.github.com/users/mcitoler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mcitoler", "id": 15109293, "login": "mcitoler", "node_id": "MDQ6VXNlcjE1MTA5Mjkz", "organizations_url": "https://api.github.com/users/mcitoler/orgs", "received_events_url": "https://api.github.com/users/mcitoler/received_events", "repos_url": "https://api.github.com/users/mcitoler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mcitoler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mcitoler/subscriptions", "type": "User", "url": "https://api.github.com/users/mcitoler" }
[ { "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": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
3
2020-01-30T10:53:50Z
2020-02-01T14:37:26Z
2020-02-01T14:37:26Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd s = pd.Series([1, 2], dtype='Int64') s.where(s > 1) ``` #### Problem description The code above raises `TypeError: bad operand type for unary ~: 'BooleanArray'` #### Expected Output ``` 0 <NA> 1 2 dtype: Int64 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.1.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-76-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.0rc0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200119 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.0 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31446/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31446/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31447
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31447/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31447/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31447/events
https://github.com/pandas-dev/pandas/issues/31447
557,432,069
MDU6SXNzdWU1NTc0MzIwNjk=
31,447
REGR: to_csv(na_rep) truncates values
{ "avatar_url": "https://avatars.githubusercontent.com/u/1555705?v=4", "events_url": "https://api.github.com/users/mdruiter/events{/privacy}", "followers_url": "https://api.github.com/users/mdruiter/followers", "following_url": "https://api.github.com/users/mdruiter/following{/other_user}", "gists_url": "https://api.github.com/users/mdruiter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mdruiter", "id": 1555705, "login": "mdruiter", "node_id": "MDQ6VXNlcjE1NTU3MDU=", "organizations_url": "https://api.github.com/users/mdruiter/orgs", "received_events_url": "https://api.github.com/users/mdruiter/received_events", "repos_url": "https://api.github.com/users/mdruiter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mdruiter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mdruiter/subscriptions", "type": "User", "url": "https://api.github.com/users/mdruiter" }
[ { "color": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
4
2020-01-30T11:28:04Z
2020-02-01T15:21:12Z
2020-02-01T15:21:12Z
CONTRIBUTOR
null
#### Code Sample ```python >>> import pandas as pd >>> pd.__version__ '1.0.0rc0' >>> pd.Series(range(8, 12)).to_csv(na_rep='-') ',0\r\n0,8\r\n1,9\r\n2,1\r\n3,1\r\n' ``` #### Problem description Despite (or due to?) #29975 and #30146, using `na_rep` still makes `to_csv()` truncate values. In this case integers. #### Expected Output ',0\r\n0,8\r\n1,9\r\n2,10\r\n3,11\r\n' #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.1.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : Dutch_Netherlands.1252 pandas : 1.0.0rc0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 41.2.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None s3fs : None scipy : 1.4.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31447/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31447/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31448
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31448/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31448/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31448/events
https://github.com/pandas-dev/pandas/issues/31448
557,466,397
MDU6SXNzdWU1NTc0NjYzOTc=
31,448
DOC: to_csv is not properly linked from read_csv docstring
{ "avatar_url": "https://avatars.githubusercontent.com/u/33796896?v=4", "events_url": "https://api.github.com/users/StevenLi-DS/events{/privacy}", "followers_url": "https://api.github.com/users/StevenLi-DS/followers", "following_url": "https://api.github.com/users/StevenLi-DS/following{/other_user}", "gists_url": "https://api.github.com/users/StevenLi-DS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/StevenLi-DS", "id": 33796896, "login": "StevenLi-DS", "node_id": "MDQ6VXNlcjMzNzk2ODk2", "organizations_url": "https://api.github.com/users/StevenLi-DS/orgs", "received_events_url": "https://api.github.com/users/StevenLi-DS/received_events", "repos_url": "https://api.github.com/users/StevenLi-DS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/StevenLi-DS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StevenLi-DS/subscriptions", "type": "User", "url": "https://api.github.com/users/StevenLi-DS" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2020-01-30T12:39:00Z
2020-01-31T12:08:37Z
2020-01-31T12:08:37Z
NONE
null
ERROR: type should be string, got "\r\nhttps://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html#pandas.read_csv\r\n\r\n![image](https://user-images.githubusercontent.com/33796896/73450512-8b703080-4333-11ea-8a76-b1f57a7400b0.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/31448/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31448/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31449
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31449/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31449/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31449/events
https://github.com/pandas-dev/pandas/issues/31449
557,475,177
MDU6SXNzdWU1NTc0NzUxNzc=
31,449
REGR: Assignment to MultiIndex fails for pandas 1.0.0.
{ "avatar_url": "https://avatars.githubusercontent.com/u/22533006?v=4", "events_url": "https://api.github.com/users/tobiasraabe/events{/privacy}", "followers_url": "https://api.github.com/users/tobiasraabe/followers", "following_url": "https://api.github.com/users/tobiasraabe/following{/other_user}", "gists_url": "https://api.github.com/users/tobiasraabe/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tobiasraabe", "id": 22533006, "login": "tobiasraabe", "node_id": "MDQ6VXNlcjIyNTMzMDA2", "organizations_url": "https://api.github.com/users/tobiasraabe/orgs", "received_events_url": "https://api.github.com/users/tobiasraabe/received_events", "repos_url": "https://api.github.com/users/tobiasraabe/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tobiasraabe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tobiasraabe/subscriptions", "type": "User", "url": "https://api.github.com/users/tobiasraabe" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
5
2020-01-30T12:54:39Z
2020-02-03T23:20:27Z
2020-02-03T23:20:27Z
NONE
null
#### Code Sample, a copy-pastable example if possible This problem occurred with ``pandas 1.0.0 py37he350917_0 conda-forge``, but did not before or at least not since 0.24. ```python import pandas as pd import numpy as np index = pd.MultiIndex.from_tuples([("a", "c"), ("b", "x"), ("a", "d")], names=["l1", "l2"]) df = pd.DataFrame(index=index, data=np.arange(3), columns=["e"]) df.loc["a", "e"] = np.arange(99, 101) ``` #### Problem description The error message is the following ``` --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-13-b62e661ba0e4> in <module> ----> 1 df.loc["a", "e"] = np.arange(99, 101) C:\tools\miniconda3\envs\respy\lib\site-packages\pandas\core\indexing.py in __setitem__(self, key, value) 668 key = com.apply_if_callable(key, self.obj) 669 indexer = self._get_setitem_indexer(key) --> 670 self._setitem_with_indexer(indexer, value) 671 672 def _validate_key(self, key, axis: int): C:\tools\miniconda3\envs\respy\lib\site-packages\pandas\core\indexing.py in _setitem_with_indexer(self, indexer, value) 927 # we can directly set the series here 928 # as we select a slice indexer on the mi --> 929 idx = index._convert_slice_indexer(idx) 930 obj._consolidate_inplace() 931 obj = obj.copy() C:\tools\miniconda3\envs\respy\lib\site-packages\pandas\core\indexes\base.py in _convert_slice_indexer(self, key, kind) 2917 2918 # potentially cast the bounds to integers -> 2919 start, stop, step = key.start, key.stop, key.step 2920 2921 # figure out if this is a positional indexer AttributeError: 'numpy.ndarray' object has no attribute 'start' ``` If the MultiIndex would have been sorted, ``key`` in the last part of the traceback or ``indexer`` in the first part would have been a slice and everything is fine. Since the MultiIndex is unsorted ``key`` or ``indexer`` are a boolean array which has no start stop attributes. I am sorry for not digging further, but I have not inspected pandas internals before. #### Expected Output ``` e l1 l2 a c 99 b x 1 a d 100 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.0 numpy : 1.17.5 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200119 Cython : None pytest : 5.3.5 hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.5 pyxlsb : None s3fs : None scipy : 1.3.1 sqlalchemy : 1.3.13 tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : 0.46.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31449/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31449/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31450
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31450/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31450/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31450/events
https://github.com/pandas-dev/pandas/issues/31450
557,481,348
MDU6SXNzdWU1NTc0ODEzNDg=
31,450
REGR: groupby().agg fails on categorical column in pandas 1.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/8123960?v=4", "events_url": "https://api.github.com/users/MarekOzana/events{/privacy}", "followers_url": "https://api.github.com/users/MarekOzana/followers", "following_url": "https://api.github.com/users/MarekOzana/following{/other_user}", "gists_url": "https://api.github.com/users/MarekOzana/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarekOzana", "id": 8123960, "login": "MarekOzana", "node_id": "MDQ6VXNlcjgxMjM5NjA=", "organizations_url": "https://api.github.com/users/MarekOzana/orgs", "received_events_url": "https://api.github.com/users/MarekOzana/received_events", "repos_url": "https://api.github.com/users/MarekOzana/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarekOzana/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarekOzana/subscriptions", "type": "User", "url": "https://api.github.com/users/MarekOzana" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
3
2020-01-30T13:05:54Z
2020-02-05T00:31:25Z
2020-02-05T00:31:25Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd tbl = pd.DataFrame({"col_num": [1, 1, 2, 3]}) tbl["col_cat"] = tbl["col_num"].astype("category") # The following line works in 0.25.3 but throws exception in 1.0.0 df = tbl.groupby("col_num").agg({"col_cat": "first"}) ``` #### Problem description agg() on categorical column works without any warnings in 0.25.3 but throws exception in pandas 1.0.0: <details> NotImplementedError Traceback (most recent call last) <ipython-input-2-663038a86e20> in <module> ----> 1 df = tbl.groupby("col_num").agg({"col_cat": "first"}) ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\groupby\generic.py in aggregate(self, func, *args, **kwargs) 938 func = _maybe_mangle_lambdas(func) 939 --> 940 result, how = self._aggregate(func, *args, **kwargs) 941 if how is None: 942 return result ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\base.py in _aggregate(self, arg, *args, **kwargs) 426 427 try: --> 428 result = _agg(arg, _agg_1dim) 429 except SpecificationError: 430 ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\base.py in _agg(arg, func) 393 result = {} 394 for fname, agg_how in arg.items(): --> 395 result[fname] = func(fname, agg_how) 396 return result 397 ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\base.py in _agg_1dim(name, how, subset) 377 "nested dictionary is ambiguous in aggregation" 378 ) --> 379 return colg.aggregate(how) 380 381 def _agg_2dim(name, how): ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\groupby\generic.py in aggregate(self, func, *args, **kwargs) 245 246 if isinstance(func, str): --> 247 return getattr(self, func)(*args, **kwargs) 248 249 elif isinstance(func, abc.Iterable): ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\groupby\groupby.py in f(self, **kwargs) 1376 # try a cython aggregation if we can 1377 try: -> 1378 return self._cython_agg_general(alias, alt=npfunc, **kwargs) 1379 except DataError: 1380 pass ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\groupby\groupby.py in _cython_agg_general(self, how, alt, numeric_only, min_count) 888 889 result, agg_names = self.grouper.aggregate( --> 890 obj._values, how, min_count=min_count 891 ) 892 ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\groupby\ops.py in aggregate(self, values, how, axis, min_count) 579 ) -> Tuple[np.ndarray, Optional[List[str]]]: 580 return self._cython_operation( --> 581 "aggregate", values, how, axis, min_count=min_count 582 ) 583 ~\AppData\Local\Continuum\miniconda3\envs\dev37\lib\site-packages\pandas\core\groupby\ops.py in _cython_operation(self, kind, values, how, axis, min_count, **kwargs) 453 # are not setup for dim transforming 454 if is_categorical_dtype(values) or is_sparse(values): --> 455 raise NotImplementedError(f"{values.dtype} dtype not supported") 456 elif is_datetime64_any_dtype(values): 457 if how in ["add", "prod", "cumsum", "cumprod"]: NotImplementedError: category dtype not supported </details> #### Expected Output no error, just groupped dataframe. #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.0 numpy : 1.17.5 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200119 Cython : None pytest : 5.3.5 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.2.7 lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.0 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.5 pyxlsb : None s3fs : None scipy : 1.3.1 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : 1.2.7 numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31450/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31450/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31451
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31451/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31451/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31451/events
https://github.com/pandas-dev/pandas/pull/31451
557,498,635
MDExOlB1bGxSZXF1ZXN0MzY5MDc3Njky
31,451
DOC: Fixed example section in pandas/core/dtypes/*.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4", "events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}", "followers_url": "https://api.github.com/users/ShaharNaveh/followers", "following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}", "gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ShaharNaveh", "id": 50263213, "login": "ShaharNaveh", "node_id": "MDQ6VXNlcjUwMjYzMjEz", "organizations_url": "https://api.github.com/users/ShaharNaveh/orgs", "received_events_url": "https://api.github.com/users/ShaharNaveh/received_events", "repos_url": "https://api.github.com/users/ShaharNaveh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions", "type": "User", "url": "https://api.github.com/users/ShaharNaveh" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2020-01-30T13:36:49Z
2020-03-19T23:29:34Z
2020-02-10T09:13:13Z
MEMBER
null
- [ ] closes #xxxx - [ ] 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/31451/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31451/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31451.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31451", "merged_at": "2020-02-10T09:13:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31451.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31451" }
https://api.github.com/repos/pandas-dev/pandas/issues/31452
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31452/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31452/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31452/events
https://github.com/pandas-dev/pandas/issues/31452
557,521,335
MDU6SXNzdWU1NTc1MjEzMzU=
31,452
Series .attrs is not correctly maintained/propagated in to_frame
{ "avatar_url": "https://avatars.githubusercontent.com/u/190342?v=4", "events_url": "https://api.github.com/users/buhrmann/events{/privacy}", "followers_url": "https://api.github.com/users/buhrmann/followers", "following_url": "https://api.github.com/users/buhrmann/following{/other_user}", "gists_url": "https://api.github.com/users/buhrmann/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/buhrmann", "id": 190342, "login": "buhrmann", "node_id": "MDQ6VXNlcjE5MDM0Mg==", "organizations_url": "https://api.github.com/users/buhrmann/orgs", "received_events_url": "https://api.github.com/users/buhrmann/received_events", "repos_url": "https://api.github.com/users/buhrmann/repos", "site_admin": false, "starred_url": "https://api.github.com/users/buhrmann/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/buhrmann/subscriptions", "type": "User", "url": "https://api.github.com/users/buhrmann" }
[ { "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": "56efc9", "default": false, "description": "_metadata, .attrs", "id": 1539579994, "name": "metadata", "node_id": "MDU6TGFiZWwxNTM5NTc5OTk0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/metadata" } ]
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" }
3
2020-01-30T14:13:58Z
2020-04-06T16:19:02Z
2020-04-06T16:19:01Z
NONE
null
Hi, it seems that the `.attrs` dict (for storing metadata) is not always propagated correctly. E.g. #### Code Sample ```python s = pd.Series([0,1,2], name="x") s.attrs["mydata"] = "test" s.attrs # >> {'mydata': 'test'} df = s.to_frame() df.x.attrs # >> {} ``` #### Problem description As @jorisvandenbossche commented [here](https://github.com/pandas-dev/pandas/pull/29062#issuecomment-580245961), it seems that this is because there are a few places in pandas where calls to `finalize` are missing. I ran into it mainly in the "expanddim" direction (from Series to DF). Copying, subsetting and manipulating a Dataframe column that has `attrs` explicitly set, in contrast, seems to work without losing the metadata. I haven't tried more complicated cases, like aggregations (I don't know much about pandas internals, but from previous attempts to implement metadata in my own subclass I seem to remember that these have special code paths in the BlockManager parts, where I suspect the same or related problem may occur...). #### Expected Output ```python df.x.attrs # >> {'mydata': 'test'} ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.0.final.0 python-bits : 64 OS : Darwin OS-release : 19.2.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : None LOCALE : None.UTF-8 pandas : 1.0.0 numpy : 1.17.3 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200119 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31452/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31452/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31453
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31453/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31453/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31453/events
https://github.com/pandas-dev/pandas/issues/31453
557,527,869
MDU6SXNzdWU1NTc1Mjc4Njk=
31,453
pandas._testing.assert_produces_warning docstring unclear?
{ "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": "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
open
false
null
[]
null
0
2020-01-30T14:24:33Z
2021-07-27T05:36:18Z
null
MEMBER
null
#### Code Sample, a copy-pastable example if possible ```python import pandas._testing as tm import warnings def func(): warnings.warn("foo", FutureWarning) # The following block will raise: AssertionError: Did not see expected warning of class 'FutureWarning' with tm.assert_produces_warning(FutureWarning, filter_level="ignore", check_stacklevel=False): func() # This will run just fine with tm.assert_produces_warning(FutureWarning, filter_level="always", check_stacklevel=False): func() ``` #### Problem description The docstring reads ``` filter_level : str or None, default "always" Specifies whether warnings are ignored, displayed, or turned into errors. Valid values are: * "error" - turns matching warnings into exceptions * "ignore" - discard the warning * "always" - always emit a warning * "default" - print the warning the first time it is generated from each location * "module" - print the warning the first time it is generated from each module * "once" - print the warning the first time it is generated ``` so I was expecting that, with 'ignore', no error would be raised, regardless of whether the error was produced or not. I'm also not convinced the description for 'always' is correct - should it be "always emit a warning", or "always emit an error"? #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 8f9e726128e486b354c485ec8e8a5c3cde2b94fe python : 3.7.6.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-76-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+1982.g8f9e72612.dirty numpy : 1.17.5 pytz : 2019.3 dateutil : 2.8.1 pip : 19.3.1 setuptools : 45.1.0.post20200119 Cython : 0.29.14 pytest : 5.3.4 hypothesis : 5.3.0 sphinx : 2.3.1 blosc : 1.8.3 feather : None xlsxwriter : 1.2.7 lxml.etree : 4.4.2 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.1 fastparquet : 0.3.2 gcsfs : None lxml.etree : 4.4.2 matplotlib : 3.1.2 numexpr : 2.7.1 odfpy : None openpyxl : 3.0.1 pandas_gbq : None pyarrow : 0.15.1 pytables : None pytest : 5.3.4 pyxlsb : None s3fs : 0.4.0 scipy : 1.4.1 sqlalchemy : 1.3.12 tables : 3.6.1 tabulate : 0.8.6 xarray : 0.14.1 xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.7 numba : 0.47.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31453/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31453/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31454
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31454/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31454/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31454/events
https://github.com/pandas-dev/pandas/pull/31454
557,534,949
MDExOlB1bGxSZXF1ZXN0MzY5MTA4MjA1
31,454
TYP: Type annotaion for test decorators
{ "avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4", "events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}", "followers_url": "https://api.github.com/users/ShaharNaveh/followers", "following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}", "gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ShaharNaveh", "id": 50263213, "login": "ShaharNaveh", "node_id": "MDQ6VXNlcjUwMjYzMjEz", "organizations_url": "https://api.github.com/users/ShaharNaveh/orgs", "received_events_url": "https://api.github.com/users/ShaharNaveh/received_events", "repos_url": "https://api.github.com/users/ShaharNaveh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions", "type": "User", "url": "https://api.github.com/users/ShaharNaveh" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
null
3
2020-01-30T14:35:35Z
2020-01-30T16:56:09Z
2020-01-30T16:55:23Z
MEMBER
null
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I am not 100% sure this is something we want, or at least with this implementation. cc @simonjayhawkins
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31454/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31454/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31454.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31454", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/31454.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31454" }
https://api.github.com/repos/pandas-dev/pandas/issues/31455
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31455/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31455/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31455/events
https://github.com/pandas-dev/pandas/issues/31455
557,552,566
MDU6SXNzdWU1NTc1NTI1NjY=
31,455
jobs failling with error raise RuntimeError("Cannot cythonize without Cython installed.")\n RuntimeError: Cannot cythonize without Cython installed.\n
{ "avatar_url": "https://avatars.githubusercontent.com/u/47532824?v=4", "events_url": "https://api.github.com/users/ramneek91/events{/privacy}", "followers_url": "https://api.github.com/users/ramneek91/followers", "following_url": "https://api.github.com/users/ramneek91/following{/other_user}", "gists_url": "https://api.github.com/users/ramneek91/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ramneek91", "id": 47532824, "login": "ramneek91", "node_id": "MDQ6VXNlcjQ3NTMyODI0", "organizations_url": "https://api.github.com/users/ramneek91/orgs", "received_events_url": "https://api.github.com/users/ramneek91/received_events", "repos_url": "https://api.github.com/users/ramneek91/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ramneek91/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ramneek91/subscriptions", "type": "User", "url": "https://api.github.com/users/ramneek91" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
3
2020-01-30T15:01:56Z
2020-02-04T21:36:03Z
2020-02-04T21:36:03Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here ``` #### Problem description [this should explain **why** the current behaviour is a problem and why the expected output is a better solution.] **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] </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/31455/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31455/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31456
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31456/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31456/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31456/events
https://github.com/pandas-dev/pandas/pull/31456
557,556,066
MDExOlB1bGxSZXF1ZXN0MzY5MTI1OTM1
31,456
BUG: Groupby.apply wasn't allowing for functions which return lists
{ "avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4", "events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}", "followers_url": "https://api.github.com/users/MarcoGorelli/followers", "following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}", "gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MarcoGorelli", "id": 33491632, "login": "MarcoGorelli", "node_id": "MDQ6VXNlcjMzNDkxNjMy", "organizations_url": "https://api.github.com/users/MarcoGorelli/orgs", "received_events_url": "https://api.github.com/users/MarcoGorelli/received_events", "repos_url": "https://api.github.com/users/MarcoGorelli/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions", "type": "User", "url": "https://api.github.com/users/MarcoGorelli" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
3
2020-01-30T15:07:16Z
2020-02-25T17:12:23Z
2020-02-01T15:14:52Z
MEMBER
null
- [ ] closes #31441 - [ ] 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/31456/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31456/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31456.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31456", "merged_at": "2020-02-01T15:14:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31456.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31456" }
https://api.github.com/repos/pandas-dev/pandas/issues/31457
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31457/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31457/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31457/events
https://github.com/pandas-dev/pandas/issues/31457
557,561,562
MDU6SXNzdWU1NTc1NjE1NjI=
31,457
Timedelta multiplication crashes for large arrays
{ "avatar_url": "https://avatars.githubusercontent.com/u/34656862?v=4", "events_url": "https://api.github.com/users/giuliobeseghi/events{/privacy}", "followers_url": "https://api.github.com/users/giuliobeseghi/followers", "following_url": "https://api.github.com/users/giuliobeseghi/following{/other_user}", "gists_url": "https://api.github.com/users/giuliobeseghi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/giuliobeseghi", "id": 34656862, "login": "giuliobeseghi", "node_id": "MDQ6VXNlcjM0NjU2ODYy", "organizations_url": "https://api.github.com/users/giuliobeseghi/orgs", "received_events_url": "https://api.github.com/users/giuliobeseghi/received_events", "repos_url": "https://api.github.com/users/giuliobeseghi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/giuliobeseghi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/giuliobeseghi/subscriptions", "type": "User", "url": "https://api.github.com/users/giuliobeseghi" }
[ { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
8
2020-01-30T15:15:57Z
2020-02-01T15:24:45Z
2020-02-01T15:24:45Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd s = pd.Series(range(10001)) delta_t = pd.Timedelta("30T") print(s * delta_t) ``` `Traceback:` <details> ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-14-a39fa18ca12d> in <module> 4 delta_t = pd.Timedelta("30T") 5 ----> 6 print(s * delta_t) ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\ops\common.py in new_method(self, other) 62 other = item_from_zerodim(other) 63 ---> 64 return method(self, other) 65 66 return new_method ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\ops\__init__.py in wrapper(left, right) 498 lvalues = extract_array(left, extract_numpy=True) 499 rvalues = extract_array(right, extract_numpy=True) --> 500 result = arithmetic_op(lvalues, rvalues, op, str_rep) 501 502 return _construct_result(left, result, index=left.index, name=res_name) ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\ops\array_ops.py in arithmetic_op(left, right, op, str_rep) 194 else: 195 with np.errstate(all="ignore"): --> 196 res_values = na_arithmetic_op(lvalues, rvalues, op, str_rep) 197 198 return res_values ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\ops\array_ops.py in na_arithmetic_op(left, right, op, str_rep) 147 148 try: --> 149 result = expressions.evaluate(op, str_rep, left, right) 150 except TypeError: 151 result = masked_arith_op(left, right, op) ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\computation\expressions.py in evaluate(op, op_str, a, b, use_numexpr) 206 use_numexpr = use_numexpr and _bool_arith_check(op_str, a, b) 207 if use_numexpr: --> 208 return _evaluate(op, op_str, a, b) 209 return _evaluate_standard(op, op_str, a, b) 210 ~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\computation\expressions.py in _evaluate_numexpr(op, op_str, a, b) 112 f"a_value {op_str} b_value", 113 local_dict={"a_value": a_value, "b_value": b_value}, --> 114 casting="safe", 115 ) 116 ~\AppData\Local\Continuum\anaconda3\lib\site-packages\numexpr\necompiler.py in evaluate(ex, local_dict, global_dict, out, order, casting, **kwargs) 820 # Create a signature 821 signature = [(name, getType(arg)) for (name, arg) in --> 822 zip(names, arguments)] 823 824 # Look up numexpr if possible. ~\AppData\Local\Continuum\anaconda3\lib\site-packages\numexpr\necompiler.py in <listcomp>(.0) 819 820 # Create a signature --> 821 signature = [(name, getType(arg)) for (name, arg) in 822 zip(names, arguments)] 823 ~\AppData\Local\Continuum\anaconda3\lib\site-packages\numexpr\necompiler.py in getType(a) 701 if kind == 'S': 702 return bytes --> 703 raise ValueError("unknown type %s" % a.dtype.name) 704 705 ValueError: unknown type object ``` </details> #### Problem description This works if the series is initialised with "large arrays" (len > 10000). It seems it crashes just with timedeltas, but not with float/int values instead of `delta_t`. I managed to get around this error by calling: ```python t = pd.Series([delta_t] * len(s)) # create series of timedeltas print(s * t) ``` It worked fine until pandas 0.25.3 #### Expected Output 0 0 days 00:00:00 1 0 days 00:30:00 2 0 days 01:00:00 3 0 days 01:30:00 4 0 days 02:00:00 ... 9996 208 days 06:00:00 9997 208 days 06:30:00 9998 208 days 07:00:00 9999 208 days 07:30:00 10000 208 days 08:00:00 Length: 10001, dtype: timedelta64[ns] #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200127 Cython : 0.29.14 pytest : 5.3.4 hypothesis : 4.54.2 sphinx : 2.3.1 blosc : None feather : None xlsxwriter : 1.2.7 lxml.etree : 4.4.2 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.1 fastparquet : None gcsfs : None lxml.etree : 4.4.2 matplotlib : 3.1.1 numexpr : 2.7.0 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.4 pyxlsb : None s3fs : 0.4.0 scipy : 1.3.2 sqlalchemy : 1.3.13 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.7 numba : 0.47.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31457/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31457/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31458
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31458/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31458/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31458/events
https://github.com/pandas-dev/pandas/pull/31458
557,572,744
MDExOlB1bGxSZXF1ZXN0MzY5MTM5OTIz
31,458
Fix to_csv and to_excel links on read_csv, read_table and read_excel See Also docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/1920463?v=4", "events_url": "https://api.github.com/users/srvanrell/events{/privacy}", "followers_url": "https://api.github.com/users/srvanrell/followers", "following_url": "https://api.github.com/users/srvanrell/following{/other_user}", "gists_url": "https://api.github.com/users/srvanrell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/srvanrell", "id": 1920463, "login": "srvanrell", "node_id": "MDQ6VXNlcjE5MjA0NjM=", "organizations_url": "https://api.github.com/users/srvanrell/orgs", "received_events_url": "https://api.github.com/users/srvanrell/received_events", "repos_url": "https://api.github.com/users/srvanrell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/srvanrell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/srvanrell/subscriptions", "type": "User", "url": "https://api.github.com/users/srvanrell" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-30T15:33:43Z
2020-01-31T12:08:47Z
2020-01-31T12:08:38Z
CONTRIBUTOR
null
- [x] closes #31448 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31458/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31458/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31458.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31458", "merged_at": "2020-01-31T12:08:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31458.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31458" }
https://api.github.com/repos/pandas-dev/pandas/issues/31459
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31459/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31459/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31459/events
https://github.com/pandas-dev/pandas/issues/31459
557,591,007
MDU6SXNzdWU1NTc1OTEwMDc=
31,459
ENH: pd.cut should be able to return a Series of IntervalDtype
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" }, { "color": "9aace2", "default": false, "description": "cut, qcut", "id": 1639305834, "name": "cut", "node_id": "MDU6TGFiZWwxNjM5MzA1ODM0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/cut" } ]
open
false
null
[]
null
3
2020-01-30T16:01:59Z
2021-07-27T05:36:59Z
null
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python In [1]: import pandas as pd In [2]: import random In [3]: df=pd.DataFrame({'x': [random.randint(0,10) for i in range(100)]}) In [4]: pd.cut(df.x, [2*i for i in range(6)]) Out[4]: 0 (6.0, 8.0] 1 NaN 2 (0.0, 2.0] 3 (2.0, 4.0] 4 (0.0, 2.0] ... 95 (8.0, 10.0] 96 (2.0, 4.0] 97 (8.0, 10.0] 98 (0.0, 2.0] 99 (8.0, 10.0] Name: x, Length: 100, dtype: category Categories (5, interval[int64]): [(0, 2] < (2, 4] < (4, 6] < (6, 8] < (8, 10]] ``` #### Problem description By default, the return type of `pd.cut` is categories, but we know we are creating intervals, so shouldn't it be `IntervalDtype` ? #### Expected Output ```python In [5]: pd.cut(df.x, [2*i for i in range(6)]).astype('Interval') Out[5]: 0 (6.0, 8.0] 1 NaN 2 (0.0, 2.0] 3 (2.0, 4.0] 4 (0.0, 2.0] ... 95 (8.0, 10.0] 96 (2.0, 4.0] 97 (8.0, 10.0] 98 (0.0, 2.0] 99 (8.0, 10.0] Name: x, Length: 100, dtype: interval ``` IMHO, I shouldn't need to do the 'astype('Interval')` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 158 Stepping 13, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.0 numpy : 1.17.4 pytz : 2019.3 dateutil : 2.8.1 pip : 19.3.1 setuptools : 42.0.2.post20191203 Cython : None pytest : 5.3.2 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.2.6 lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.2 pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : 1.2.6 numba : None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31459/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31459/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31460
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31460/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31460/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31460/events
https://github.com/pandas-dev/pandas/issues/31460
557,593,645
MDU6SXNzdWU1NTc1OTM2NDU=
31,460
DOC: Example of DataFrame.to_csv() is not showing properly
{ "avatar_url": "https://avatars.githubusercontent.com/u/1920463?v=4", "events_url": "https://api.github.com/users/srvanrell/events{/privacy}", "followers_url": "https://api.github.com/users/srvanrell/followers", "following_url": "https://api.github.com/users/srvanrell/following{/other_user}", "gists_url": "https://api.github.com/users/srvanrell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/srvanrell", "id": 1920463, "login": "srvanrell", "node_id": "MDQ6VXNlcjE5MjA0NjM=", "organizations_url": "https://api.github.com/users/srvanrell/orgs", "received_events_url": "https://api.github.com/users/srvanrell/received_events", "repos_url": "https://api.github.com/users/srvanrell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/srvanrell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/srvanrell/subscriptions", "type": "User", "url": "https://api.github.com/users/srvanrell" }
[ { "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-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-30T16:05:51Z
2020-01-31T07:19:57Z
2020-01-31T07:19:57Z
CONTRIBUTOR
null
#### Problem description Example of DataFrame.to_csv() is not showing properly. See the screenshoot below: ![Screenshot_20200130_130131](https://user-images.githubusercontent.com/1920463/73466588-d48aa980-4360-11ea-9432-6e52155fb00d.png) #### Expected Output I'll propose a PR fixing the docstring
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31460/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31460/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31461
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31461/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31461/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31461/events
https://github.com/pandas-dev/pandas/pull/31461
557,597,286
MDExOlB1bGxSZXF1ZXN0MzY5MTU5OTg5
31,461
DOC: Fix DataFrame.to_csv example
{ "avatar_url": "https://avatars.githubusercontent.com/u/1920463?v=4", "events_url": "https://api.github.com/users/srvanrell/events{/privacy}", "followers_url": "https://api.github.com/users/srvanrell/followers", "following_url": "https://api.github.com/users/srvanrell/following{/other_user}", "gists_url": "https://api.github.com/users/srvanrell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/srvanrell", "id": 1920463, "login": "srvanrell", "node_id": "MDQ6VXNlcjE5MjA0NjM=", "organizations_url": "https://api.github.com/users/srvanrell/orgs", "received_events_url": "https://api.github.com/users/srvanrell/received_events", "repos_url": "https://api.github.com/users/srvanrell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/srvanrell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/srvanrell/subscriptions", "type": "User", "url": "https://api.github.com/users/srvanrell" }
[ { "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-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-30T16:11:16Z
2020-01-31T07:19:58Z
2020-01-31T07:19:58Z
CONTRIBUTOR
null
- [x] closes #31460 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31461/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31461/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31461.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31461", "merged_at": "2020-01-31T07:19:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31461.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31461" }
https://api.github.com/repos/pandas-dev/pandas/issues/31462
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31462/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31462/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31462/events
https://github.com/pandas-dev/pandas/pull/31462
557,609,759
MDExOlB1bGxSZXF1ZXN0MzY5MTcwMDIw
31,462
Some code cleanups
{ "avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4", "events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}", "followers_url": "https://api.github.com/users/ShaharNaveh/followers", "following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}", "gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ShaharNaveh", "id": 50263213, "login": "ShaharNaveh", "node_id": "MDQ6VXNlcjUwMjYzMjEz", "organizations_url": "https://api.github.com/users/ShaharNaveh/orgs", "received_events_url": "https://api.github.com/users/ShaharNaveh/received_events", "repos_url": "https://api.github.com/users/ShaharNaveh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions", "type": "User", "url": "https://api.github.com/users/ShaharNaveh" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-30T16:30:24Z
2020-01-31T16:26:35Z
2020-01-31T03:12:02Z
MEMBER
null
- [ ] closes #xxxx - [ ] 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/31462/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31462/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31462.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31462", "merged_at": "2020-01-31T03:12:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31462.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31462" }
https://api.github.com/repos/pandas-dev/pandas/issues/31463
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31463/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31463/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31463/events
https://github.com/pandas-dev/pandas/issues/31463
557,626,398
MDU6SXNzdWU1NTc2MjYzOTg=
31,463
Regression: objToJSON "nonvoid function does not return a value" error is back
{ "avatar_url": "https://avatars.githubusercontent.com/u/4181796?v=4", "events_url": "https://api.github.com/users/toddrme2178/events{/privacy}", "followers_url": "https://api.github.com/users/toddrme2178/followers", "following_url": "https://api.github.com/users/toddrme2178/following{/other_user}", "gists_url": "https://api.github.com/users/toddrme2178/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toddrme2178", "id": 4181796, "login": "toddrme2178", "node_id": "MDQ6VXNlcjQxODE3OTY=", "organizations_url": "https://api.github.com/users/toddrme2178/orgs", "received_events_url": "https://api.github.com/users/toddrme2178/received_events", "repos_url": "https://api.github.com/users/toddrme2178/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toddrme2178/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toddrme2178/subscriptions", "type": "User", "url": "https://api.github.com/users/toddrme2178" }
[ { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
8
2020-01-30T16:57:31Z
2020-02-02T17:09:19Z
2020-02-02T17:09:19Z
NONE
null
There was an issue in 2013, #5326, where `initObjToJSON` in `pandas/_libs/src/ujson/python/objToJSON.c` was causing a build error due to it lacking a return value. Specifically, the issue was: ``` pandas/_libs/src/ujson/python/objToJSON.c: In function ‘initObjToJSON’: pandas/_libs/src/ujson/python/objToJSON.c:181:1: error: control reaches end of non-void function [-Werror=return-type] ``` This was fixed at the time in #5334. However, a recent commit, #30710, removed the return value again. This has caused the warning/error to reappear, causing our builds of pandas 1.0.0 to fail. The warning is appearing in your CI builds as well. The difference is that we have it configured as an error. Would it be possible to set a valid return value for the function? Thank you.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31463/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31463/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31464
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31464/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31464/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31464/events
https://github.com/pandas-dev/pandas/issues/31464
557,627,405
MDU6SXNzdWU1NTc2Mjc0MDU=
31,464
read_json with typ="series" of json list of bools results in timestamps/Exception
{ "avatar_url": "https://avatars.githubusercontent.com/u/16646123?v=4", "events_url": "https://api.github.com/users/stewit/events{/privacy}", "followers_url": "https://api.github.com/users/stewit/followers", "following_url": "https://api.github.com/users/stewit/following{/other_user}", "gists_url": "https://api.github.com/users/stewit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stewit", "id": 16646123, "login": "stewit", "node_id": "MDQ6VXNlcjE2NjQ2MTIz", "organizations_url": "https://api.github.com/users/stewit/orgs", "received_events_url": "https://api.github.com/users/stewit/received_events", "repos_url": "https://api.github.com/users/stewit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stewit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stewit/subscriptions", "type": "User", "url": "https://api.github.com/users/stewit" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/4183570?v=4", "events_url": "https://api.github.com/users/jessefarnham/events{/privacy}", "followers_url": "https://api.github.com/users/jessefarnham/followers", "following_url": "https://api.github.com/users/jessefarnham/following{/other_user}", "gists_url": "https://api.github.com/users/jessefarnham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jessefarnham", "id": 4183570, "login": "jessefarnham", "node_id": "MDQ6VXNlcjQxODM1NzA=", "organizations_url": "https://api.github.com/users/jessefarnham/orgs", "received_events_url": "https://api.github.com/users/jessefarnham/received_events", "repos_url": "https://api.github.com/users/jessefarnham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jessefarnham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jessefarnham/subscriptions", "type": "User", "url": "https://api.github.com/users/jessefarnham" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/4183570?v=4", "events_url": "https://api.github.com/users/jessefarnham/events{/privacy}", "followers_url": "https://api.github.com/users/jessefarnham/followers", "following_url": "https://api.github.com/users/jessefarnham/following{/other_user}", "gists_url": "https://api.github.com/users/jessefarnham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jessefarnham", "id": 4183570, "login": "jessefarnham", "node_id": "MDQ6VXNlcjQxODM1NzA=", "organizations_url": "https://api.github.com/users/jessefarnham/orgs", "received_events_url": "https://api.github.com/users/jessefarnham/received_events", "repos_url": "https://api.github.com/users/jessefarnham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jessefarnham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jessefarnham/subscriptions", "type": "User", "url": "https://api.github.com/users/jessefarnham" } ]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-30T16:59:16Z
2020-04-08T17:13:08Z
2020-04-08T17:13:08Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd pd.read_json('[true, true, false]', typ="series") ``` results in the following Pandas Series object in older Pandas versions: ``` 0 1970-01-01 00:00:01 1 1970-01-01 00:00:01 2 1970-01-01 00:00:00 dtype: datetime64[ns] ``` Since 1.0.0 it raises TypeError: <class 'bool'> is not convertible to datetime #### Problem description The expected output would be a Pandas Series of bools. Note that * with typ="frame" it works and the result is a dataframe with one column with bool values * with convert_dates set to False correctly outputs a Series of boolean values This is a problem because * users would expect a Series of bools (and neither an exception nor a series of timestamps) * it is inconsistent with the "frame" case #### 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.8.1.final.0 python-bits : 64 OS : Linux OS-release : 5.4.13-arch1-1 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : de_DE.UTF-8 LOCALE : de_DE.UTF-8 pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 44.0.0 Cython : 0.29.14 pytest : 5.2.4 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.2 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.4.2 matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.2.4 pyxlsb : None s3fs : None scipy : 1.3.2 sqlalchemy : 1.3.11 tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31464/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31464/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31465
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31465/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31465/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31465/events
https://github.com/pandas-dev/pandas/issues/31465
557,636,128
MDU6SXNzdWU1NTc2MzYxMjg=
31,465
Issue pyodbc and to_sql HIVE
{ "avatar_url": "https://avatars.githubusercontent.com/u/45002130?v=4", "events_url": "https://api.github.com/users/sergiobaquero/events{/privacy}", "followers_url": "https://api.github.com/users/sergiobaquero/followers", "following_url": "https://api.github.com/users/sergiobaquero/following{/other_user}", "gists_url": "https://api.github.com/users/sergiobaquero/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sergiobaquero", "id": 45002130, "login": "sergiobaquero", "node_id": "MDQ6VXNlcjQ1MDAyMTMw", "organizations_url": "https://api.github.com/users/sergiobaquero/orgs", "received_events_url": "https://api.github.com/users/sergiobaquero/received_events", "repos_url": "https://api.github.com/users/sergiobaquero/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sergiobaquero/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sergiobaquero/subscriptions", "type": "User", "url": "https://api.github.com/users/sergiobaquero" }
[ { "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": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
open
false
null
[]
null
3
2020-01-30T17:14:21Z
2020-05-16T04:12:33Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible engine_clus= pyodbc.connect(connection_string, autocommit=True) df.to_sql("table", con=engine_clus, if_exists='append', index = False, schema = 'schema') #### Problem description We need to load in HIVE a dataframe which contains information from a source cluster. Using pyodbc we can create, drop and select but we can't do inserts because of the following error: DatabaseError: Execution failed on sql 'SELECT name FROM sqlite_master WHERE type='table' AND name=?;': ('HY000', '[HY000] [Microsoft][Hardy] (79) Failed to reconnect to server. (79) (SQLPrepare)') #### Expected Output We expected to be able to insert information from a dataframe. <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.5.final.0 python-bits : 64 OS : Windows OS-release : 10 byteorder : little LC_ALL : None LANG : es LOCALE : None.None pandas : 0.25.3 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 10.0.1 setuptools : 45.1.0 Cython : 0.28.2 pytest : 3.5.1 hypothesis : None sphinx : 1.7.4 blosc : None feather : None xlsxwriter : 1.0.4 lxml.etree : 4.2.1 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10 IPython : 6.4.0 pandas_datareader: None bs4 : 4.6.0 bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : 4.2.1 matplotlib : 2.2.2 numexpr : 2.6.5 odfpy : None openpyxl : 2.5.3 pandas_gbq : None pyarrow : 0.15.1 pytables : None s3fs : None scipy : 1.1.0 sqlalchemy : 1.2.7 tables : 3.4.3 xarray : None xlrd : 1.1.0 xlwt : 1.3.0 xlsxwriter : 1.0.4 </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/31465/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31465/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31466
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31466/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31466/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31466/events
https://github.com/pandas-dev/pandas/issues/31466
557,643,961
MDU6SXNzdWU1NTc2NDM5NjE=
31,466
pandas.apply() converts all columns to object datatype
{ "avatar_url": "https://avatars.githubusercontent.com/u/22639569?v=4", "events_url": "https://api.github.com/users/michaelsilverstein/events{/privacy}", "followers_url": "https://api.github.com/users/michaelsilverstein/followers", "following_url": "https://api.github.com/users/michaelsilverstein/following{/other_user}", "gists_url": "https://api.github.com/users/michaelsilverstein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/michaelsilverstein", "id": 22639569, "login": "michaelsilverstein", "node_id": "MDQ6VXNlcjIyNjM5NTY5", "organizations_url": "https://api.github.com/users/michaelsilverstein/orgs", "received_events_url": "https://api.github.com/users/michaelsilverstein/received_events", "repos_url": "https://api.github.com/users/michaelsilverstein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/michaelsilverstein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/michaelsilverstein/subscriptions", "type": "User", "url": "https://api.github.com/users/michaelsilverstein" }
[ { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/290998?v=4", "events_url": "https://api.github.com/users/grahamwetzler/events{/privacy}", "followers_url": "https://api.github.com/users/grahamwetzler/followers", "following_url": "https://api.github.com/users/grahamwetzler/following{/other_user}", "gists_url": "https://api.github.com/users/grahamwetzler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/grahamwetzler", "id": 290998, "login": "grahamwetzler", "node_id": "MDQ6VXNlcjI5MDk5OA==", "organizations_url": "https://api.github.com/users/grahamwetzler/orgs", "received_events_url": "https://api.github.com/users/grahamwetzler/received_events", "repos_url": "https://api.github.com/users/grahamwetzler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/grahamwetzler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/grahamwetzler/subscriptions", "type": "User", "url": "https://api.github.com/users/grahamwetzler" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/290998?v=4", "events_url": "https://api.github.com/users/grahamwetzler/events{/privacy}", "followers_url": "https://api.github.com/users/grahamwetzler/followers", "following_url": "https://api.github.com/users/grahamwetzler/following{/other_user}", "gists_url": "https://api.github.com/users/grahamwetzler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/grahamwetzler", "id": 290998, "login": "grahamwetzler", "node_id": "MDQ6VXNlcjI5MDk5OA==", "organizations_url": "https://api.github.com/users/grahamwetzler/orgs", "received_events_url": "https://api.github.com/users/grahamwetzler/received_events", "repos_url": "https://api.github.com/users/grahamwetzler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/grahamwetzler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/grahamwetzler/subscriptions", "type": "User", "url": "https://api.github.com/users/grahamwetzler" } ]
{ "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
2020-01-30T17:28:18Z
2020-07-01T16:53:35Z
2020-07-01T16:53:35Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame([['a', 1], ['b', 2]], columns=['col1', 'col2']) df.dtypes df.apply(lambda x: x.dtype) ``` ![image](https://user-images.githubusercontent.com/22639569/73474042-cbe3a480-435b-11ea-8f95-957f8f4dba0d.png) #### Problem description Column datatypes are converted to object if one columns is dtype=object #### Expected Output Columns should maintain datatypes when passed to apply #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.9.final.0 python-bits : 64 OS : Linux OS-release : 5.0.0-1029-gcp machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.0 numpy : 1.16.2 pytz : 2018.9 dateutil : 2.8.0 pip : 19.2.2 setuptools : 41.0.1 Cython : 0.29.5 pytest : 4.3.0 hypothesis : None sphinx : 1.8.4 blosc : None feather : None xlsxwriter : 1.1.5 lxml.etree : 4.3.0 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10 IPython : 7.3.0 pandas_datareader: None bs4 : 4.7.1 bottleneck : 1.2.1 fastparquet : None gcsfs : 0.3.0 lxml.etree : 4.3.0 matplotlib : 3.0.2 numexpr : 2.6.9 odfpy : None openpyxl : 2.6.0 pandas_gbq : None pyarrow : None pytables : None pytest : 4.3.0 pyxlsb : None s3fs : 0.2.0 scipy : 1.2.1 sqlalchemy : 1.2.18 tables : 3.4.4 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.1.5 numba : 0.42.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31466/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31466/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31467
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31467/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31467/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31467/events
https://github.com/pandas-dev/pandas/issues/31467
557,656,729
MDU6SXNzdWU1NTc2NTY3Mjk=
31,467
pd.ExcelFile closes stream on destruction in pandas 1.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/33967107?v=4", "events_url": "https://api.github.com/users/johny-b/events{/privacy}", "followers_url": "https://api.github.com/users/johny-b/followers", "following_url": "https://api.github.com/users/johny-b/following{/other_user}", "gists_url": "https://api.github.com/users/johny-b/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/johny-b", "id": 33967107, "login": "johny-b", "node_id": "MDQ6VXNlcjMzOTY3MTA3", "organizations_url": "https://api.github.com/users/johny-b/orgs", "received_events_url": "https://api.github.com/users/johny-b/received_events", "repos_url": "https://api.github.com/users/johny-b/repos", "site_admin": false, "starred_url": "https://api.github.com/users/johny-b/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johny-b/subscriptions", "type": "User", "url": "https://api.github.com/users/johny-b" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/10944368?v=4", "events_url": "https://api.github.com/users/roberthdevries/events{/privacy}", "followers_url": "https://api.github.com/users/roberthdevries/followers", "following_url": "https://api.github.com/users/roberthdevries/following{/other_user}", "gists_url": "https://api.github.com/users/roberthdevries/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/roberthdevries", "id": 10944368, "login": "roberthdevries", "node_id": "MDQ6VXNlcjEwOTQ0MzY4", "organizations_url": "https://api.github.com/users/roberthdevries/orgs", "received_events_url": "https://api.github.com/users/roberthdevries/received_events", "repos_url": "https://api.github.com/users/roberthdevries/repos", "site_admin": false, "starred_url": "https://api.github.com/users/roberthdevries/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/roberthdevries/subscriptions", "type": "User", "url": "https://api.github.com/users/roberthdevries" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/10944368?v=4", "events_url": "https://api.github.com/users/roberthdevries/events{/privacy}", "followers_url": "https://api.github.com/users/roberthdevries/followers", "following_url": "https://api.github.com/users/roberthdevries/following{/other_user}", "gists_url": "https://api.github.com/users/roberthdevries/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/roberthdevries", "id": 10944368, "login": "roberthdevries", "node_id": "MDQ6VXNlcjEwOTQ0MzY4", "organizations_url": "https://api.github.com/users/roberthdevries/orgs", "received_events_url": "https://api.github.com/users/roberthdevries/received_events", "repos_url": "https://api.github.com/users/roberthdevries/repos", "site_admin": false, "starred_url": "https://api.github.com/users/roberthdevries/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/roberthdevries/subscriptions", "type": "User", "url": "https://api.github.com/users/roberthdevries" } ]
{ "closed_at": "2020-03-16T02:29:08Z", "closed_issues": 155, "created_at": "2020-02-03T09:13:39Z", "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 1.0.x", "due_on": "2020-03-11T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/70", "id": 5065490, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels", "node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==", "number": 70, "open_issues": 0, "state": "closed", "title": "1.0.2", "updated_at": "2021-07-28T05:52:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70" }
7
2020-01-30T17:54:53Z
2020-03-12T12:18:21Z
2020-03-12T12:18:21Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python3 import pandas as pd print(pd.__version__) a = open('some_file.xlsx', 'rb') x = pd.ExcelFile(a) del x print(a.read()) ``` #### Problem description Above script behaves in different way in pandas 0.25.3 and 1.0.0: ```bash $ python3 t1.py 0.25.3 b'' $ sudo pip3 install pandas --upgrade --quiet $ python3 t1.py 1.0.0 Traceback (most recent call last): File "t1.py", line 6, in <module> print(a.read()) ValueError: read of closed file ``` It seems that stream is closed when ExcelFile is destroyed - and I don't see why. #### Expected Output I'd expect either notice in release notes, or the same output in 0.25.3 and 1.0.0. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.6.8.final.0 python-bits : 64 OS : Linux OS-release : 5.0.0-1028-gcp machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 9.0.1 setuptools : 39.0.1 Cython : None pytest : 4.3.0 hypothesis : None sphinx : 1.8.5 blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.1 html5lib : 0.999999999 pymysql : None psycopg2 : 2.8.3 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : None pandas_datareader: None bs4 : 4.8.0 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.4.1 matplotlib : None numexpr : None odfpy : None openpyxl : 2.5.14 pandas_gbq : None pyarrow : None pytables : None pytest : 4.3.0 pyxlsb : None s3fs : None scipy : 1.2.0 sqlalchemy : None tables : None tabulate : None xarray : None xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31467/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31467/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31468
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31468/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31468/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31468/events
https://github.com/pandas-dev/pandas/pull/31468
557,665,571
MDExOlB1bGxSZXF1ZXN0MzY5MjE1OTI5
31,468
REF: use inherit_names for DTI
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-30T18:13:38Z
2020-01-31T04:19:20Z
2020-01-31T03:09:34Z
MEMBER
null
xref #31427, #31433. With all three of these in, we can then remove indexes.datetimelike.DatetimelikeDelegateMixin Using inherit_names, we also have the option of making tz, tzinfo, dtype cache_readonly if that turns out to make a difference.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31468/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31468/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31468.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31468", "merged_at": "2020-01-31T03:09:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31468.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31468" }
https://api.github.com/repos/pandas-dev/pandas/issues/31469
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31469/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31469/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31469/events
https://github.com/pandas-dev/pandas/issues/31469
557,665,572
MDU6SXNzdWU1NTc2NjU1NzI=
31,469
REGR: __setitem__ with integer slices on Int/RangeIndex is broken (label instead of positional)
{ "avatar_url": "https://avatars.githubusercontent.com/u/449558?v=4", "events_url": "https://api.github.com/users/amueller/events{/privacy}", "followers_url": "https://api.github.com/users/amueller/followers", "following_url": "https://api.github.com/users/amueller/following{/other_user}", "gists_url": "https://api.github.com/users/amueller/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amueller", "id": 449558, "login": "amueller", "node_id": "MDQ6VXNlcjQ0OTU1OA==", "organizations_url": "https://api.github.com/users/amueller/orgs", "received_events_url": "https://api.github.com/users/amueller/received_events", "repos_url": "https://api.github.com/users/amueller/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amueller/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amueller/subscriptions", "type": "User", "url": "https://api.github.com/users/amueller" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
15
2020-01-30T18:13:38Z
2020-02-01T14:22:06Z
2020-02-01T14:22:05Z
NONE
null
There's an backward incompatible change in pandas 1.0 that I didn't find in the changelog. I might have just overlooked it though. ```python import numpy as np X = pd.DataFrame(np.zeros((100, 1))) X[-4:] = 1 X ``` In pandas 0.25.3 or lower, this results in the last four entries of X to be 1 and all the others zero. In pandas 1.0, it results in all entries of X being 1. I assume it's a change of indexing axis 0 or axis 1?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31469/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31469/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31470
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31470/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31470/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31470/events
https://github.com/pandas-dev/pandas/pull/31470
557,698,335
MDExOlB1bGxSZXF1ZXN0MzY5MjQyNTEx
31,470
BUG: groupby().agg fails on categorical column
{ "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": "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 Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
14
2020-01-30T19:20:30Z
2020-02-05T08:24:35Z
2020-02-05T00:32:33Z
MEMBER
null
- [ ] closes #31450 - [ ] 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/31470/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31470/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31470.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31470", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/31470.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31470" }
https://api.github.com/repos/pandas-dev/pandas/issues/31471
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31471/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31471/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31471/events
https://github.com/pandas-dev/pandas/issues/31471
557,699,732
MDU6SXNzdWU1NTc2OTk3MzI=
31,471
TypeError when calculating min/max of period column using groupby
{ "avatar_url": "https://avatars.githubusercontent.com/u/60485172?v=4", "events_url": "https://api.github.com/users/fajost/events{/privacy}", "followers_url": "https://api.github.com/users/fajost/followers", "following_url": "https://api.github.com/users/fajost/following{/other_user}", "gists_url": "https://api.github.com/users/fajost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fajost", "id": 60485172, "login": "fajost", "node_id": "MDQ6VXNlcjYwNDg1MTcy", "organizations_url": "https://api.github.com/users/fajost/orgs", "received_events_url": "https://api.github.com/users/fajost/received_events", "repos_url": "https://api.github.com/users/fajost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fajost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fajost/subscriptions", "type": "User", "url": "https://api.github.com/users/fajost" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
1
2020-01-30T19:23:28Z
2020-02-04T22:52:27Z
2020-02-04T22:52:27Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd periods = pd.period_range(start="2019-01", periods=4, freq="M") groups = [1, 1, 2, 2] df = pd.DataFrame({"periods": periods, "groups": groups}) result = df.groupby("groups")["periods"].min() ``` #### Problem description The last line of the example throws a _TypeError: data type not understood_. <details> Traceback (most recent call last): File "test.py", line 6, in <module> result = df.groupby("groups")["periods"].min() File "...\site-packages\pandas\core\groupby\groupby.py", line 1378, in f return self._cython_agg_general(alias, alt=npfunc, **kwargs) File "...\site-packages\pandas\core\groupby\groupby.py", line 889, in _cython_agg_general result, agg_names = self.grouper.aggregate( File "...\site-packages\pandas\core\groupby\ops.py", line 580, in aggregate return self._cython_operation( File "...\site-packages\pandas\core\groupby\ops.py", line 573, in _cython_operation result = result.astype(orig_values.dtype) TypeError: data type not understood </details> #### Expected Output The `result` DataFrame should contain the earliest period (in this case 2019-01) for each grouping slice. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.1.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : English_United Kingdom.1252 pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200127 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31471/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31471/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31472
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31472/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31472/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31472/events
https://github.com/pandas-dev/pandas/pull/31472
557,738,337
MDExOlB1bGxSZXF1ZXN0MzY5Mjc1Mzc4
31,472
DOC: Fix examples in documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4", "events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}", "followers_url": "https://api.github.com/users/ShaharNaveh/followers", "following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}", "gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ShaharNaveh", "id": 50263213, "login": "ShaharNaveh", "node_id": "MDQ6VXNlcjUwMjYzMjEz", "organizations_url": "https://api.github.com/users/ShaharNaveh/orgs", "received_events_url": "https://api.github.com/users/ShaharNaveh/received_events", "repos_url": "https://api.github.com/users/ShaharNaveh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions", "type": "User", "url": "https://api.github.com/users/ShaharNaveh" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
8
2020-01-30T20:36:31Z
2020-03-14T14:05:25Z
2020-03-07T20:10:21Z
MEMBER
null
- [ ] closes #xxxx - [ ] 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/31472/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31472/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31472.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31472", "merged_at": "2020-03-07T20:10:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31472.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31472" }
https://api.github.com/repos/pandas-dev/pandas/issues/31473
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31473/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31473/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31473/events
https://github.com/pandas-dev/pandas/pull/31473
557,796,964
MDExOlB1bGxSZXF1ZXN0MzY5MzIyNDg2
31,473
CLN: clean signature in Groupby.add_numeric_operations
{ "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": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
0
2020-01-30T22:33:41Z
2020-02-12T22:13:34Z
2020-01-31T03:51:26Z
CONTRIBUTOR
null
Avoid **kwars, replace with named parameters.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31473/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31473/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31473.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31473", "merged_at": "2020-01-31T03:51:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31473.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31473" }
https://api.github.com/repos/pandas-dev/pandas/issues/31474
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31474/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31474/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31474/events
https://github.com/pandas-dev/pandas/issues/31474
557,836,239
MDU6SXNzdWU1NTc4MzYyMzk=
31,474
Not supported for DataFrames Exception triggered by a simple inspect.getmembers() call on a DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/401246?v=4", "events_url": "https://api.github.com/users/RichardBruskiewich/events{/privacy}", "followers_url": "https://api.github.com/users/RichardBruskiewich/followers", "following_url": "https://api.github.com/users/RichardBruskiewich/following{/other_user}", "gists_url": "https://api.github.com/users/RichardBruskiewich/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RichardBruskiewich", "id": 401246, "login": "RichardBruskiewich", "node_id": "MDQ6VXNlcjQwMTI0Ng==", "organizations_url": "https://api.github.com/users/RichardBruskiewich/orgs", "received_events_url": "https://api.github.com/users/RichardBruskiewich/received_events", "repos_url": "https://api.github.com/users/RichardBruskiewich/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RichardBruskiewich/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RichardBruskiewich/subscriptions", "type": "User", "url": "https://api.github.com/users/RichardBruskiewich" }
[ { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
8
2020-01-31T00:19:16Z
2020-04-21T12:53:51Z
2020-04-21T12:53:51Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import inspect import pandas as pd df = pd.DataFrame() try: members = inspect.getmembers(df) except Exception as e: print(e) ``` #### Problem description A "**Not supported for DataFrames Exception**" is triggered by a simple inspect.getmembers() call on a DataFrame instance. There are some useful libraries like the Python 'fire' library which are disabled by this bug, which was not present in Pandas Release 0.24.2 but emerged in 0.25.0 #### Expected Output A list of DataFrame members (without crashing) #### Output of ``pd.show_versions()`` [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-26-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 0.25.1 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None 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/31474/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31474/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31475
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31475/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31475/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31475/events
https://github.com/pandas-dev/pandas/pull/31475
557,836,370
MDExOlB1bGxSZXF1ZXN0MzY5MzUyNzUz
31,475
BUG: Period[us] start_time off by 1 nanosecond
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-01-31T00:19:37Z
2020-02-04T00:13:45Z
2020-02-04T00:12: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
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31475/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31475/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31475.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31475", "merged_at": "2020-02-04T00:12:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31475.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31475" }
https://api.github.com/repos/pandas-dev/pandas/issues/31476
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31476/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31476/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31476/events
https://github.com/pandas-dev/pandas/issues/31476
557,856,883
MDU6SXNzdWU1NTc4NTY4ODM=
31,476
DEPR: DataFrame.__getitem__[str] sometimes slices on 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": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
closed
false
null
[]
null
1
2020-01-31T01:27:32Z
2020-09-24T19:57:39Z
2020-09-24T19:57:39Z
MEMBER
null
xref #31334, #9595 - This is a tiny corner case, at least as measured by tests cases (2 tests reach this) - With this removed, the `__getitem__` API becomes much simpler to describe: "DataFrame.__getitem__` is always column-based"
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31476/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31476/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31477
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31477/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31477/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31477/events
https://github.com/pandas-dev/pandas/pull/31477
557,867,832
MDExOlB1bGxSZXF1ZXN0MzY5Mzc1OTU5
31,477
REGR: Fix TypeError in groupby min / max of period column
{ "avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4", "events_url": "https://api.github.com/users/dsaxton/events{/privacy}", "followers_url": "https://api.github.com/users/dsaxton/followers", "following_url": "https://api.github.com/users/dsaxton/following{/other_user}", "gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dsaxton", "id": 2658661, "login": "dsaxton", "node_id": "MDQ6VXNlcjI2NTg2NjE=", "organizations_url": "https://api.github.com/users/dsaxton/orgs", "received_events_url": "https://api.github.com/users/dsaxton/received_events", "repos_url": "https://api.github.com/users/dsaxton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions", "type": "User", "url": "https://api.github.com/users/dsaxton" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
3
2020-01-31T02:06:23Z
2020-02-04T22:54:20Z
2020-02-04T22:52:28Z
MEMBER
null
- [x] closes #31471 - [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/31477/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31477/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31477.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31477", "merged_at": "2020-02-04T22:52:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31477.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31477" }
https://api.github.com/repos/pandas-dev/pandas/issues/31478
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31478/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31478/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31478/events
https://github.com/pandas-dev/pandas/issues/31478
557,889,397
MDU6SXNzdWU1NTc4ODkzOTc=
31,478
round method throws error if DataFrame includes Int64Dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/924583?v=4", "events_url": "https://api.github.com/users/shouyu/events{/privacy}", "followers_url": "https://api.github.com/users/shouyu/followers", "following_url": "https://api.github.com/users/shouyu/following{/other_user}", "gists_url": "https://api.github.com/users/shouyu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shouyu", "id": 924583, "login": "shouyu", "node_id": "MDQ6VXNlcjkyNDU4Mw==", "organizations_url": "https://api.github.com/users/shouyu/orgs", "received_events_url": "https://api.github.com/users/shouyu/received_events", "repos_url": "https://api.github.com/users/shouyu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shouyu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shouyu/subscriptions", "type": "User", "url": "https://api.github.com/users/shouyu" }
[ { "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": "eb6420", "default": false, "description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff", "id": 57296398, "name": "Algos", "node_id": "MDU6TGFiZWw1NzI5NjM5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos" }, { "color": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
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
2020-01-31T03:25:25Z
2021-04-05T01:27:00Z
2021-04-05T01:27:00Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python >>> import pandas as pd >>> s = pd.Series([1, 2, None], dtype="Int64") >>> s.round(1) AttributeError: 'float' object has no attribute 'rint' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.8/site-packages/pandas/core/series.py", line 2146, in round result = com.values_from_object(self).round(decimals) TypeError: loop of ufunc does not support argument 0 of type float which has no callable rint method ``` #### Problem description round method throws above error. Expected behavior is same to int64 dtype and ignore NaN. ``` >>> s = pd.Series([1, 2], dtype="int64") >>> s.round(1) 0 1 1 2 dtype: int64 ``` #### Expected Output ``` >>> s = pd.Series([1, 2, None], dtype="Int64") >>> s.round(1) >>> s 0 1 1 2 2 <NA> dtype: Int64 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.1.final.0 python-bits : 64 OS : Linux OS-release : 5.4.13-arch1-1 machine : x86_64 processor : byteorder : little LC_ALL : None LANG : C.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 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/31478/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31478/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31479
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31479/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31479/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31479/events
https://github.com/pandas-dev/pandas/issues/31479
557,890,846
MDU6SXNzdWU1NTc4OTA4NDY=
31,479
multi-dimensional-indexing deprecation warning has inconsistent stack level.
{ "avatar_url": "https://avatars.githubusercontent.com/u/199813?v=4", "events_url": "https://api.github.com/users/tacaswell/events{/privacy}", "followers_url": "https://api.github.com/users/tacaswell/followers", "following_url": "https://api.github.com/users/tacaswell/following{/other_user}", "gists_url": "https://api.github.com/users/tacaswell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tacaswell", "id": 199813, "login": "tacaswell", "node_id": "MDQ6VXNlcjE5OTgxMw==", "organizations_url": "https://api.github.com/users/tacaswell/orgs", "received_events_url": "https://api.github.com/users/tacaswell/received_events", "repos_url": "https://api.github.com/users/tacaswell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tacaswell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tacaswell/subscriptions", "type": "User", "url": "https://api.github.com/users/tacaswell" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "f2f074", "default": false, "description": "Warnings that appear or should be added to pandas", "id": 1628184320, "name": "Warnings", "node_id": "MDU6TGFiZWwxNjI4MTg0MzIw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Warnings" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
3
2020-01-31T03:31:08Z
2021-06-15T23:48:02Z
2021-06-15T23:48:02Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here import warnings import pandas as pd warnings.simplefilter("always") x = pd.Series([], dtype="float64") df = pd.DataFrame( { "year": [2018, 2018, 2018], "month": [1, 1, 1], "day": [1, 2, 3], "value": [1, 2, 3], } ) df["date"] = pd.to_datetime(df[["year", "month", "day"]]) monthly = df[["date", "value"]].groupby(["date"]).sum() dates = monthly.index dates[:, None] x.index[:, None] ``` #### Problem description Running the above script gives: ``` sharon@22:14 ➤ python /tmp/pd_test.py /tmp/pd_test.py:21: DeprecationWarning: Support for multi-dimensional indexing (e.g. `index[:, None]`) on an Index is deprecated and will be removed in a future version. Convert to a numpy array before indexing instead. dates[:, None] /home/tcaswell/.virtualenvs/sys37/lib/python3.7/site-packages/pandas/core/indexes/range.py:708: DeprecationWarning: Support for multi-dimensional indexing (e.g. `index[:, None]`) on an Index is deprecated and will be removed in a future version. Convert to a numpy array before indexing instead. return super().__getitem__(key) ``` I think the issue is that https://github.com/pandas-dev/pandas/blob/7d616b951c08bbd90e36bee2c184569556d57093/pandas/core/indexers.py#L263-L270 is pushing the warning up a fixed number of stack layers, but due to implementation details it maybe deeper / less deep than expected. #### Expected Output pandas should be the module reported in the warning about slicing in both cases or neither case. You may want to use something like https://github.com/matplotlib/matplotlib/blob/e4dbf4e7b5241e7d74f79adc854f84a954b45e8f/lib/matplotlib/cbook/__init__.py#L2013-L2032 to find the first stack not in pandas to put the warning at. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Linux OS-release : 5.0.0-38-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.0rc0 numpy : 1.16.5 pytz : 2019.2 dateutil : 2.8.0 pip : 19.2.2 setuptools : 41.0.1 Cython : 0.29.13 pytest : 3.10.1 hypothesis : None sphinx : 2.2.0 blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.12.0.dev pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : None matplotlib : 3.2.0rc2.post1219+g3d8a6cb83 numexpr : 2.7.0 odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 3.10.1 s3fs : None scipy : 1.3.1 sqlalchemy : None tables : 3.6.1 tabulate : None xarray : 0.14.0 xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31479/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31479/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31480
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31480/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31480/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31480/events
https://github.com/pandas-dev/pandas/pull/31480
557,903,646
MDExOlB1bGxSZXF1ZXN0MzY5NDAyMjMw
31,480
CLN: remove DatetimelikeDelegateMixin
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-31T04:21:35Z
2020-01-31T15:48:02Z
2020-01-31T12:01:35Z
MEMBER
null
Made possibly by #31433.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31480/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31480/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31480.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31480", "merged_at": "2020-01-31T12:01:34Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31480.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31480" }
https://api.github.com/repos/pandas-dev/pandas/issues/31481
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31481/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31481/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31481/events
https://github.com/pandas-dev/pandas/pull/31481
557,958,759
MDExOlB1bGxSZXF1ZXN0MzY5NDQ1NjAx
31,481
Backport PR #31461 on branch 1.0.x (DOC: Fix DataFrame.to_csv example)
{ "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": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-31T07:20:16Z
2020-01-31T09:16:48Z
2020-01-31T09:16:48Z
NONE
null
Backport PR #31461: DOC: Fix DataFrame.to_csv example
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31481/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31481/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31481.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31481", "merged_at": "2020-01-31T09:16:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31481.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31481" }
https://api.github.com/repos/pandas-dev/pandas/issues/31482
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31482/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31482/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31482/events
https://github.com/pandas-dev/pandas/pull/31482
557,977,556
MDExOlB1bGxSZXF1ZXN0MzY5NDYwNjgy
31,482
BUG: objToJson.c - fix return value
{ "avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4", "events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}", "followers_url": "https://api.github.com/users/alimcmaster1/followers", "following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}", "gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alimcmaster1", "id": 16733618, "login": "alimcmaster1", "node_id": "MDQ6VXNlcjE2NzMzNjE4", "organizations_url": "https://api.github.com/users/alimcmaster1/orgs", "received_events_url": "https://api.github.com/users/alimcmaster1/received_events", "repos_url": "https://api.github.com/users/alimcmaster1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions", "type": "User", "url": "https://api.github.com/users/alimcmaster1" }
[ { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
6
2020-01-31T08:08:46Z
2020-02-02T17:10:20Z
2020-02-02T17:09:19Z
CONTRIBUTOR
null
- [x] closes #31463 https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=27217&view=logs&j=3a03f79d-0b41-5610-1aa4-b4a014d0bc70&t=fe74a338-551b-5fbb-553d-25f48b1836e8&l=687 Seems like this warning is somehow causing an error in the users builds of pandas
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31482/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31482/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31482.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31482", "merged_at": "2020-02-02T17:09:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31482.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31482" }
https://api.github.com/repos/pandas-dev/pandas/issues/31483
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31483/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31483/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31483/events
https://github.com/pandas-dev/pandas/pull/31483
557,994,257
MDExOlB1bGxSZXF1ZXN0MzY5NDczNjM4
31,483
TST: preserve dtypes on assignment
{ "avatar_url": "https://avatars.githubusercontent.com/u/16578178?v=4", "events_url": "https://api.github.com/users/prakhar987/events{/privacy}", "followers_url": "https://api.github.com/users/prakhar987/followers", "following_url": "https://api.github.com/users/prakhar987/following{/other_user}", "gists_url": "https://api.github.com/users/prakhar987/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/prakhar987", "id": 16578178, "login": "prakhar987", "node_id": "MDQ6VXNlcjE2NTc4MTc4", "organizations_url": "https://api.github.com/users/prakhar987/orgs", "received_events_url": "https://api.github.com/users/prakhar987/received_events", "repos_url": "https://api.github.com/users/prakhar987/repos", "site_admin": false, "starred_url": "https://api.github.com/users/prakhar987/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/prakhar987/subscriptions", "type": "User", "url": "https://api.github.com/users/prakhar987" }
[ { "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": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-01-31T08:49:46Z
2020-02-01T23:20:49Z
2020-02-01T23:20:37Z
CONTRIBUTOR
null
- [x] closes #31340 - [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/31483/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31483/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31483.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31483", "merged_at": "2020-02-01T23:20:37Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31483.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31483" }
https://api.github.com/repos/pandas-dev/pandas/issues/31484
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31484/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31484/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31484/events
https://github.com/pandas-dev/pandas/pull/31484
558,005,722
MDExOlB1bGxSZXF1ZXN0MzY5NDgyMjgx
31,484
BUG: Array.__setitem__ failing with nullable boolean mask
{ "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": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
3
2020-01-31T09:14:04Z
2020-02-06T09:08:02Z
2020-02-01T14:37:26Z
MEMBER
null
- [x] closes #31446 - [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/31484/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31484/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31484.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31484", "merged_at": "2020-02-01T14:37:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31484.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31484" }
https://api.github.com/repos/pandas-dev/pandas/issues/31485
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31485/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31485/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31485/events
https://github.com/pandas-dev/pandas/pull/31485
558,020,159
MDExOlB1bGxSZXF1ZXN0MzY5NDkzNTkx
31,485
CLN: named parameters for GroupBy.(mean|median|var|std)
{ "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": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
7
2020-01-31T09:41:52Z
2020-02-04T16:25:32Z
2020-02-02T22:46:32Z
CONTRIBUTOR
null
Drops *args & **kwargs, replace with named parameters for groupby methods mean, median, var & std. Similar to #31473. This PR has the side effect that the raised error when a parameter is not allowed, is now ``TypeError`` instead of ``UnsupportedFunctionCall``, so technically a API change...
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31485/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31485/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31485.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31485", "merged_at": "2020-02-02T22:46:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31485.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31485" }
https://api.github.com/repos/pandas-dev/pandas/issues/31486
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31486/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31486/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31486/events
https://github.com/pandas-dev/pandas/pull/31486
558,040,890
MDExOlB1bGxSZXF1ZXN0MzY5NTA5ODU4
31,486
DOC: Parameter doc strings for Groupby.(sum|prod|min|max|first|last)
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-31T10:20:17Z
2020-02-12T22:12:38Z
2020-01-31T11:54:35Z
CONTRIBUTOR
null
Follow-up to #31473.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31486/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31486/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31486.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31486", "merged_at": "2020-01-31T11:54:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31486.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31486" }
https://api.github.com/repos/pandas-dev/pandas/issues/31487
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31487/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31487/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31487/events
https://github.com/pandas-dev/pandas/issues/31487
558,041,019
MDU6SXNzdWU1NTgwNDEwMTk=
31,487
Maybe wrong default axis with operators (add, sub, mul, div) between datetime-indexed df and series 1.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/34656862?v=4", "events_url": "https://api.github.com/users/giuliobeseghi/events{/privacy}", "followers_url": "https://api.github.com/users/giuliobeseghi/followers", "following_url": "https://api.github.com/users/giuliobeseghi/following{/other_user}", "gists_url": "https://api.github.com/users/giuliobeseghi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/giuliobeseghi", "id": 34656862, "login": "giuliobeseghi", "node_id": "MDQ6VXNlcjM0NjU2ODYy", "organizations_url": "https://api.github.com/users/giuliobeseghi/orgs", "received_events_url": "https://api.github.com/users/giuliobeseghi/received_events", "repos_url": "https://api.github.com/users/giuliobeseghi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/giuliobeseghi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/giuliobeseghi/subscriptions", "type": "User", "url": "https://api.github.com/users/giuliobeseghi" }
[ { "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": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
3
2020-01-31T10:20:31Z
2020-10-02T22:39:17Z
2020-10-02T22:39:17Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd index = pd.date_range(start='2020', periods=5) df = pd.DataFrame([[1, 2, 3]] * 5, columns=['a', 'b', 'c'], index=index) series = pd.Series([10, 20, 30, 40, 50], index=index) print(df + series) ``` | | 2020-01-01 00:00:00 | 2020-01 02 00:00:00 | 2020-01-03 00:00:00 | 2020-01-04 00:00:00 | 2020-01-05 00:00:00 | a | b | c | |---|---|---|---|---|---|---|---|---| | 2020-01-01 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | | 2020-01-02 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | | 2020-01-03 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | | 2020-01-04 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | | 2020-01-05 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | #### Problem description According to the docs (https://pandas.pydata.org/pandas-docs/stable/getting_started/dsintro.html#data-alignment-and-arithmetic): > When doing an operation between DataFrame and Series, the default behavior is to align the Series index on the DataFrame columns, thus broadcasting row-wise > In the special case of working with time series data, if the DataFrame index contains dates, the broadcasting will be column-wise It seems to me that in both cases now the broadcasting is row-wise. Is this an expected change for pandas 1.0.0 (I hope not - I never saw any FutureWarnings about it)? If so, the docs (and the examples) must be updated. The same happens for the operators `-`, `/`, `*`, `%` #### Expected Output Not sure if this is the expected output anymore, but it used to be equivalent to: ```python df.add(series, axis=0) ``` | | a | b | c | |---|-----|---|---| | 2020-01-01 | 11 | 12 | 13 | | 2020-01-02 | 21 | 22 | 23 | | 2020-01-03 | 31 | 32 | 33 | | 2020-01-04 | 41 | 42 | 43 | | 2020-01-05 | 51 | 52 | 53 | Although I can't replicate it, I'm pretty sure this was the behaviour until pandas 0.25.3 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Windows OS-release : 10 machine : AMD64 processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200127 Cython : 0.29.14 pytest : 5.3.4 hypothesis : 4.54.2 sphinx : 2.3.1 blosc : None feather : None xlsxwriter : 1.2.7 lxml.etree : 4.4.2 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.1 fastparquet : None gcsfs : None lxml.etree : 4.4.2 matplotlib : 3.1.1 numexpr : 2.7.0 odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.4 pyxlsb : None s3fs : 0.4.0 scipy : 1.3.2 sqlalchemy : 1.3.13 tables : 3.6.1 tabulate : None xarray : None xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.2.7 numba : 0.47.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31487/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31487/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31488
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31488/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31488/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31488/events
https://github.com/pandas-dev/pandas/issues/31488
558,043,823
MDU6SXNzdWU1NTgwNDM4MjM=
31,488
Unclosed file on EmptyDataError
{ "avatar_url": "https://avatars.githubusercontent.com/u/8050494?v=4", "events_url": "https://api.github.com/users/fominok/events{/privacy}", "followers_url": "https://api.github.com/users/fominok/followers", "following_url": "https://api.github.com/users/fominok/following{/other_user}", "gists_url": "https://api.github.com/users/fominok/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fominok", "id": 8050494, "login": "fominok", "node_id": "MDQ6VXNlcjgwNTA0OTQ=", "organizations_url": "https://api.github.com/users/fominok/orgs", "received_events_url": "https://api.github.com/users/fominok/received_events", "repos_url": "https://api.github.com/users/fominok/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fominok/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fominok/subscriptions", "type": "User", "url": "https://api.github.com/users/fominok" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-31T10:25:27Z
2020-03-15T00:37:42Z
2020-03-15T00:37:42Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas import psutil proc = psutil.Process() try: data = pandas.read_csv('kek.csv', engine='python') # kek.csv is an empty file except pandas.errors.EmptyDataError: pass print(proc.open_files()) ``` #### Problem description Hi, there might be an unwanted behavior on attempt to read an empty `.csv` file, providing a filename instead of handler, so it cannot be closed anymore by user on exception. #### 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.14.13-1.el7.elrepo.x86_64 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 19.2.2 setuptools : 45.1.0 Cython : 0.29.14 pytest : 5.0.1 hypothesis : 4.32.2 sphinx : 2.1.2 blosc : None feather : None xlsxwriter : 1.1.8 lxml.etree : 4.4.1 html5lib : 1.0.1 pymysql : 0.9.2 psycopg2 : 2.8.3 (dt dec pq3 ext lo64) jinja2 : 2.10.1 IPython : 7.8.0 pandas_datareader: None bs4 : 4.8.0 bottleneck : 1.2.1 fastparquet : None gcsfs : None lxml.etree : 4.4.1 matplotlib : 3.1.1 numexpr : 2.7.1 odfpy : None openpyxl : 2.6.2 pandas_gbq : None pyarrow : 0.15.0 pytables : None pytest : 5.0.1 pyxlsb : None s3fs : None scipy : 1.3.1 sqlalchemy : 1.3.7 tables : 3.5.2 tabulate : 0.8.3 xarray : 0.12.1 xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.1.8 numba : 0.45.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31488/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31488/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31489
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31489/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31489/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31489/events
https://github.com/pandas-dev/pandas/issues/31489
558,053,419
MDU6SXNzdWU1NTgwNTM0MTk=
31,489
~ operator on Series with BooleanDtype casts to object and Series with object dtype gives TypeError comparing to Series with BooleanDtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/500246?v=4", "events_url": "https://api.github.com/users/gerritholl/events{/privacy}", "followers_url": "https://api.github.com/users/gerritholl/followers", "following_url": "https://api.github.com/users/gerritholl/following{/other_user}", "gists_url": "https://api.github.com/users/gerritholl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gerritholl", "id": 500246, "login": "gerritholl", "node_id": "MDQ6VXNlcjUwMDI0Ng==", "organizations_url": "https://api.github.com/users/gerritholl/orgs", "received_events_url": "https://api.github.com/users/gerritholl/received_events", "repos_url": "https://api.github.com/users/gerritholl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gerritholl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gerritholl/subscriptions", "type": "User", "url": "https://api.github.com/users/gerritholl" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
4
2020-01-31T10:42:26Z
2020-01-31T16:23:46Z
2020-01-31T16:23:46Z
NONE
null
#### Code Sample, a copy-pastable example if possible Using pandas 1.0.0: ```python ~pandas.Series([True, False], dtype=pandas.BooleanDtype()) ``` Or: ```python s1 = pandas.Series([True, False], dtype=pandas.BooleanDtype()) s2 = pandas.Series([False, True], dtype=pandas.BooleanDtype()) (~s1).equals(s2) and (~s2).equals(s1) ``` #### Problem description Using the `pandas.BooleanDtype()` dtype, the `~` operator unexpectedly: * results in a `Series` with dtype `object` instead of `pandas.BooleanDtype()` * operates on the boolean values as if they were integers (resulting in `-2` for `~True` and `-1` for `~False`), rather than booleans (resulting in `False` for `~True` and `True` for `~False`). This is unexpected and undesirable, because: * On numpy arrays or `Series` with dtype `np.bool_`, the same operation behaves differently: - The dtype remains `np.bool_` - `~True` results in `False` and `~False` results in `True` * When having a Series with a boolean dtype, the `~` operator is a convenient way to negate the value As a workaround, I'm using `numpy.logical_not(s1)`, which does preserve the dtype and have the expected result. The second example results in an exception `TypeError: data type not understood`, because (~s1) with its `object` dtype doesn't understand the comparison against `s2` with its `pandas.BooleanDtype()` dtype. #### Expected Output I would expect that: * the first example results in `pandas.Series([False, True], dtype=pandas.BooleanDtype())` * the second example results in `True` #### Output of ``pd.show_versions()`` <details> In [35]: pandas.show_versions() /media/nas/x21324/miniconda3/envs/py37e/lib/python3.7/site-packages/fastparquet/dataframe.py:5: FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. from pandas.core.index import CategoricalIndex, RangeIndex, Index, MultiIndex INSTALLED VERSIONS ------------------ commit : None python : 3.7.6.final.0 python-bits : 64 OS : Linux OS-release : 4.12.14-lp150.12.82-default machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.0.0 numpy : 1.17.5 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200119 Cython : 0.29.14 pytest : 5.3.5 hypothesis : None sphinx : 2.3.1 blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.0 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : None fastparquet : 0.3.2 gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.1.2 numexpr : 2.7.1 odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.15.1 pytables : None pytest : 5.3.5 pyxlsb : None s3fs : 0.4.0 scipy : 1.4.1 sqlalchemy : 1.3.13 tables : 3.6.1 tabulate : None xarray : 0.14.1 xlrd : None xlwt : None xlsxwriter : None numba : 0.48.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31489/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31489/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31490
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31490/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31490/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31490/events
https://github.com/pandas-dev/pandas/pull/31490
558,068,154
MDExOlB1bGxSZXF1ZXN0MzY5NTMxMjc2
31,490
DOC: Fix the description of the 'day' field accessor in DatetimeArray
{ "avatar_url": "https://avatars.githubusercontent.com/u/5954171?v=4", "events_url": "https://api.github.com/users/alejandrohall/events{/privacy}", "followers_url": "https://api.github.com/users/alejandrohall/followers", "following_url": "https://api.github.com/users/alejandrohall/following{/other_user}", "gists_url": "https://api.github.com/users/alejandrohall/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alejandrohall", "id": 5954171, "login": "alejandrohall", "node_id": "MDQ6VXNlcjU5NTQxNzE=", "organizations_url": "https://api.github.com/users/alejandrohall/orgs", "received_events_url": "https://api.github.com/users/alejandrohall/received_events", "repos_url": "https://api.github.com/users/alejandrohall/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alejandrohall/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alejandrohall/subscriptions", "type": "User", "url": "https://api.github.com/users/alejandrohall" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-31T11:11:56Z
2020-01-31T11:51:18Z
2020-01-31T11:51:10Z
CONTRIBUTOR
null
Fix a wrong description in the field accessor `day` of the DatetimeArray class
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31490/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31490/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31490.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31490", "merged_at": "2020-01-31T11:51:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31490.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31490" }
https://api.github.com/repos/pandas-dev/pandas/issues/31491
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31491/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31491/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31491/events
https://github.com/pandas-dev/pandas/issues/31491
558,082,499
MDU6SXNzdWU1NTgwODI0OTk=
31,491
Error in pd.to_datetime, with argument np.datetime64 array of 51 elements
{ "avatar_url": "https://avatars.githubusercontent.com/u/4091226?v=4", "events_url": "https://api.github.com/users/pajachiet/events{/privacy}", "followers_url": "https://api.github.com/users/pajachiet/followers", "following_url": "https://api.github.com/users/pajachiet/following{/other_user}", "gists_url": "https://api.github.com/users/pajachiet/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pajachiet", "id": 4091226, "login": "pajachiet", "node_id": "MDQ6VXNlcjQwOTEyMjY=", "organizations_url": "https://api.github.com/users/pajachiet/orgs", "received_events_url": "https://api.github.com/users/pajachiet/received_events", "repos_url": "https://api.github.com/users/pajachiet/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pajachiet/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pajachiet/subscriptions", "type": "User", "url": "https://api.github.com/users/pajachiet" }
[ { "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": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
4
2020-01-31T11:42:01Z
2020-02-01T14:29:37Z
2020-02-01T14:29:37Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np d = np.datetime64("2000-01-01", "s") pd.to_datetime(np.full(50, d)) # Works pd.to_datetime(np.full(51, d)) # ERROR # pandas._libs.tslibs.np_datetime.OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 29999249045-07-29 00:00:00 pd.to_datetime(pd.Series(np.full(51, d))) ``` #### Problem description With pandas 1.0, we get a new issue when using pd.to_datetime to convert an existing np.datetime64 array with 51 elements. This works with 50 elements, or when converting to a Series beforehand, so I believe the problems comes from inside implicit conversion.
{ "+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/31491/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31491/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31492
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31492/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31492/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31492/events
https://github.com/pandas-dev/pandas/issues/31492
558,086,024
MDU6SXNzdWU1NTgwODYwMjQ=
31,492
Large dataframes aren't truncated in LaTeX output
{ "avatar_url": "https://avatars.githubusercontent.com/u/893512?v=4", "events_url": "https://api.github.com/users/mojones/events{/privacy}", "followers_url": "https://api.github.com/users/mojones/followers", "following_url": "https://api.github.com/users/mojones/following{/other_user}", "gists_url": "https://api.github.com/users/mojones/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mojones", "id": 893512, "login": "mojones", "node_id": "MDQ6VXNlcjg5MzUxMg==", "organizations_url": "https://api.github.com/users/mojones/orgs", "received_events_url": "https://api.github.com/users/mojones/received_events", "repos_url": "https://api.github.com/users/mojones/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mojones/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mojones/subscriptions", "type": "User", "url": "https://api.github.com/users/mojones" }
[]
closed
false
null
[]
null
2
2020-01-31T11:50:07Z
2020-01-31T13:03:04Z
2020-01-31T13:03:03Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import numpy as np pd.DataFrame(np.random.rand(300,4),columns=['a','b','c','d']).to_latex() ``` #### Problem description I'm using Jupyter notebook to write a long document using pandas, which I eventually will nbconvert to a PDF. In the notebook with HTML output, long dataframes are truncated as expected and I can control the number of rows with `pd.set_option('max_rows', 5)`. When displaying as LaTeX, however, long dataframes are not truncated, so the above code will generate a 300 row LaTeX table. My real dataframes are much longer. This breaks PDF export. Obviously I can get round this by just calling `head()`. However, given that this a tutorial, it would be nice to be able to display a table in the PDF that will match the HTML output, i.e. with the rows of dots in the middle to represent data not shown. Could `to_latex()` honour the `max_rows` option? Is there any workaround here? #### 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 : Linux OS-release : 4.15.0-74-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.3 numpy : 1.16.4 pytz : 2019.1 dateutil : 2.8.0 pip : 19.1.1 setuptools : 41.0.1 Cython : None pytest : 5.3.4 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.3.3 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : 7.5.0 pandas_datareader: None bs4 : 4.8.1 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.3.3 matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : 1.3.0 sqlalchemy : None tables : None xarray : None xlrd : 1.2.0 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/31492/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31492/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31493
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31493/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31493/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31493/events
https://github.com/pandas-dev/pandas/pull/31493
558,102,625
MDExOlB1bGxSZXF1ZXN0MzY5NTU4MzQ0
31,493
Backport PR #31183: BUG: Series/Frame invert dtypes'
{ "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": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
1
2020-01-31T12:26:42Z
2020-01-31T16:24:04Z
2020-01-31T14:03:42Z
MEMBER
null
We forgot to backport this: https://github.com/pandas-dev/pandas/pull/31183 Closes #31489
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31493/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31493/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31493.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31493", "merged_at": "2020-01-31T14:03:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31493.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31493" }
https://api.github.com/repos/pandas-dev/pandas/issues/31494
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31494/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31494/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31494/events
https://github.com/pandas-dev/pandas/pull/31494
558,104,061
MDExOlB1bGxSZXF1ZXN0MzY5NTU5NTI3
31,494
DOC: move whatnew entry for invert from 1.0.0 t 1.0.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-31T12:29:48Z
2020-01-31T14:04:57Z
2020-01-31T14:03:59Z
MEMBER
null
see https://github.com/pandas-dev/pandas/pull/31493, forgot to backport, so the fix will only be included in 1.0.1
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31494/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31494/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31494.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31494", "merged_at": "2020-01-31T14:03:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31494.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31494" }
https://api.github.com/repos/pandas-dev/pandas/issues/31495
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31495/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31495/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31495/events
https://github.com/pandas-dev/pandas/issues/31495
558,149,833
MDU6SXNzdWU1NTgxNDk4MzM=
31,495
Series shift method breaks for series of pandas Intervals in Pandas 1.0 (works in 0.25.3)
{ "avatar_url": "https://avatars.githubusercontent.com/u/12672027?v=4", "events_url": "https://api.github.com/users/owenlamont/events{/privacy}", "followers_url": "https://api.github.com/users/owenlamont/followers", "following_url": "https://api.github.com/users/owenlamont/following{/other_user}", "gists_url": "https://api.github.com/users/owenlamont/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/owenlamont", "id": 12672027, "login": "owenlamont", "node_id": "MDQ6VXNlcjEyNjcyMDI3", "organizations_url": "https://api.github.com/users/owenlamont/orgs", "received_events_url": "https://api.github.com/users/owenlamont/received_events", "repos_url": "https://api.github.com/users/owenlamont/repos", "site_admin": false, "starred_url": "https://api.github.com/users/owenlamont/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/owenlamont/subscriptions", "type": "User", "url": "https://api.github.com/users/owenlamont" }
[ { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "eb6420", "default": false, "description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff", "id": 57296398, "name": "Algos", "node_id": "MDU6TGFiZWw1NzI5NjM5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos" }, { "color": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" }, { "color": "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-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
6
2020-01-31T14:01:52Z
2020-02-04T16:56:08Z
2020-02-04T16:56:08Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python # Problem code example 1 import pandas as pd test = pd.Series(index=[1, 2], data=[pd.Interval(pd.Timestamp("2020-09-04 10:00:00"), pd.Timestamp("2020-11-30 14:00:00")), pd.Interval(pd.Timestamp("2020-08-14 10:00:00"), pd.Timestamp("2020-09-21 14:00:00"))]) test.shift(1) # Problem code example 2 import pandas as pd test = pd.Series(index=[1, 2], data=[pd.Interval(1, 2), pd.Interval(3, 4)]) test.shift(1) ``` #### Problem description Calling the shift method on an integer indexed Pandas series of Pandas intervals throws opaque exceptions. The same code works as expected in Pandas 0.25.3. This is definitely a breaking change - I'm unsure if it is intentional. I'm assuming it should still work the same as 0.25.3 for now. I tried searching for any documented changes to the shift method behaviour but didn't find any. Exception traceback for example 1: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-7a1f088b5a14> in <module> 4 test = pd.Series(index=[1, 2], data=[pd.Interval(pd.Timestamp("2020-09-04 10:00:00"), pd.Timestamp("2020-11-30 14:00:00")), 5 pd.Interval(pd.Timestamp("2020-08-14 10:00:00"), pd.Timestamp("2020-09-21 14:00:00"))]) ----> 6 test.shift(1) ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\series.py in shift(self, periods, freq, axis, fill_value) 4183 def shift(self, periods=1, freq=None, axis=0, fill_value=None): 4184 return super().shift( -> 4185 periods=periods, freq=freq, axis=axis, fill_value=fill_value 4186 ) 4187 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\generic.py in shift(self, periods, freq, axis, fill_value) 9043 if freq is None: 9044 new_data = self._data.shift( -> 9045 periods=periods, axis=block_axis, fill_value=fill_value 9046 ) 9047 else: ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\internals\managers.py in shift(self, **kwargs) 571 572 def shift(self, **kwargs): --> 573 return self.apply("shift", **kwargs) 574 575 def fillna(self, **kwargs): ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\internals\managers.py in apply(self, f, filter, **kwargs) 440 applied = b.apply(f, **kwargs) 441 else: --> 442 applied = getattr(b, f)(**kwargs) 443 result_blocks = _extend_blocks(applied, result_blocks) 444 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\internals\blocks.py in shift(self, periods, axis, fill_value) 1908 return [ 1909 self.make_block_same_class( -> 1910 self.values.shift(periods=periods, fill_value=fill_value), 1911 placement=self.mgr_locs, 1912 ndim=self.ndim, ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\base.py in shift(self, periods, fill_value) 623 624 empty = self._from_sequence( --> 625 [fill_value] * min(abs(periods), len(self)), dtype=self.dtype 626 ) 627 if periods > 0: ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\interval.py in _from_sequence(cls, scalars, dtype, copy) 243 @classmethod 244 def _from_sequence(cls, scalars, dtype=None, copy=False): --> 245 return cls(scalars, dtype=dtype, copy=copy) 246 247 @classmethod ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\interval.py in __new__(cls, data, closed, dtype, copy, verify_integrity) 182 copy=copy, 183 dtype=dtype, --> 184 verify_integrity=verify_integrity, 185 ) 186 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\interval.py in _simple_new(cls, left, right, closed, copy, dtype, verify_integrity) 202 raise TypeError(msg) 203 elif dtype.subtype is not None: --> 204 left = left.astype(dtype.subtype) 205 right = right.astype(dtype.subtype) 206 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\indexes\numeric.py in astype(self, dtype, copy) 393 if needs_i8_conversion(dtype): 394 raise TypeError( --> 395 f"Cannot convert Float64Index to dtype {dtype}; integer " 396 "values are required for conversion" 397 ) TypeError: Cannot convert Float64Index to dtype datetime64[ns]; integer values are required for conversion ``` Exception traceback for example 2 ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-3-6804e066ee18> in <module> 4 test = pd.Series(index=[1, 2], data=[pd.Interval(1, 2), 5 pd.Interval(3, 4)]) ----> 6 test.shift(1) ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\series.py in shift(self, periods, freq, axis, fill_value) 4183 def shift(self, periods=1, freq=None, axis=0, fill_value=None): 4184 return super().shift( -> 4185 periods=periods, freq=freq, axis=axis, fill_value=fill_value 4186 ) 4187 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\generic.py in shift(self, periods, freq, axis, fill_value) 9043 if freq is None: 9044 new_data = self._data.shift( -> 9045 periods=periods, axis=block_axis, fill_value=fill_value 9046 ) 9047 else: ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\internals\managers.py in shift(self, **kwargs) 571 572 def shift(self, **kwargs): --> 573 return self.apply("shift", **kwargs) 574 575 def fillna(self, **kwargs): ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\internals\managers.py in apply(self, f, filter, **kwargs) 440 applied = b.apply(f, **kwargs) 441 else: --> 442 applied = getattr(b, f)(**kwargs) 443 result_blocks = _extend_blocks(applied, result_blocks) 444 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\internals\blocks.py in shift(self, periods, axis, fill_value) 1908 return [ 1909 self.make_block_same_class( -> 1910 self.values.shift(periods=periods, fill_value=fill_value), 1911 placement=self.mgr_locs, 1912 ndim=self.ndim, ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\base.py in shift(self, periods, fill_value) 623 624 empty = self._from_sequence( --> 625 [fill_value] * min(abs(periods), len(self)), dtype=self.dtype 626 ) 627 if periods > 0: ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\interval.py in _from_sequence(cls, scalars, dtype, copy) 243 @classmethod 244 def _from_sequence(cls, scalars, dtype=None, copy=False): --> 245 return cls(scalars, dtype=dtype, copy=copy) 246 247 @classmethod ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\interval.py in __new__(cls, data, closed, dtype, copy, verify_integrity) 182 copy=copy, 183 dtype=dtype, --> 184 verify_integrity=verify_integrity, 185 ) 186 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\arrays\interval.py in _simple_new(cls, left, right, closed, copy, dtype, verify_integrity) 202 raise TypeError(msg) 203 elif dtype.subtype is not None: --> 204 left = left.astype(dtype.subtype) 205 right = right.astype(dtype.subtype) 206 ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\indexes\numeric.py in astype(self, dtype, copy) 399 # TODO(jreback); this can change once we have an EA Index type 400 # GH 13149 --> 401 arr = astype_nansafe(self.values, dtype=dtype) 402 return Int64Index(arr) 403 return super().astype(dtype, copy=copy) ~\Miniconda3\envs\jupyter\lib\site-packages\pandas\core\dtypes\cast.py in astype_nansafe(arr, dtype, copy, skipna) 866 867 if not np.isfinite(arr).all(): --> 868 raise ValueError("Cannot convert non-finite values (NA or inf) to integer") 869 870 elif is_object_dtype(arr): ValueError: Cannot convert non-finite values (NA or inf) to integer ``` #### Expected Output This is the actual output I got executing with pandas 0.25.3 1 NaN 2 (2020-09-04 10:00:00, 2020-11-30 14:00:00] dtype: object 1 NaN 2 (1, 2] dtype: object #### Output of ``pd.show_versions()`` <details> 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 13, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.0 numpy : 1.17.5 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200119 Cython : None pytest : 5.3.5 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : 1.2.7 lxml.etree : 4.5.0 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.11.1 IPython : 7.11.1 pandas_datareader: None bs4 : 4.8.2 bottleneck : 1.3.1 fastparquet : 0.3.2 gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.1.2 numexpr : None odfpy : None openpyxl : 3.0.3 pandas_gbq : None pyarrow : 0.15.1 pytables : None pytest : 5.3.5 pyxlsb : None s3fs : 0.2.2 scipy : 1.3.1 sqlalchemy : 1.3.13 tables : None tabulate : 0.8.6 xarray : 0.14.1 xlrd : 1.2.0 xlwt : None xlsxwriter : 1.2.7 numba : 0.48.0 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31495/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31495/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31496
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31496/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31496/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31496/events
https://github.com/pandas-dev/pandas/pull/31496
558,151,439
MDExOlB1bGxSZXF1ZXN0MzY5NTk3NDA1
31,496
Backport PR #31494 on branch 1.0.x (DOC: move whatnew entry for invert from 1.0.0 t 1.0.1)
{ "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": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-31T14:04:52Z
2020-01-31T16:24:17Z
2020-01-31T16:24:17Z
NONE
null
Backport PR #31494: DOC: move whatnew entry for invert from 1.0.0 t 1.0.1
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31496/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31496/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31496.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31496", "merged_at": "2020-01-31T16:24:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31496.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31496" }
https://api.github.com/repos/pandas-dev/pandas/issues/31497
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31497/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31497/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31497/events
https://github.com/pandas-dev/pandas/issues/31497
558,159,190
MDU6SXNzdWU1NTgxNTkxOTA=
31,497
StringDtype not preserved when writing + reading parquet or feather
{ "avatar_url": "https://avatars.githubusercontent.com/u/500246?v=4", "events_url": "https://api.github.com/users/gerritholl/events{/privacy}", "followers_url": "https://api.github.com/users/gerritholl/followers", "following_url": "https://api.github.com/users/gerritholl/following{/other_user}", "gists_url": "https://api.github.com/users/gerritholl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gerritholl", "id": 500246, "login": "gerritholl", "node_id": "MDQ6VXNlcjUwMDI0Ng==", "organizations_url": "https://api.github.com/users/gerritholl/orgs", "received_events_url": "https://api.github.com/users/gerritholl/received_events", "repos_url": "https://api.github.com/users/gerritholl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gerritholl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gerritholl/subscriptions", "type": "User", "url": "https://api.github.com/users/gerritholl" }
[ { "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" }
3
2020-01-31T14:18:40Z
2020-02-02T21:29:23Z
2020-01-31T14:28:14Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import tempfile import pandas df1 = pandas.DataFrame( ["a", "b", "c"], dtype=pandas.StringDtype(), columns=["test"]) with tempfile.NamedTemporaryFile() as fn: df1.to_parquet(fn) df2 = pandas.read_parquet(fn) print(df1.equals(df2)) print(df1.dtypes) print(df2.dtypes) ``` #### Problem description When writing a DataFrame to parquet or feather, then reading the same file, columns with dtype `StringDtype()` are not preserved but read as `object` dtype. The code above gives: ``` False test string dtype: object test object dtype: object ``` I have tested with with pandas 1.0.0 and the latest pandas git master. When using parquet or feather, the dtype is lost. When using pickle, it is preserved. HDF5 is not supported on writing (see #31199). I'm not sure how this should be solved. At least, there should be a warning when attempting to write something that won't be preserved upon reading. Perhaps this should be an error (exception) unless an overwrite-flag is passed. #### Expected Output Ideally, I would expect to get the same as for pickle: ``` True test string dtype: object test string dtype: object ``` #### Output of ``pd.show_versions()`` <details> False test string dtype: object test object dtype: object INSTALLED VERSIONS ------------------ commit : None python : 3.8.1.final.0 python-bits : 64 OS : Linux OS-release : 4.12.14-lp150.12.82-default machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.1.0.dev0+241.g761bceb77 numpy : 1.17.5 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200119 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : 2.11.0 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 : 0.15.1 pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None 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/31497/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31497/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31498
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31498/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31498/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31498/events
https://github.com/pandas-dev/pandas/issues/31498
558,227,574
MDU6SXNzdWU1NTgyMjc1NzQ=
31,498
Add method to handle mixed string and non-string types in object column.
{ "avatar_url": "https://avatars.githubusercontent.com/u/9122812?v=4", "events_url": "https://api.github.com/users/RicardoHS/events{/privacy}", "followers_url": "https://api.github.com/users/RicardoHS/followers", "following_url": "https://api.github.com/users/RicardoHS/following{/other_user}", "gists_url": "https://api.github.com/users/RicardoHS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RicardoHS", "id": 9122812, "login": "RicardoHS", "node_id": "MDQ6VXNlcjkxMjI4MTI=", "organizations_url": "https://api.github.com/users/RicardoHS/orgs", "received_events_url": "https://api.github.com/users/RicardoHS/received_events", "repos_url": "https://api.github.com/users/RicardoHS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RicardoHS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RicardoHS/subscriptions", "type": "User", "url": "https://api.github.com/users/RicardoHS" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
closed
false
null
[]
null
8
2020-01-31T16:18:07Z
2021-07-27T05:40:51Z
2021-07-27T05:40:51Z
NONE
null
#### Problem description Since the version 1.0.0 and the creation of the StringDtype the use of an object column to handle string would decrease. Nevertheless, and [as in the new documentation is stated](https://pandas.pydata.org/pandas-docs/stable/whatsnew/v1.0.0.html) ``` There isn’t a clear way to select just text while excluding non-text, but still object-dtype columns. ``` The way how I had handle this issue in the past have changed throught the time and depending on my needs. I think this is a great opportunity to define a way to proceed in this cases. I dont know the feelings of the devs on this issue. In any case, here we go my two cents to have something to start a discussion about this: - Series.select_dtypes() : Select subset of rows based on the type. maybe with an option to convert non matching rows to NA instead of dropping it.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31498/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31498/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31499
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31499/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31499/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31499/events
https://github.com/pandas-dev/pandas/issues/31499
558,227,835
MDU6SXNzdWU1NTgyMjc4MzU=
31,499
Pandas 1.0 no longer handles `numpy.str_`s as catgories
{ "avatar_url": "https://avatars.githubusercontent.com/u/291575?v=4", "events_url": "https://api.github.com/users/flying-sheep/events{/privacy}", "followers_url": "https://api.github.com/users/flying-sheep/followers", "following_url": "https://api.github.com/users/flying-sheep/following{/other_user}", "gists_url": "https://api.github.com/users/flying-sheep/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/flying-sheep", "id": 291575, "login": "flying-sheep", "node_id": "MDQ6VXNlcjI5MTU3NQ==", "organizations_url": "https://api.github.com/users/flying-sheep/orgs", "received_events_url": "https://api.github.com/users/flying-sheep/received_events", "repos_url": "https://api.github.com/users/flying-sheep/repos", "site_admin": false, "starred_url": "https://api.github.com/users/flying-sheep/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/flying-sheep/subscriptions", "type": "User", "url": "https://api.github.com/users/flying-sheep" }
[ { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
5
2020-01-31T16:18:34Z
2020-02-04T16:23:59Z
2020-02-04T16:23:59Z
CONTRIBUTOR
null
#### Code Sample ```python import pandas as pd pd.Categorical(['1', '0', '1'], [np.str_('0'), np.str_('1')]) ``` ```pytb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/angerer/Dev/Python/venvs/env-pandas-1/lib/python3.8/site-packages/pandas/core/arrays/categorical.py", line 385, in __init__ codes = _get_codes_for_values(values, dtype.categories) File "/home/angerer/Dev/Python/venvs/env-pandas-1/lib/python3.8/site-packages/pandas/core/arrays/categorical.py", line 2576, in _get_codes_for_values t.map_locations(cats) File "pandas/_libs/hashtable_class_helper.pxi", line 1403, in pandas._libs.hashtable.StringHashTable.map_locations TypeError: Expected unicode, got numpy.str_ ``` #### Problem description I know that having a list of `numpy.str_`s seems weird, but it easily happens when you use non-numpy algorithms on numpy arrays (e.g. `natsort.natsorted` in our case), or via comprehensions or so: ```py >>> np.array(['1', '0'])[0].__class__ <class 'numpy.str_'> >>> [type(s) for s in np.array(['1', '0'])] [<class 'numpy.str_'>, <class 'numpy.str_'>] ``` #### Expected Output A normal pd.Categorical #### Pandas version pandas 1.0
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31499/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31499/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31500
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31500/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31500/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31500/events
https://github.com/pandas-dev/pandas/pull/31500
558,234,447
MDExOlB1bGxSZXF1ZXN0MzY5NjYzNjcw
31,500
DOC: Replaced "the the" with "the"
{ "avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4", "events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}", "followers_url": "https://api.github.com/users/ShaharNaveh/followers", "following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}", "gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ShaharNaveh", "id": 50263213, "login": "ShaharNaveh", "node_id": "MDQ6VXNlcjUwMjYzMjEz", "organizations_url": "https://api.github.com/users/ShaharNaveh/orgs", "received_events_url": "https://api.github.com/users/ShaharNaveh/received_events", "repos_url": "https://api.github.com/users/ShaharNaveh/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions", "type": "User", "url": "https://api.github.com/users/ShaharNaveh" }
[ { "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
1
2020-01-31T16:29:37Z
2020-02-01T10:51:13Z
2020-01-31T17:39:35Z
MEMBER
null
- [ ] closes #xxxx - [ ] 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/31500/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31500/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31500.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31500", "merged_at": "2020-01-31T17:39:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31500.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31500" }
https://api.github.com/repos/pandas-dev/pandas/issues/31501
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31501/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31501/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31501/events
https://github.com/pandas-dev/pandas/issues/31501
558,239,893
MDU6SXNzdWU1NTgyMzk4OTM=
31,501
Can no longer slice DatetimeIndex with datetime.date values outside the index in 1.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/695500?v=4", "events_url": "https://api.github.com/users/davidia/events{/privacy}", "followers_url": "https://api.github.com/users/davidia/followers", "following_url": "https://api.github.com/users/davidia/following{/other_user}", "gists_url": "https://api.github.com/users/davidia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/davidia", "id": 695500, "login": "davidia", "node_id": "MDQ6VXNlcjY5NTUwMA==", "organizations_url": "https://api.github.com/users/davidia/orgs", "received_events_url": "https://api.github.com/users/davidia/received_events", "repos_url": "https://api.github.com/users/davidia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/davidia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/davidia/subscriptions", "type": "User", "url": "https://api.github.com/users/davidia" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
4
2020-01-31T16:39:29Z
2020-02-01T14:56:13Z
2020-02-01T14:56:13Z
NONE
null
#### Code Sample ```python import pandas as pd import datetime as dt s = pd.Series([0,1],pd.DatetimeIndex([dt.date(2019,1,1),dt.date(2019,1,2)])) s[dt.date(2019,1,1):] # works s[dt.date(2018,1,1):] # error ``` #### Problem description As of 1.0.0 you can no longer slice a DatetimeIndex with dt.date values outside the index. #### Error ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item() TypeError: an integer is required During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 2645 try: -> 2646 return self._engine.get_loc(key) 2647 except KeyError: pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine._date_check_type() KeyError: datetime.date(2018, 1, 1) During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item() TypeError: an integer is required During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\datetimes.py in get_loc(self, key, method, tolerance) 714 try: --> 715 return Index.get_loc(self, key, method, tolerance) 716 except (KeyError, ValueError, TypeError): C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 2647 except KeyError: -> 2648 return self._engine.get_loc(self._maybe_cast_indexer(key)) 2649 indexer = self.get_indexer([key], method=method, tolerance=tolerance) pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine._date_check_type() KeyError: datetime.date(2018, 1, 1) During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item() pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item() KeyError: 1514764800000000000 During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 2645 try: -> 2646 return self._engine.get_loc(key) 2647 except KeyError: pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() KeyError: Timestamp('2018-01-01 00:00:00') During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item() pandas\_libs\hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.get_item() KeyError: 1514764800000000000 During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\datetimes.py in get_loc(self, key, method, tolerance) 727 stamp = stamp.tz_localize(self.tz) --> 728 return Index.get_loc(self, stamp, method, tolerance) 729 except KeyError: C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance) 2647 except KeyError: -> 2648 return self._engine.get_loc(self._maybe_cast_indexer(key)) 2649 indexer = self.get_indexer([key], method=method, tolerance=tolerance) pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() pandas\_libs\index.pyx in pandas._libs.index.DatetimeEngine.get_loc() KeyError: Timestamp('2018-01-01 00:00:00') During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in get_slice_bound(self, label, side, kind) 4841 try: -> 4842 slc = self.get_loc(label) 4843 except KeyError as err: C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\datetimes.py in get_loc(self, key, method, tolerance) 729 except KeyError: --> 730 raise KeyError(key) 731 except ValueError as e: KeyError: datetime.date(2018, 1, 1) During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) <ipython-input-47-a23c04333556> in <module> 3 s = pd.Series([0,1],pd.DatetimeIndex([dt.date(2019,1,1),dt.date(2019,1,2)])) 4 s[dt.date(2019,1,1):] # works ----> 5 s[dt.date(2018,1,1):] # error C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\series.py in __getitem__(self, key) 908 key = check_bool_indexer(self.index, key) 909 --> 910 return self._get_with(key) 911 912 def _get_with(self, key): C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\series.py in _get_with(self, key) 913 # other: fancy integer or otherwise 914 if isinstance(key, slice): --> 915 return self._slice(key) 916 elif isinstance(key, ABCDataFrame): 917 raise TypeError( C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\series.py in _slice(self, slobj, axis, kind) 863 864 def _slice(self, slobj: slice, axis: int = 0, kind=None): --> 865 slobj = self.index._convert_slice_indexer(slobj, kind=kind or "getitem") 866 return self._get_values(slobj) 867 C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in _convert_slice_indexer(self, key, kind) 2961 indexer = key 2962 else: -> 2963 indexer = self.slice_indexer(start, stop, step, kind=kind) 2964 2965 return indexer C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\datetimes.py in slice_indexer(self, start, end, step, kind) 806 807 try: --> 808 return Index.slice_indexer(self, start, end, step, kind=kind) 809 except KeyError: 810 # For historical reasons DatetimeIndex by default supports C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in slice_indexer(self, start, end, step, kind) 4711 slice(1, 3) 4712 """ -> 4713 start_slice, end_slice = self.slice_locs(start, end, step=step, kind=kind) 4714 4715 # return a slice C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in slice_locs(self, start, end, step, kind) 4924 start_slice = None 4925 if start is not None: -> 4926 start_slice = self.get_slice_bound(start, "left", kind) 4927 if start_slice is None: 4928 start_slice = 0 C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in get_slice_bound(self, label, side, kind) 4843 except KeyError as err: 4844 try: -> 4845 return self._searchsorted_monotonic(label, side) 4846 except ValueError: 4847 # raise the original KeyError C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\base.py in _searchsorted_monotonic(self, label, side) 4794 def _searchsorted_monotonic(self, label, side="left"): 4795 if self.is_monotonic_increasing: -> 4796 return self.searchsorted(label, side=side) 4797 elif self.is_monotonic_decreasing: 4798 # np.searchsorted expects ascending sort order, have to reverse C:\ProgramData\Miniconda3.7\lib\site-packages\pandas\core\indexes\datetimes.py in searchsorted(self, value, side, sorter) 851 elif not isinstance(value, DatetimeArray): 852 raise TypeError( --> 853 "searchsorted requires compatible dtype or scalar, " 854 f"not {type(value).__name__}" 855 ) TypeError: searchsorted requires compatible dtype or scalar, not date ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.1.final.0 python-bits : 64 OS : Windows OS-release : 7 machine : AMD64 processor : Intel64 Family 6 Model 79 Stepping 1, GenuineIntel byteorder : little LC_ALL : None LANG : None LOCALE : None.None pandas : 1.0.0 numpy : 1.17.3 pytz : 2018.9 dateutil : 2.8.1 pip : 20.0.2 setuptools : 41.6.0.post20191030 Cython : 0.29.5 pytest : 5.1.2 hypothesis : None sphinx : None blosc : 1.7.0 feather : None xlsxwriter : None lxml.etree : 4.3.2 html5lib : None pymysql : None psycopg2 : 2.7.7 (dt dec pq3 ext lo64) jinja2 : 2.10.3 IPython : 7.5.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 : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : 0.14.0 pytables : None pytest : 5.1.2 pyxlsb : None s3fs : None scipy : 1.2.1 sqlalchemy : 1.2.17 tables : None tabulate : None xarray : 0.12.1 xlrd : 1.2.0 xlwt : None xlsxwriter : None numba : 0.45.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31501/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31501/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31502
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31502/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31502/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31502/events
https://github.com/pandas-dev/pandas/pull/31502
558,245,881
MDExOlB1bGxSZXF1ZXN0MzY5NjcyNTU3
31,502
BUG: Fixed IntervalArray[int].shift
{ "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": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" }, { "color": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
5
2020-01-31T16:51:03Z
2020-02-04T16:56:08Z
2020-02-04T16:56:08Z
CONTRIBUTOR
null
Closes https://github.com/pandas-dev/pandas/issues/31495 In ExtensionArray.shift, we have the note ``` # Note: this implementation assumes that `self.dtype.na_value` can be # stored in an instance of your ExtensionArray with `self.dtype`. ``` I wonder, should we have a method / property like ``` @property def _can_hold_na_value(self): return True ``` And for IntervalArray, we would do something like ```python @property def _can_hold_na_value(self): return is_float_dtype(self.dtype.subtype) ``` That would let us deduplicate things, since the call to `_from_sequence` would know to not pass `dtype=self.dtype` and trigger a re-inference.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31502/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31502/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31502.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31502", "merged_at": "2020-02-04T16:56:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31502.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31502" }
https://api.github.com/repos/pandas-dev/pandas/issues/31503
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31503/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31503/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31503/events
https://github.com/pandas-dev/pandas/issues/31503
558,255,250
MDU6SXNzdWU1NTgyNTUyNTA=
31,503
API: query / boolean selection with nullable dtypes with NAs
{ "avatar_url": "https://avatars.githubusercontent.com/u/7226751?v=4", "events_url": "https://api.github.com/users/tdpetrou/events{/privacy}", "followers_url": "https://api.github.com/users/tdpetrou/followers", "following_url": "https://api.github.com/users/tdpetrou/following{/other_user}", "gists_url": "https://api.github.com/users/tdpetrou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tdpetrou", "id": 7226751, "login": "tdpetrou", "node_id": "MDQ6VXNlcjcyMjY3NTE=", "organizations_url": "https://api.github.com/users/tdpetrou/orgs", "received_events_url": "https://api.github.com/users/tdpetrou/received_events", "repos_url": "https://api.github.com/users/tdpetrou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tdpetrou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tdpetrou/subscriptions", "type": "User", "url": "https://api.github.com/users/tdpetrou" }
[ { "color": "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": "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": "8cc645", "default": false, "description": "Related to pd.NA and nullable extension arrays", "id": 1817503692, "name": "NA - MaskedArrays", "node_id": "MDU6TGFiZWwxODE3NTAzNjky", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays" } ]
closed
false
null
[]
{ "closed_at": "2020-03-16T02:29:08Z", "closed_issues": 155, "created_at": "2020-02-03T09:13:39Z", "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 1.0.x", "due_on": "2020-03-11T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/70", "id": 5065490, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels", "node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==", "number": 70, "open_issues": 0, "state": "closed", "title": "1.0.2", "updated_at": "2021-07-28T05:52:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70" }
19
2020-01-31T17:09:33Z
2020-02-22T15:37:38Z
2020-02-22T15:37:38Z
CONTRIBUTOR
null
#### Code Sample Create a dataframe with nullable integer, string, and float data types. ```python >>> df = df = pd.DataFrame({'a': [1, 3, np.nan], 'b': ['rain', 'shine', None], 'a_float': [1.1, 3.3, np.nan]}) >>> df = df.convert_dtypes() >>> df ``` | | a | b | a_float | |---:|:-----|:------|----------:| | 0 | 1 | rain | 1.1 | | 1 | 3 | shine | 3.3 | | 2 | `<NA>` | `<NA>` | nan | Verify data types and attempt to use `query` ```python >>> df.dtypes a Int64 b string a_float float64 >>> df.query('a > 2') # same as df[df['a'] > 2] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~/Documents/Code Practice/pandas-dev/pandas/pandas/core/frame.py in query(self, expr, inplace, **kwargs) 3227 try: -> 3228 new_data = self.loc[res] 3229 except ValueError: ~/Documents/Code Practice/pandas-dev/pandas/pandas/core/indexing.py in __getitem__(self, key) 1683 maybe_callable = com.apply_if_callable(key, self.obj) -> 1684 return self._getitem_axis(maybe_callable, axis=axis) 1685 ~/Documents/Code Practice/pandas-dev/pandas/pandas/core/indexing.py in _getitem_axis(self, key, axis) 1798 return self._get_slice_axis(key, axis=axis) -> 1799 elif com.is_bool_indexer(key): 1800 return self._getbool_axis(key, axis=axis) ~/Documents/Code Practice/pandas-dev/pandas/pandas/core/common.py in is_bool_indexer(key) 133 if np.any(key.isna()): --> 134 raise ValueError(na_msg) 135 return True ValueError: cannot mask with array containing NA / NaN values During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) <ipython-input-52-e5d239635d7b> in <module> ----> 1 df.query('a > 2') ~/Documents/Code Practice/pandas-dev/pandas/pandas/core/frame.py in query(self, expr, inplace, **kwargs) 3230 # when res is multi-dimensional loc raises, but this is sometimes a 3231 # valid query -> 3232 new_data = self[res] 3233 3234 if inplace: ~/Documents/Code Practice/pandas-dev/pandas/pandas/core/frame.py in __getitem__(self, key) 2784 2785 # Do we have a (boolean) 1d indexer? -> 2786 if com.is_bool_indexer(key): 2787 return self._getitem_bool_array(key) 2788 ~/Documents/Code Practice/pandas-dev/pandas/pandas/core/common.py in is_bool_indexer(key) 132 if is_extension_array_dtype(key.dtype): 133 if np.any(key.isna()): --> 134 raise ValueError(na_msg) 135 return True 136 elif isinstance(key, list): ValueError: cannot mask with array containing NA / NaN values >>> df.query('a_float > 2') ``` | | a | b | a_float | |---:|----:|:------|----------:| | 1 | 3 | shine | 3.3 | Using `query` with strings works... ```python >>> df.query('b == "rain"') ``` | | a | b | a_float | |---:|----:|:-----|----------:| | 0 | 1 | rain | 1.1 | ...but fails for boolean selection ```python >>> df[df['b'] == 'rain'] ValueError: cannot mask with array containing NA / NaN values ``` strings also fail for inequalities ``` >>> df.query('b >= "rain"') # also df.query('b > "rain"') ValueError: cannot mask with array containing NA / NaN values ``` #### Problem description The `query` method behaves differently for nullable integers, strings, and floats. Here's my summary of how I think they work with the `query method` assuming there are missing values in the columns. * nullable integers - fails * strings - works with equality, fails with inequality * float - works for all I find it extremely difficult to use if the behavior for all of these types are different for query and boolean selection. #### Expected Output I think I would prefer to have both query and boolean selection working like they do with floats, where missing values evaluate as False in a condition. And even if there are missing values in the boolen mask itself, treat those as False. This would harmonize the behavior for all data types. This would leave it up to the user to check for missing values. I believe SQL where clauses work in such a manner (missing values in conditions evaluate as False). #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : None python : 3.8.1.final.0 python-bits : 64 OS : Darwin OS-release : 19.2.0 machine : x86_64 processor : i386 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 0+untagged.1.gce8af21.dirty numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 20.0.2 setuptools : 45.1.0.post20200127 Cython : 0.29.14 pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : 2.10.3 IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : 3.1.1 numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : 1.3.1 sqlalchemy : 1.3.13 tables : None tabulate : 0.8.3 xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31503/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31503/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31504
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31504/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31504/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31504/events
https://github.com/pandas-dev/pandas/issues/31504
558,256,021
MDU6SXNzdWU1NTgyNTYwMjE=
31,504
IntervalArray[datetime64[ns]].shift() raises TypeError
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "009800", "default": false, "description": "Interval data type", "id": 150096370, "name": "Interval", "node_id": "MDU6TGFiZWwxNTAwOTYzNzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
6
2020-01-31T17:11:08Z
2020-07-10T13:58:36Z
null
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible With pandas 0.25.3 or master, ```pytb In [2]: arr = pd.arrays.IntervalArray.from_breaks(pd.date_range('2000', periods=4)) In [3]: arr.shift() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-3-e840978d5de6> in <module> ----> 1 arr.shift() ~/miniconda3/envs/pandas=0.25.1/lib/python3.7/site-packages/pandas/core/arrays/base.py in shift(self, periods, fill_value) 567 568 empty = self._from_sequence( --> 569 [fill_value] * min(abs(periods), len(self)), dtype=self.dtype 570 ) 571 if periods > 0: ~/miniconda3/envs/pandas=0.25.1/lib/python3.7/site-packages/pandas/core/arrays/interval.py in _from_sequence(cls, scalars, dtype, copy) 236 @classmethod 237 def _from_sequence(cls, scalars, dtype=None, copy=False): --> 238 return cls(scalars, dtype=dtype, copy=copy) 239 240 @classmethod ~/miniconda3/envs/pandas=0.25.1/lib/python3.7/site-packages/pandas/core/arrays/interval.py in __new__(cls, data, closed, dtype, copy, verify_integrity) 176 copy=copy, 177 dtype=dtype, --> 178 verify_integrity=verify_integrity, 179 ) 180 ~/miniconda3/envs/pandas=0.25.1/lib/python3.7/site-packages/pandas/core/arrays/interval.py in _simple_new(cls, left, right, closed, copy, dtype, verify_integrity) 196 raise TypeError(msg.format(dtype=dtype)) 197 elif dtype.subtype is not None: --> 198 left = left.astype(dtype.subtype) 199 right = right.astype(dtype.subtype) 200 ~/miniconda3/envs/pandas=0.25.1/lib/python3.7/site-packages/pandas/core/indexes/numeric.py in astype(self, dtype, copy) 367 "values are required for conversion" 368 ).format(dtype=dtype) --> 369 raise TypeError(msg) 370 elif ( 371 is_integer_dtype(dtype) and not is_extension_array_dtype(dtype) TypeError: Cannot convert Float64Index to dtype datetime64[ns]; integer values are required for conversion ``` #### Problem description We should be able to preserve the interval dtype, by placing NaT. #### Expected Output ```python IntervalArray([NaT, (2000-01-01, 2000-01-02], (2000-01-02, 2000-01-03]], closed='right', dtype='interval[datetime64[ns]]') ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31504/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31504/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31505
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31505/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31505/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31505/events
https://github.com/pandas-dev/pandas/issues/31505
558,273,256
MDU6SXNzdWU1NTgyNzMyNTY=
31,505
REGR: `copy()` within `apply()` raises ValueError: cannot create a DatetimeTZBlock without a tz, as of 1.0.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/10784275?v=4", "events_url": "https://api.github.com/users/DomKennedy/events{/privacy}", "followers_url": "https://api.github.com/users/DomKennedy/followers", "following_url": "https://api.github.com/users/DomKennedy/following{/other_user}", "gists_url": "https://api.github.com/users/DomKennedy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/DomKennedy", "id": 10784275, "login": "DomKennedy", "node_id": "MDQ6VXNlcjEwNzg0Mjc1", "organizations_url": "https://api.github.com/users/DomKennedy/orgs", "received_events_url": "https://api.github.com/users/DomKennedy/received_events", "repos_url": "https://api.github.com/users/DomKennedy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/DomKennedy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/DomKennedy/subscriptions", "type": "User", "url": "https://api.github.com/users/DomKennedy" }
[ { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
0
2020-01-31T17:45:45Z
2020-02-05T08:15:33Z
2020-02-05T08:15:33Z
NONE
null
#### Code Sample, a copy-pastable example if possible Minimal example: ```python import pandas as pd df = pd.DataFrame({"foo": [pd.Timestamp("2020", tz="UTC")]}, dtype="object") df.apply(lambda col: col.copy()) # raises exception below ``` Real-life usage: ```python def filter_dataframe_by_dict(df, filters): """ Filter the specified dataframe to only those rows which match the specified filters Parameters ---------- df : pd.DataFrame filters : Mapping dict, keyed by a subset of `df.columns` Returns ------- pd.DataFrame Same columns as `df`, including only those rows which match `filters` on all specified values. """ filters = pd.Series(filters, dtype="object") mask = df[filters.index].apply( # astype("object") calls `copy()` internally, and is necessary to ensure dtype-agnostic # comparisons. lambda row: row.astype("object").equals(filters), axis="columns" ) return df[mask] records = pd.DataFrame(columns = ["foo", "bar", "baz"]) records.loc[0] = {"foo": pd.Timestamp("2019", tz="UTC"), "bar": 1, "baz": 6.283} records.loc[1] = {"foo": pd.Timestamp("2020", tz="UTC"), "bar": 2, "baz": 6.283} filters = {"foo": pd.Timestamp("2020", tz="UTC")} filter_dataframe_by_dict(records, filters) # raises below exception ``` Exception: ``` Traceback (most recent call last): File "pandas_bug.py", line 29, in <module> df.apply(lambda col: col.copy()) File ".venv/lib/python3.6/site-packages/pandas/core/frame.py", line 6875, in apply return op.get_result() File ".venv/lib/python3.6/site-packages/pandas/core/apply.py", line 186, in get_result return self.apply_standard() File ".venv/lib/python3.6/site-packages/pandas/core/apply.py", line 296, in apply_standard values, self.f, axis=self.axis, dummy=dummy, labels=labels File "pandas/_libs/reduction.pyx", line 617, in pandas._libs.reduction.compute_reduction File "pandas/_libs/reduction.pyx", line 127, in pandas._libs.reduction.Reducer.get_result File "pandas_bug.py", line 29, in <lambda> df.apply(lambda row: row.copy(), axis="columns") File ".venv/lib/python3.6/site-packages/pandas/core/generic.py", line 5810, in copy data = self._data.copy(deep=deep) File ".venv/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 794, in copy res = self.apply("copy", deep=deep) File ".venv/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 442, in apply applied = getattr(b, f)(**kwargs) File ".venv/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 696, in copy return self.make_block_same_class(values, ndim=self.ndim) File ".venv/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 281, in make_block_same_class return make_block(values, placement=placement, ndim=ndim, klass=type(self)) File ".venv/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 3028, in make_block return klass(values, ndim=ndim, placement=placement) File ".venv/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 1723, in __init__ values = self._maybe_coerce_values(values) File ".venv/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 2306, in _maybe_coerce_values raise ValueError("cannot create a DatetimeTZBlock without a tz") ValueError: cannot create a DatetimeTZBlock without a tz ``` #### Problem description Essentially, the problem arises when `.copy()` is called from with an `.apply` call, on a row/column of a DataFrame which: * has dtype `object` * consists solely of tz-aware `Timestamp` objects While this seems like a fairly artificial set of conditions, as the "real world example" above is intended to demonstrate, it can indeed occur "organically". Appending rows to an initially empty `DataFrame` results in the dtype defaulting to `object` for all columns, so if the `filters` passed to `filter_dataframe_by_dict` happen to only consist of timestamp-valued columns, the error conditions are met. Note that the error *only* seems to arise in `.apply` calls; making the same calls on the rows return using `iterrrows()` or `iloc` works just fine. This problem only occurs as of the latest pandas 1.0.0 release. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit : None python : 3.6.8.final.0 python-bits : 64 OS : Linux OS-release : 4.15.0-74-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.0.0 numpy : 1.17.4 pytz : 2019.3 dateutil : 2.8.1 pip : 19.3.1 setuptools : 41.6.0 Cython : None pytest : 5.3.0 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : None pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : 5.3.0 pyxlsb : None s3fs : None scipy : None sqlalchemy : 1.3.11 tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31505/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31505/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31506
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31506/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31506/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31506/events
https://github.com/pandas-dev/pandas/pull/31506
558,274,635
MDExOlB1bGxSZXF1ZXN0MzY5Njk1MTEx
31,506
CLN: No need to use libindex.get_value_at
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-31T17:48:46Z
2020-02-02T23:19:12Z
2020-02-02T22:45:26Z
MEMBER
null
Made possible because Series._values returns DTA/TDA for datetime64/timedelta64.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31506/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31506/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31506.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31506", "merged_at": "2020-02-02T22:45:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31506.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31506" }
https://api.github.com/repos/pandas-dev/pandas/issues/31507
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31507/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31507/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31507/events
https://github.com/pandas-dev/pandas/issues/31507
558,275,656
MDU6SXNzdWU1NTgyNzU2NTY=
31,507
json_normalize in 1.0.0 with meta path specified - expects iterable
{ "avatar_url": "https://avatars.githubusercontent.com/u/180959?v=4", "events_url": "https://api.github.com/users/tturocy/events{/privacy}", "followers_url": "https://api.github.com/users/tturocy/followers", "following_url": "https://api.github.com/users/tturocy/following{/other_user}", "gists_url": "https://api.github.com/users/tturocy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tturocy", "id": 180959, "login": "tturocy", "node_id": "MDQ6VXNlcjE4MDk1OQ==", "organizations_url": "https://api.github.com/users/tturocy/orgs", "received_events_url": "https://api.github.com/users/tturocy/received_events", "repos_url": "https://api.github.com/users/tturocy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tturocy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tturocy/subscriptions", "type": "User", "url": "https://api.github.com/users/tturocy" }
[ { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "2020-03-16T02:29:08Z", "closed_issues": 155, "created_at": "2020-02-03T09:13:39Z", "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 1.0.x", "due_on": "2020-03-11T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/70", "id": 5065490, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels", "node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==", "number": 70, "open_issues": 0, "state": "closed", "title": "1.0.2", "updated_at": "2021-07-28T05:52:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70" }
13
2020-01-31T17:51:06Z
2021-10-20T16:35:23Z
2020-03-11T15:02:32Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import json from pandas.io.json import json_normalize the_json = """ [{"id": 99, "data": [{"one": 1, "two": 2}] }] """ print(json_normalize(json.loads(the_json), record_path=['data'], meta=['id'])) ``` #### Problem description Through 0.25.3, this program generates a DataFrame with one row. In 1.0.0 it fails with an exception: ``` Traceback (most recent call last): File "foo.py", line 11, in <module> record_path=['data'], meta=['id'])) File "/home/dataczar/venvs/test/lib/python3.7/site-packages/pandas/util/_decorators.py", line 66, in wrapper return alternative(*args, **kwargs) File "/home/dataczar/venvs/test/lib/python3.7/site-packages/pandas/io/json/_normalize.py", line 327, in _json_normalize _recursive_extract(data, record_path, {}, level=0) File "/home/dataczar/venvs/test/lib/python3.7/site-packages/pandas/io/json/_normalize.py", line 314, in _recursive_extract meta_val = _pull_field(obj, val[level:]) File "/home/dataczar/venvs/test/lib/python3.7/site-packages/pandas/io/json/_normalize.py", line 246, in _pull_field f"{js} has non iterable value {result} for path {spec}. " TypeError: {'id': 99, 'data': [{'one': 1, 'two': 2}]} has non iterable value 99 for path ['id']. Must be iterable or null. ``` I don't see any documentation changes that suggest a backwards-incompatible change. All my calls to `json_normalize` that don't use `meta` function as before. #### Expected Output Through 0.25.3, the output was: ``` one two id 0 1 2 99 ``` #### Output of ``pd.show_versions()`` From my virtualenv with pandas 1.0.0: <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Linux OS-release : 4.2.0-042stab120.16 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 1.0.0 numpy : 1.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 19.0.3 setuptools : 40.8.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.5.0 html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.11.1 pandas_datareader: None bs4 : None bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.5.0 matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pytest : None pyxlsb : None s3fs : None scipy : None sqlalchemy : 1.3.13 tables : None tabulate : None xarray : None xlrd : None xlwt : None xlsxwriter : None numba : None </details> From my virtualenv with 0.25.x: <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.4.final.0 python-bits : 64 OS : Linux OS-release : 4.2.0-042stab120.16 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.18.1 pytz : 2019.3 dateutil : 2.8.1 pip : 19.0.3 setuptools : 40.8.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.4.1 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : None IPython : 7.7.0 pandas_datareader: None bs4 : 4.8.0 bottleneck : None fastparquet : None gcsfs : None lxml.etree : 4.4.1 matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None s3fs : None scipy : None sqlalchemy : 1.3.7 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/31507/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31507/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/31508
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31508/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31508/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31508/events
https://github.com/pandas-dev/pandas/pull/31508
558,276,650
MDExOlB1bGxSZXF1ZXN0MzY5Njk2NTc1
31,508
JSON Set Name Cleanup
{ "avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4", "events_url": "https://api.github.com/users/WillAyd/events{/privacy}", "followers_url": "https://api.github.com/users/WillAyd/followers", "following_url": "https://api.github.com/users/WillAyd/following{/other_user}", "gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillAyd", "id": 609873, "login": "WillAyd", "node_id": "MDQ6VXNlcjYwOTg3Mw==", "organizations_url": "https://api.github.com/users/WillAyd/orgs", "received_events_url": "https://api.github.com/users/WillAyd/received_events", "repos_url": "https://api.github.com/users/WillAyd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions", "type": "User", "url": "https://api.github.com/users/WillAyd" }
[ { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
4
2020-01-31T17:53:15Z
2020-02-02T22:43:56Z
2020-02-02T22:43:53Z
MEMBER
null
Makes this consistent with List, Tuple
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31508/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31508/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31508.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31508", "merged_at": "2020-02-02T22:43:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31508.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31508" }
https://api.github.com/repos/pandas-dev/pandas/issues/31509
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31509/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31509/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31509/events
https://github.com/pandas-dev/pandas/pull/31509
558,277,178
MDExOlB1bGxSZXF1ZXN0MzY5Njk2OTY3
31,509
Dead JSON Code Cleanup
{ "avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4", "events_url": "https://api.github.com/users/WillAyd/events{/privacy}", "followers_url": "https://api.github.com/users/WillAyd/followers", "following_url": "https://api.github.com/users/WillAyd/following{/other_user}", "gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillAyd", "id": 609873, "login": "WillAyd", "node_id": "MDQ6VXNlcjYwOTg3Mw==", "organizations_url": "https://api.github.com/users/WillAyd/orgs", "received_events_url": "https://api.github.com/users/WillAyd/received_events", "repos_url": "https://api.github.com/users/WillAyd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions", "type": "User", "url": "https://api.github.com/users/WillAyd" }
[ { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
2
2020-01-31T17:54:25Z
2020-02-02T22:43:00Z
2020-02-02T22:42: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/31509/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31509/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31509.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31509", "merged_at": "2020-02-02T22:42:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31509.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31509" }
https://api.github.com/repos/pandas-dev/pandas/issues/31510
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31510/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31510/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31510/events
https://github.com/pandas-dev/pandas/pull/31510
558,286,363
MDExOlB1bGxSZXF1ZXN0MzY5NzA0MjQy
31,510
CLN: remove IndexEngine.set_value
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-31T18:11:52Z
2020-02-02T23:24:41Z
2020-02-02T22:42:11Z
MEMBER
null
made possible bc Series._values now returns DTA/TDA for datetime64/timedelta64 Small perf improvement ``` In [3]: dti = pd.date_range('2016-01-01', freq='D', periods=10**4) In [4]: idx = list('abcdefghijklmnop') In [5]: arr = np.random.random(len(idx)*len(dti)).reshape(len(dti), -1) In [6]: df = pd.DataFrame(arr, index=dti, columns=idx) In [7]: %timeit df2 = df._set_value("2043-05-14", "c", 4) 381 µs ± 14.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- master 330 µs ± 13 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- PR ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31510/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31510/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31510.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31510", "merged_at": "2020-02-02T22:42:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31510.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31510" }
https://api.github.com/repos/pandas-dev/pandas/issues/31511
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31511/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31511/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31511/events
https://github.com/pandas-dev/pandas/pull/31511
558,294,700
MDExOlB1bGxSZXF1ZXN0MzY5NzExMjk1
31,511
BUG: fix reindexing with a tz-aware index and method='nearest'
{ "avatar_url": "https://avatars.githubusercontent.com/u/57452607?v=4", "events_url": "https://api.github.com/users/kanderso-nrel/events{/privacy}", "followers_url": "https://api.github.com/users/kanderso-nrel/followers", "following_url": "https://api.github.com/users/kanderso-nrel/following{/other_user}", "gists_url": "https://api.github.com/users/kanderso-nrel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kanderso-nrel", "id": 57452607, "login": "kanderso-nrel", "node_id": "MDQ6VXNlcjU3NDUyNjA3", "organizations_url": "https://api.github.com/users/kanderso-nrel/orgs", "received_events_url": "https://api.github.com/users/kanderso-nrel/received_events", "repos_url": "https://api.github.com/users/kanderso-nrel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kanderso-nrel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kanderso-nrel/subscriptions", "type": "User", "url": "https://api.github.com/users/kanderso-nrel" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2020-01-31T18:23:51Z
2020-02-03T03:48:40Z
2020-02-03T03:48:29Z
CONTRIBUTOR
null
- [x] closes #26683 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry First pandas PR, happy to make changes as needed. Is a whatsnew entry needed? And if so, I assume it should go in v1.0.1.rst?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31511/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31511/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31511.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31511", "merged_at": "2020-02-03T03:48:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31511.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31511" }
https://api.github.com/repos/pandas-dev/pandas/issues/31512
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31512/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31512/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31512/events
https://github.com/pandas-dev/pandas/pull/31512
558,294,723
MDExOlB1bGxSZXF1ZXN0MzY5NzExMzE3
31,512
CLN: inherit PeriodIndex._box_func
{ "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": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2020-01-31T18:23:53Z
2020-02-02T22:39:04Z
2020-02-02T22:35:54Z
MEMBER
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31512/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31512/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31512.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31512", "merged_at": "2020-02-02T22:35:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31512.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31512" }
https://api.github.com/repos/pandas-dev/pandas/issues/31513
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31513/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31513/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31513/events
https://github.com/pandas-dev/pandas/pull/31513
558,300,029
MDExOlB1bGxSZXF1ZXN0MzY5NzE1ODg2
31,513
REGR: Fixed truncation with na_rep
{ "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": "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2020-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
1
2020-01-31T18:31:06Z
2020-02-01T15:21:16Z
2020-02-01T15:21:12Z
CONTRIBUTOR
null
Closes https://github.com/pandas-dev/pandas/issues/31447
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 1, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31513/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31513/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/31513.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/31513", "merged_at": "2020-02-01T15:21:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/31513.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31513" }
https://api.github.com/repos/pandas-dev/pandas/issues/31514
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/31514/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/31514/comments
https://api.github.com/repos/pandas-dev/pandas/issues/31514/events
https://github.com/pandas-dev/pandas/issues/31514
558,311,867
MDU6SXNzdWU1NTgzMTE4Njc=
31,514
json_normalize Doc Broken
{ "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": "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-02-06T23:38:32Z", "closed_issues": 103, "created_at": "2020-01-14T04:04:52Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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.0.x", "due_on": "2020-02-05T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/69", "id": 5002193, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69/labels", "node_id": "MDk6TWlsZXN0b25lNTAwMjE5Mw==", "number": 69, "open_issues": 0, "state": "closed", "title": "1.0.1", "updated_at": "2020-04-05T10:45:23Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/69" }
2
2020-01-31T18:55:45Z
2020-02-03T19:39:23Z
2020-02-03T19:39:23Z
MEMBER
null
First google result for json_normalize will yield: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.io.json.json_normalize.html This however is a dead link. I think the issue is we moved json_normalize to the top-level pd.namespace, so this works: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html The former should redirect to the latter
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/31514/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/31514/timeline
null
null
null