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/25713
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25713/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25713/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25713/events
https://github.com/pandas-dev/pandas/pull/25713
420,619,731
MDExOlB1bGxSZXF1ZXN0MjYwODYwNzU4
25,713
Auto backport of pr 25701 on 0.24.x
{ "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": "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-04-03T17:32:18Z", "closed_issues": 9, "created_at": "2019-03-11T13:56:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "on-merge: backport to 0.24.x", "due_on": "2020-04-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/64", "id": 4129119, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64/labels", "node_id": "MDk6TWlsZXN0b25lNDEyOTExOQ==", "number": 64, "open_issues": 0, "state": "closed", "title": "0.24.3", "updated_at": "2020-04-03T17:32:18Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64" }
5
2019-03-13T17:13:18Z
2020-01-16T00:34:34Z
2019-03-18T14:45:41Z
MEMBER
null
@TomAugspurger @jorisvandenbossche @jreback want to double check I did this right. I didn't use the -m flag during the cherry-pick process as that was causing failures 0.24.3 at this point?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25713/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25713/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25713.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25713", "merged_at": "2019-03-18T14:45:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25713.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25713" }
https://api.github.com/repos/pandas-dev/pandas/issues/25714
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25714/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25714/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25714/events
https://github.com/pandas-dev/pandas/pull/25714
420,619,892
MDExOlB1bGxSZXF1ZXN0MjYwODYwODg3
25,714
#25707 - Fixed flakiness in stata write test
{ "avatar_url": "https://avatars.githubusercontent.com/u/1430066?v=4", "events_url": "https://api.github.com/users/gwrome/events{/privacy}", "followers_url": "https://api.github.com/users/gwrome/followers", "following_url": "https://api.github.com/users/gwrome/following{/other_user}", "gists_url": "https://api.github.com/users/gwrome/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gwrome", "id": 1430066, "login": "gwrome", "node_id": "MDQ6VXNlcjE0MzAwNjY=", "organizations_url": "https://api.github.com/users/gwrome/orgs", "received_events_url": "https://api.github.com/users/gwrome/received_events", "repos_url": "https://api.github.com/users/gwrome/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gwrome/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gwrome/subscriptions", "type": "User", "url": "https://api.github.com/users/gwrome" }
[ { "color": "5319e7", "default": false, "description": "Unit tests that occasionally fail", "id": 76939933, "name": "Unreliable Test", "node_id": "MDU6TGFiZWw3NjkzOTkzMw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unreliable%20Test" }, { "color": "5319e7", ...
closed
false
null
[]
{ "closed_at": "2020-04-03T17:32:18Z", "closed_issues": 9, "created_at": "2019-03-11T13:56:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "on-merge: backport to 0.24.x", "due_on": "2020-04-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/64", "id": 4129119, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64/labels", "node_id": "MDk6TWlsZXN0b25lNDEyOTExOQ==", "number": 64, "open_issues": 0, "state": "closed", "title": "0.24.3", "updated_at": "2020-04-03T17:32:18Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64" }
3
2019-03-13T17:13:41Z
2019-03-13T20:18:37Z
2019-03-13T20:10:49Z
CONTRIBUTOR
null
This is my first contribution, so please be gentle. For future reference, this error occurs when the two files are written in different minutes. I couldn't break the comparison by feeding the test datetime objects that only changed the seconds, so I assume only the date, hours, and minutes, are encoded. Anyway, we can't pass `False` as a keyword argument for `time_stamp`. It defaults to `None`, which internally uses the current timestamp, but otherwise expects a datetime. For testing purposes, it suffice to pass the same arbitrary timestamp as a keyword. That way it encodes the same timestamp into each file, regardless of when the test runs and how long it takes. Instead of `False`, we could use a keyword argument like this: `{'time_stamp': pd.to_datetime('2019-01-01 00:00')}`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25714/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25714/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25714.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25714", "merged_at": "2019-03-13T20:10:48Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25714.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25714" }
https://api.github.com/repos/pandas-dev/pandas/issues/25715
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25715/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25715/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25715/events
https://github.com/pandas-dev/pandas/issues/25715
420,629,087
MDU6SXNzdWU0MjA2MjkwODc=
25,715
CI: Linting error
{ "avatar_url": "https://avatars.githubusercontent.com/u/780912?v=4", "events_url": "https://api.github.com/users/hksonngan/events{/privacy}", "followers_url": "https://api.github.com/users/hksonngan/followers", "following_url": "https://api.github.com/users/hksonngan/following{/other_user}", "gists_url": "https://api.github.com/users/hksonngan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hksonngan", "id": 780912, "login": "hksonngan", "node_id": "MDQ6VXNlcjc4MDkxMg==", "organizations_url": "https://api.github.com/users/hksonngan/orgs", "received_events_url": "https://api.github.com/users/hksonngan/received_events", "repos_url": "https://api.github.com/users/hksonngan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hksonngan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hksonngan/subscriptions", "type": "User", "url": "https://api.github.com/users/hksonngan" }
[]
closed
false
null
[]
null
1
2019-03-13T17:33:11Z
2019-03-13T17:35:18Z
2019-03-13T17:35:18Z
CONTRIBUTOR
null
I'm working on #25424, after rebase to upstream/master, I get [linting errors](https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=9370). error F632, E117 are simple fix. error F821 is type hints as flakes8 cannot detect buildin type. I can fix as: a. add `#noqa` at the end line b. add build in option in setup.cfg ``` builtins = _, _LE, _LW ``` ``` ##[error]./pandas/tests/indexes/interval/test_interval_tree.py(162,20): error F632: use ==/!= to compare str, bytes, and int literals ##[error]./pandas/tests/frame/test_alter_axes.py(204,32): error F632: use ==/!= to compare str, bytes, and int literals ##[error]./pandas/tests/frame/test_alter_axes.py(204,51): error F632: use ==/!= to compare str, bytes, and int literals ##[error]./pandas/tests/frame/test_alter_axes.py(1275,13): error E117: over-indented (comment) ##[error]./pandas/tests/io/test_pytables.py(2389,13): error E117: over-indented ##[error]./pandas/tests/series/test_rank.py(424,9): error E117: over-indented ##[error]./pandas/tests/series/test_rank.py(442,9): error E117: over-indented ##[error]./pandas/tests/series/test_rank.py(460,9): error E117: over-indented ##[error]./pandas/tests/series/test_rank.py(479,9): error E117: over-indented ##[error]./pandas/tests/series/test_rank.py(497,9): error E117: over-indented ##[error]./pandas/tests/series/test_rank.py(506,9): error E117: over-indented (comment) ##[error]./pandas/tests/series/test_rank.py(507,9): error E117: over-indented ##[error]./pandas/tests/groupby/test_grouping.py(652,13): error E117: over-indented (comment) ##[error]./pandas/tests/groupby/test_grouping.py(653,13): error E117: over-indented (comment) ##[error]./pandas/tests/groupby/test_grouping.py(654,13): error E117: over-indented (comment) ##[error]./pandas/tests/groupby/test_grouping.py(655,13): error E117: over-indented ##[error]./pandas/tests/groupby/test_apply.py(12,9): error E117: over-indented (comment) ##[error]./pandas/io/formats/format.py(443,45): error E117: over-indented (comment) ##[error]./pandas/core/frame.py(6219,33): error F821: undefined name 'Union' ##[error]./pandas/core/frame.py(6219,33): error F821: undefined name 'List' ##[error]./pandas/core/frame.py(6221,33): error F821: undefined name 'Union' ##[error]./pandas/core/frame.py(6223,9): error F821: undefined name 'Union' ##[error]./pandas/core/common.py(96,5): error F821: undefined name 'Any' ##[error]./pandas/core/base.py(789,9): error F821: undefined name 'ExtensionArray' ##[error]./pandas/core/indexes/base.py(3635,9): error F821: undefined name 'Union' ##[error]./pandas/core/dtypes/base.py(67,9): error F821: undefined name 'Optional' ##[error]./pandas/core/dtypes/base.py(67,9): error F821: undefined name 'List' ##[error]./pandas/core/dtypes/dtypes.py(940,17): error E117: over-indented ##[error]./pandas/core/arrays/sparse.py(82,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/sparse.py(82,9): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/sparse.py(375,5): error F821: undefined name 'ndarray' ##[error]./pandas/core/arrays/sparse.py(400,5): error F821: undefined name 'Callable' ##[error]./pandas/core/arrays/sparse.py(400,5): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/sparse.py(674,9): error F821: undefined name 'SparseIndex' ##[error]./pandas/core/arrays/array_.py(10,25): error F821: undefined name 'Sequence' ##[error]./pandas/core/arrays/array_.py(11,25): error F821: undefined name 'Optional' ##[error]./pandas/core/arrays/array_.py(11,25): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/array_.py(11,25): error F821: undefined name 'np' ##[error]./pandas/core/arrays/array_.py(11,25): error F821: undefined name 'ExtensionDtype' ##[error]./pandas/core/arrays/integer.py(513,9): error F821: undefined name 'ndarray' ##[error]./pandas/core/arrays/datetimelike.py(61,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/datetimelike.py(61,9): error F821: undefined name 'Tuple' ##[error]./pandas/core/arrays/datetimelike.py(71,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/datetimelike.py(71,9): error F821: undefined name 'Timestamp' ##[error]./pandas/core/arrays/datetimelike.py(71,9): error F821: undefined name 'NaTType' ##[error]./pandas/core/arrays/datetimelike.py(92,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/datetimelike.py(92,9): error F821: undefined name 'Timestamp' ##[error]./pandas/core/arrays/datetimelike.py(92,9): error F821: undefined name 'NaTType' ##[error]./pandas/core/arrays/datetimelike.py(112,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/datetimelike.py(112,9): error F821: undefined name 'Timestamp' ##[error]./pandas/core/arrays/datetimelike.py(112,9): error F821: undefined name 'NaTType' ##[error]./pandas/core/arrays/datetimelike.py(353,9): error F821: undefined name 'ndarray' ##[error]./pandas/core/arrays/datetimelike.py(463,21): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/datetimelike.py(463,21): error F821: undefined name 'Sequence' ##[error]./pandas/core/arrays/datetimelike.py(463,21): error F821: undefined name 'Sequence' ##[error]./pandas/core/arrays/datetimelike.py(464,21): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/datetimelike.py(464,21): error F821: undefined name 'NaTType' ##[error]./pandas/core/arrays/datetimelike.py(464,21): error F821: undefined name 'Scalar' ##[error]./pandas/core/arrays/datetimelike.py(464,21): error F821: undefined name 'Sequence' ##[error]./pandas/core/arrays/datetimelike.py(464,21): error F821: undefined name 'Scalar' ##[error]./pandas/core/arrays/datetimes.py(277,20): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/datetimes.py(517,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/period.py(183,9): error F821: undefined name 'Sequence' ##[error]./pandas/core/arrays/period.py(183,9): error F821: undefined name 'Optional' ##[error]./pandas/core/arrays/period.py(246,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/period.py(246,9): error F821: undefined name 'NaTType' ##[error]./pandas/core/arrays/period.py(539,22): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/period.py(539,22): error F821: undefined name 'Index' ##[error]./pandas/core/arrays/period.py(539,22): error F821: undefined name 'ExtensionArray' ##[error]./pandas/core/arrays/period.py(540,21): error F821: undefined name 'Callable' ##[error]./pandas/core/arrays/period.py(540,21): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/period.py(540,21): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/period.py(713,5): error F821: undefined name 'Sequence' ##[error]./pandas/core/arrays/period.py(713,5): error F821: undefined name 'Optional' ##[error]./pandas/core/arrays/period.py(713,5): error F821: undefined name 'Optional' ##[error]./pandas/core/arrays/base.py(216,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/base.py(216,9): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/base.py(289,9): error F821: undefined name 'ExtensionDtype' ##[error]./pandas/core/arrays/base.py(297,9): error F821: undefined name 'Tuple' ##[error]./pandas/core/arrays/base.py(345,9): error F821: undefined name 'Union' ##[error]./pandas/core/arrays/base.py(368,9): error F821: undefined name 'ndarray' ##[error]./pandas/core/arrays/base.py(600,9): error F821: undefined name 'Tuple' ##[error]./pandas/core/arrays/base.py(600,9): error F821: undefined name 'ndarray' ##[error]./pandas/core/arrays/base.py(600,9): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/base.py(625,9): error F821: undefined name 'Tuple' ##[error]./pandas/core/arrays/base.py(625,9): error F821: undefined name 'ndarray' ##[error]./pandas/core/arrays/base.py(728,9): error F821: undefined name 'Sequence' ##[error]./pandas/core/arrays/base.py(728,9): error F821: undefined name 'Optional' ##[error]./pandas/core/arrays/base.py(728,9): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/base.py(855,9): error F821: undefined name 'Callable' ##[error]./pandas/core/arrays/base.py(855,9): error F821: undefined name 'Any' ##[error]./pandas/core/arrays/base.py(855,9): error F821: undefined name 'Optional' ##[error]./pandas/core/arrays/base.py(900,9): error F821: undefined name 'Sequence' ##[error]./pandas/core/groupby/groupby.py(1043,13): error F821: undefined name 'typing' ##[error]./pandas/core/groupby/groupby.py(1052,13): error F821: undefined name 'typing' ##[error]./pandas/core/groupby/groupby.py(1741,13): error F821: undefined name 'Optional' ##[error]./pandas/core/groupby/groupby.py(1741,13): error F821: undefined name 'typing' ##[error]./pandas/core/groupby/groupby.py(1756,13): error F821: undefined name 'Optional' ##[error]./pandas/core/groupby/groupby.py(1756,13): error F821: undefined name 'typing' ##[error]./pandas/core/internals/blocks.py(1830,9): error F821: undefined name 'Optional' ##[error]./pandas/core/internals/blocks.py(1830,9): error F821: undefined name 'BlockPlacement' ##[error]./pandas/core/internals/blocks.py(1830,9): error F821: undefined name 'Any' ##[error]./pandas/core/internals/blocks.py(1830,9): error F821: undefined name 'List' ##[error]./pandas/core/internals/managers.py(1865,5): error F821: undefined name 'List' ##[error]./pandas/core/internals/managers.py(1865,5): error F821: undefined name 'Optional' ##[error]./pandas/core/internals/managers.py(1865,5): error F821: undefined name 'Union' ##[error]./pandas/core/internals/managers.py(1865,5): error F821: undefined name 'ExtensionDtype' Linting .py code DONE Linting .pyx code ##[error]pandas/_libs/tslibs/nattype.pyx(356,42): error E261: at least two spaces before inline comment ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25715/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25715/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25716
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25716/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25716/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25716/events
https://github.com/pandas-dev/pandas/issues/25716
420,673,944
MDU6SXNzdWU0MjA2NzM5NDQ=
25,716
astype conversion to str converts NaN object to literal nan string
{ "avatar_url": "https://avatars.githubusercontent.com/u/47369210?v=4", "events_url": "https://api.github.com/users/joetl/events{/privacy}", "followers_url": "https://api.github.com/users/joetl/followers", "following_url": "https://api.github.com/users/joetl/following{/other_user}", "gists_url": "https://api.github.com/users/joetl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/joetl", "id": 47369210, "login": "joetl", "node_id": "MDQ6VXNlcjQ3MzY5MjEw", "organizations_url": "https://api.github.com/users/joetl/orgs", "received_events_url": "https://api.github.com/users/joetl/received_events", "repos_url": "https://api.github.com/users/joetl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/joetl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/joetl/subscriptions", "type": "User", "url": "https://api.github.com/users/joetl" }
[ { "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" }
1
2019-03-13T19:13:49Z
2019-03-13T19:19:21Z
2019-03-13T19:19:05Z
NONE
null
```python # Your code here import pandas as pd from numpy import nan df = pd.DataFrame([{'sample': nan }]) df.iloc[0].sample df.astype('str').iloc[0].sample ``` #### Problem description When converting any datatype column to string using astype('str') null values (NaN object) is converted to literal nan string Instead of remaining as null object value
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25716/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25716/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25717
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25717/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25717/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25717/events
https://github.com/pandas-dev/pandas/pull/25717
420,697,081
MDExOlB1bGxSZXF1ZXN0MjYwOTIxMjEx
25,717
Backport PR #25714 on branch 0.24.x (#25707 - Fixed flakiness in stata write test)
{ "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-04-03T17:32:18Z", "closed_issues": 9, "created_at": "2019-03-11T13:56:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "on-merge: backport to 0.24.x", "due_on": "2020-04-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/64", "id": 4129119, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64/labels", "node_id": "MDk6TWlsZXN0b25lNDEyOTExOQ==", "number": 64, "open_issues": 0, "state": "closed", "title": "0.24.3", "updated_at": "2020-04-03T17:32:18Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64" }
3
2019-03-13T20:11:05Z
2019-03-13T21:45:59Z
2019-03-13T21:45:59Z
NONE
null
Backport PR #25714: #25707 - Fixed flakiness in stata write test
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25717/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25717/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25717.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25717", "merged_at": "2019-03-13T21:45:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25717.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25717" }
https://api.github.com/repos/pandas-dev/pandas/issues/25718
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25718/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25718/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25718/events
https://github.com/pandas-dev/pandas/pull/25718
420,721,523
MDExOlB1bGxSZXF1ZXN0MjYwOTQwNjE0
25,718
Backport PR #25262 on branch 0.24.x (REF/TST: resample/test_base.py)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4", "events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}", "followers_url": "https://api.github.com/users/meeseeksmachine/followers", "following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}", "gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/meeseeksmachine", "id": 39504233, "login": "meeseeksmachine", "node_id": "MDQ6VXNlcjM5NTA0MjMz", "organizations_url": "https://api.github.com/users/meeseeksmachine/orgs", "received_events_url": "https://api.github.com/users/meeseeksmachine/received_events", "repos_url": "https://api.github.com/users/meeseeksmachine/repos", "site_admin": false, "starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions", "type": "User", "url": "https://api.github.com/users/meeseeksmachine" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2020-04-03T17:32:18Z", "closed_issues": 9, "created_at": "2019-03-11T13:56:56Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "on-merge: backport to 0.24.x", "due_on": "2020-04-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/64", "id": 4129119, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64/labels", "node_id": "MDk6TWlsZXN0b25lNDEyOTExOQ==", "number": 64, "open_issues": 0, "state": "closed", "title": "0.24.3", "updated_at": "2020-04-03T17:32:18Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/64" }
7
2019-03-13T21:11:42Z
2019-03-26T00:24:24Z
2019-03-26T00:24:19Z
NONE
null
Backport PR #25262: REF/TST: resample/test_base.py
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25718/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25718/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25718.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25718", "merged_at": "2019-03-26T00:24:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25718.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25718" }
https://api.github.com/repos/pandas-dev/pandas/issues/25719
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25719/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25719/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25719/events
https://github.com/pandas-dev/pandas/pull/25719
420,757,440
MDExOlB1bGxSZXF1ZXN0MjYwOTY4NzMw
25,719
API: concat on sparse values
{ "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": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "AD7FA8", "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-13T23:00:37Z
2019-03-19T23:40:34Z
2019-03-19T23:40:31Z
CONTRIBUTOR
null
API breaking change to `concat(List[DataFrame[Sparse]])` to return a DataFrame with sparse values, rather than a SparseDataFrame. Doing an outright break, rather than deprecation, because I have a followup PR deprecating SparseDataFrame. We hit this internally in a few places (e.g. get_dummies on all-sparse data). Closes https://github.com/pandas-dev/pandas/issues/25702 - [ ] closes #xxxx - [ ] tests added / passed - [ ] 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/25719/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25719/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25719.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25719", "merged_at": "2019-03-19T23:40:31Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25719.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25719" }
https://api.github.com/repos/pandas-dev/pandas/issues/25720
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25720/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25720/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25720/events
https://github.com/pandas-dev/pandas/pull/25720
420,778,586
MDExOlB1bGxSZXF1ZXN0MjYwOTg1MjY5
25,720
ENH: Add public start, stop, and step attributes to RangeIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/5332445?v=4", "events_url": "https://api.github.com/users/jschendel/events{/privacy}", "followers_url": "https://api.github.com/users/jschendel/followers", "following_url": "https://api.github.com/users/jschendel/following{/other_user}", "gists_url": "https://api.github.com/users/jschendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jschendel", "id": 5332445, "login": "jschendel", "node_id": "MDQ6VXNlcjUzMzI0NDU=", "organizations_url": "https://api.github.com/users/jschendel/orgs", "received_events_url": "https://api.github.com/users/jschendel/received_events", "repos_url": "https://api.github.com/users/jschendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jschendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jschendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jschendel" }
[ { "color": "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": "e99695", "default": false, "description": "R...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-14T00:25:46Z
2019-03-14T18:38:07Z
2019-03-14T12:38:53Z
MEMBER
null
- [X] closes #25710 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Comments: - Was originally going to add the tests for this to `test_constructor` but decided to create a new test instead. I parametrized `test_constructor` to clean it up before deciding to create a separate test and kept those changes in the PR. - Copied the `start`/`stop`/`step` docstrings from the Python docs for `range` with a small rewording to fit it on one line
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25720/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25720/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25720.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25720", "merged_at": "2019-03-14T12:38:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25720.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25720" }
https://api.github.com/repos/pandas-dev/pandas/issues/25721
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25721/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25721/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25721/events
https://github.com/pandas-dev/pandas/pull/25721
420,807,913
MDExOlB1bGxSZXF1ZXN0MjYxMDA2ODUw
25,721
TST: assert_produces_warning works with filterwarnings
{ "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": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-03-14T02:51:43Z
2019-04-18T18:31:10Z
2019-03-19T23:40:09Z
CONTRIBUTOR
null
Previously, assert_produces_warning did not play well with pytest's filterwarnings. ``` ===================================================================================== FAILURES ====================================================================================== ____________________________________________________________________ test_assert_produces_warning_honors_filter _____________________________________________________________________ @pytest.mark.filterwarnings('ignore:f1:FutureWarning') def test_assert_produces_warning_honors_filter(): with tm.assert_produces_warning(RuntimeWarning): > f() pandas/tests/util/test_assert_produces_warning.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <contextlib._GeneratorContextManager object at 0x11dd61128>, type = None, value = None, traceback = None def __exit__(self, type, value, traceback): if type is None: try: > next(self.gen) E AssertionError: Caused unexpected warning(s): [('FutureWarning', FutureWarning('f1'), '/Users/taugspurger/sandbox/pandas/pandas/tests/util/test_assert_produces_warni ng.py', 10)]. /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py:119: AssertionError ============================================================================= 1 failed in 0.20 seconds ============================================================================== ``` Internally, `assert_produces_warning` sets a new `filter`, which overrides any filters set by pytest. We allow for `filter_level=None` to not set a filter. This will be useful for the SparseDataFrame deprecation, where I'd like to just set a `pytest.mark.filterwarning` on the class, and not worry about catching individual warnings.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25721/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25721/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25721.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25721", "merged_at": "2019-03-19T23:40:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25721.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25721" }
https://api.github.com/repos/pandas-dev/pandas/issues/25722
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25722/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25722/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25722/events
https://github.com/pandas-dev/pandas/issues/25722
420,869,372
MDU6SXNzdWU0MjA4NjkzNzI=
25,722
BUG: pd.to_datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/20265321?v=4", "events_url": "https://api.github.com/users/Jie-Yuan/events{/privacy}", "followers_url": "https://api.github.com/users/Jie-Yuan/followers", "following_url": "https://api.github.com/users/Jie-Yuan/following{/other_user}", "gists_url": "https://api.github.com/users/Jie-Yuan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Jie-Yuan", "id": 20265321, "login": "Jie-Yuan", "node_id": "MDQ6VXNlcjIwMjY1MzIx", "organizations_url": "https://api.github.com/users/Jie-Yuan/orgs", "received_events_url": "https://api.github.com/users/Jie-Yuan/received_events", "repos_url": "https://api.github.com/users/Jie-Yuan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Jie-Yuan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Jie-Yuan/subscriptions", "type": "User", "url": "https://api.github.com/users/Jie-Yuan" }
[]
closed
false
null
[]
null
3
2019-03-14T07:32:43Z
2019-03-14T18:32:03Z
2019-03-14T18:32:03Z
NONE
null
![image](https://user-images.githubusercontent.com/20265321/54338922-3de0cb80-466e-11e9-836f-a806d329d534.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/25722/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25722/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25723
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25723/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25723/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25723/events
https://github.com/pandas-dev/pandas/issues/25723
420,888,776
MDU6SXNzdWU0MjA4ODg3NzY=
25,723
Excel Document Passing Kwargs to Engine
{ "avatar_url": "https://avatars.githubusercontent.com/u/6945503?v=4", "events_url": "https://api.github.com/users/Hugovdberg/events{/privacy}", "followers_url": "https://api.github.com/users/Hugovdberg/followers", "following_url": "https://api.github.com/users/Hugovdberg/following{/other_user}", "gists_url": "https://api.github.com/users/Hugovdberg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Hugovdberg", "id": 6945503, "login": "Hugovdberg", "node_id": "MDQ6VXNlcjY5NDU1MDM=", "organizations_url": "https://api.github.com/users/Hugovdberg/orgs", "received_events_url": "https://api.github.com/users/Hugovdberg/received_events", "repos_url": "https://api.github.com/users/Hugovdberg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Hugovdberg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Hugovdberg/subscriptions", "type": "User", "url": "https://api.github.com/users/Hugovdberg" }
[ { "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": "bfe5bf", "default": false, "description": "read_excel, to_excel"...
closed
false
null
[]
null
11
2019-03-14T08:32:27Z
2019-05-20T16:31:05Z
2019-05-20T16:31:05Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python xls = pandas.ExcelFile(path, on_demand = True) sheets = xls.sheet_names ``` #### Problem description This code used to work, since extra keyword arguments were passed to `xlrd.open_workbook`. As `pd.ExcelFile` is now decoupled from `xlrd` this behaviour was removed. It now returns an error: ``` TypeError: __init__() got an unexpected keyword argument 'on_demand' ``` In a way this is related to #25523, but this is a more general issue, and might or might not solve the problem in the other issue. #### Expected Output No error, and the keyword arguments respected. I understand that when other engines are implemented the `on_demand` argument might not make sense, but they might take similar arguments not explicitly made available in the interface of `pandas.ExcelFile`. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: 4.2.0 pip: 19.0.1 setuptools: 40.7.3 Cython: 0.29.5 numpy: 1.15.4 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.4 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.5.14 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.3.0 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.2.17 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25723/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25723/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25724
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25724/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25724/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25724/events
https://github.com/pandas-dev/pandas/issues/25724
420,920,830
MDU6SXNzdWU0MjA5MjA4MzA=
25,724
Can't explain a "Error tokenizing data. C error: Expected.."
{ "avatar_url": "https://avatars.githubusercontent.com/u/45388237?v=4", "events_url": "https://api.github.com/users/IzzyHibbert/events{/privacy}", "followers_url": "https://api.github.com/users/IzzyHibbert/followers", "following_url": "https://api.github.com/users/IzzyHibbert/following{/other_user}", "gists_url": "https://api.github.com/users/IzzyHibbert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/IzzyHibbert", "id": 45388237, "login": "IzzyHibbert", "node_id": "MDQ6VXNlcjQ1Mzg4MjM3", "organizations_url": "https://api.github.com/users/IzzyHibbert/orgs", "received_events_url": "https://api.github.com/users/IzzyHibbert/received_events", "repos_url": "https://api.github.com/users/IzzyHibbert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/IzzyHibbert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/IzzyHibbert/subscriptions", "type": "User", "url": "https://api.github.com/users/IzzyHibbert" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "5319e7", "default": false, "descript...
closed
false
null
[]
null
3
2019-03-14T09:50:04Z
2019-03-14T17:17:30Z
2019-03-14T16:15:42Z
NONE
null
Hi guys, I have a curious case I can't explain. The error : **Error tokenizing data. C error: Expected 65 fields in line 3, saw 91** when using `data = pd.read_csv("/Users/me/Projects/ML/Isolated.csv", header=0, escapechar='\\' )` #### Problem description My csv has header and three lines. The third line of the file is the issue. That line has 22 columns as the header. The second line also comes in 22 columns. I can't explain why the error, as the `,` is a delimiter. The weird thing : **taking the third line and moving it up as second line, the error disappear... same file, same data**... just different order helps.. Of course also the header comes in 22 columns, same delimiter. My csv file is available here: https://send.firefox.com/download/c0992396d7/#xsEsxH6tlHbtt7edDYsaZQ Thanks in advance for any precious help and hint.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25724/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25724/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25725
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25725/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25725/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25725/events
https://github.com/pandas-dev/pandas/issues/25725
420,990,732
MDU6SXNzdWU0MjA5OTA3MzI=
25,725
CLN: remove PY2
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "fbca04", "default": false, "description": "High level tracker for similar issues", "id": 183784729, "name": "Master Tracker", "node_id": "MDU6TGFiZWwxODM3ODQ3Mjk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Master%20Tracker" } ]
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" }
16
2019-03-14T12:28:10Z
2019-07-23T19:52:39Z
2019-07-23T19:52:39Z
CONTRIBUTOR
null
master issue for removing all vestigaes of Python 2. After merging: #24942 (removing the PY2 CI jobs) and #25554 (bump numpy to 1.13.3), we will be ready to remove PY2 code, tests, and doc references. Let's do this in bite sized pieces. IOW don't do a PR with changes for everything. cc @pandas-dev/pandas-core
{ "+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/25725/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25725/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25726
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25726/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25726/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25726/events
https://github.com/pandas-dev/pandas/issues/25726
420,994,365
MDU6SXNzdWU0MjA5OTQzNjU=
25,726
Unexpected results for diagonal entries when using generic callable in corr
{ "avatar_url": "https://avatars.githubusercontent.com/u/7300030?v=4", "events_url": "https://api.github.com/users/fabianrost84/events{/privacy}", "followers_url": "https://api.github.com/users/fabianrost84/followers", "following_url": "https://api.github.com/users/fabianrost84/following{/other_user}", "gists_url": "https://api.github.com/users/fabianrost84/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fabianrost84", "id": 7300030, "login": "fabianrost84", "node_id": "MDQ6VXNlcjczMDAwMzA=", "organizations_url": "https://api.github.com/users/fabianrost84/orgs", "received_events_url": "https://api.github.com/users/fabianrost84/received_events", "repos_url": "https://api.github.com/users/fabianrost84/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fabianrost84/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabianrost84/subscriptions", "type": "User", "url": "https://api.github.com/users/fabianrost84" }
[ { "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" }, { "c...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
14
2019-03-14T12:36:59Z
2019-03-18T12:23:52Z
2019-03-18T12:23:52Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd from scipy.stats import pearsonr df = pd.DataFrame({'A': [1,2,3], 'B': [2,5,6]}) print(df.corr(method=lambda x, y: pearsonr(x, y)[1])) A B A 1.000000 0.178912 B 0.178912 1.000000 ``` #### Problem description I want to use the method argument of `corr` to compute p-values. However, diagonal elements are set to `1`. I would expect them to be `0`. They are set to `1` here: https://github.com/pandas-dev/pandas/blob/cb00deb94500205fcb27a33cc1d0df79a9727f8b/pandas/core/frame.py#L7025-L7026 Although I can see that for a 'normal' correlation `1` is expected, this is not the case in my example. Hence, I would suggest to remove these [two lines](https://github.com/pandas-dev/pandas/blob/cb00deb94500205fcb27a33cc1d0df79a9727f8b/pandas/core/frame.py#L7025-L7026) from `frame.py`. #### Expected Output ```python A B A 0.000000 0.178912 B 0.178912 0.000000 ``` #### Output of ``pd.show_versions()`` <details> ```python INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.4.165-81-default machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.1.1 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.3 numpy: 1.15.4 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.3 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.4.0-b1 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: 4.3.0 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25726/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25726/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25727
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25727/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25727/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25727/events
https://github.com/pandas-dev/pandas/issues/25727
420,997,400
MDU6SXNzdWU0MjA5OTc0MDA=
25,727
Add the possibility of callable to ValueError message raised by corr
{ "avatar_url": "https://avatars.githubusercontent.com/u/7300030?v=4", "events_url": "https://api.github.com/users/fabianrost84/events{/privacy}", "followers_url": "https://api.github.com/users/fabianrost84/followers", "following_url": "https://api.github.com/users/fabianrost84/following{/other_user}", "gists_url": "https://api.github.com/users/fabianrost84/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fabianrost84", "id": 7300030, "login": "fabianrost84", "node_id": "MDQ6VXNlcjczMDAwMzA=", "organizations_url": "https://api.github.com/users/fabianrost84/orgs", "received_events_url": "https://api.github.com/users/fabianrost84/received_events", "repos_url": "https://api.github.com/users/fabianrost84/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fabianrost84/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabianrost84/subscriptions", "type": "User", "url": "https://api.github.com/users/fabianrost84" }
[ { "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": "0e8a...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-14T12:44:07Z
2019-03-14T15:26:14Z
2019-03-14T15:26:14Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd from scipy.stats import pearsonr df = pd.DataFrame({'A': [1,2,3], 'B': [2,5,6]}) df.corr(method='a') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-19-be8a09a85708> in <module> 2 3 df = pd.DataFrame({'A': [1,2,3], 'B': [2,5,6]}) ----> 4 df.corr(method='a') ~/miniconda3/envs/spols190117/lib/python3.6/site-packages/pandas/core/frame.py in corr(self, method, min_periods) 7034 raise ValueError("method must be either 'pearson', " 7035 "'spearman', or 'kendall', '{method}' " -> 7036 "was supplied".format(method=method)) 7037 7038 return self._constructor(correl, index=idx, columns=cols) ValueError: method must be either 'pearson', 'spearman', or 'kendall', 'a' was supplied ``` #### Problem description The `ValueError` in the example above does not mention that a `callable` could be supplied to `corr` as well. I would suggest to add this to the error message. #### Expected Output ```python ValueError: method must be either 'pearson', 'spearman', 'kendall' or callable, 'a' was supplied ``` #### Output of ``pd.show_versions()`` <details> ```python INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.4.165-81-default machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.1.1 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.3 numpy: 1.15.4 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.3 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.4.0-b1 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: 4.3.0 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25727/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25727/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25728
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25728/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25728/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25728/events
https://github.com/pandas-dev/pandas/pull/25728
421,001,602
MDExOlB1bGxSZXF1ZXN0MjYxMTU1MzQ3
25,728
DOC: fix some grammar and inconsistency issues in the User Guide
{ "avatar_url": "https://avatars.githubusercontent.com/u/34628304?v=4", "events_url": "https://api.github.com/users/spacesphere/events{/privacy}", "followers_url": "https://api.github.com/users/spacesphere/followers", "following_url": "https://api.github.com/users/spacesphere/following{/other_user}", "gists_url": "https://api.github.com/users/spacesphere/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spacesphere", "id": 34628304, "login": "spacesphere", "node_id": "MDQ6VXNlcjM0NjI4MzA0", "organizations_url": "https://api.github.com/users/spacesphere/orgs", "received_events_url": "https://api.github.com/users/spacesphere/received_events", "repos_url": "https://api.github.com/users/spacesphere/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spacesphere/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spacesphere/subscriptions", "type": "User", "url": "https://api.github.com/users/spacesphere" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-14T12:53:43Z
2019-03-14T13:07:06Z
2019-03-14T13:02:03Z
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/25728/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25728/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25728.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25728", "merged_at": "2019-03-14T13:02:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25728.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25728" }
https://api.github.com/repos/pandas-dev/pandas/issues/25729
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25729/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25729/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25729/events
https://github.com/pandas-dev/pandas/pull/25729
421,023,912
MDExOlB1bGxSZXF1ZXN0MjYxMTcyMDk3
25,729
Update ValueError message in corr
{ "avatar_url": "https://avatars.githubusercontent.com/u/7300030?v=4", "events_url": "https://api.github.com/users/fabianrost84/events{/privacy}", "followers_url": "https://api.github.com/users/fabianrost84/followers", "following_url": "https://api.github.com/users/fabianrost84/following{/other_user}", "gists_url": "https://api.github.com/users/fabianrost84/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fabianrost84", "id": 7300030, "login": "fabianrost84", "node_id": "MDQ6VXNlcjczMDAwMzA=", "organizations_url": "https://api.github.com/users/fabianrost84/orgs", "received_events_url": "https://api.github.com/users/fabianrost84/received_events", "repos_url": "https://api.github.com/users/fabianrost84/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fabianrost84/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabianrost84/subscriptions", "type": "User", "url": "https://api.github.com/users/fabianrost84" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-14T13:39:55Z
2019-03-14T15:26:17Z
2019-03-14T15:26:15Z
CONTRIBUTOR
null
to include the option of supplying a callable. - [x] closes #25727 - [ ] tests added / passed - [ ] 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/25729/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25729/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25729.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25729", "merged_at": "2019-03-14T15:26:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25729.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25729" }
https://api.github.com/repos/pandas-dev/pandas/issues/25730
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25730/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25730/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25730/events
https://github.com/pandas-dev/pandas/issues/25730
421,059,332
MDU6SXNzdWU0MjEwNTkzMzI=
25,730
TypeError: dtype '<class 'datetime.datetime'>' not understood
{ "avatar_url": "https://avatars.githubusercontent.com/u/1256318?v=4", "events_url": "https://api.github.com/users/dickreuter/events{/privacy}", "followers_url": "https://api.github.com/users/dickreuter/followers", "following_url": "https://api.github.com/users/dickreuter/following{/other_user}", "gists_url": "https://api.github.com/users/dickreuter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dickreuter", "id": 1256318, "login": "dickreuter", "node_id": "MDQ6VXNlcjEyNTYzMTg=", "organizations_url": "https://api.github.com/users/dickreuter/orgs", "received_events_url": "https://api.github.com/users/dickreuter/received_events", "repos_url": "https://api.github.com/users/dickreuter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dickreuter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dickreuter/subscriptions", "type": "User", "url": "https://api.github.com/users/dickreuter" }
[ { "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
13
2019-03-14T14:41:57Z
2021-05-31T13:11:38Z
null
CONTRIBUTOR
null
``` df valuation_date 0 2018-06-08 1 2018-06-11 2 2018-06-12 3 2018-06-13 4 2018-06-14 5 2018-06-15 ``` ``` type(valuation_dates_df) Out[16]: pandas.core.frame.DataFrame type(valuation_dates_df['valuation_date']) Out[15]: pandas.core.series.Series ``` To reproduce the error: ``` dict= {'valuation_date': {0: Timestamp('2018-06-08 00:00:00'), 1: Timestamp('2018-06-11 00:00:00'), 2: Timestamp('2018-06-12 00:00:00'), 3: Timestamp('2018-06-13 00:00:00'), 4: Timestamp('2018-06-14 00:00:00'), 5: Timestamp('2018-06-15 00:00:00')}} pd.DataFrame.from_records(dict)['valuation_date'].astype(datetime.datetime) valuation_dates_df['valuation_date'].astype(datetime.datetime) File "C:\git\mre_x\_tcp\work\win-na-x64-release\py3\mre_venv3\lib\site-packages\pandas\core\dtypes\common.py", line 2029, in pandas_dtype raise TypeError("dtype '{}' not understood".format(dtype)) TypeError: dtype '<class 'datetime.datetime'>' not understood ``` The issue occurs with pandas 0.24.1 and did not occur in 0.23.4.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25730/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25730/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25731
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25731/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25731/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25731/events
https://github.com/pandas-dev/pandas/pull/25731
421,071,107
MDExOlB1bGxSZXF1ZXN0MjYxMjA3MjQw
25,731
BUG: Convert tuple to list before `_list_to_arrays` when construct DataFrame.
{ "avatar_url": "https://avatars.githubusercontent.com/u/7144772?v=4", "events_url": "https://api.github.com/users/sighingnow/events{/privacy}", "followers_url": "https://api.github.com/users/sighingnow/followers", "following_url": "https://api.github.com/users/sighingnow/following{/other_user}", "gists_url": "https://api.github.com/users/sighingnow/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sighingnow", "id": 7144772, "login": "sighingnow", "node_id": "MDQ6VXNlcjcxNDQ3NzI=", "organizations_url": "https://api.github.com/users/sighingnow/orgs", "received_events_url": "https://api.github.com/users/sighingnow/received_events", "repos_url": "https://api.github.com/users/sighingnow/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sighingnow/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sighingnow/subscriptions", "type": "User", "url": "https://api.github.com/users/sighingnow" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-14T15:01:16Z
2019-04-05T00:45:31Z
2019-04-05T00:45:20Z
CONTRIBUTOR
null
In `_list_to_arrays`, `to_object_array_tuples` or `to_object_array` is called, both require the argument to be a `list` (list of tuples or list of list). - [x] closes #25691 - [x] tests added / passed - [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/25731/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25731/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25731.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25731", "merged_at": "2019-04-05T00:45:20Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25731.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25731" }
https://api.github.com/repos/pandas-dev/pandas/issues/25732
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25732/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25732/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25732/events
https://github.com/pandas-dev/pandas/pull/25732
421,100,831
MDExOlB1bGxSZXF1ZXN0MjYxMjI5NTc2
25,732
DOC: clarify corr behaviour when using a callable
{ "avatar_url": "https://avatars.githubusercontent.com/u/7300030?v=4", "events_url": "https://api.github.com/users/fabianrost84/events{/privacy}", "followers_url": "https://api.github.com/users/fabianrost84/followers", "following_url": "https://api.github.com/users/fabianrost84/following{/other_user}", "gists_url": "https://api.github.com/users/fabianrost84/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fabianrost84", "id": 7300030, "login": "fabianrost84", "node_id": "MDQ6VXNlcjczMDAwMzA=", "organizations_url": "https://api.github.com/users/fabianrost84/orgs", "received_events_url": "https://api.github.com/users/fabianrost84/received_events", "repos_url": "https://api.github.com/users/fabianrost84/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fabianrost84/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabianrost84/subscriptions", "type": "User", "url": "https://api.github.com/users/fabianrost84" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-14T15:51:14Z
2019-03-18T12:23:55Z
2019-03-18T12:23:52Z
CONTRIBUTOR
null
fixes #25726 - [x] closes #25726 - [ ] tests added / passed - [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/25732/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25732/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25732.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25732", "merged_at": "2019-03-18T12:23:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25732.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25732" }
https://api.github.com/repos/pandas-dev/pandas/issues/25733
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25733/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25733/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25733/events
https://github.com/pandas-dev/pandas/issues/25733
421,137,149
MDU6SXNzdWU0MjExMzcxNDk=
25,733
Incorrect example in wide_to_long docstring
{ "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": "0e8a16", "default": true, "description": null, "id": 7171206...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-14T16:57:37Z
2019-05-03T14:52:15Z
2019-05-03T14:52:15Z
CONTRIBUTOR
null
The last example at https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.wide_to_long.html is incorrect. ``` >>> df = pd.DataFrame({ ... 'famid': [1, 1, 1, 2, 2, 2, 3, 3, 3], ... 'birth': [1, 2, 3, 1, 2, 3, 1, 2, 3], ... 'ht_one': [2.8, 2.9, 2.2, 2, 1.8, 1.9, 2.2, 2.3, 2.1], ... 'ht_two': [3.4, 3.8, 2.9, 3.2, 2.8, 2.4, 3.3, 3.4, 2.9] ... }) >>> df >>> l = pd.wide_to_long(df, stubnames='ht', i=['famid', 'birth'], j='age', sep='_', suffix='\w') >>> l ``` locally, `l` is an empty dataframe ```python Empty DataFrame Columns: [ht_two, ht_one, ht] Index: [] ``` I think the `suffix` should be `\w+`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25733/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25733/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25734
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25734/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25734/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25734/events
https://github.com/pandas-dev/pandas/issues/25734
421,180,975
MDU6SXNzdWU0MjExODA5NzU=
25,734
Pandas 0.24.x throws an error when using freezegun with CustomBusinessDay
{ "avatar_url": "https://avatars.githubusercontent.com/u/6424469?v=4", "events_url": "https://api.github.com/users/MartinFalatic/events{/privacy}", "followers_url": "https://api.github.com/users/MartinFalatic/followers", "following_url": "https://api.github.com/users/MartinFalatic/following{/other_user}", "gists_url": "https://api.github.com/users/MartinFalatic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MartinFalatic", "id": 6424469, "login": "MartinFalatic", "node_id": "MDQ6VXNlcjY0MjQ0Njk=", "organizations_url": "https://api.github.com/users/MartinFalatic/orgs", "received_events_url": "https://api.github.com/users/MartinFalatic/received_events", "repos_url": "https://api.github.com/users/MartinFalatic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MartinFalatic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MartinFalatic/subscriptions", "type": "User", "url": "https://api.github.com/users/MartinFalatic" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, ...
closed
false
null
[]
null
3
2019-03-14T18:32:54Z
2019-04-05T17:52:24Z
2019-04-05T17:52:24Z
NONE
null
I originally opened an issue with Freezegun: https://github.com/spulec/freezegun/issues/284 **However, this appears to be a new quirk of Pandas 0.24's `CustomBusinessDay` class and its use of `pandas._libs.tslibs.conversion.localize_pydatetime()`.** Other offset functions don't seem to be affected, for the ones I've tried. Everything worked just fine with Pandas 0.23.4 and earlier, with the latest freezegun-0.3.11. #### Code Sample, a copy-pastable example if possible Test setup: Python 2.7 and 3.6 on OS X using freezegun-0.3.11 with pandas-0.24.2 ```python import pytz import pandas from datetime import datetime from pandas.tseries.offsets import (CustomBusinessDay, BusinessDay) from freezegun import freeze_time LOCAL_TZ = pytz.timezone('America/Los_Angeles') @freeze_time(LOCAL_TZ.localize(datetime(2019, 3, 15, 0, 0, 0))) def these_work(): pandas.Timestamp(datetime.now(LOCAL_TZ)) pandas.Timestamp(datetime.now(LOCAL_TZ)) + BusinessDay(n=1) @freeze_time(LOCAL_TZ.localize(datetime(2019, 3, 15, 0, 0, 0))) def this_fails(): pandas.Timestamp(datetime.now(LOCAL_TZ)) + CustomBusinessDay(n=1) these_work() this_fails() ``` #### Problem description Failure mode: ``` --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-452eb6a5f720> in <module> 17 18 these_work() ---> 19 this_fails() ~/.virtualenvs/python3/lib/python3.6/site-packages/freezegun/api.py in wrapper(*args, **kwargs) 656 result = func(time_factory, *args, **kwargs) 657 else: --> 658 result = func(*args, **kwargs) 659 return result 660 functools.update_wrapper(wrapper, func) <ipython-input-2-452eb6a5f720> in this_fails() 14 @freeze_time(LOCAL_TZ.localize(datetime(2019, 3, 15, 0, 0, 0))) 15 def this_fails(): ---> 16 pandas.Timestamp(datetime.now(LOCAL_TZ)) + CustomBusinessDay(n=1) 17 18 these_work() pandas/_libs/tslibs/offsets.pyx in pandas._libs.tslibs.offsets.BaseOffset.__radd__() pandas/_libs/tslibs/offsets.pyx in pandas._libs.tslibs.offsets._BaseOffset.__add__() ~/.virtualenvs/python3/lib/python3.6/site-packages/pandas/tseries/offsets.py in wrapper(self, other) 70 71 if self._adjust_dst: ---> 72 result = conversion.localize_pydatetime(result, tz) 73 74 result = Timestamp(result) pandas/_libs/tslibs/conversion.pyx in pandas._libs.tslibs.conversion.localize_pydatetime() pandas/_libs/tslibs/conversion.pyx in pandas._libs.tslibs.conversion.localize_pydatetime() AttributeError: 'FakeDatetime' object has no attribute 'tz_localize' ``` #### Expected Output All of these should work equally well, including `CustomBusinessDay`. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: None pip: 19.0.3 setuptools: 40.6.3 Cython: 0.29.3 numpy: 1.16.0 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.3 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: 4.3.2 bs4: None html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25734/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25734/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25735
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25735/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25735/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25735/events
https://github.com/pandas-dev/pandas/issues/25735
421,186,868
MDU6SXNzdWU0MjExODY4Njg=
25,735
Links to PDF and BIBs in documentation on site are broken
{ "avatar_url": "https://avatars.githubusercontent.com/u/1115714?v=4", "events_url": "https://api.github.com/users/Barracuda72/events{/privacy}", "followers_url": "https://api.github.com/users/Barracuda72/followers", "following_url": "https://api.github.com/users/Barracuda72/following{/other_user}", "gists_url": "https://api.github.com/users/Barracuda72/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Barracuda72", "id": 1115714, "login": "Barracuda72", "node_id": "MDQ6VXNlcjExMTU3MTQ=", "organizations_url": "https://api.github.com/users/Barracuda72/orgs", "received_events_url": "https://api.github.com/users/Barracuda72/received_events", "repos_url": "https://api.github.com/users/Barracuda72/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Barracuda72/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Barracuda72/subscriptions", "type": "User", "url": "https://api.github.com/users/Barracuda72" }
[]
closed
false
null
[]
null
0
2019-03-14T18:46:25Z
2019-03-14T20:03:48Z
2019-03-14T20:03:48Z
NONE
null
Links to first PDF and both BIBs on https://pandas.pydata.org/talks.html in section "pandas Papers" seems to be broken (gives 404). Just went there to retrieve Bibtex entry for my bibliography list and discovered that.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25735/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25735/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25736
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25736/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25736/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25736/events
https://github.com/pandas-dev/pandas/pull/25736
421,194,456
MDExOlB1bGxSZXF1ZXN0MjYxMzAxMDM5
25,736
Fix incorrect example in wide_to_long docstring
{ "avatar_url": "https://avatars.githubusercontent.com/u/13381361?v=4", "events_url": "https://api.github.com/users/Bharat123rox/events{/privacy}", "followers_url": "https://api.github.com/users/Bharat123rox/followers", "following_url": "https://api.github.com/users/Bharat123rox/following{/other_user}", "gists_url": "https://api.github.com/users/Bharat123rox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Bharat123rox", "id": 13381361, "login": "Bharat123rox", "node_id": "MDQ6VXNlcjEzMzgxMzYx", "organizations_url": "https://api.github.com/users/Bharat123rox/orgs", "received_events_url": "https://api.github.com/users/Bharat123rox/received_events", "repos_url": "https://api.github.com/users/Bharat123rox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Bharat123rox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Bharat123rox/subscriptions", "type": "User", "url": "https://api.github.com/users/Bharat123rox" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-14T19:04:31Z
2019-04-10T11:42:14Z
2019-04-10T05:32:06Z
CONTRIBUTOR
null
- [x] closes #25733 - [x] tests added / passed - [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/25736/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25736/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25736.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25736", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25736.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25736" }
https://api.github.com/repos/pandas-dev/pandas/issues/25737
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25737/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25737/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25737/events
https://github.com/pandas-dev/pandas/issues/25737
421,276,810
MDU6SXNzdWU0MjEyNzY4MTA=
25,737
Resample with freq less than 10T generates different column names with same command
{ "avatar_url": "https://avatars.githubusercontent.com/u/1978117?v=4", "events_url": "https://api.github.com/users/asishm/events{/privacy}", "followers_url": "https://api.github.com/users/asishm/followers", "following_url": "https://api.github.com/users/asishm/following{/other_user}", "gists_url": "https://api.github.com/users/asishm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/asishm", "id": 1978117, "login": "asishm", "node_id": "MDQ6VXNlcjE5NzgxMTc=", "organizations_url": "https://api.github.com/users/asishm/orgs", "received_events_url": "https://api.github.com/users/asishm/received_events", "repos_url": "https://api.github.com/users/asishm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/asishm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/asishm/subscriptions", "type": "User", "url": "https://api.github.com/users/asishm" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
3
2019-03-14T22:40:01Z
2019-03-16T23:17:42Z
2019-03-16T22:10:51Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible Timings.csv (see details) <details> ``` "Invoice Id","Created Date","Modified Date" "154021","2019-03-08 17:12:33","2019-03-08 18:50:03" "141105","2019-02-28 17:13:54","2019-02-28 17:24:22" "152290","2019-03-08 07:26:37","2019-03-08 07:32:24" "136697","2019-02-26 07:22:36","2019-02-26 07:25:49" "142892","2019-03-01 17:01:19","2019-03-01 17:17:52" "146085","2019-03-05 10:14:12","2019-03-05 10:26:14" "140333","2019-02-28 12:18:34","2019-02-28 12:32:46" "159873","2019-03-13 14:09:53","2019-03-13 14:16:10" "156567","2019-03-12 09:12:12","2019-03-12 09:21:05" "162058","2019-03-14 14:51:39","2019-03-14 14:59:02" "142387","2019-03-01 13:45:42","2019-03-01 13:53:30" "154219","2019-03-08 18:38:45","2019-03-08 19:56:57" "155780","2019-03-11 15:00:46","2019-03-11 15:38:42" "158857","2019-03-13 09:47:48","2019-03-13 09:51:34" "148743","2019-03-06 12:02:09","2019-03-06 13:47:16" "139379","2019-02-27 17:04:07","2019-02-27 17:24:31" "154375","2019-03-09 16:31:23","2019-03-09 16:36:12" "156033","2019-03-11 16:02:41","2019-03-11 16:56:30" "156164","2019-03-11 17:18:56","2019-03-11 17:32:03" "156127","2019-03-11 16:53:29","2019-03-11 17:24:55" "160476","2019-03-13 18:37:49","2019-03-13 20:00:59" "153955","2019-03-08 16:57:13","2019-03-08 18:23:00" "138872","2019-02-27 13:43:00","2019-02-27 14:02:52" "146161","2019-03-05 10:29:49","2019-03-05 11:03:36" "160620","2019-03-14 06:54:45","2019-03-14 07:01:57" "153812","2019-03-08 16:15:33","2019-03-08 16:22:59" "148780","2019-03-06 12:02:13","2019-03-06 14:11:34" "141285","2019-02-28 18:55:39","2019-02-28 19:29:14" "157709","2019-03-12 14:00:30","2019-03-12 14:10:50" "137192","2019-02-26 11:57:56","2019-02-26 12:06:47" "147524","2019-03-05 16:24:33","2019-03-05 18:59:20" "141218","2019-02-28 18:45:17","2019-02-28 18:51:15" "158015","2019-03-12 15:18:17","2019-03-12 18:13:38" "162111","2019-03-14 15:07:09","2019-03-14 15:12:58" "154801","2019-03-11 09:56:23","2019-03-11 10:01:46" "150236","2019-03-06 18:08:08","2019-03-06 23:01:01" "149391","2019-03-06 14:07:03","2019-03-06 17:55:56" "155924","2019-03-11 15:31:49","2019-03-11 15:37:38" "148075","2019-03-06 09:16:12","2019-03-06 09:21:46" "145301","2019-03-04 17:07:12","2019-03-04 17:52:05" "142602","2019-03-01 14:58:20","2019-03-01 15:23:48" "151617","2019-03-07 13:51:45","2019-03-07 16:42:47" "141486","2019-03-01 05:54:25","2019-03-01 06:00:47" "160002","2019-03-13 14:36:10","2019-03-13 17:16:32" "161105","2019-03-14 10:37:23","2019-03-14 11:21:37" "159895","2019-03-13 14:20:19","2019-03-13 16:24:36" "145866","2019-03-05 08:40:06","2019-03-05 08:48:44" "159199","2019-03-13 11:12:33","2019-03-13 11:18:28" "161618","2019-03-14 12:32:05","2019-03-14 12:38:42" "154061","2019-03-08 17:32:47","2019-03-08 18:59:09" ``` </details> ```python # Your code here import pandas as pd df = pd.read_csv("Timings.csv") df['Created Date'] = pd.to_datetime(df['Created Date'], errors="coerce") df['Modified Date'] = pd.to_datetime(df['Modified Date'], errors="coerce") df1 = df.groupby(pd.Grouper(key='Created Date', freq='5T'))['Invoice Id'].count() df2 = df.groupby(pd.Grouper(key='Modified Date', freq='5T'))['Invoice Id'].count() df1.subtract(df2, fill_value=0).rename('Backlog').astype(int).cumsum().reset_index().head() # index Backlog #0 2019-02-26 07:20:00 1 #1 2019-02-26 07:25:00 0 #2 2019-02-26 07:30:00 0 #3 2019-02-26 07:35:00 0 #4 2019-02-26 07:40:00 0 df3 = df.groupby(pd.Grouper(key='Created Date', freq='15T'))['Invoice Id'].count() df4 = df.groupby(pd.Grouper(key='Modified Date', freq='15T'))['Invoice Id'].count() df3.subtract(df4, fill_value=0).rename('Backlog').astype(int).cumsum().reset_index().head() # Created Date Backlog #0 2019-02-26 07:15:00 0 #1 2019-02-26 07:30:00 0 #2 2019-02-26 07:45:00 0 #3 2019-02-26 08:00:00 0 #4 2019-02-26 08:15:00 0 ``` #### Problem description Not sure why just changing the `freq` is causing different behavior in the output (i.e. column headers are different). The values being different is of course expected. #### Expected Output It would be expected to consistently result in one or the other. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 79 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 pytest: None pip: 19.0.3 setuptools: 40.8.0 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details> ## Update: I've been able to reproduce it. Anything below `freq=10T` produces the same results (with `index` being the name of the first column) and anything above and including `freq=10T` creates a dataframe with the first column being `"Created 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/25737/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25737/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25738
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25738/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25738/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25738/events
https://github.com/pandas-dev/pandas/pull/25738
421,367,698
MDExOlB1bGxSZXF1ZXN0MjYxNDMzMTU4
25,738
Dropna argument is now respected when false in pivot_table
{ "avatar_url": "https://avatars.githubusercontent.com/u/33966871?v=4", "events_url": "https://api.github.com/users/alexander-ponomaroff/events{/privacy}", "followers_url": "https://api.github.com/users/alexander-ponomaroff/followers", "following_url": "https://api.github.com/users/alexander-ponomaroff/following{/other_user}", "gists_url": "https://api.github.com/users/alexander-ponomaroff/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexander-ponomaroff", "id": 33966871, "login": "alexander-ponomaroff", "node_id": "MDQ6VXNlcjMzOTY2ODcx", "organizations_url": "https://api.github.com/users/alexander-ponomaroff/orgs", "received_events_url": "https://api.github.com/users/alexander-ponomaroff/received_events", "repos_url": "https://api.github.com/users/alexander-ponomaroff/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexander-ponomaroff/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexander-ponomaroff/subscriptions", "type": "User", "url": "https://api.github.com/users/alexander-ponomaroff" }
[ { "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": "02d7e1"...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
8
2019-03-15T06:08:57Z
2019-04-12T22:00:08Z
2019-04-12T22:00:03Z
CONTRIBUTOR
null
- [x] closes #22159 - [x] tests added / passed - [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/25738/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25738/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25738.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25738", "merged_at": "2019-04-12T22:00:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25738.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25738" }
https://api.github.com/repos/pandas-dev/pandas/issues/25739
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25739/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25739/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25739/events
https://github.com/pandas-dev/pandas/issues/25739
421,429,262
MDU6SXNzdWU0MjE0MjkyNjI=
25,739
pd.merge combine two df was so huge!
{ "avatar_url": "https://avatars.githubusercontent.com/u/508885?v=4", "events_url": "https://api.github.com/users/princelai/events{/privacy}", "followers_url": "https://api.github.com/users/princelai/followers", "following_url": "https://api.github.com/users/princelai/following{/other_user}", "gists_url": "https://api.github.com/users/princelai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/princelai", "id": 508885, "login": "princelai", "node_id": "MDQ6VXNlcjUwODg4NQ==", "organizations_url": "https://api.github.com/users/princelai/orgs", "received_events_url": "https://api.github.com/users/princelai/received_events", "repos_url": "https://api.github.com/users/princelai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/princelai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/princelai/subscriptions", "type": "User", "url": "https://api.github.com/users/princelai" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
2
2019-03-15T09:36:09Z
2019-03-15T15:23:49Z
2019-03-15T15:23:33Z
NONE
null
My Code ```python quote = pro.daily(ts_code=code, end_date=end_date.strftime("%Y%m%d")) basic = pro.daily_basic(ts_code=code, end_date=end_date.strftime("%Y%m%d")) combine_quote = pd.merge(left=quote, right=basic, on='ts_code', how='inner') ``` #### Problem description I have two dataframe which named quote and basic,let me see two tables detail ```python quote.info(memory_usage='deep') <class 'pandas.core.frame.DataFrame'> Index: 2869 entries, 20190315 to 20070427 Data columns (total 10 columns): ts_code 2869 non-null object open 2869 non-null float64 high 2869 non-null float64 low 2869 non-null float64 close 2869 non-null float64 pre_close 2869 non-null float64 change 2869 non-null float64 pct_chg 2869 non-null float64 vol 2869 non-null float64 amount 2869 non-null float64 dtypes: float64(9), object(1) memory usage: 568.8 KB ``` ```python basic.info(memory_usage='deep') <class 'pandas.core.frame.DataFrame'> Index: 2869 entries, 20190315 to 20070427 Data columns (total 15 columns): ts_code 2869 non-null object close 2869 non-null float64 turnover_rate 2869 non-null float64 turnover_rate_f 2869 non-null float64 volume_ratio 2864 non-null float64 pe 2869 non-null float64 pe_ttm 2869 non-null float64 pb 2869 non-null float64 ps 2869 non-null float64 ps_ttm 2869 non-null float64 total_share 2869 non-null float64 float_share 2869 non-null float64 free_share 2869 non-null float64 total_mv 2869 non-null float64 circ_mv 2869 non-null float64 dtypes: float64(14), object(1) memory usage: 680.8 KB ``` then I will merge two to one use pd.merge,this procedure is not fast,about 1.5-2 second,I was shocked when I check memory usage,see that ```python combine_quote.info(memory_usage='deep') <class 'pandas.core.frame.DataFrame'> Int64Index: 8231161 entries, 0 to 8231160 Data columns (total 26 columns): ts_code object trade_date_x object open float64 high float64 low float64 close_x float64 pre_close float64 change float64 pct_chg float64 vol float64 amount float64 trade_date_y object close_y float64 turnover_rate float64 turnover_rate_f float64 volume_ratio float64 pe float64 pe_ttm float64 pb float64 ps float64 ps_ttm float64 total_share float64 float_share float64 free_share float64 total_mv float64 circ_mv float64 dtypes: float64(23), object(3) memory usage: 3.0 GB ``` why 568KB + 680KB = 3GB?! but pd.concat was correct ```python quote = pro.daily(ts_code=code, end_date=end_date.strftime("%Y%m%d")) quote.set_index("trade_date", inplace=True) basic = pro.daily_basic(ts_code=code, end_date=end_date.strftime("%Y%m%d")) basic.set_index("trade_date", inplace=True) combine2 = pd.concat([quote, basic], axis=1) combine2.info(memory_usage='deep') <class 'pandas.core.frame.DataFrame'> RangeIndex: 2869 entries, 0 to 2868 Data columns (total 27 columns): ts_code 2869 non-null object trade_date 2869 non-null object open 2869 non-null float64 high 2869 non-null float64 low 2869 non-null float64 close 2869 non-null float64 pre_close 2869 non-null float64 change 2869 non-null float64 pct_chg 2869 non-null float64 vol 2869 non-null float64 amount 2869 non-null float64 ts_code 2869 non-null object trade_date 2869 non-null object close 2869 non-null float64 turnover_rate 2869 non-null float64 turnover_rate_f 2869 non-null float64 volume_ratio 2864 non-null float64 pe 2869 non-null float64 pe_ttm 2869 non-null float64 pb 2869 non-null float64 ps 2869 non-null float64 ps_ttm 2869 non-null float64 total_share 2869 non-null float64 float_share 2869 non-null float64 free_share 2869 non-null float64 total_mv 2869 non-null float64 circ_mv 2869 non-null float64 dtypes: float64(23), object(4) memory usage: 1.2 MB ``` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Linux OS-release: 4.19.28-1-MANJARO machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: None pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.2 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.3.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: 4.3.2 bs4: 4.7.1 html5lib: None sqlalchemy: 1.3.1 pymysql: 0.9.3 psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25739/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25739/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25740
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25740/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25740/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25740/events
https://github.com/pandas-dev/pandas/issues/25740
421,600,531
MDU6SXNzdWU0MjE2MDA1MzE=
25,740
Inconsistent pd.to_datetime() behaviour dependent on dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/7751372?v=4", "events_url": "https://api.github.com/users/austinlostinboston/events{/privacy}", "followers_url": "https://api.github.com/users/austinlostinboston/followers", "following_url": "https://api.github.com/users/austinlostinboston/following{/other_user}", "gists_url": "https://api.github.com/users/austinlostinboston/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/austinlostinboston", "id": 7751372, "login": "austinlostinboston", "node_id": "MDQ6VXNlcjc3NTEzNzI=", "organizations_url": "https://api.github.com/users/austinlostinboston/orgs", "received_events_url": "https://api.github.com/users/austinlostinboston/received_events", "repos_url": "https://api.github.com/users/austinlostinboston/repos", "site_admin": false, "starred_url": "https://api.github.com/users/austinlostinboston/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/austinlostinboston/subscriptions", "type": "User", "url": "https://api.github.com/users/austinlostinboston" }
[ { "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": "009800", "default": false, "description": "Duplicate...
closed
false
null
[]
null
2
2019-03-15T16:22:55Z
2019-03-15T17:39:31Z
2019-03-15T17:39:23Z
NONE
null
I have two Series, both containing years. One series is `dtype == float64` and the other is `dtype == object`. When I apply pd.to_datetime() to these two columns, i get drastically different results. ```python ## Pandas 0.24.1 import pandas as pd year_string = pd.Series(['1980','1985','1990','1995','2000']) year_float = pd.Series([1980.0, 1985.0, 1990.0, 1995.0, 2000.0]) ## Works as expected pd.to_datetime(year_string, infer_datetime_format=True) # 0 1980-01-01 # 1 1985-01-01 # 2 1990-01-01 # 3 1995-01-01 # 4 2000-01-01 # dtype: datetime64[ns] ## Automatically treats floats epoch nanoseconds pd.to_datetime(year_float, infer_datetime_format=True) # 0 1970-01-01 00:00:00.000001980 # 1 1970-01-01 00:00:00.000001985 # 2 1970-01-01 00:00:00.000001990 # 3 1970-01-01 00:00:00.000001995 # 4 1970-01-01 00:00:00.000002000 # dtype: datetime64[ns] ``` While I understand why this difference exists (perhaps there's an assumption being made that if dtype == float, then the value are epoch nanoseconds?), I'm not sure I agree with the inconsistency in behavior based strictly on dtype. I would favor a solution that treated the float64 series the same as the string/object series. Is it possible that the logic that infers `year_string` as containing years could also be applied to `year_float`?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25740/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25740/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25741
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25741/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25741/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25741/events
https://github.com/pandas-dev/pandas/issues/25741
421,706,746
MDU6SXNzdWU0MjE3MDY3NDY=
25,741
Groupby casts uint64 to int64, causing overflows.
{ "avatar_url": "https://avatars.githubusercontent.com/u/3237939?v=4", "events_url": "https://api.github.com/users/rsdenijs/events{/privacy}", "followers_url": "https://api.github.com/users/rsdenijs/followers", "following_url": "https://api.github.com/users/rsdenijs/following{/other_user}", "gists_url": "https://api.github.com/users/rsdenijs/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rsdenijs", "id": 3237939, "login": "rsdenijs", "node_id": "MDQ6VXNlcjMyMzc5Mzk=", "organizations_url": "https://api.github.com/users/rsdenijs/orgs", "received_events_url": "https://api.github.com/users/rsdenijs/received_events", "repos_url": "https://api.github.com/users/rsdenijs/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rsdenijs/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rsdenijs/subscriptions", "type": "User", "url": "https://api.github.com/users/rsdenijs" }
[]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2019-03-15T21:14:09Z
2019-03-15T21:32:05Z
2019-03-15T21:31:58Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python pd.DataFrame([['a', 12111450436133142102]],columns=['name', 'value']).groupby('name').first() ``` #### Problem description Pandas casts uint64 to int64, causing overflows. This happens silently, causing bugs downstream. This happens with other groupby operations too. #### Expected Output ``` value name a 12111450436133142102 ``` #### Actual Output ``` value name a -6335293637576409514 ``` INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-135-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: C.UTF-8 LANG: C.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.4 pytest: 3.2.2 pip: 18.1 setuptools: 40.6.3 Cython: None numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: 1.3.1 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25741/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25741/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25742
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25742/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25742/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25742/events
https://github.com/pandas-dev/pandas/issues/25742
421,707,474
MDU6SXNzdWU0MjE3MDc0NzQ=
25,742
DataFrame regex with dictionary will not work correctly.
{ "avatar_url": "https://avatars.githubusercontent.com/u/8196363?v=4", "events_url": "https://api.github.com/users/dragonator4/events{/privacy}", "followers_url": "https://api.github.com/users/dragonator4/followers", "following_url": "https://api.github.com/users/dragonator4/following{/other_user}", "gists_url": "https://api.github.com/users/dragonator4/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dragonator4", "id": 8196363, "login": "dragonator4", "node_id": "MDQ6VXNlcjgxOTYzNjM=", "organizations_url": "https://api.github.com/users/dragonator4/orgs", "received_events_url": "https://api.github.com/users/dragonator4/received_events", "repos_url": "https://api.github.com/users/dragonator4/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dragonator4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dragonator4/subscriptions", "type": "User", "url": "https://api.github.com/users/dragonator4" }
[]
closed
false
null
[]
null
2
2019-03-15T21:16:26Z
2019-03-15T21:31:41Z
2019-03-15T21:31:40Z
NONE
null
#### Code Sample ```python df = pd.DataFrame( {'A': [0, 1, 2], 'B': ['ba\nt', 'foo', 'bait'], 'C': ['abc', 'ba\nr', 'xyz']} ) df.replace(regex={'\n': '', r'^fo.$': 'xyz'}) # Neither do r'\n' or '\\n' work. ``` #### Problem description Does not replace the newline character. Also checked with other escaped characters like spaces, tabs. However, the other regex expression works: ```python A B C 0 0 ba\nt abc 1 1 xyz ba\nr 2 2 bait xyz ``` #### Expected Output ```python A B C 0 0 bat abc 1 1 xyz bar 2 2 bait xyz ``` #### Additional information Working: ```python df.replace('\n', '', regex=True).replace('foo', 'xyz') ``` [Related SO question](https://stackoverflow.com/q/55190441/3765319). #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: None pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.5 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: 0.11.3 IPython: 7.3.0 sphinx: None patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.0 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.5 lxml.etree: None bs4: None html5lib: None sqlalchemy: 1.2.18 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25742/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25742/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25743
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25743/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25743/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25743/events
https://github.com/pandas-dev/pandas/pull/25743
421,723,267
MDExOlB1bGxSZXF1ZXN0MjYxNzE0MTE3
25,743
BUG: Fix groupby with MultiIndex Series corner case (#25704)
{ "avatar_url": "https://avatars.githubusercontent.com/u/25773476?v=4", "events_url": "https://api.github.com/users/ArtificialQualia/events{/privacy}", "followers_url": "https://api.github.com/users/ArtificialQualia/followers", "following_url": "https://api.github.com/users/ArtificialQualia/following{/other_user}", "gists_url": "https://api.github.com/users/ArtificialQualia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArtificialQualia", "id": 25773476, "login": "ArtificialQualia", "node_id": "MDQ6VXNlcjI1NzczNDc2", "organizations_url": "https://api.github.com/users/ArtificialQualia/orgs", "received_events_url": "https://api.github.com/users/ArtificialQualia/received_events", "repos_url": "https://api.github.com/users/ArtificialQualia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArtificialQualia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArtificialQualia/subscriptions", "type": "User", "url": "https://api.github.com/users/ArtificialQualia" }
[ { "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, ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
11
2019-03-15T22:14:51Z
2019-04-02T00:55:10Z
2019-03-30T23:45:26Z
CONTRIBUTOR
null
- [x] closes #25704 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry There was an issue with `groupby` when you used `groupby` on a `Series` with a list of labels that was equal to the length of the entire `Series`. `core/groupby/grouper.py:_get_grouper` was not properly handling the case where the list of labels provided were all in the `Series` index names. The `DataFrame` case was being handled, but `Series` was previously missed in this case.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25743/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25743/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25743.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25743", "merged_at": "2019-03-30T23:45:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25743.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25743" }
https://api.github.com/repos/pandas-dev/pandas/issues/25744
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25744/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25744/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25744/events
https://github.com/pandas-dev/pandas/issues/25744
421,764,489
MDU6SXNzdWU0MjE3NjQ0ODk=
25,744
Series.update fails with categorical types
{ "avatar_url": "https://avatars.githubusercontent.com/u/4087850?v=4", "events_url": "https://api.github.com/users/AlexRiina/events{/privacy}", "followers_url": "https://api.github.com/users/AlexRiina/followers", "following_url": "https://api.github.com/users/AlexRiina/following{/other_user}", "gists_url": "https://api.github.com/users/AlexRiina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/AlexRiina", "id": 4087850, "login": "AlexRiina", "node_id": "MDQ6VXNlcjQwODc4NTA=", "organizations_url": "https://api.github.com/users/AlexRiina/orgs", "received_events_url": "https://api.github.com/users/AlexRiina/received_events", "repos_url": "https://api.github.com/users/AlexRiina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/AlexRiina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/AlexRiina/subscriptions", "type": "User", "url": "https://api.github.com/users/AlexRiina" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "e11d21", "de...
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/34067903?v=4", "events_url": "https://api.github.com/users/erfannariman/events{/privacy}", "followers_url": "https://api.github.com/users/erfannariman/followers", "following_url": "https://api.github.com/users/erfannariman/following{/other_user}", "gists_url": "https://api.github.com/users/erfannariman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/erfannariman", "id": 34067903, "login": "erfannariman", "node_id": "MDQ6VXNlcjM0MDY3OTAz", "organizations_url": "https://api.github.com/users/erfannariman/orgs", "received_events_url": "https://api.github.com/users/erfannariman/received_events", "repos_url": "https://api.github.com/users/erfannariman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/erfannariman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/erfannariman/subscriptions", "type": "User", "url": "https://api.github.com/users/erfannariman" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/34067903?v=4", "events_url": "https://api.github.com/users/erfannariman/events{/privacy}", "followers_url": "https://api.github.com/users/erfannariman/followers", "following_url": "https://api.github.com/users/erfannariman/following{/other_use...
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
9
2019-03-16T03:26:02Z
2021-01-03T17:10:41Z
2021-01-03T17:10:41Z
NONE
null
```python cats = pandas.api.types.CategoricalDtype(['a', 'b', 'c', 'd']) # cats = None s1 = pandas.Series(['a', 'b', 'c'], index=[1, 2, 3], dtype=cats) s2 = pandas.Series(['b', 'a'], index=[1, 2], dtype=cats) s1.update(s2) ``` With the dtype=None, the `s1` series is updated to be `['b', 'a', 'c']` but with the `dtype=cats`, the update fails with error "ValueError: NumPy boolean array indexing assignment cannot assign 3 input values to the 2 output values where the mask is true" <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-36-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 3.3.2 pip: 18.0 setuptools: 40.5.0 Cython: 0.27.3 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.6.6 patsy: 0.5.1 dateutil: 2.7.2 pytz: 2018.4 blosc: None bottleneck: 1.2.1 tables: None numexpr: 2.6.4 feather: None matplotlib: 3.0.1 openpyxl: 2.4.10 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml.etree: 4.1.1 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25744/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25744/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25745
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25745/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25745/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25745/events
https://github.com/pandas-dev/pandas/pull/25745
421,836,613
MDExOlB1bGxSZXF1ZXN0MjYxNzkwMTY3
25,745
BUG: Display precision doesn't affect complex float numbers #25514
{ "avatar_url": "https://avatars.githubusercontent.com/u/1752659?v=4", "events_url": "https://api.github.com/users/sakarpanta/events{/privacy}", "followers_url": "https://api.github.com/users/sakarpanta/followers", "following_url": "https://api.github.com/users/sakarpanta/following{/other_user}", "gists_url": "https://api.github.com/users/sakarpanta/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sakarpanta", "id": 1752659, "login": "sakarpanta", "node_id": "MDQ6VXNlcjE3NTI2NTk=", "organizations_url": "https://api.github.com/users/sakarpanta/orgs", "received_events_url": "https://api.github.com/users/sakarpanta/received_events", "repos_url": "https://api.github.com/users/sakarpanta/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sakarpanta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sakarpanta/subscriptions", "type": "User", "url": "https://api.github.com/users/sakarpanta" }
[ { "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": "006b7...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-16T18:10:39Z
2019-04-12T17:08:36Z
2019-04-12T17:08:31Z
CONTRIBUTOR
null
- [x] closes #25514 - [x] tests added / passed - [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/25745/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25745/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25745.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25745", "merged_at": "2019-04-12T17:08:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25745.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25745" }
https://api.github.com/repos/pandas-dev/pandas/issues/25746
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25746/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25746/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25746/events
https://github.com/pandas-dev/pandas/pull/25746
421,845,789
MDExOlB1bGxSZXF1ZXN0MjYxNzk2MTM2
25,746
BUG: Fix localize_pydatetime using meta datetimes as Timestamp (#25734)
{ "avatar_url": "https://avatars.githubusercontent.com/u/25773476?v=4", "events_url": "https://api.github.com/users/ArtificialQualia/events{/privacy}", "followers_url": "https://api.github.com/users/ArtificialQualia/followers", "following_url": "https://api.github.com/users/ArtificialQualia/following{/other_user}", "gists_url": "https://api.github.com/users/ArtificialQualia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ArtificialQualia", "id": 25773476, "login": "ArtificialQualia", "node_id": "MDQ6VXNlcjI1NzczNDc2", "organizations_url": "https://api.github.com/users/ArtificialQualia/orgs", "received_events_url": "https://api.github.com/users/ArtificialQualia/received_events", "repos_url": "https://api.github.com/users/ArtificialQualia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ArtificialQualia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ArtificialQualia/subscriptions", "type": "User", "url": "https://api.github.com/users/ArtificialQualia" }
[ { "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": ...
closed
false
null
[]
null
19
2019-03-16T19:51:58Z
2019-04-05T17:31:39Z
2019-04-05T17:31:30Z
CONTRIBUTOR
null
- [x] closes #25734 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Proposed fix for #25734 The issue was due to localize_pydatetime assuming anything that was `not PyDateTime_CheckExact` must be a pandas `Timestamp`. However, in the rare case a `datetime` was created with a custom metaclass, that `datetime` would fail `PyDateTime_CheckExact`, but obviously was not a `Timestamp`. Therefore, I made the `not PyDateTime_CheckExact` check more explicitly look for a `Timestamp`. As the `Timestamp` class could not be imported for a `isinstance` check due to a circular import, I took the route that many of the other `is_*` style checks took of adding a `_typ` property to `Timestamp` and inspecting that to determine identity.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25746/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25746/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25746.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25746", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25746.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25746" }
https://api.github.com/repos/pandas-dev/pandas/issues/25747
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25747/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25747/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25747/events
https://github.com/pandas-dev/pandas/issues/25747
421,856,561
MDU6SXNzdWU0MjE4NTY1NjE=
25,747
Problem with pandas loc, which can't find date value in index (first row)
{ "avatar_url": "https://avatars.githubusercontent.com/u/4385013?v=4", "events_url": "https://api.github.com/users/rvic/events{/privacy}", "followers_url": "https://api.github.com/users/rvic/followers", "following_url": "https://api.github.com/users/rvic/following{/other_user}", "gists_url": "https://api.github.com/users/rvic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rvic", "id": 4385013, "login": "rvic", "node_id": "MDQ6VXNlcjQzODUwMTM=", "organizations_url": "https://api.github.com/users/rvic/orgs", "received_events_url": "https://api.github.com/users/rvic/received_events", "repos_url": "https://api.github.com/users/rvic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rvic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rvic/subscriptions", "type": "User", "url": "https://api.github.com/users/rvic" }
[]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2019-03-16T21:55:30Z
2019-03-16T22:24:30Z
2019-03-16T22:24:22Z
NONE
null
#### Code Sample, a copy-pastable example if possible I have next CSV sample file: ``` time,value 2018-09-17,0.0002897 2018-09-16,0.0002955 2018-09-15,0.0002862 2018-09-14,0.0003054 2018-09-13,0.000312 2018-09-12,0.0003467 2018-09-11,0.0003433 2018-09-10,0.0003287 2018-09-09,0.0003355 2018-09-08,0.0003288 ``` ```python >>> import pandas as pd >>> s1 = pd.read_csv("series1.csv") >>> s1['time'] = pd.to_datetime(s1['time']) >>> s1.set_index('time', inplace=True) >>> s1 value time 2018-09-17 0.000290 2018-09-16 0.000296 2018-09-15 0.000286 2018-09-14 0.000305 2018-09-13 0.000312 2018-09-12 0.000347 2018-09-11 0.000343 2018-09-10 0.000329 2018-09-09 0.000336 2018-09-08 0.000329 >>> s1.loc['2018-09-16'] value time 2018-09-16 0.000296 >>> s1.loc['2018-09-17'] Traceback (most recent call last): File "C:\Python36\lib\site-packages\pandas\core\indexing.py", line 1506, in _has_valid_type error() File "C:\Python36\lib\site-packages\pandas\core\indexing.py", line 1501, in error axis=self.obj._get_axis_name(axis))) KeyError: 'the label [2018-09-17] is not in the [index]' ``` #### Problem description Above is sample code session which shows failure of loc to locate first row in index, which it obviously should do without problem as it finds second row (see in code session) #### Expected Output #### Output of ``pd.show_versions()`` <details> Output of pd.show_versions is too long, i can't grab it whole content. Version of pandas is 0.22.0, version of python is 3.6.7 </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/25747/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25747/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25748
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25748/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25748/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25748/events
https://github.com/pandas-dev/pandas/pull/25748
421,864,456
MDExOlB1bGxSZXF1ZXN0MjYxODA3NjU0
25,748
TST: indexing/test_floats.py::TestFloatIndexers::test_scalar_non_numeric
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "0b02e1", "d...
closed
false
null
[]
null
5
2019-03-16T23:42:54Z
2019-03-27T08:28:11Z
2019-03-27T08:28:11Z
MEMBER
null
precursor to #25750 This test has some commented out code with a pytest.raises not used as a context manager. The goal here is primarily to remove the commented out code. some refactoring but not enough to allow full parametrization.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25748/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25748/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25748.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25748", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25748.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25748" }
https://api.github.com/repos/pandas-dev/pandas/issues/25749
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25749/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25749/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25749/events
https://github.com/pandas-dev/pandas/issues/25749
421,878,636
MDU6SXNzdWU0MjE4Nzg2MzY=
25,749
Setting to multi-index np array break the data
{ "avatar_url": "https://avatars.githubusercontent.com/u/47309306?v=4", "events_url": "https://api.github.com/users/dddping/events{/privacy}", "followers_url": "https://api.github.com/users/dddping/followers", "following_url": "https://api.github.com/users/dddping/following{/other_user}", "gists_url": "https://api.github.com/users/dddping/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dddping", "id": 47309306, "login": "dddping", "node_id": "MDQ6VXNlcjQ3MzA5MzA2", "organizations_url": "https://api.github.com/users/dddping/orgs", "received_events_url": "https://api.github.com/users/dddping/received_events", "repos_url": "https://api.github.com/users/dddping/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dddping/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dddping/subscriptions", "type": "User", "url": "https://api.github.com/users/dddping" }
[ { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
null
1
2019-03-17T03:46:06Z
2020-09-22T04:09:14Z
2020-09-22T04:09:14Z
NONE
null
#### To re-produce ```python # create single/multi index DataFrame df_s = pd.DataFrame(np.arange(12).reshape(3, 4),columns=list('ABCD'),index=['bar', 'baz', 'foo']) df_m = pd.DataFrame(np.arange(24).reshape(6, 4),columns=list('ABCD'),index=[ np.array(['bar', 'baz', 'foo','bar', 'baz', 'foo']),np.array(['one','one','one','two','two','two'])]) idx_s=df_s.index.to_numpy() # change label to other value idx_s[0]='qux' # normal assert df_s.loc['qux','A']==0 assert df_s.index.to_numpy()[0]=='qux' idx_m=df_m.index.to_numpy() # change label to other value idx_m[0]=('qux','one') # it get change from to_numpy return value assert df_m.index.to_numpy()[0]==('qux','one') # however indexing for ('qux','one') raise key error assert df_m.loc('qux','one'),'A']==0 <-key error ``` #### Problem description It is already mention from https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.to_numpy.html **For NumPy dtypes, this will be a reference to the actual data stored in this Series or Index (assuming copy=False). Modifying the result in place will modify the data stored in the Series or Index (not that we recommend doing that).** However it is really confusing that the label is in index.to_numpy() but it can't access using loc. **Note**: I am new to Pandas. I start reading Getting started and User Guide from last week. It is a very good resource for newcomer. For the above issue, I don't have any suggestion, just feeling strange... #### 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 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: 4.1.0 pip: 10.0.1 setuptools: 39.0.1 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.3 openpyxl: None xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25749/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25749/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25750
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25750/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25750/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25750/events
https://github.com/pandas-dev/pandas/pull/25750
421,907,719
MDExOlB1bGxSZXF1ZXN0MjYxODMzNjUy
25,750
[WIP] STY: activate pytest.raises context manager code check
{ "avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4", "events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}", "followers_url": "https://api.github.com/users/simonjayhawkins/followers", "following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}", "gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonjayhawkins", "id": 13159005, "login": "simonjayhawkins", "node_id": "MDQ6VXNlcjEzMTU5MDA1", "organizations_url": "https://api.github.com/users/simonjayhawkins/orgs", "received_events_url": "https://api.github.com/users/simonjayhawkins/received_events", "repos_url": "https://api.github.com/users/simonjayhawkins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions", "type": "User", "url": "https://api.github.com/users/simonjayhawkins" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "eb6420", "d...
closed
false
null
[]
null
4
2019-03-17T10:46:44Z
2019-03-26T00:23:05Z
2019-03-26T00:23:05Z
MEMBER
null
xref #24332 - [x] pandas/tests/arrays/sparse/test_libsparse.py - [x] pandas/tests/computation/test_eval.py - [x] pandas/tests/frame/test_nonunique_indexes.py - [x] pandas/tests/indexes/interval/test_interval_new.py - [x] pandas/tests/indexing/multiindex/test_partial.py - [ ] pandas/tests/indexing/test_floats.py: seperate PR #25748 - [ ] pandas/tests/io/test_pytables.py: tbc once #25004 is merged - [x] pandas/tests/series/test_constructors.py
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25750/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25750/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25750.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25750", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25750.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25750" }
https://api.github.com/repos/pandas-dev/pandas/issues/25751
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25751/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25751/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25751/events
https://github.com/pandas-dev/pandas/pull/25751
421,922,804
MDExOlB1bGxSZXF1ZXN0MjYxODQyODYy
25,751
DOC: Fix function name.
{ "avatar_url": "https://avatars.githubusercontent.com/u/33132?v=4", "events_url": "https://api.github.com/users/crayxt/events{/privacy}", "followers_url": "https://api.github.com/users/crayxt/followers", "following_url": "https://api.github.com/users/crayxt/following{/other_user}", "gists_url": "https://api.github.com/users/crayxt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/crayxt", "id": 33132, "login": "crayxt", "node_id": "MDQ6VXNlcjMzMTMy", "organizations_url": "https://api.github.com/users/crayxt/orgs", "received_events_url": "https://api.github.com/users/crayxt/received_events", "repos_url": "https://api.github.com/users/crayxt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/crayxt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/crayxt/subscriptions", "type": "User", "url": "https://api.github.com/users/crayxt" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-17T13:32:23Z
2019-03-18T23:59:54Z
2019-03-18T23:59:47Z
CONTRIBUTOR
null
Simple error that discovered during reading.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25751/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25751/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25751.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25751", "merged_at": "2019-03-18T23:59:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25751.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25751" }
https://api.github.com/repos/pandas-dev/pandas/issues/25752
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25752/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25752/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25752/events
https://github.com/pandas-dev/pandas/pull/25752
421,937,228
MDExOlB1bGxSZXF1ZXN0MjYxODUwNzU1
25,752
Restore CI after PY2 drop
{ "avatar_url": "https://avatars.githubusercontent.com/u/33685575?v=4", "events_url": "https://api.github.com/users/h-vetinari/events{/privacy}", "followers_url": "https://api.github.com/users/h-vetinari/followers", "following_url": "https://api.github.com/users/h-vetinari/following{/other_user}", "gists_url": "https://api.github.com/users/h-vetinari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/h-vetinari", "id": 33685575, "login": "h-vetinari", "node_id": "MDQ6VXNlcjMzNjg1NTc1", "organizations_url": "https://api.github.com/users/h-vetinari/orgs", "received_events_url": "https://api.github.com/users/h-vetinari/received_events", "repos_url": "https://api.github.com/users/h-vetinari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/h-vetinari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-vetinari/subscriptions", "type": "User", "url": "https://api.github.com/users/h-vetinari" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
28
2019-03-17T15:31:22Z
2019-03-25T11:54:51Z
2019-03-24T22:41:26Z
CONTRIBUTOR
null
#24942 wanted to update the PY2-CI to newer python versions, but @jreback ultimately wanted to split this off. This takes the open changes from #24942. Quoting from the OP there: > I kept most of the CI jobs that used to be 2.7 at the lower end of the various supported versions, with 2x 2.7->3.5, 1x 2.7->3.6 and only one real upgrade from 2.7->3.7 (first CI job for 3.7 & windows).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25752/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25752/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25752.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25752", "merged_at": "2019-03-24T22:41:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25752.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25752" }
https://api.github.com/repos/pandas-dev/pandas/issues/25753
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25753/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25753/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25753/events
https://github.com/pandas-dev/pandas/issues/25753
421,953,971
MDU6SXNzdWU0MjE5NTM5NzE=
25,753
ERR: Raise a better message when mixing positional and label indexing in loc/iloc
{ "avatar_url": "https://avatars.githubusercontent.com/u/2988412?v=4", "events_url": "https://api.github.com/users/LucaPaterlini/events{/privacy}", "followers_url": "https://api.github.com/users/LucaPaterlini/followers", "following_url": "https://api.github.com/users/LucaPaterlini/following{/other_user}", "gists_url": "https://api.github.com/users/LucaPaterlini/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LucaPaterlini", "id": 2988412, "login": "LucaPaterlini", "node_id": "MDQ6VXNlcjI5ODg0MTI=", "organizations_url": "https://api.github.com/users/LucaPaterlini/orgs", "received_events_url": "https://api.github.com/users/LucaPaterlini/received_events", "repos_url": "https://api.github.com/users/LucaPaterlini/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LucaPaterlini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LucaPaterlini/subscriptions", "type": "User", "url": "https://api.github.com/users/LucaPaterlini" }
[ { "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": "ff...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-17T18:05:10Z
2019-03-26T00:28:43Z
2019-03-26T00:28:43Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import numpy as np data = DataFrame(np.arange(16).reshape((4, 4)), index=['Ohio', 'Colorado', 'Utah', 'New York'], columns=['one', 'two', 'three', 'four']) data[data < 5] = 0 print(data.iloc[['Colorado', 'Utah'], [3, 0, 1]]) # .ix is deprecated. Please use # .loc for label based indexing or # .iloc for positional indexing print(data.iloc[['Colorado', 'Utah'], [3, 0, 1]]) #TypeError: cannot perform reduce with flexible type print(data.loc[['Colorado', 'Utah'], [3, 0, 1]]) #KeyError: "None of [Int64Index([3, 0, 1], dtype='int64')] are in the [columns]" ``` #### Problem description I followed the suggesion to move the ix to iloc and this is what I have got I have used python 3.7.2 on an elemntary os 18.04
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25753/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25753/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25754
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25754/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25754/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25754/events
https://github.com/pandas-dev/pandas/pull/25754
421,958,709
MDExOlB1bGxSZXF1ZXN0MjYxODYzNzc5
25,754
PERF: cythonizing _concat_date_cols; conversion to float without exceptions in _does_string_look_like_datetime
{ "avatar_url": "https://avatars.githubusercontent.com/u/45976948?v=4", "events_url": "https://api.github.com/users/anmyachev/events{/privacy}", "followers_url": "https://api.github.com/users/anmyachev/followers", "following_url": "https://api.github.com/users/anmyachev/following{/other_user}", "gists_url": "https://api.github.com/users/anmyachev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/anmyachev", "id": 45976948, "login": "anmyachev", "node_id": "MDQ6VXNlcjQ1OTc2OTQ4", "organizations_url": "https://api.github.com/users/anmyachev/orgs", "received_events_url": "https://api.github.com/users/anmyachev/received_events", "repos_url": "https://api.github.com/users/anmyachev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/anmyachev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anmyachev/subscriptions", "type": "User", "url": "https://api.github.com/users/anmyachev" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "d7e102", "default": false, "description": "np.nan, p...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
54
2019-03-17T18:49:47Z
2019-05-12T20:54:49Z
2019-05-12T20:54:25Z
CONTRIBUTOR
null
- [x] closes N/A - [x] tests added / passed - [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/25754/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25754/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25754.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25754", "merged_at": "2019-05-12T20:54:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25754.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25754" }
https://api.github.com/repos/pandas-dev/pandas/issues/25755
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25755/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25755/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25755/events
https://github.com/pandas-dev/pandas/pull/25755
421,963,823
MDExOlB1bGxSZXF1ZXN0MjYxODY3MDEy
25,755
remove unnecessary check_output copy/pasted code
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-17T19:39:47Z
2019-03-18T15:02:00Z
2019-03-18T12:02:36Z
MEMBER
null
It isn't clear to me why this is needed. Maybe the CI will fail, in which case I'll just add a comment in the code explaining why it is needed.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25755/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25755/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25755.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25755", "merged_at": "2019-03-18T12:02:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25755.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25755" }
https://api.github.com/repos/pandas-dev/pandas/issues/25756
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25756/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25756/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25756/events
https://github.com/pandas-dev/pandas/issues/25756
421,967,304
MDU6SXNzdWU0MjE5NjczMDQ=
25,756
Extremely Slow `Block.setitem()` when `value` is a builtin python type.
{ "avatar_url": "https://avatars.githubusercontent.com/u/23020003?v=4", "events_url": "https://api.github.com/users/kykosic/events{/privacy}", "followers_url": "https://api.github.com/users/kykosic/followers", "following_url": "https://api.github.com/users/kykosic/following{/other_user}", "gists_url": "https://api.github.com/users/kykosic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kykosic", "id": 23020003, "login": "kykosic", "node_id": "MDQ6VXNlcjIzMDIwMDAz", "organizations_url": "https://api.github.com/users/kykosic/orgs", "received_events_url": "https://api.github.com/users/kykosic/received_events", "repos_url": "https://api.github.com/users/kykosic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kykosic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kykosic/subscriptions", "type": "User", "url": "https://api.github.com/users/kykosic" }
[ { "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": "0e...
open
false
null
[]
null
5
2019-03-17T20:13:49Z
2021-06-27T19:55:18Z
null
CONTRIBUTOR
null
#### Code Sample This code example is simply calling repeated `setitem` via a `LocIndexer` on a reasonably sized DataFrame of all bools. The key is that it takes exponentially longer to call this when you're setting a python `bool` type value versus a `np.array[bool]` value. ```python from datetime import datetime import pandas as pd import numpy as np # Create dataframe of 500 columns, 1 year of dates, all False values df = pd.DataFrame( False, columns=np.arange(500).astype(str), index=pd.date_range('2010-01-01', '2011-01-01') ) def test(true_value): """ Test time for assigning a slice `True` and `np.array(True)` """ tmp_df = df.copy() start = datetime(2010, 5, 1) end = datetime(2010, 9, 1) tmp_df.loc[start:end, :] = true_value print("True") %timeit test(True) print("\nnp.array(True)") %timeit test(np.array(True)) ``` ``` Output: True 3.4 ms ± 39.2 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) np.array(True) 512 µs ± 4.91 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) ``` #### Problem description A code profiling reveals that almost all the computation time in the longer run is due to `ensure_object` being called in `cast.py:78` from a `Block.setitem`. In the above example, a bool `True` is passed to the `blocks.py:Block.setitem(...)` method via `LocIndexer`. Since a builtin bool has no `dtype` attribute, the dtype is set to `infer`. This causes the `cast.py:maybe_downcast_to_dtype(...)` to be called with `dtype == 'infer'`, and if the dataset is large the `ensure_object(...)` method takes a _long_ time to run. Wrapping the value in a numpy array `np.array(True)` exponentially reduces the computation since it then has a `dtype`. This behavior did not exist in older versions of pandas (pre-20ish). Could we do some pre-defined type checking in `Block.setitem(...)` to infer builtin python dtypes instead of requiring `dtype` attributed objects? I would be happy to code a fix for this, but I am unsure of the reasoning behind only supporting objects with a `dtype` attribute as a value. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Darwin OS-release: 18.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.0.dev0+266.g707c7201a pytest: None pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25756/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25756/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25757
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25757/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25757/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25757/events
https://github.com/pandas-dev/pandas/pull/25757
421,985,113
MDExOlB1bGxSZXF1ZXN0MjYxODgwMTgz
25,757
Move locale code out of tm, into _config
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
7
2019-03-17T23:02:37Z
2019-03-20T01:17:41Z
2019-03-20T01:06:17Z
MEMBER
null
As discussed last week, one of ugliest runtime imports in `tslibs` is of `tm` for `tm.set_locale`. This moves `set_locale` and a couple of other locale-related functions out of `tm`. As discussed in #25162, #25203, #25613, this moves the affected functions to a new directory `pandas/_config`, intended to be strictly "upstream" from the rest of pandas (potentially even made actually-upstream as suggested [here](https://github.com/pandas-dev/pandas/pull/25176#issuecomment-461209852)). Following this and #25613, a bunch of other cleanup/simplification becomes feasible.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25757/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25757/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25757.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25757", "merged_at": "2019-03-20T01:06:17Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25757.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25757" }
https://api.github.com/repos/pandas-dev/pandas/issues/25758
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25758/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25758/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25758/events
https://github.com/pandas-dev/pandas/issues/25758
421,988,696
MDU6SXNzdWU0MjE5ODg2OTY=
25,758
groupby with daily frequency fails with AmbiguousTimeError on clock change day in Cuba
{ "avatar_url": "https://avatars.githubusercontent.com/u/7794440?v=4", "events_url": "https://api.github.com/users/pierremoulinier/events{/privacy}", "followers_url": "https://api.github.com/users/pierremoulinier/followers", "following_url": "https://api.github.com/users/pierremoulinier/following{/other_user}", "gists_url": "https://api.github.com/users/pierremoulinier/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pierremoulinier", "id": 7794440, "login": "pierremoulinier", "node_id": "MDQ6VXNlcjc3OTQ0NDA=", "organizations_url": "https://api.github.com/users/pierremoulinier/orgs", "received_events_url": "https://api.github.com/users/pierremoulinier/received_events", "repos_url": "https://api.github.com/users/pierremoulinier/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pierremoulinier/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pierremoulinier/subscriptions", "type": "User", "url": "https://api.github.com/users/pierremoulinier" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", ...
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
2019-03-17T23:41:52Z
2020-04-03T16:18:28Z
2020-04-03T16:18:28Z
NONE
null
#### Code Sample ```python import pandas as pd from datetime import datetime start = datetime(2018, 11, 3, 12) end = datetime(2018, 11, 5, 12) index = pd.date_range(start, end, freq="1H") index = index.tz_localize('UTC').tz_convert('America/Havana') data = list(range(len(index))) dataframe = pd.DataFrame(data, index=index) groups = dataframe.groupby(pd.Grouper(freq='1D')) ``` #### Problem description On a long clock-change day in Cuba, e.g 2018-11-04, midnight local time is an ambiguous timestamp. pd.Grouper does not handle this as I expect. More precisely the call to `groupby` in the code above raises an `AmbiguousTimeError`. This issue is of a similar nature to https://github.com/pandas-dev/pandas/issues/23742 but it seems #23742 was fixed in 0.24 whereas this was not. #### Expected Output The call to `groupby` should return three groups (one for each day, 3rd, 4th, and 5th of november). The group for the 4th of november should be labelled as '2018-11-04 00:00:00-04:00' (that is the first midnight, before the clock change) and it should contain the 25 hourly data points for this day. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.9.125-linuxkit machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 pytest: 3.3.2 pip: None setuptools: 40.6.3 Cython: 0.29.6 numpy: 1.15.4 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.7.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25758/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25758/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25759
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25759/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25759/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25759/events
https://github.com/pandas-dev/pandas/pull/25759
421,999,239
MDExOlB1bGxSZXF1ZXN0MjYxODg5MzAw
25,759
BUG: Cleaner exception when `.iloc` called with non-integer list
{ "avatar_url": "https://avatars.githubusercontent.com/u/23020003?v=4", "events_url": "https://api.github.com/users/kykosic/events{/privacy}", "followers_url": "https://api.github.com/users/kykosic/followers", "following_url": "https://api.github.com/users/kykosic/following{/other_user}", "gists_url": "https://api.github.com/users/kykosic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kykosic", "id": 23020003, "login": "kykosic", "node_id": "MDQ6VXNlcjIzMDIwMDAz", "organizations_url": "https://api.github.com/users/kykosic/orgs", "received_events_url": "https://api.github.com/users/kykosic/received_events", "repos_url": "https://api.github.com/users/kykosic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kykosic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kykosic/subscriptions", "type": "User", "url": "https://api.github.com/users/kykosic" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-18T01:10:07Z
2019-03-26T00:28:47Z
2019-03-26T00:28:43Z
CONTRIBUTOR
null
- [x] closes #25753 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Issue #25753 was raised requesting more verbose error messages when calling `loc` and `iloc` with mixed dtype arguments. In this pull request, I've added a new error message when calling `iloc` with a non-numeric dtype list-like object. This fixes numpy ultimately raising an ambiguous exception when, for example, calling `.iloc` with a list of string column names: ``` >>> print(data.iloc[['Colorado', 'Utah'], [3, 0, 1]]) Old: TypeError: cannot perform reduce with flexible type New: IndexError: .iloc requires integer indexers, got ['Colorado' 'Utah'] ``` However, the current exception when calling `.loc` with integer column names when the column names are actually strings I feel is already accurate: ``` >>> print(data.loc[['Colorado', 'Utah'], [3, 0, 1]]) KeyError: "None of [Int64Index([3, 0, 1], dtype='int64')] are in the [columns]" ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25759/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25759/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25759.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25759", "merged_at": "2019-03-26T00:28:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25759.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25759" }
https://api.github.com/repos/pandas-dev/pandas/issues/25760
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25760/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25760/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25760/events
https://github.com/pandas-dev/pandas/issues/25760
422,003,358
MDU6SXNzdWU0MjIwMDMzNTg=
25,760
RecursionError when aligning DataFrames based on MultiIndex with different order of names
{ "avatar_url": "https://avatars.githubusercontent.com/u/1273381?v=4", "events_url": "https://api.github.com/users/abirkmanis/events{/privacy}", "followers_url": "https://api.github.com/users/abirkmanis/followers", "following_url": "https://api.github.com/users/abirkmanis/following{/other_user}", "gists_url": "https://api.github.com/users/abirkmanis/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abirkmanis", "id": 1273381, "login": "abirkmanis", "node_id": "MDQ6VXNlcjEyNzMzODE=", "organizations_url": "https://api.github.com/users/abirkmanis/orgs", "received_events_url": "https://api.github.com/users/abirkmanis/received_events", "repos_url": "https://api.github.com/users/abirkmanis/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abirkmanis/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abirkmanis/subscriptions", "type": "User", "url": "https://api.github.com/users/abirkmanis" }
[ { "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": "207d...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
5
2019-03-18T01:40:01Z
2020-01-01T20:46:46Z
2020-01-01T20:46:46Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np x=pd.DataFrame(np.arange(4),pd.MultiIndex.from_product([[1,2],[3,4]],names=['a','b'])) y=pd.DataFrame(np.arange(4),pd.MultiIndex.from_product([[3,4],[1,2]],names=['b','a'])) print(x+y) ``` #### Problem description RecursionError in align()/join(). The ideal expected behavior is to calculate the sum. If different orders of names in MultiIndex are not supported by design, then a clear error message stating that would be preferable to RecursionError. #### Expected Output ``` 0 a b 1 3 0 4 3 2 3 3 4 6 ``` or ``` 0 b a 3 1 0 2 3 4 1 3 2 6 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Linux OS-release: 4.9.125-linuxkit machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: None pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.15.4 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: None xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: 1.3.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25760/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25760/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25761
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25761/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25761/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25761/events
https://github.com/pandas-dev/pandas/pull/25761
422,023,631
MDExOlB1bGxSZXF1ZXN0MjYxOTA2NDM5
25,761
Fix typo in docstring of DataFrame.memory_usage
{ "avatar_url": "https://avatars.githubusercontent.com/u/25732612?v=4", "events_url": "https://api.github.com/users/pjleimbigler/events{/privacy}", "followers_url": "https://api.github.com/users/pjleimbigler/followers", "following_url": "https://api.github.com/users/pjleimbigler/following{/other_user}", "gists_url": "https://api.github.com/users/pjleimbigler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pjleimbigler", "id": 25732612, "login": "pjleimbigler", "node_id": "MDQ6VXNlcjI1NzMyNjEy", "organizations_url": "https://api.github.com/users/pjleimbigler/orgs", "received_events_url": "https://api.github.com/users/pjleimbigler/received_events", "repos_url": "https://api.github.com/users/pjleimbigler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pjleimbigler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pjleimbigler/subscriptions", "type": "User", "url": "https://api.github.com/users/pjleimbigler" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-18T03:37:01Z
2019-03-18T14:16:39Z
2019-03-18T04:42:57Z
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/25761/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25761/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25761.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25761", "merged_at": "2019-03-18T04:42:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25761.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25761" }
https://api.github.com/repos/pandas-dev/pandas/issues/25762
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25762/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25762/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25762/events
https://github.com/pandas-dev/pandas/issues/25762
422,029,981
MDU6SXNzdWU0MjIwMjk5ODE=
25,762
Build Failures
{ "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": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
null
1
2019-03-18T04:15:14Z
2019-03-18T04:23:42Z
2019-03-18T04:23:42Z
MEMBER
null
CI appears to be failing after #24942. Haven't dug too deep but at least one failure is caused by a missing isort dependency on the doc check build. May be some other issues as well
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25762/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25762/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25763
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25763/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25763/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25763/events
https://github.com/pandas-dev/pandas/issues/25763
422,043,792
MDU6SXNzdWU0MjIwNDM3OTI=
25,763
values not fetching from excel sheet in read_excel
{ "avatar_url": "https://avatars.githubusercontent.com/u/20991563?v=4", "events_url": "https://api.github.com/users/Tejeshwarabm/events{/privacy}", "followers_url": "https://api.github.com/users/Tejeshwarabm/followers", "following_url": "https://api.github.com/users/Tejeshwarabm/following{/other_user}", "gists_url": "https://api.github.com/users/Tejeshwarabm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tejeshwarabm", "id": 20991563, "login": "Tejeshwarabm", "node_id": "MDQ6VXNlcjIwOTkxNTYz", "organizations_url": "https://api.github.com/users/Tejeshwarabm/orgs", "received_events_url": "https://api.github.com/users/Tejeshwarabm/received_events", "repos_url": "https://api.github.com/users/Tejeshwarabm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tejeshwarabm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tejeshwarabm/subscriptions", "type": "User", "url": "https://api.github.com/users/Tejeshwarabm" }
[ { "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" }, { "color": "207de5", "default": false, "de...
closed
false
null
[]
null
5
2019-03-18T05:31:54Z
2021-07-08T01:33:09Z
2019-03-21T03:20:26Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python data = pd.read_excel('abcd.xlsx', sheet_name='Sheet 1') print(data.head()) ``` #### Problem description Some of the columns showing NaN, even though it contains value in excel sheet. #### Expected Output a b c d 0 12 NaN NaN 523.1 1 24 NaN NaN 123.1 2 24 NaN NaN 213.1 3 45 NaN NaN 231.1 4 67 NaN NaN 222.1 #### Output of ``pd.show_versions()`` a b c d 0 12 12.24 2354 523.1 1 24 122.24 2364 523.1 2 24 132.24 7354 523.1 3 45 112.24 6354 523.1 4 67 412.24 2854 523.1 <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS commit: None python: 3.7.0.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.1 pytest: None pip: 9.0.1 setuptools: 39.1.0 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: 2.5.4 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.1.0 lxml.etree: None bs4: 4.6.3 html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: 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/25763/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25763/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25764
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25764/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25764/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25764/events
https://github.com/pandas-dev/pandas/pull/25764
422,115,579
MDExOlB1bGxSZXF1ZXN0MjYxOTc2Mzgy
25,764
25708 performance degradation when dumping large dataframe with datetime to csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/780912?v=4", "events_url": "https://api.github.com/users/hksonngan/events{/privacy}", "followers_url": "https://api.github.com/users/hksonngan/followers", "following_url": "https://api.github.com/users/hksonngan/following{/other_user}", "gists_url": "https://api.github.com/users/hksonngan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hksonngan", "id": 780912, "login": "hksonngan", "node_id": "MDQ6VXNlcjc4MDkxMg==", "organizations_url": "https://api.github.com/users/hksonngan/orgs", "received_events_url": "https://api.github.com/users/hksonngan/received_events", "repos_url": "https://api.github.com/users/hksonngan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hksonngan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hksonngan/subscriptions", "type": "User", "url": "https://api.github.com/users/hksonngan" }
[]
closed
false
null
[]
null
3
2019-03-18T09:30:59Z
2019-03-18T10:40:37Z
2019-03-18T10:03:21Z
CONTRIBUTOR
null
- [x] closes #25708 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Slicing in [line 2181](https://github.com/pandas-dev/pandas/blob/707c7201a744c48c835f719421e47480beee2184/pandas/core/internals/blocks.py#L2181) only slice of `i8values` that make a whole of `values` array is processed in `_is_dates_only` function. This change was from pull #24543 ```python values = self.values i8values = self.values.view('i8') if slicer is not None: i8values = i8values[..., slicer] from pandas.io.formats.format import _get_format_datetime64_from_values fmt = _get_format_datetime64_from_values(values, date_format) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25764/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25764/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25764.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25764", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25764.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25764" }
https://api.github.com/repos/pandas-dev/pandas/issues/25765
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25765/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25765/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25765/events
https://github.com/pandas-dev/pandas/pull/25765
422,134,810
MDExOlB1bGxSZXF1ZXN0MjYxOTkxMjIx
25,765
PERF: fixed performance degration becasue doesn't slice values array in to_native_types of DateTimeBlock
{ "avatar_url": "https://avatars.githubusercontent.com/u/780912?v=4", "events_url": "https://api.github.com/users/hksonngan/events{/privacy}", "followers_url": "https://api.github.com/users/hksonngan/followers", "following_url": "https://api.github.com/users/hksonngan/following{/other_user}", "gists_url": "https://api.github.com/users/hksonngan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hksonngan", "id": 780912, "login": "hksonngan", "node_id": "MDQ6VXNlcjc4MDkxMg==", "organizations_url": "https://api.github.com/users/hksonngan/orgs", "received_events_url": "https://api.github.com/users/hksonngan/received_events", "repos_url": "https://api.github.com/users/hksonngan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hksonngan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hksonngan/subscriptions", "type": "User", "url": "https://api.github.com/users/hksonngan" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
18
2019-03-18T10:14:44Z
2019-04-21T11:09:03Z
2019-04-19T01:06:47Z
CONTRIBUTOR
null
- [x] closes #25708 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Slicing in [line 2181](https://github.com/pandas-dev/pandas/blob/707c7201a744c48c835f719421e47480beee2184/pandas/core/internals/blocks.py#L2181) only slice of i8values that make a whole of values array is processed in _is_dates_only function. This change was from pull #24543 ```python values = self.values i8values = self.values.view('i8') if slicer is not None: i8values = i8values[..., slicer] from pandas.io.formats.format import _get_format_datetime64_from_values fmt = _get_format_datetime64_from_values(values, date_format) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25765/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25765/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25765.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25765", "merged_at": "2019-04-19T01:06:46Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25765.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25765" }
https://api.github.com/repos/pandas-dev/pandas/issues/25766
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25766/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25766/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25766/events
https://github.com/pandas-dev/pandas/issues/25766
422,198,030
MDU6SXNzdWU0MjIxOTgwMzA=
25,766
read_hdf does not close store when raise KeyError
{ "avatar_url": "https://avatars.githubusercontent.com/u/4588429?v=4", "events_url": "https://api.github.com/users/xmduhan/events{/privacy}", "followers_url": "https://api.github.com/users/xmduhan/followers", "following_url": "https://api.github.com/users/xmduhan/following{/other_user}", "gists_url": "https://api.github.com/users/xmduhan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xmduhan", "id": 4588429, "login": "xmduhan", "node_id": "MDQ6VXNlcjQ1ODg0Mjk=", "organizations_url": "https://api.github.com/users/xmduhan/orgs", "received_events_url": "https://api.github.com/users/xmduhan/received_events", "repos_url": "https://api.github.com/users/xmduhan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xmduhan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xmduhan/subscriptions", "type": "User", "url": "https://api.github.com/users/xmduhan" }
[ { "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_hdf, HDFStore", ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-18T12:44:35Z
2019-03-31T15:35:49Z
2019-03-31T15:35:49Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.DataFrame({'a': range(10), 'b': range(10)}) df.to_hdf('/tmp/1.hdf', 'k1') try: pd.read_hdf('/tmp/1.hdf', 'k2') except Exception as e: print(type(e)) print(e) df.to_hdf('/tmp/1.hdf', 'k2') ``` #### Problem description <type 'exceptions.KeyError'> 'No object named k2 in the file' The file '/tmp/1.hdf' is already opened, but in read-only mode. Please close it before reopening in append mode. #### Expected Output should not raise Exception when: df.to_hdf('/tmp/1.hdf', 'k2') #### pandas/io/pytables.py line 408 ``` python except (ValueError, TypeError): # should also catch KeyError ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-141-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: zh_CN.UTF-8 LOCALE: None.None pandas: 0.24.2 pytest: 3.2.4 pip: 19.0.1 setuptools: 39.1.0 Cython: 0.27.3 numpy: 1.14.5 scipy: 1.1.0 pyarrow: None xarray: None IPython: 5.5.0 sphinx: 1.6.5 patsy: 0.4.1 dateutil: 2.6.1 pytz: 2017.3 blosc: None bottleneck: None tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.1.0 openpyxl: 2.4.9 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml.etree: 4.1.1 bs4: 4.6.0 html5lib: 0.9999999 sqlalchemy: 1.1.15 pymysql: None psycopg2: 2.7.3.2 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25766/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25766/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25767
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25767/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25767/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25767/events
https://github.com/pandas-dev/pandas/issues/25767
422,248,956
MDU6SXNzdWU0MjIyNDg5NTY=
25,767
Different dtype for Series in empty DataFrame depending on construction.
{ "avatar_url": "https://avatars.githubusercontent.com/u/2855582?v=4", "events_url": "https://api.github.com/users/ngnpope/events{/privacy}", "followers_url": "https://api.github.com/users/ngnpope/followers", "following_url": "https://api.github.com/users/ngnpope/following{/other_user}", "gists_url": "https://api.github.com/users/ngnpope/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ngnpope", "id": 2855582, "login": "ngnpope", "node_id": "MDQ6VXNlcjI4NTU1ODI=", "organizations_url": "https://api.github.com/users/ngnpope/orgs", "received_events_url": "https://api.github.com/users/ngnpope/received_events", "repos_url": "https://api.github.com/users/ngnpope/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ngnpope/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ngnpope/subscriptions", "type": "User", "url": "https://api.github.com/users/ngnpope" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
null
4
2019-03-18T14:29:03Z
2019-03-19T07:21:07Z
2019-03-19T03:58:23Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python >>> df0 = pd.DataFrame({}, columns=['A']) >>> df1 = pd.DataFrame({'A': []}) >>> df0.columns Index(['A'], dtype='object') >>> df1.columns Index(['A'], dtype='object') >>> df0.empty True >>> df1.empty True >>> df0['A'] Series([], Name: A, dtype: object) >>> df1['A'] Series([], Name: A, dtype: float64) ``` #### Problem description The dtype of `df0['A']` and `df1['A']` differ (`object` vs `float64`) which is confusing and can lead to subtle bugs. #### Expected Output The dtype of `df0['A']` and `df1['A']` should match. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.0.final.0 python-bits: 64 OS: Linux OS-release: 4.18.9-arch1-1-ARCH machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_GB.utf8 LOCALE: en_GB.UTF-8 pandas: 0.23.4 pytest: None pip: None setuptools: 40.4.3 Cython: 0.28.5 numpy: 1.15.1 scipy: 1.1.0 pyarrow: None xarray: None IPython: 6.5.0 sphinx: 1.8.0 patsy: None dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 2.2.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: 1.2.11 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25767/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25767/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25768
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25768/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25768/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25768/events
https://github.com/pandas-dev/pandas/pull/25768
422,264,942
MDExOlB1bGxSZXF1ZXN0MjYyMDkyNjEx
25,768
[BUG] Construction of Interval restricted to numeric/ Timestamp/ Timedelta (#23013)
{ "avatar_url": "https://avatars.githubusercontent.com/u/14367887?v=4", "events_url": "https://api.github.com/users/makbigc/events{/privacy}", "followers_url": "https://api.github.com/users/makbigc/followers", "following_url": "https://api.github.com/users/makbigc/following{/other_user}", "gists_url": "https://api.github.com/users/makbigc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/makbigc", "id": 14367887, "login": "makbigc", "node_id": "MDQ6VXNlcjE0MzY3ODg3", "organizations_url": "https://api.github.com/users/makbigc/orgs", "received_events_url": "https://api.github.com/users/makbigc/received_events", "repos_url": "https://api.github.com/users/makbigc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/makbigc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/makbigc/subscriptions", "type": "User", "url": "https://api.github.com/users/makbigc" }
[ { "color": "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": "009...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-18T14:57:07Z
2019-03-24T08:49:52Z
2019-03-23T02:08:53Z
CONTRIBUTOR
null
- closes #23013 - 1 test replaced - 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/25768/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25768/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25768.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25768", "merged_at": "2019-03-23T02:08:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25768.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25768" }
https://api.github.com/repos/pandas-dev/pandas/issues/25769
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25769/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25769/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25769/events
https://github.com/pandas-dev/pandas/pull/25769
422,285,976
MDExOlB1bGxSZXF1ZXN0MjYyMTA5MjU2
25,769
BUG: reading windows utf8 filenames in py3.6
{ "avatar_url": "https://avatars.githubusercontent.com/u/45396231?v=4", "events_url": "https://api.github.com/users/vnlitvinov/events{/privacy}", "followers_url": "https://api.github.com/users/vnlitvinov/followers", "following_url": "https://api.github.com/users/vnlitvinov/following{/other_user}", "gists_url": "https://api.github.com/users/vnlitvinov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vnlitvinov", "id": 45396231, "login": "vnlitvinov", "node_id": "MDQ6VXNlcjQ1Mzk2MjMx", "organizations_url": "https://api.github.com/users/vnlitvinov/orgs", "received_events_url": "https://api.github.com/users/vnlitvinov/received_events", "repos_url": "https://api.github.com/users/vnlitvinov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vnlitvinov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vnlitvinov/subscriptions", "type": "User", "url": "https://api.github.com/users/vnlitvinov" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "fbca04", "default": false, "description": "Windows OS", "id": 5...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
23
2019-03-18T15:35:16Z
2019-03-28T14:30:55Z
2019-03-20T12:22:39Z
CONTRIBUTOR
null
- [x] closes #15086 properly - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Test that was added in prior fix was failing on my machine, where my locale was set to `CP-1251` (which apparently cannot handle some unicode symbols in the test even when using MBCS, as MBCS encoding is locale-dependent). This PR fixes the issue removing the workaround by switching to converting UTF8 to UTF16 and using Win32 Unicode file API (much like Python >= 3.6 does internally). P.S. This as a bonus adds possibility to use `\\?\C\long\file\name` addressing if desired to overcome 260 symbols limitation on path length.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25769/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25769/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25769.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25769", "merged_at": "2019-03-20T12:22:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25769.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25769" }
https://api.github.com/repos/pandas-dev/pandas/issues/25770
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25770/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25770/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25770/events
https://github.com/pandas-dev/pandas/pull/25770
422,486,403
MDExOlB1bGxSZXF1ZXN0MjYyMjY3Nzc3
25,770
DOC: Fix typo in docstring of DataFrame.memory_usage
{ "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
2
2019-03-19T00:04:55Z
2019-03-19T13:46:32Z
2019-03-19T09:06:12Z
MEMBER
null
Cherry picked commit from #25761 and removed trailing whitespace. @jorisvandenbossche if you don't mind taking a look
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25770/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25770/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25770.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25770", "merged_at": "2019-03-19T09:06:11Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25770.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25770" }
https://api.github.com/repos/pandas-dev/pandas/issues/25771
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25771/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25771/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25771/events
https://github.com/pandas-dev/pandas/issues/25771
422,541,763
MDU6SXNzdWU0MjI1NDE3NjM=
25,771
Remove Pycodestyle Pin
{ "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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "d93f0b", "default": false, "description": ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
0
2019-03-19T04:43:43Z
2019-03-20T01:03:21Z
2019-03-20T01:03:21Z
MEMBER
null
As a temporary workaround for recent CI issues we pinned the version of pycodestyle in #25701. A good amount of these issues were caused by type comments which did not import what was needed from typing, but due to required support of Py27 at the time those imports could not be done. With Py27 CI out, we should be able to fix this and remove the pycodestyle pin. The solution is intermixed between PRs I've already begun (#25622 and #25697) so just need to extract the required components out of them to make this a reality
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25771/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25771/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25772
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25772/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25772/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25772/events
https://github.com/pandas-dev/pandas/issues/25772
422,551,709
MDU6SXNzdWU0MjI1NTE3MDk=
25,772
can't read large stata file
{ "avatar_url": "https://avatars.githubusercontent.com/u/1075773?v=4", "events_url": "https://api.github.com/users/bdemeshev/events{/privacy}", "followers_url": "https://api.github.com/users/bdemeshev/followers", "following_url": "https://api.github.com/users/bdemeshev/following{/other_user}", "gists_url": "https://api.github.com/users/bdemeshev/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bdemeshev", "id": 1075773, "login": "bdemeshev", "node_id": "MDQ6VXNlcjEwNzU3NzM=", "organizations_url": "https://api.github.com/users/bdemeshev/orgs", "received_events_url": "https://api.github.com/users/bdemeshev/received_events", "repos_url": "https://api.github.com/users/bdemeshev/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bdemeshev/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bdemeshev/subscriptions", "type": "User", "url": "https://api.github.com/users/bdemeshev" }
[ { "color": "5319e7", "default": false, "description": "read_stata, to_stata", "id": 104865385, "name": "IO Stata", "node_id": "MDU6TGFiZWwxMDQ4NjUzODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
8
2019-03-19T05:34:31Z
2019-04-05T00:04:30Z
2019-04-05T00:04:30Z
NONE
null
I am trying to read the panel dataset of Russian individuals in stata format. The dataset can be freely obtained at the [rlms site](https://www.hse.ru/en/rlms/downloads). ```python ind_dta = pd.read_stata('USER_RLMS-HSE_IND_1994_2017_v2_eng.dta') ``` This results in memory error and that seems strange. Machine has 16gb of memory, the file is less than 4gb. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-46-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.4 pytest: 4.0.0 pip: 18.1 setuptools: 40.6.2 Cython: 0.29 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.1.1 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.7 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.1 openpyxl: 2.5.9 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.14 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25772/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25772/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25773
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25773/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25773/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25773/events
https://github.com/pandas-dev/pandas/pull/25773
422,563,766
MDExOlB1bGxSZXF1ZXN0MjYyMzI1Nzg5
25,773
TST: Check pytables<3.5.1 when skipping
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "a2bca7", "d...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
12
2019-03-19T06:26:12Z
2019-03-19T18:54:01Z
2019-03-19T18:17:35Z
MEMBER
null
`3.5.1` was made available on `conda`, causing `xfail_non_writeable` tests to fail. Note that this is just to get `master` to pass again (started failing when #25751 was merged). This new release of `pytables`, however, brings up the question of how we want to proceed with #24839, as it appears that all of our CI builds that install `pytables` will use this version now. It seems a little early to declare that `3.5.1` is our minimum version, but it definitely looks like we *could* drop this `xfail` from our tests at some point in the near future.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25773/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25773/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25773.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25773", "merged_at": "2019-03-19T18:17:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25773.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25773" }
https://api.github.com/repos/pandas-dev/pandas/issues/25774
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25774/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25774/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25774/events
https://github.com/pandas-dev/pandas/issues/25774
422,599,893
MDU6SXNzdWU0MjI1OTk4OTM=
25,774
length_of_indexer method is not support boolean array indexer.
{ "avatar_url": "https://avatars.githubusercontent.com/u/2161266?v=4", "events_url": "https://api.github.com/users/fx-kirin/events{/privacy}", "followers_url": "https://api.github.com/users/fx-kirin/followers", "following_url": "https://api.github.com/users/fx-kirin/following{/other_user}", "gists_url": "https://api.github.com/users/fx-kirin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fx-kirin", "id": 2161266, "login": "fx-kirin", "node_id": "MDQ6VXNlcjIxNjEyNjY=", "organizations_url": "https://api.github.com/users/fx-kirin/orgs", "received_events_url": "https://api.github.com/users/fx-kirin/received_events", "repos_url": "https://api.github.com/users/fx-kirin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fx-kirin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fx-kirin/subscriptions", "type": "User", "url": "https://api.github.com/users/fx-kirin" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
1
2019-03-19T08:28:11Z
2020-02-18T00:15:46Z
2020-02-18T00:15:46Z
NONE
null
#### Code Sample ```python import numpy as np import pandas as pd import random # Nothing Raises df = pd.DataFrame(dict(A=[1, 1, 1, 1, 1], B=[1., 1., 1., 1., 1.], C=[1, 1, 1, 1, 1])) df.index = [0, 0, 1, 3, 5] df.index.name = 'test' df.loc[0, 'A'] = df.loc[0, 'A'] # ValueError raises length = 20000 df = pd.DataFrame(dict(A=[1 for _ in range(length)], B=[1. for _ in range(length)], C=[1 for _ in range(length)])) index = [] for _ in range(length): index.append(random.randint(0, 2000)) df.index = index df.loc[0, 'A'] = df.loc[0, 'A'] ``` #### Problem description https://github.com/pandas-dev/pandas/blob/db6993cdd970eb13790493dba38bb637e341948b/pandas/core/indexing.py#L517 https://github.com/pandas-dev/pandas/blob/db6993cdd970eb13790493dba38bb637e341948b/pandas/core/indexing.py#L546-L562 When the `DataFrame.loc` method uses boolean array selector in the backgroud, the variable `lplane_indexer` is not the same value as the number of True value in the array but the size of DataFrame. It didn't happen in a former version. #### Expected Output No error raises. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-46-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.3 pytest: 3.7.3 pip: 18.1 setuptools: 36.5.0.post20170921 Cython: 0.28.4 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.3 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 3.0.2 openpyxl: None xlrd: 1.2.0 xlwt: None xlsxwriter: 1.1.5 lxml: None bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.10 pymysql: 0.9.3 psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25774/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25774/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25775
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25775/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25775/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25775/events
https://github.com/pandas-dev/pandas/issues/25775
422,600,447
MDU6SXNzdWU0MjI2MDA0NDc=
25,775
`sort_index` does not work with levels not aligned with index
{ "avatar_url": "https://avatars.githubusercontent.com/u/18620296?v=4", "events_url": "https://api.github.com/users/ClementWalter/events{/privacy}", "followers_url": "https://api.github.com/users/ClementWalter/followers", "following_url": "https://api.github.com/users/ClementWalter/following{/other_user}", "gists_url": "https://api.github.com/users/ClementWalter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ClementWalter", "id": 18620296, "login": "ClementWalter", "node_id": "MDQ6VXNlcjE4NjIwMjk2", "organizations_url": "https://api.github.com/users/ClementWalter/orgs", "received_events_url": "https://api.github.com/users/ClementWalter/received_events", "repos_url": "https://api.github.com/users/ClementWalter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ClementWalter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ClementWalter/subscriptions", "type": "User", "url": "https://api.github.com/users/ClementWalter" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "207de5", "default": false, "description": null, "id": 71268330,...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-19T08:29:42Z
2019-06-05T12:54:35Z
2019-06-05T12:54:35Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here import pandas as pd pd.np.random.seed(0) ( pd.DataFrame(pd.np.random.rand(10, 5), columns=['a', 'b', 'c', 'd', 'e']) .assign(b=lambda df: (df.b*10).astype(int)) .set_index(['a', 'b', 'c']) .sort_index(axis=0, level=['b', 'a']) ) Out[96]: d e a b c 0.087129 0 0.832620 0.778157 0.870012 0.639921 1 0.944669 0.521848 0.414662 0.670638 2 0.128926 0.315428 0.363711 0.359508 4 0.697631 0.060225 0.666767 0.645894 4 0.891773 0.963663 0.383442 0.791725 5 0.568045 0.925597 0.071036 0.617635 6 0.616934 0.943748 0.681820 0.264556 7 0.456150 0.568434 0.018790 0.978618 7 0.461479 0.780529 0.118274 0.548814 7 0.602763 0.544883 0.423655 ``` #### Problem description I don't understand why the a index is not sorted (see the b=7 rows). Indeed, `set_index` does not seem to take into account levels not aligned with dataframe indexes. Since index is `['a', 'b', 'c']` it can only sort with `levels=['a'], levels=['a', 'b'], levels=['a', 'b', 'c'], levels=['b'], levels=['b', 'c'], levels=['c']`. **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 ``` pd.np.random.seed(0) ( pd.DataFrame(pd.np.random.rand(10, 5), columns=['a', 'b', 'c', 'd', 'e']) .assign(b=lambda df: (df.b*10).astype(int)) .sort_values(['b', 'a']) .set_index(['a', 'b', 'c']) ) Out[104]: d e a b c 0.087129 0 0.832620 0.778157 0.870012 0.639921 1 0.944669 0.521848 0.414662 0.670638 2 0.128926 0.315428 0.363711 0.359508 4 0.697631 0.060225 0.666767 0.645894 4 0.891773 0.963663 0.383442 0.791725 5 0.568045 0.925597 0.071036 0.617635 6 0.616934 0.943748 0.681820 0.264556 7 0.456150 0.568434 0.018790 0.548814 7 0.602763 0.544883 0.423655 0.978618 7 0.461479 0.780529 0.118274 ``` #### Output of ``pd.show_versions()`` <details> ``` pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: None LOCALE: fr_FR.UTF-8 pandas: 0.23.2 pytest: 3.6.1 pip: 18.0 setuptools: 40.4.3 Cython: None numpy: 1.14.3 scipy: 1.0.1 pyarrow: None xarray: None IPython: 7.0.1 sphinx: None patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 2.2.2 openpyxl: None xlrd: 1.1.0 xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.9999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25775/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25775/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25776
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25776/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25776/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25776/events
https://github.com/pandas-dev/pandas/pull/25776
422,606,529
MDExOlB1bGxSZXF1ZXN0MjYyMzU4Njgw
25,776
fix length_of_indexer to handle boolean array indexer.
{ "avatar_url": "https://avatars.githubusercontent.com/u/2161266?v=4", "events_url": "https://api.github.com/users/fx-kirin/events{/privacy}", "followers_url": "https://api.github.com/users/fx-kirin/followers", "following_url": "https://api.github.com/users/fx-kirin/following{/other_user}", "gists_url": "https://api.github.com/users/fx-kirin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fx-kirin", "id": 2161266, "login": "fx-kirin", "node_id": "MDQ6VXNlcjIxNjEyNjY=", "organizations_url": "https://api.github.com/users/fx-kirin/orgs", "received_events_url": "https://api.github.com/users/fx-kirin/received_events", "repos_url": "https://api.github.com/users/fx-kirin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fx-kirin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fx-kirin/subscriptions", "type": "User", "url": "https://api.github.com/users/fx-kirin" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
null
2
2019-03-19T08:46:29Z
2019-10-18T01:22:58Z
2019-03-26T05:13:12Z
NONE
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry To fix the issue #25774 .
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25776/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25776/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25776.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25776", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25776.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25776" }
https://api.github.com/repos/pandas-dev/pandas/issues/25777
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25777/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25777/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25777/events
https://github.com/pandas-dev/pandas/issues/25777
422,617,154
MDU6SXNzdWU0MjI2MTcxNTQ=
25,777
Summing a sparse boolean series throws an exception `TypeError: sum() got an unexpected keyword argument 'min_count'`
{ "avatar_url": "https://avatars.githubusercontent.com/u/6782404?v=4", "events_url": "https://api.github.com/users/tsoernes/events{/privacy}", "followers_url": "https://api.github.com/users/tsoernes/followers", "following_url": "https://api.github.com/users/tsoernes/following{/other_user}", "gists_url": "https://api.github.com/users/tsoernes/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tsoernes", "id": 6782404, "login": "tsoernes", "node_id": "MDQ6VXNlcjY3ODI0MDQ=", "organizations_url": "https://api.github.com/users/tsoernes/orgs", "received_events_url": "https://api.github.com/users/tsoernes/received_events", "repos_url": "https://api.github.com/users/tsoernes/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tsoernes/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tsoernes/subscriptions", "type": "User", "url": "https://api.github.com/users/tsoernes" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "009800", "default": false, "description": "Sparse Data Type", "...
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
2019-03-19T09:12:53Z
2020-05-18T13:03:05Z
2020-05-18T13:03:05Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python In [202]: sparse_series.dtype Out[203]: Sparse[bool, False] In [208]: sparse_series.value_counts() Out[208]: False 51386 True 13 Name: C_3D Printing, dtype: int64 In [209]: sparse_series.sum() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-209-8f6162710840> in <module> ----> 1 sparse_series.sum() ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/core/generic.py in stat_func(self, axis, skipna, level, numeric_only, min_count, **kwargs) 10929 skipna=skipna, min_count=min_count) 10930 return self._reduce(f, name, axis=axis, skipna=skipna, > 10931 numeric_only=numeric_only, min_count=min_count) 10932 10933 return set_function_name(stat_func, name, cls) ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/core/series.py in _reduce(self, op, name, axis, skipna, numeric_only, filter_type, **kwds) 3613 # dispatch to ExtensionArray interface 3614 if isinstance(delegate, ExtensionArray): -> 3615 return delegate._reduce(name, skipna=skipna, **kwds) 3616 elif is_datetime64_dtype(delegate): 3617 # use DatetimeIndex implementation to handle skipna correctly ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/core/arrays/sparse.py in _reduce(self, name, skipna, **kwargs) 1439 kwargs.pop('numeric_only', None) 1440 kwargs.pop('op', None) -> 1441 return getattr(arr, name)(**kwargs) 1442 1443 def all(self, axis=None, *args, **kwargs): ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/core/arrays/sparse.py in sum(self, axis, *args, **kwargs) 1491 sum : float 1492 """ -> 1493 nv.validate_sum(args, kwargs) 1494 valid_vals = self._valid_sp_values 1495 sp_sum = valid_vals.sum() ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/compat/numpy/function.py in __call__(self, args, kwargs, fname, max_fname_arg_count, method) 54 validate_args_and_kwargs(fname, args, kwargs, 55 max_fname_arg_count, ---> 56 self.defaults) 57 else: 58 raise ValueError("invalid validation method " ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/util/_validators.py in validate_args_and_kwargs(fname, args, kwargs, max_fname_arg_count, compat_args) 216 217 kwargs.update(args_dict) --> 218 validate_kwargs(fname, kwargs, compat_args) 219 220 ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/util/_validators.py in validate_kwargs(fname, kwargs, compat_args) 154 """ 155 kwds = kwargs.copy() --> 156 _check_for_invalid_keys(fname, kwargs, compat_args) 157 _check_for_default_values(fname, kwds, compat_args) 158 ~/anaconda3/envs/idp/lib/python3.6/site-packages/pandas/util/_validators.py in _check_for_invalid_keys(fname, kwargs, compat_args) 125 raise TypeError(("{fname}() got an unexpected " 126 "keyword argument '{arg}'". --> 127 format(fname=fname, arg=bad_arg))) 128 129 TypeError: sum() got an unexpected keyword argument 'min_count' In [210]: ``` #### Problem description Summing a sparse boolean series throws an exception `TypeError: sum() got an unexpected keyword argument 'min_count'` #### Expected Output #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] In [198]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.20.15-200.fc29.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: nb_NO.UTF-8 LOCALE: nb_NO.UTF-8 pandas: 0.24.1+0.g1700680.dirty pytest: None pip: 10.0.1 setuptools: 39.0.1.post20180504 Cython: None numpy: 1.16.1 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.3.0 sphinx: None patsy: None dateutil: 2.6.0 pytz: 2018.4 blosc: None bottleneck: None tables: None numexpr: 2.6.8 feather: None matplotlib: 3.0.1 openpyxl: 2.6.1 xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25777/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25777/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25778
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25778/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25778/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25778/events
https://github.com/pandas-dev/pandas/issues/25778
422,655,935
MDU6SXNzdWU0MjI2NTU5MzU=
25,778
CI: downstream tests failing due to environment resolvement (geospatial stack)
{ "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": "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" }
8
2019-03-19T10:35:30Z
2019-12-03T13:39:55Z
2019-12-03T13:39:55Z
MEMBER
null
The geopandas downstream tests are failing because of an installation issue. See eg https://travis-ci.org/pandas-dev/pandas/jobs/508237658, giving: ``` > from fiona.ogrext import Iterator, ItemsIterator, KeysIterator E ImportError: libiconv.so.2: cannot open shared object file: No such file or directory ``` This environment is defined by this yml file: https://github.com/pandas-dev/pandas/blob/master/ci/deps/travis-36.yaml It is mixing defaults and conda-forge (with defaults as higher priority one), but given the `nomkl` it is getting blas / openblas from conda-forge. Until recently, the full geospatial stack was resolved to come from defaults (see eg https://travis-ci.org/pandas-dev/pandas/jobs/507830158#L1749), but since the last hours, it is getting fiona / gdal from conda-forge as well (but not all of the gdal dependencies, hence giving the error above). cc @ocefpaf I know this is again an example of mixing conda-forge and defaults (like the recent one we had on the geopandas CI), which is not guaranteed to work. But it is also again something that was working until recently, and a kind of common use case: getting all from defaults, except for a few things that are not available there (and therefore adding conda-forge as the second, lower priority channel)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25778/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25778/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25779
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25779/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25779/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25779/events
https://github.com/pandas-dev/pandas/issues/25779
422,676,635
MDU6SXNzdWU0MjI2NzY2MzU=
25,779
pandas.read_table fails to detect data type right and fails with to deserialized NA values
{ "avatar_url": "https://avatars.githubusercontent.com/u/1636250?v=4", "events_url": "https://api.github.com/users/mindej/events{/privacy}", "followers_url": "https://api.github.com/users/mindej/followers", "following_url": "https://api.github.com/users/mindej/following{/other_user}", "gists_url": "https://api.github.com/users/mindej/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mindej", "id": 1636250, "login": "mindej", "node_id": "MDQ6VXNlcjE2MzYyNTA=", "organizations_url": "https://api.github.com/users/mindej/orgs", "received_events_url": "https://api.github.com/users/mindej/received_events", "repos_url": "https://api.github.com/users/mindej/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mindej/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mindej/subscriptions", "type": "User", "url": "https://api.github.com/users/mindej" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
2
2019-03-19T11:19:57Z
2019-03-20T07:02:46Z
2019-03-19T13:59:16Z
NONE
null
Input file: ``` col1 col2 736372420181101 736372420190314 736718220181101 736718220190314 738542020181101 738542020190314 751412120181101 751412120190314 779315420181101 779315420190314 807519420190301 800573920190115 751412120181101 751412120190314 736718220181101 738542020181101 751412120181101 751412120190314 779315420181101 779315420190314 ``` First problem where there is no dtype defined all values are converted to float64 Example code: ``` import pandas as pd test1 = pd.read_table( 'test1.txt') test1.info() ``` Second problem when I am forcing data type to int64 it fails on NA values: ``` import pandas as pd test1 = pd.read_table( 'test1.txt', dtype={'col1': 'int64', 'col2': 'int64'}) test1.info() ``` Error msg: `ValueError: Integer column has NA values in column 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/25779/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25779/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25780
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25780/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25780/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25780/events
https://github.com/pandas-dev/pandas/pull/25780
422,683,159
MDExOlB1bGxSZXF1ZXN0MjYyNDE3NzY2
25,780
PERF: Improve performance of StataReader's processing of missing values
{ "avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4", "events_url": "https://api.github.com/users/bashtage/events{/privacy}", "followers_url": "https://api.github.com/users/bashtage/followers", "following_url": "https://api.github.com/users/bashtage/following{/other_user}", "gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bashtage", "id": 5585221, "login": "bashtage", "node_id": "MDQ6VXNlcjU1ODUyMjE=", "organizations_url": "https://api.github.com/users/bashtage/orgs", "received_events_url": "https://api.github.com/users/bashtage/received_events", "repos_url": "https://api.github.com/users/bashtage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bashtage/subscriptions", "type": "User", "url": "https://api.github.com/users/bashtage" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default"...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
11
2019-03-19T11:35:28Z
2019-03-21T13:27:38Z
2019-03-20T14:06:44Z
CONTRIBUTOR
null
Improve performance of StataReader when converting columns with missing values xref #25772 - [x] closes #N/A - [x] tests added / passed N/A, perf only - [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/25780/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25780/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25780.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25780", "merged_at": "2019-03-20T14:06:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25780.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25780" }
https://api.github.com/repos/pandas-dev/pandas/issues/25781
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25781/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25781/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25781/events
https://github.com/pandas-dev/pandas/issues/25781
422,729,521
MDU6SXNzdWU0MjI3Mjk1MjE=
25,781
Using corr with callable gives 1 on diagonals where the result should be NaN
{ "avatar_url": "https://avatars.githubusercontent.com/u/7300030?v=4", "events_url": "https://api.github.com/users/fabianrost84/events{/privacy}", "followers_url": "https://api.github.com/users/fabianrost84/followers", "following_url": "https://api.github.com/users/fabianrost84/following{/other_user}", "gists_url": "https://api.github.com/users/fabianrost84/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fabianrost84", "id": 7300030, "login": "fabianrost84", "node_id": "MDQ6VXNlcjczMDAwMzA=", "organizations_url": "https://api.github.com/users/fabianrost84/orgs", "received_events_url": "https://api.github.com/users/fabianrost84/received_events", "repos_url": "https://api.github.com/users/fabianrost84/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fabianrost84/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fabianrost84/subscriptions", "type": "User", "url": "https://api.github.com/users/fabianrost84" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "006b75", "default": false, "description": "Arithmet...
open
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" }
1
2019-03-19T13:23:34Z
2021-09-28T21:00:34Z
null
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import numpy as np import pandas as pd from scipy.stats import pearsonr df = pd.DataFrame(np.zeros((2,2))) df.corr(method=lambda x, y: pearsonr(x, y)[0]) ``` gives: ```python 0 1 0 1.0 NaN 1 NaN 1.0 ``` #### Problem description This is a follow up on #25726. In the example above the self-correlation is returned as 1.0. However, it should actually be `nan`. I would argue the diagonal elements of the correlation matrix should be calculated instead of setting them to 1 here: https://github.com/pandas-dev/pandas/blob/cb00deb94500205fcb27a33cc1d0df79a9727f8b/pandas/core/frame.py#L7025-L7026 `df.corr()` gives the output I expected: #### Expected Output ```python df.corr() ``` ```python 0 1 0 NaN NaN 1 NaN NaN ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.4.165-81-default machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.1.1 pip: 18.1 setuptools: 40.6.3 Cython: 0.29.3 numpy: 1.15.4 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: 1.8.3 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: 3.0.2 openpyxl: 2.4.0-b1 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: 4.3.0 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25781/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25781/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25782
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25782/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25782/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25782/events
https://github.com/pandas-dev/pandas/issues/25782
422,814,029
MDU6SXNzdWU0MjI4MTQwMjk=
25,782
ASV benchmarks have not run since mid-January on pandas.pydata.org/speed
{ "avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4", "events_url": "https://api.github.com/users/qwhelan/events{/privacy}", "followers_url": "https://api.github.com/users/qwhelan/followers", "following_url": "https://api.github.com/users/qwhelan/following{/other_user}", "gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qwhelan", "id": 440095, "login": "qwhelan", "node_id": "MDQ6VXNlcjQ0MDA5NQ==", "organizations_url": "https://api.github.com/users/qwhelan/orgs", "received_events_url": "https://api.github.com/users/qwhelan/received_events", "repos_url": "https://api.github.com/users/qwhelan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions", "type": "User", "url": "https://api.github.com/users/qwhelan" }
[ { "color": "ae68cc", "default": false, "description": "Performance (ASV) benchmarks", "id": 732775912, "name": "Benchmark", "node_id": "MDU6TGFiZWw3MzI3NzU5MTI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark" } ]
closed
false
null
[]
null
6
2019-03-19T15:56:03Z
2019-04-14T21:06:31Z
2019-04-14T15:34:11Z
CONTRIBUTOR
null
If you go to http://pandas.pydata.org/speed/pandas/#regressions?sort=1&dir=desc or http://pandas.pydata.org/speed/pandas/#summarylist?sort=3&dir=desc and sort by descending date, you'll see no results more recent than 1/15/19. The same goes for all other benchmark suites also hosted on the speed site.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25782/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25782/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25783
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25783/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25783/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25783/events
https://github.com/pandas-dev/pandas/issues/25783
422,826,434
MDU6SXNzdWU0MjI4MjY0MzQ=
25,783
Creating DataFrame from mixed list of lists and arrays causes sys exit
{ "avatar_url": "https://avatars.githubusercontent.com/u/48722964?v=4", "events_url": "https://api.github.com/users/mch56/events{/privacy}", "followers_url": "https://api.github.com/users/mch56/followers", "following_url": "https://api.github.com/users/mch56/following{/other_user}", "gists_url": "https://api.github.com/users/mch56/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mch56", "id": 48722964, "login": "mch56", "node_id": "MDQ6VXNlcjQ4NzIyOTY0", "organizations_url": "https://api.github.com/users/mch56/orgs", "received_events_url": "https://api.github.com/users/mch56/received_events", "repos_url": "https://api.github.com/users/mch56/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mch56/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mch56/subscriptions", "type": "User", "url": "https://api.github.com/users/mch56" }
[]
closed
false
null
[]
null
2
2019-03-19T16:18:55Z
2019-03-19T17:04:18Z
2019-03-19T17:04:17Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np data = [['A','B'],np.array([1,2])] df = pd.DataFrame(data) ``` #### Problem description The above code causes my kernel to crash with no error message. I believe the reason for this can be found in the following method: https://github.com/pandas-dev/pandas/blob/c8ba766fca0b7e91f57c64fdb1e2c2a00a643d27/pandas/core/internals/construction.py#L423 It appears this method only looks at the data type of the first entry of list and then assumes that the remainder of the list is the same type. Hence, since the second entry is a numpy array we crash the kernel. If we change the order of the entries in the data list, (ie. make an array first) we do not get an error. eg. this does not crash ```python import pandas as pd import numpy as np data2 = [np.array(['A','B']),[1,2]] df2 = pd.DataFrame(data2) ``` #### Expected Output If mixed type lists cannot be handled in a consistent manner, then an exception should be thrown rather than a crash with no logging. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.0 pytest: None pip: 18.1 setuptools: 40.6.3 Cython: None numpy: 1.15.4 scipy: 1.2.0 pyarrow: 0.9.0 xarray: None IPython: 7.2.0 sphinx: 1.8.2 patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: 0.4.0 matplotlib: 3.0.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: None xlsxwriter: 1.1.2 lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: 1.2.16 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25783/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25783/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25784
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25784/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25784/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25784/events
https://github.com/pandas-dev/pandas/pull/25784
422,840,331
MDExOlB1bGxSZXF1ZXN0MjYyNTQxNzg5
25,784
Speed up tokenizing of a row in csv and xstrtod parsing
{ "avatar_url": "https://avatars.githubusercontent.com/u/45396231?v=4", "events_url": "https://api.github.com/users/vnlitvinov/events{/privacy}", "followers_url": "https://api.github.com/users/vnlitvinov/followers", "following_url": "https://api.github.com/users/vnlitvinov/following{/other_user}", "gists_url": "https://api.github.com/users/vnlitvinov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vnlitvinov", "id": 45396231, "login": "vnlitvinov", "node_id": "MDQ6VXNlcjQ1Mzk2MjMx", "organizations_url": "https://api.github.com/users/vnlitvinov/orgs", "received_events_url": "https://api.github.com/users/vnlitvinov/received_events", "repos_url": "https://api.github.com/users/vnlitvinov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vnlitvinov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vnlitvinov/subscriptions", "type": "User", "url": "https://api.github.com/users/vnlitvinov" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default"...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
8
2019-03-19T16:46:03Z
2019-03-28T14:30:54Z
2019-03-20T14:03:55Z
CONTRIBUTOR
null
- [x] closes: N/A - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I will update the PR when CI finishes running, as I locally tested `io.parser.test_common` only.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25784/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25784/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25784.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25784", "merged_at": "2019-03-20T14:03:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25784.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25784" }
https://api.github.com/repos/pandas-dev/pandas/issues/25785
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25785/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25785/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25785/events
https://github.com/pandas-dev/pandas/issues/25785
422,847,775
MDU6SXNzdWU0MjI4NDc3NzU=
25,785
question on crosstab usage
{ "avatar_url": "https://avatars.githubusercontent.com/u/2988412?v=4", "events_url": "https://api.github.com/users/LucaPaterlini/events{/privacy}", "followers_url": "https://api.github.com/users/LucaPaterlini/followers", "following_url": "https://api.github.com/users/LucaPaterlini/following{/other_user}", "gists_url": "https://api.github.com/users/LucaPaterlini/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LucaPaterlini", "id": 2988412, "login": "LucaPaterlini", "node_id": "MDQ6VXNlcjI5ODg0MTI=", "organizations_url": "https://api.github.com/users/LucaPaterlini/orgs", "received_events_url": "https://api.github.com/users/LucaPaterlini/received_events", "repos_url": "https://api.github.com/users/LucaPaterlini/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LucaPaterlini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LucaPaterlini/subscriptions", "type": "User", "url": "https://api.github.com/users/LucaPaterlini" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2019-03-19T17:01:04Z
2019-03-19T18:35:27Z
2019-03-19T18:35:12Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd _DEF = '../pydata-book/examples' tips = pd.read_csv(_DEF+'/tips.csv') party_counts = pd.crosstab(tips.day, tips.size) print(party_counts) #unepected result i got instead, #col_0 1464 #day #Fri 19 #Sat 87 #Sun 76 #Thur 62 ``` #### Problem description as explained in the 0.17 documentation crosstab should return a frequency for each item with a different value https://pandas.pydata.org/pandas-docs/version/0.17.0/generated/pandas.crosstab.html in a more recent instead of it says that it's just a function required if you have used the values (after testing I can assume the default is just a sum of occurrences). https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.crosstab.html Question: how can I reproduce the default result provided by the old version obtaining a matrix of frequencies? tk in advance,lp
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25785/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25785/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25786
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25786/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25786/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25786/events
https://github.com/pandas-dev/pandas/pull/25786
422,904,266
MDExOlB1bGxSZXF1ZXN0MjYyNTkyNDE2
25,786
DOC: Docstring script to not require ending period for bullet points
{ "avatar_url": "https://avatars.githubusercontent.com/u/29585319?v=4", "events_url": "https://api.github.com/users/EdAbati/events{/privacy}", "followers_url": "https://api.github.com/users/EdAbati/followers", "following_url": "https://api.github.com/users/EdAbati/following{/other_user}", "gists_url": "https://api.github.com/users/EdAbati/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/EdAbati", "id": 29585319, "login": "EdAbati", "node_id": "MDQ6VXNlcjI5NTg1MzE5", "organizations_url": "https://api.github.com/users/EdAbati/orgs", "received_events_url": "https://api.github.com/users/EdAbati/received_events", "repos_url": "https://api.github.com/users/EdAbati/repos", "site_admin": false, "starred_url": "https://api.github.com/users/EdAbati/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/EdAbati/subscriptions", "type": "User", "url": "https://api.github.com/users/EdAbati" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "a2bca7", "default": false, "description": "Continuous Integratio...
closed
false
null
[]
null
13
2019-03-19T19:07:30Z
2019-10-25T16:35:36Z
2019-10-25T16:10:22Z
CONTRIBUTOR
null
- [X] closes #25461 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This PR tries to solve the issue #25461 . I thought that the validator should check that the last line of the parameter description is a part of a bullet point before raising the error PR09. In order to do that, I had to add an extra method in the Docstring class that return a parameter description line by line (in a list). This is because Docstring.parameter_desc() returns the description as 1 string. Please let me know how I can improve this or if I did not consider something.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25786/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25786/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25786.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25786", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25786.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25786" }
https://api.github.com/repos/pandas-dev/pandas/issues/25787
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25787/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25787/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25787/events
https://github.com/pandas-dev/pandas/issues/25787
422,918,628
MDU6SXNzdWU0MjI5MTg2Mjg=
25,787
AttributeError: 'BlockManager' object has no attribute 'empty'
{ "avatar_url": "https://avatars.githubusercontent.com/u/5056313?v=4", "events_url": "https://api.github.com/users/iamabigstone/events{/privacy}", "followers_url": "https://api.github.com/users/iamabigstone/followers", "following_url": "https://api.github.com/users/iamabigstone/following{/other_user}", "gists_url": "https://api.github.com/users/iamabigstone/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/iamabigstone", "id": 5056313, "login": "iamabigstone", "node_id": "MDQ6VXNlcjUwNTYzMTM=", "organizations_url": "https://api.github.com/users/iamabigstone/orgs", "received_events_url": "https://api.github.com/users/iamabigstone/received_events", "repos_url": "https://api.github.com/users/iamabigstone/repos", "site_admin": false, "starred_url": "https://api.github.com/users/iamabigstone/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/iamabigstone/subscriptions", "type": "User", "url": "https://api.github.com/users/iamabigstone" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
5
2019-03-19T19:42:36Z
2019-03-29T02:32:24Z
2019-03-29T02:32:24Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python concated_data_frame = concat([self, other], axis=0, ignore_index=True) ``` #### Problem description I am trying to concat two instance of a subclass of pandas.DataFrame. The base class looks like: ``` class BaseTestResult(DataFrame): def __new__(cls, data_df, *args, **kwargs): # check if an empty DataFrame is passed in; reassign the data_df if data_df.empty: ... return super(BaseTestResult, cls).__new__(cls, data_df, *args, **kwargs) def __init__(self, data_df, file_paths=None, *args, **kwargs): # pylint: disable=keyword-arg-before-vararg super(BaseTestResult, self).__init__(data_df, *args, **kwargs) self.validate_input_paths(file_paths) self._file_paths = defaultdict(set) self.file_paths = defaultdict(set) if not file_paths else file_paths self.validate() ... ``` it raise AttributeError: ``` Traceback (most recent call last): File "/Users/leijiang/.p2/pool/plugins/org.python.pydev.core_6.4.3.201807050139/pysrc/_pydevd_bundle/pydevd_exec.py", line 3, in Exec exec exp in global_vars, local_vars File "<console>", line 2, in <module> File "/Users/leijiang/pyperf/ENV/lib/python2.7/site-packages/pandas/core/reshape/concat.py", line 229, in concat return op.get_result() File "/Users/leijiang/pyperf/ENV/lib/python2.7/site-packages/pandas/core/reshape/concat.py", line 431, in get_result return (cons._from_axes(new_data, self.new_axes) File "/Users/leijiang/pyperf/ENV/lib/python2.7/site-packages/pandas/core/generic.py", line 332, in _from_axes return cls(data, **kwargs) File "/Users/leijiang/pyperf/pyPerf/test_results/base_test_result.py", line 130, in __new__ if data_df.empty: AttributeError: 'BlockManager' object has no attribute 'empty' ``` #### Expected Output It should pass #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] >>> pandas.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 18.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.0 pytest: 3.8.2 pip: 9.0.3 setuptools: 40.8.0 Cython: None numpy: 1.16.1 scipy: None pyarrow: None xarray: None IPython: None sphinx: 1.8.0 patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25787/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25787/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25788
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25788/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25788/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25788/events
https://github.com/pandas-dev/pandas/pull/25788
422,969,270
MDExOlB1bGxSZXF1ZXN0MjYyNjQ0MTgz
25,788
ENH: Add sort parameter to RangeIndex.union (#24471)
{ "avatar_url": "https://avatars.githubusercontent.com/u/21114125?v=4", "events_url": "https://api.github.com/users/reidy-p/events{/privacy}", "followers_url": "https://api.github.com/users/reidy-p/followers", "following_url": "https://api.github.com/users/reidy-p/following{/other_user}", "gists_url": "https://api.github.com/users/reidy-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/reidy-p", "id": 21114125, "login": "reidy-p", "node_id": "MDQ6VXNlcjIxMTE0MTI1", "organizations_url": "https://api.github.com/users/reidy-p/orgs", "received_events_url": "https://api.github.com/users/reidy-p/received_events", "repos_url": "https://api.github.com/users/reidy-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/reidy-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/reidy-p/subscriptions", "type": "User", "url": "https://api.github.com/users/reidy-p" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-19T21:47:31Z
2019-03-26T20:05:59Z
2019-03-26T20:05:56Z
CONTRIBUTOR
null
- [ ] progress towards #24471 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is WIP for adding a ``sort`` parameter to ``RangeIndex.union`` that behaves in a similar way to the other index types. ``sort=None`` is the default to make it consistent with the union method in the base class. When ``sort=None`` a monotonically increasing ``RangeIndex`` will be returned if possible and a sorted ``Int64Index`` if not. The way I have implemented ``sort=False`` is that it returns an ``Int64Index`` in all cases. I have been trying to think of cases where it would make sense to still return a ``RangeIndex`` when ``sort=False``. For example, there might be a case where if we had two ``RangeIndex``s and both had the same step and the second ``RangeIndex`` overlapped with the first we would want to return a ``RangeIndex`` here even if we had ``sort=False``. But would it be better just to always return an ``Int64Index`` when ``sort=False`` as I have done here to make the return type consistent and because this particular case seems quite rare? ``` # sort=False returns an Int64Index even though we might be able to return a RangeIndex as below In [1]: RangeIndex(0, 10, 2).union(RangeIndex(10, 12, 2), sort=False) Out[1]: Int64Index([0, 2, 4, 6, 8, 10], dtype='int64') In [1]: RangeIndex(0, 10, 2).union(RangeIndex(10, 12, 2), sort=None) Out[1]: RangeIndex(start=0, stop=12, step=2) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25788/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25788/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25788.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25788", "merged_at": "2019-03-26T20:05:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25788.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25788" }
https://api.github.com/repos/pandas-dev/pandas/issues/25789
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25789/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25789/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25789/events
https://github.com/pandas-dev/pandas/pull/25789
422,970,120
MDExOlB1bGxSZXF1ZXN0MjYyNjQ0ODU4
25,789
Unpin pycodestyle
{ "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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "eb6420", "default": false, "description": ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
6
2019-03-19T21:50:02Z
2019-03-20T01:23:14Z
2019-03-20T01:03:21Z
MEMBER
null
- [X] closes #25771 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Larger change than I would have hoped for but it's tough to split this up given the typing import errors get bundled in with F821 errors during LINTing that we certainly wouldn't want to ignore
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25789/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25789/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25789.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25789", "merged_at": "2019-03-20T01:03:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25789.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25789" }
https://api.github.com/repos/pandas-dev/pandas/issues/25790
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25790/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25790/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25790/events
https://github.com/pandas-dev/pandas/issues/25790
422,977,103
MDU6SXNzdWU0MjI5NzcxMDM=
25,790
Update Typing Comments to Python3 Syntax
{ "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": "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": "ea91a4", "default": false, "de...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-19T22:10:28Z
2019-03-30T19:08:52Z
2019-03-30T19:08:52Z
MEMBER
null
This should be done after #25789 Not necessarily analyzing types yet, but I think it makes sense from a readability perspective to start switching over to Python3 syntax for types. A quick grep shows 70 of these in the code base: <details> ```sh pandas/core/dtypes/base.py: # type: () -> Optional[List[str]] pandas/core/dtypes/base.py: # type: () -> bool pandas/core/dtypes/base.py: # type: () -> bool pandas/core/dtypes/base.py: # type: () -> Type pandas/core/dtypes/base.py: # type: () -> str pandas/core/groupby/groupby.py: # type: (np.ndarray) -> (np.ndarray, Type) pandas/core/groupby/groupby.py: # type: (np.ndarray, Type) -> np.ndarray pandas/core/groupby/groupby.py: # type: (np.ndarray) -> (np.ndarray, Optional[Type]) pandas/core/groupby/groupby.py: # type: (np.ndarray, Optional[Type]) -> np.ndarray pandas/core/internals/blocks.py: periods, # type: int pandas/core/internals/blocks.py: axis=0, # type: libinternals.BlockPlacement pandas/core/internals/blocks.py: fill_value=None): # type: Any pandas/core/internals/blocks.py: # type: (...) -> List[ExtensionBlock] pandas/core/internals/managers.py: # type: (List[Block]) -> Optional[Union[np.dtype, ExtensionDtype]] pandas/core/common.py: # type: (Any) -> bool pandas/core/arrays/datetimes.py: _dtype = None # type: Union[np.dtype, DatetimeTZDtype] pandas/core/arrays/datetimes.py: # type: () -> Union[np.dtype, DatetimeTZDtype] pandas/core/arrays/integer.py: # type: () -> np.ndarray pandas/core/arrays/integer.py: # type: () -> np.ndarray pandas/core/arrays/period.py: # type: (Sequence[Optional[Period]], PeriodDtype, bool) -> PeriodArray pandas/core/arrays/period.py: # type: (Union[Period, NaTType]) -> int pandas/core/arrays/period.py: # type: (str) -> Period pandas/core/arrays/period.py: other, # type: Union[ExtensionArray, np.ndarray[int]] pandas/core/arrays/period.py: op # type: Callable[Any, Any] pandas/core/arrays/period.py: # type: (...) -> PeriodArray pandas/core/arrays/period.py: # type: (Sequence[Optional[Period]], Optional[Tick], bool) -> PeriodArray pandas/core/arrays/sparse.py: # type: (Union[str, np.dtype, 'ExtensionDtype', type], Any) -> None pandas/core/arrays/sparse.py: # type: (SparseArray) -> np.ndarray pandas/core/arrays/sparse.py: # type: (SparseArray, SparseArray, Callable, str) -> Any pandas/core/arrays/sparse.py: # type: (np.ndarray, SparseIndex, SparseDtype) -> 'SparseArray' pandas/core/arrays/datetimelike.py: # type: () -> Union[type, Tuple[type]] pandas/core/arrays/datetimelike.py: # type: (str) -> Union[Period, Timestamp, Timedelta, NaTType] pandas/core/arrays/datetimelike.py: # type: (Union[Period, Timestamp, Timedelta, NaTType]) -> int pandas/core/arrays/datetimelike.py: # type: (Union[Period, Timestamp, Timedelta, NaTType]) -> None pandas/core/arrays/datetimelike.py: # type: () -> np.ndarray pandas/core/arrays/datetimelike.py: # type: () -> int pandas/core/arrays/datetimelike.py: key, # type: Union[int, Sequence[int], Sequence[bool], slice] pandas/core/arrays/datetimelike.py: value, # type: Union[NaTType, Any, Sequence[Any]] pandas/core/arrays/datetimelike.py: # type: (...) -> None pandas/core/arrays/array_.py:def array(data, # type: Sequence[object] pandas/core/arrays/array_.py: dtype=None, # type: Optional[Union[str, np.dtype, ExtensionDtype]] pandas/core/arrays/array_.py: copy=True, # type: bool pandas/core/arrays/array_.py: # type: (...) -> ExtensionArray pandas/core/arrays/base.py: # type: (Union[int, np.ndarray], Any) -> None pandas/core/arrays/base.py: # type: () -> int pandas/core/arrays/base.py: # type: () -> ExtensionDtype pandas/core/arrays/base.py: # type: () -> Tuple[int, ...] pandas/core/arrays/base.py: # type: () -> int pandas/core/arrays/base.py: # type: () -> int pandas/core/arrays/base.py: # type: () -> Union[ExtensionArray, np.ndarray] pandas/core/arrays/base.py: # type: () -> np.ndarray pandas/core/arrays/base.py: # type: (int, object) -> ExtensionArray pandas/core/arrays/base.py: # type: () -> Tuple[np.ndarray, Any] pandas/core/arrays/base.py: # type: (int) -> Tuple[np.ndarray, ExtensionArray] pandas/core/arrays/base.py: # type: (Sequence[int], bool, Optional[Any]) -> ExtensionArray pandas/core/arrays/base.py: # type: (bool) -> ExtensionArray pandas/core/arrays/base.py: # type: (bool) -> Callable[[Any], Optional[str]] pandas/core/arrays/base.py: # type: () -> np.ndarray pandas/core/arrays/base.py: # type: (Sequence[ExtensionArray]) -> ExtensionArray pandas/core/arrays/base.py: # type: () -> np.ndarray pandas/core/frame.py: key, # type: Union[str, List[str]] pandas/core/frame.py: ndim, # type: int pandas/core/frame.py: subset=None # type: Union[Series, DataFrame, None] pandas/core/frame.py: # type: (...) -> Union[Series, DataFrame] pandas/core/base.py: # type: () -> ExtensionArray pandas/core/base.py: # type: () -> np.ndarray pandas/core/indexes/period.py: _data = None # type: PeriodArray pandas/core/indexes/datetimelike.py: _data = None # type: DatetimeLikeArrayMixin pandas/core/indexes/datetimelike.py: # type: () -> np.ndarray pandas/core/indexes/base.py: # type: () -> Union[ExtensionArray, Index, np.ndarray] ``` </details> I think it makes sense to break this up into 2 PRs: - [ ] Everything in pandas/core/arrays - [ ] Everything else
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25790/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25790/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25791
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25791/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25791/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25791/events
https://github.com/pandas-dev/pandas/issues/25791
423,025,107
MDU6SXNzdWU0MjMwMjUxMDc=
25,791
Introduce pandas.typing
{ "avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4", "events_url": "https://api.github.com/users/WillAyd/events{/privacy}", "followers_url": "https://api.github.com/users/WillAyd/followers", "following_url": "https://api.github.com/users/WillAyd/following{/other_user}", "gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/WillAyd", "id": 609873, "login": "WillAyd", "node_id": "MDQ6VXNlcjYwOTg3Mw==", "organizations_url": "https://api.github.com/users/WillAyd/orgs", "received_events_url": "https://api.github.com/users/WillAyd/received_events", "repos_url": "https://api.github.com/users/WillAyd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions", "type": "User", "url": "https://api.github.com/users/WillAyd" }
[ { "color": "ea91a4", "default": false, "description": "type annotations, mypy/pyright type checking", "id": 1280988427, "name": "Typing", "node_id": "MDU6TGFiZWwxMjgwOTg4NDI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing" } ]
closed
false
null
[]
null
1
2019-03-20T01:29:49Z
2019-04-04T08:02:18Z
2019-04-04T08:02:17Z
MEMBER
null
Per https://github.com/pandas-dev/pandas/pull/25789#issuecomment-474643117 we definitely want to get started with a pandas.typing module @jbrockmendel @jreback
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25791/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25791/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25792
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25792/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25792/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25792/events
https://github.com/pandas-dev/pandas/pull/25792
423,030,585
MDExOlB1bGxSZXF1ZXN0MjYyNjkyNzI2
25,792
DOC: clean bug fix section in whatsnew
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
0
2019-03-20T01:58:24Z
2019-03-20T02:16:52Z
2019-03-20T02:16:52Z
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/25792/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25792/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25792.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25792", "merged_at": "2019-03-20T02:16:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25792.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25792" }
https://api.github.com/repos/pandas-dev/pandas/issues/25793
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25793/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25793/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25793/events
https://github.com/pandas-dev/pandas/pull/25793
423,031,730
MDExOlB1bGxSZXF1ZXN0MjYyNjkzNTY1
25,793
Move core.config to _config.config
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
9
2019-03-20T02:04:38Z
2019-03-24T18:35:01Z
2019-03-24T18:34:11Z
MEMBER
null
and update imports. Move `tests.test_config` to `tests.config.test_config`. Following this there will be one more follow-up that will 1) address the TODO in `tests.config.test_localization`, 2) fully disentangle `tslibs` from its dependency on `core`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25793/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25793/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25793.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25793", "merged_at": "2019-03-24T18:34:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25793.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25793" }
https://api.github.com/repos/pandas-dev/pandas/issues/25794
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25794/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25794/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25794/events
https://github.com/pandas-dev/pandas/issues/25794
423,049,608
MDU6SXNzdWU0MjMwNDk2MDg=
25,794
Hope for a merge function for the Series.value_counts()
{ "avatar_url": "https://avatars.githubusercontent.com/u/40828030?v=4", "events_url": "https://api.github.com/users/HuoJnx/events{/privacy}", "followers_url": "https://api.github.com/users/HuoJnx/followers", "following_url": "https://api.github.com/users/HuoJnx/following{/other_user}", "gists_url": "https://api.github.com/users/HuoJnx/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HuoJnx", "id": 40828030, "login": "HuoJnx", "node_id": "MDQ6VXNlcjQwODI4MDMw", "organizations_url": "https://api.github.com/users/HuoJnx/orgs", "received_events_url": "https://api.github.com/users/HuoJnx/received_events", "repos_url": "https://api.github.com/users/HuoJnx/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HuoJnx/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HuoJnx/subscriptions", "type": "User", "url": "https://api.github.com/users/HuoJnx" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
4
2019-03-20T03:29:20Z
2019-03-21T05:30:41Z
2019-03-20T05:17:52Z
NONE
null
## Code Sample, a copy-pastable example if possible ```python df_strain=df["strain"].value_counts() DF(df_strain) ``` ![image](https://user-images.githubusercontent.com/40828030/54656452-9d245d00-4b00-11e9-924c-be45235749f7.png) ## Problem description Hello masters, thanks for your concern. As the code and image show, I'm using the value_count function. The function is very convient~ But I found that if I want to merge the rows which count is lower than 5, I have to do it manually like: ```python series_dict={} others_sum=0 for index in df_strain.index: count=df_strain.at[index] if count>=5: series_dict.setdefault(index,count) else: others_sum+=count series_dict.setdefault("others",others_sum) DF(Series(series_dict)) ``` ![image](https://user-images.githubusercontent.com/40828030/54657255-b8dd3280-4b03-11e9-96f3-ffe9c5eb62a1.png) ## Expected Output My question is that: Is there any more convenient way to implement the emergence according to my conditions? Thank you for your time~ INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.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: None LOCALE: None.None pandas: 0.24.2 pytest: None pip: 18.1 setuptools: 39.2.0 Cython: 0.28.5 numpy: 1.15.0 scipy: 1.1.0 pyarrow: None xarray: None IPython: 6.5.0 sphinx: None patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.0 openpyxl: 2.5.9 xlrd: 1.1.0 xlwt: None xlsxwriter: None lxml.etree: 4.3.1 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25794/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25794/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25795
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25795/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25795/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25795/events
https://github.com/pandas-dev/pandas/issues/25795
423,087,209
MDU6SXNzdWU0MjMwODcyMDk=
25,795
value_counts: name and index'es name
{ "avatar_url": "https://avatars.githubusercontent.com/u/1063219?v=4", "events_url": "https://api.github.com/users/kuraga/events{/privacy}", "followers_url": "https://api.github.com/users/kuraga/followers", "following_url": "https://api.github.com/users/kuraga/following{/other_user}", "gists_url": "https://api.github.com/users/kuraga/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kuraga", "id": 1063219, "login": "kuraga", "node_id": "MDQ6VXNlcjEwNjMyMTk=", "organizations_url": "https://api.github.com/users/kuraga/orgs", "received_events_url": "https://api.github.com/users/kuraga/received_events", "repos_url": "https://api.github.com/users/kuraga/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kuraga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kuraga/subscriptions", "type": "User", "url": "https://api.github.com/users/kuraga" }
[ { "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
2
2019-03-20T06:24:50Z
2019-03-26T11:54:45Z
2019-03-26T11:54:45Z
NONE
null
Good day! ```python s = pd.Series(np.arange(10), name='items') c = s.value_counts() c.name #=> 'items' c.index.names #=> None ``` IMHO that's very strange. Values of `c` are quantities/counts/etc. not "items". "Items" are represented in `c.index`. No? What do you think? Thanks!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25795/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25795/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25796
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25796/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25796/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25796/events
https://github.com/pandas-dev/pandas/pull/25796
423,094,024
MDExOlB1bGxSZXF1ZXN0MjYyNzQwNDI4
25,796
BUG: pd.concat does not drop DatetimeIndex.freq when result is monotonic with even spacing
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2019-03-20T06:49:44Z
2019-03-26T00:27:21Z
2019-03-26T00:25:03Z
MEMBER
null
- [x] closes #3232 - [x] tests added / passed - [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/25796/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25796/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25796.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25796", "merged_at": "2019-03-26T00:25:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25796.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25796" }
https://api.github.com/repos/pandas-dev/pandas/issues/25797
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25797/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25797/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25797/events
https://github.com/pandas-dev/pandas/issues/25797
423,106,027
MDU6SXNzdWU0MjMxMDYwMjc=
25,797
Different behavior of to_replace method between pandas version 0.23.4 and 0.24.2 by changing dtype of series
{ "avatar_url": "https://avatars.githubusercontent.com/u/37289910?v=4", "events_url": "https://api.github.com/users/oliverfu89/events{/privacy}", "followers_url": "https://api.github.com/users/oliverfu89/followers", "following_url": "https://api.github.com/users/oliverfu89/following{/other_user}", "gists_url": "https://api.github.com/users/oliverfu89/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/oliverfu89", "id": 37289910, "login": "oliverfu89", "node_id": "MDQ6VXNlcjM3Mjg5OTEw", "organizations_url": "https://api.github.com/users/oliverfu89/orgs", "received_events_url": "https://api.github.com/users/oliverfu89/received_events", "repos_url": "https://api.github.com/users/oliverfu89/repos", "site_admin": false, "starred_url": "https://api.github.com/users/oliverfu89/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/oliverfu89/subscriptions", "type": "User", "url": "https://api.github.com/users/oliverfu89" }
[ { "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": "e102d8"...
open
false
null
[]
null
3
2019-03-20T07:30:54Z
2021-06-27T20:27:54Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np # fails in version 0.24.2 but works in 0.23.4 df = pd.DataFrame.from_dict({'Test': ['0.5', True, '0.6']}) print(df['Test'].dtype) assert df['Test'].dtype == 'object' df['Test'] = df['Test'].replace([True], [np.nan]) print(df['Test'].dtype) assert df['Test'].dtype == 'object' # fails in version 0.24.2 but works in 0.23.4 df = pd.DataFrame.from_dict({'Test': ['0.5', None, '0.6']}) print(df['Test'].dtype) assert df['Test'].dtype == 'object' df['Test'] = df['Test'].replace([None], [np.nan]) print(df['Test'].dtype) assert df['Test'].dtype == 'object' # works in both mentioned versions df = pd.DataFrame.from_dict({'Test': ['0.5', None, '0.6']}) print(df['Test'].dtype) assert df['Test'].dtype == 'object' df['Test'] = df['Test'].fillna(np.nan) print(df['Test'].dtype) assert df['Test'].dtype == 'object' ``` #### Problem description I have encountered this change of behavior from pandas version 0.23.4 to 0.24.2, but could not find anything in the release notes or the latest documentation, which would inform the user about this change. I am not sure whether the behavioral change of the method is an improvement or not. However, I think it should be mentioned somehow. In addition, since it seems that it is not mentioned, it may hint to a deeper problem of the to_replace method. For documentation-related issues, you can check the latest versions of the docs on `master` here: https://pandas-docs.github.io/pandas-docs-travis/ #### Expected Output # no assertion errors, dtype of column stays object for all three cases #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 pytest: 4.3.1 pip: 19.0.3 setuptools: 40.8.0 Cython: None numpy: 1.15.4 scipy: 1.1.0 pyarrow: 0.12.1 xarray: None IPython: 7.3.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: None xlsxwriter: 1.1.5 lxml.etree: 4.3.2 bs4: None html5lib: None sqlalchemy: 1.3.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25797/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25797/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25798
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25798/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25798/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25798/events
https://github.com/pandas-dev/pandas/issues/25798
423,112,976
MDU6SXNzdWU0MjMxMTI5NzY=
25,798
TST: split up tests/frame/test_indexing.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/33685575?v=4", "events_url": "https://api.github.com/users/h-vetinari/events{/privacy}", "followers_url": "https://api.github.com/users/h-vetinari/followers", "following_url": "https://api.github.com/users/h-vetinari/following{/other_user}", "gists_url": "https://api.github.com/users/h-vetinari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/h-vetinari", "id": 33685575, "login": "h-vetinari", "node_id": "MDQ6VXNlcjMzNjg1NTc1", "organizations_url": "https://api.github.com/users/h-vetinari/orgs", "received_events_url": "https://api.github.com/users/h-vetinari/received_events", "repos_url": "https://api.github.com/users/h-vetinari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/h-vetinari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/h-vetinari/subscriptions", "type": "User", "url": "https://api.github.com/users/h-vetinari" }
[ { "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": "C4A000", "default": false, "de...
closed
false
null
[]
null
1
2019-03-20T07:53:39Z
2020-09-23T17:13:36Z
2020-09-23T17:13:35Z
CONTRIBUTOR
null
Based on [review](https://github.com/pandas-dev/pandas/pull/25633#pullrequestreview-216493057) of @jreback in #25633: > frame/test_indexing.py is actually pretty huge. so pls change according to my comments, and open an issue to split this to separate smaller files (after)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25798/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25798/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25799
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25799/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25799/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25799/events
https://github.com/pandas-dev/pandas/pull/25799
423,232,794
MDExOlB1bGxSZXF1ZXN0MjYyODQ5Nzc1
25,799
BUG: Respect na_rep in DataFrame.to_latex() when used with formatters (#9046)
{ "avatar_url": "https://avatars.githubusercontent.com/u/17545360?v=4", "events_url": "https://api.github.com/users/tomneep/events{/privacy}", "followers_url": "https://api.github.com/users/tomneep/followers", "following_url": "https://api.github.com/users/tomneep/following{/other_user}", "gists_url": "https://api.github.com/users/tomneep/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tomneep", "id": 17545360, "login": "tomneep", "node_id": "MDQ6VXNlcjE3NTQ1MzYw", "organizations_url": "https://api.github.com/users/tomneep/orgs", "received_events_url": "https://api.github.com/users/tomneep/received_events", "repos_url": "https://api.github.com/users/tomneep/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tomneep/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomneep/subscriptions", "type": "User", "url": "https://api.github.com/users/tomneep" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, d...
closed
false
null
[]
null
9
2019-03-20T12:47:42Z
2019-05-29T10:08:31Z
2019-05-29T09:35:47Z
CONTRIBUTOR
null
- [x] closes #9046 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry A very old issue so low priority! I'd be tempted to remove the shortcut in `_format_strings()` since I'd guess in most cases it doesn't really save much time.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25799/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25799/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25799.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25799", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25799.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25799" }
https://api.github.com/repos/pandas-dev/pandas/issues/25800
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25800/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25800/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25800/events
https://github.com/pandas-dev/pandas/issues/25800
423,258,669
MDU6SXNzdWU0MjMyNTg2Njk=
25,800
dataframe.to_excel openpyxl multilpe sheets
{ "avatar_url": "https://avatars.githubusercontent.com/u/24649247?v=4", "events_url": "https://api.github.com/users/StefanoGITA/events{/privacy}", "followers_url": "https://api.github.com/users/StefanoGITA/followers", "following_url": "https://api.github.com/users/StefanoGITA/following{/other_user}", "gists_url": "https://api.github.com/users/StefanoGITA/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/StefanoGITA", "id": 24649247, "login": "StefanoGITA", "node_id": "MDQ6VXNlcjI0NjQ5MjQ3", "organizations_url": "https://api.github.com/users/StefanoGITA/orgs", "received_events_url": "https://api.github.com/users/StefanoGITA/received_events", "repos_url": "https://api.github.com/users/StefanoGITA/repos", "site_admin": false, "starred_url": "https://api.github.com/users/StefanoGITA/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/StefanoGITA/subscriptions", "type": "User", "url": "https://api.github.com/users/StefanoGITA" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "bfe5bf", "default": false, "descript...
closed
false
null
[]
null
1
2019-03-20T13:44:19Z
2019-03-20T15:11:06Z
2019-03-20T15:10:58Z
NONE
null
#### Code to test the issue, you need a csv file ```python import os from math import ceil import pandas def csv_to_xls(csvfile): def write_ws(p_writer, p_min, p_max, p_sheetname): df.loc[p_min:p_max].to_excel(p_writer, sheet_name=p_sheetname, index=False) MAX_XLSX_ROWSIZE = 1024 ** 2 - 1 csvfilename = os.path.basename(csvfile) xlsxfilename = '{0}.xlsx'.format(os.path.splitext(csvfilename)[0]) df = pandas.read_csv(filepath_or_buffer=csvfile, header=0) if len(df.index) < MAX_XLSX_ROWSIZE: df.to_excel(xlsxfilename, index=False) else: writer = pandas.ExcelWriter(xlsxfilename, engine='openpyxl') # writer = pandas.ExcelWriter(xlsxfilename, engine='xlsxwriter') for i in range(1, ceil(len(df.index) / MAX_XLSX_ROWSIZE)+1): # lmin = (i-1)*(MAX_XLSX_ROWSIZE + 1) # lmax = i*MAX_XLSX_ROWSIZE # Debug lmin = (i-1) * (1000 + 1) lmax = i * 1000 # ##### sheetname = f'Sheet{i}' # comment next 2 rows with xlsxwriter if sheetname not in writer.book.sheetnames: writer.book.create_sheet() write_ws(writer, lmin, lmax, sheetname) writer.save() writer.close() return xlsxfilename source_dir = 'source' lcsvfilename = 'smartweb.csv' lcsvfile = os.path.join(source_dir, lcsvfilename) lxlsxfilename = csv_to_xls(lcsvfile) print(f"Creato file {lxlsxfilename}") ``` #### Problem description I need to split a CSV on multiple xls worksheets. If I use as writer **xlsxwriter** all goes fine, but if I use **openpyxl**: - If i don't create the worksheet, the writer overrides the worksheet just created and gives it the new name and the new data - If I create a worksheet the writer creates another new worksheet with the same name and adds to it the suffix 1 #### Output of ``pd.show_versions()`` <details> pandas: 0.24.2 pytest: None pip: 10.0.1 setuptools: 39.1.0 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: None xlsxwriter: 1.1.5 lxml.etree: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25800/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25800/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25801
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25801/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25801/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25801/events
https://github.com/pandas-dev/pandas/pull/25801
423,288,017
MDExOlB1bGxSZXF1ZXN0MjYyODkzMzkz
25,801
Fix ReST formatting of pandas.read_excel usecols
{ "avatar_url": "https://avatars.githubusercontent.com/u/2836374?v=4", "events_url": "https://api.github.com/users/timhoffm/events{/privacy}", "followers_url": "https://api.github.com/users/timhoffm/followers", "following_url": "https://api.github.com/users/timhoffm/following{/other_user}", "gists_url": "https://api.github.com/users/timhoffm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/timhoffm", "id": 2836374, "login": "timhoffm", "node_id": "MDQ6VXNlcjI4MzYzNzQ=", "organizations_url": "https://api.github.com/users/timhoffm/orgs", "received_events_url": "https://api.github.com/users/timhoffm/received_events", "repos_url": "https://api.github.com/users/timhoffm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/timhoffm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/timhoffm/subscriptions", "type": "User", "url": "https://api.github.com/users/timhoffm" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2019-03-20T14:38:21Z
2019-03-21T06:20:48Z
2019-03-20T19:14:00Z
CONTRIBUTOR
null
Fix some reStructuredText issues in *usecols* parameter of read_excel - bulletlists must start with a space - the deprecated/versionadded directives do only apply to the respective bullet point an thus need to be indented. Comapre http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html for the current formatting issues.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25801/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25801/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25801.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25801", "merged_at": "2019-03-20T19:14:00Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25801.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25801" }
https://api.github.com/repos/pandas-dev/pandas/issues/25802
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25802/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25802/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25802/events
https://github.com/pandas-dev/pandas/pull/25802
423,329,592
MDExOlB1bGxSZXF1ZXN0MjYyOTI1NzAy
25,802
Update type hints to python3 style (non-array files)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1430066?v=4", "events_url": "https://api.github.com/users/gwrome/events{/privacy}", "followers_url": "https://api.github.com/users/gwrome/followers", "following_url": "https://api.github.com/users/gwrome/following{/other_user}", "gists_url": "https://api.github.com/users/gwrome/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gwrome", "id": 1430066, "login": "gwrome", "node_id": "MDQ6VXNlcjE0MzAwNjY=", "organizations_url": "https://api.github.com/users/gwrome/orgs", "received_events_url": "https://api.github.com/users/gwrome/received_events", "repos_url": "https://api.github.com/users/gwrome/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gwrome/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gwrome/subscriptions", "type": "User", "url": "https://api.github.com/users/gwrome" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
16
2019-03-20T15:50:12Z
2019-03-31T14:46:27Z
2019-03-30T19:08:52Z
CONTRIBUTOR
null
- [X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Fixes #25790 (non-array part)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25802/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25802/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25802.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25802", "merged_at": "2019-03-30T19:08:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25802.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25802" }
https://api.github.com/repos/pandas-dev/pandas/issues/25803
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25803/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25803/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25803/events
https://github.com/pandas-dev/pandas/issues/25803
423,345,441
MDU6SXNzdWU0MjMzNDU0NDE=
25,803
Should DatetimeIndex indexing with strings ever raise KeyError?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4", "events_url": "https://api.github.com/users/shoyer/events{/privacy}", "followers_url": "https://api.github.com/users/shoyer/followers", "following_url": "https://api.github.com/users/shoyer/following{/other_user}", "gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shoyer", "id": 1217238, "login": "shoyer", "node_id": "MDQ6VXNlcjEyMTcyMzg=", "organizations_url": "https://api.github.com/users/shoyer/orgs", "received_events_url": "https://api.github.com/users/shoyer/received_events", "repos_url": "https://api.github.com/users/shoyer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shoyer/subscriptions", "type": "User", "url": "https://api.github.com/users/shoyer" }
[ { "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, ...
open
false
null
[]
null
3
2019-03-20T16:18:35Z
2020-04-01T04:23:04Z
null
MEMBER
null
With pandas 0.24: ``` In [1]: import pandas as pd In [2]: s = pd.Series([1, 2, 3], pd.to_datetime(['2018-01-01', '2018-02-02T01:01', '2018-02-02T02:02'])) In [3]: s.loc['2018-01-01'].size Out[3]: 1 In [4]: s.loc['2018-01-02'].size Out[4]: 0 In [5]: s.loc['2018-02-02'].size Out[5]: 2 In [6]: s.loc['2018-03-03'].size --------------------------------------------------------------------------- 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) ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) 2601 try: -> 2602 return self._engine.get_loc(key) 2603 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: '2018-03-03' 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) ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in get_loc(self, key, method, tolerance) 998 try: --> 999 return Index.get_loc(self, key, method, tolerance) 1000 except (KeyError, ValueError, TypeError): ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) 2603 except KeyError: -> 2604 return self._engine.get_loc(self._maybe_cast_indexer(key)) 2605 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: '2018-03-03' 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: 1520035200000000000 During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) 2601 try: -> 2602 return self._engine.get_loc(key) 2603 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-03-03 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: 1520035200000000000 During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in get_loc(self, key, method, tolerance) 1011 stamp = stamp.tz_localize(self.tz) -> 1012 return Index.get_loc(self, stamp, method, tolerance) 1013 except KeyError: ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) 2603 except KeyError: -> 2604 return self._engine.get_loc(self._maybe_cast_indexer(key)) 2605 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-03-03 00:00:00') During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) <ipython-input-6-92239fa9614e> in <module>() ----> 1 s.loc['2018-03-03'].size ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexing.py in __getitem__(self, key) 1498 1499 maybe_callable = com.apply_if_callable(key, self.obj) -> 1500 return self._getitem_axis(maybe_callable, axis=axis) 1501 1502 def _is_scalar_access(self, key): ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexing.py in _getitem_axis(self, key, axis) 1911 # fall thru to straight lookup 1912 self._validate_key(key, axis) -> 1913 return self._get_label(key, axis=axis) 1914 1915 ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexing.py in _get_label(self, label, axis) 135 # but will fail when the index is not present 136 # see GH5667 --> 137 return self.obj._xs(label, axis=axis) 138 elif isinstance(label, tuple) and isinstance(label[axis], slice): 139 raise IndexingError('no slices here, handle elsewhere') ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/generic.py in xs(self, key, axis, level, drop_level) 3573 drop_level=drop_level) 3574 else: -> 3575 loc = self.index.get_loc(key) 3576 3577 if isinstance(loc, np.ndarray): ~/miniconda3/envs/xarray-py37/lib/python3.7/site-packages/pandas/core/indexes/datetimes.py in get_loc(self, key, method, tolerance) 1012 return Index.get_loc(self, stamp, method, tolerance) 1013 except KeyError: -> 1014 raise KeyError(key) 1015 except ValueError as e: 1016 # list-like tolerance size must match target index size KeyError: '2018-03-03' ``` (side note: this is quite the traceback!) Bizarrely, whether indexing with a string raises a KeyError or returns an array of size 0 depends upon the value. But more generally, does it ever make sense to raise an error? It's arguably more consistent to only return size 0 arrays. xref https://github.com/pandas-dev/pandas/issues/7827 and https://github.com/pydata/xarray/issues/2825
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25803/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25803/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25804
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25804/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25804/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25804/events
https://github.com/pandas-dev/pandas/pull/25804
423,354,883
MDExOlB1bGxSZXF1ZXN0MjYyOTQ1MjUw
25,804
PERF: Improve performance of hash sets in read_csv
{ "avatar_url": "https://avatars.githubusercontent.com/u/45396231?v=4", "events_url": "https://api.github.com/users/vnlitvinov/events{/privacy}", "followers_url": "https://api.github.com/users/vnlitvinov/followers", "following_url": "https://api.github.com/users/vnlitvinov/following{/other_user}", "gists_url": "https://api.github.com/users/vnlitvinov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vnlitvinov", "id": 45396231, "login": "vnlitvinov", "node_id": "MDQ6VXNlcjQ1Mzk2MjMx", "organizations_url": "https://api.github.com/users/vnlitvinov/orgs", "received_events_url": "https://api.github.com/users/vnlitvinov/received_events", "repos_url": "https://api.github.com/users/vnlitvinov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vnlitvinov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vnlitvinov/subscriptions", "type": "User", "url": "https://api.github.com/users/vnlitvinov" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default"...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
9
2019-03-20T16:36:42Z
2019-03-27T00:56:04Z
2019-03-22T16:19:38Z
CONTRIBUTOR
null
- [x] closes N/A - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Improved performance of checking of string presence in hashsets by: 1. implemented lookup table for first symbol of entries - this speeds up negative answers 2. increased size of hash table to reduce the probability of hash collision Hash bucket increase is needed due to khash search algorithm - it computes a hash of key being searched, uses its last N bits where N corresponds to bucket size, and then does an open ended search over the table if collision happened with calling a comparison function over keys. When keys are strings (or, more precisely, `char*` things) comparison function is `strcmp()` which complexity is O(N), thus we want for collisions to be rare. Most lookups of those sets happen when values are checked against N/A table which by default has 17 entries. Without the change bucket size is 32, thus hash collision probability is 17/32 (~53%), after the patch bucket size is 256 and collision probability is 6.6%. I will add `asv` results and whatsnew later.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25804/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25804/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25804.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25804", "merged_at": "2019-03-22T16:19:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25804.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25804" }
https://api.github.com/repos/pandas-dev/pandas/issues/25805
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25805/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25805/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25805/events
https://github.com/pandas-dev/pandas/issues/25805
423,360,362
MDU6SXNzdWU0MjMzNjAzNjI=
25,805
Using custom format when outputting data to html to support column styles
{ "avatar_url": "https://avatars.githubusercontent.com/u/12662108?v=4", "events_url": "https://api.github.com/users/bbibentyo/events{/privacy}", "followers_url": "https://api.github.com/users/bbibentyo/followers", "following_url": "https://api.github.com/users/bbibentyo/following{/other_user}", "gists_url": "https://api.github.com/users/bbibentyo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bbibentyo", "id": 12662108, "login": "bbibentyo", "node_id": "MDQ6VXNlcjEyNjYyMTA4", "organizations_url": "https://api.github.com/users/bbibentyo/orgs", "received_events_url": "https://api.github.com/users/bbibentyo/received_events", "repos_url": "https://api.github.com/users/bbibentyo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bbibentyo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bbibentyo/subscriptions", "type": "User", "url": "https://api.github.com/users/bbibentyo" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
null
2
2019-03-20T16:47:09Z
2020-07-15T03:40:46Z
2020-07-15T03:40:46Z
NONE
null
#### Code Sample ```python df = pd.DataFrame([{'Key': 'Blue', 'Value': 101.25}, {'Key': 'Green', 'Value': 99.12}]) df.to_html() ``` #### Problem description The code above, `to_html` has no direct way of specifying column styles. When I dump the output, it produces the table below. <table border="1" class="dataframe"> <thead> <tr style="text-align: right;"><th></th><th>Key</th> <th>Value</th></tr> </thead> <tbody> <tr><th>0</th><td>Blue</td><td>101.25</td></tr> <tr><th>1</th><td>Green</td><td>99.12</td></tr> </tbody> </table> I would like to pass in custom styles (which could be tags based on column index) for specific columns, such `Value` is right-aligned. `to_html` references `DataFrameFormatter` which reference `HTMLFormatter`. the `write_tr` method in `HTMLFormatter` supports `tags` which can be used to specify cell styles or `align` which can be used to specify row text alignment. #### Expected Output It would be nice to pass in align & tags values when calling `DataFrame.to_html` #### Output of ``pd.show_versions()`` <details> pandas: 0.24.1 pytest: 4.0.2 pip: 19.0.1 setuptools: 40.7.3 Cython: None numpy: 1.15.4 scipy: None pyarrow: None xarray: None IPython: 7.2.0 sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: 2.5.14 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: None bs4: None html5lib: 1.0.1 sqlalchemy: 1.2.17 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25805/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25805/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25806
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25806/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25806/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25806/events
https://github.com/pandas-dev/pandas/issues/25806
423,378,159
MDU6SXNzdWU0MjMzNzgxNTk=
25,806
Effect of assigning list to DataFrame cell depends on unrelated column's type
{ "avatar_url": "https://avatars.githubusercontent.com/u/5933118?v=4", "events_url": "https://api.github.com/users/RauliRuohonen/events{/privacy}", "followers_url": "https://api.github.com/users/RauliRuohonen/followers", "following_url": "https://api.github.com/users/RauliRuohonen/following{/other_user}", "gists_url": "https://api.github.com/users/RauliRuohonen/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RauliRuohonen", "id": 5933118, "login": "RauliRuohonen", "node_id": "MDQ6VXNlcjU5MzMxMTg=", "organizations_url": "https://api.github.com/users/RauliRuohonen/orgs", "received_events_url": "https://api.github.com/users/RauliRuohonen/received_events", "repos_url": "https://api.github.com/users/RauliRuohonen/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RauliRuohonen/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RauliRuohonen/subscriptions", "type": "User", "url": "https://api.github.com/users/RauliRuohonen" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on s...
open
false
null
[]
null
1
2019-03-20T17:22:39Z
2021-06-27T20:32:01Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.DataFrame([{'foo': None, 'bar': None}], index=['a']) df.loc['a', 'foo'] = ['123'] print(df) print() df = pd.DataFrame([{'foo': None, 'bar': None}], index=['a']) df['bar'] = df['bar'].astype(float) df.loc['a', 'foo'] = ['123'] print(df) print() df = pd.DataFrame([{'foo': None, 'bar': None}], index=['a']) df.at['a', 'foo'] = ['123'] print(df) print() df = pd.DataFrame([{'foo': None, 'bar': None}], index=['a']) df['bar'] = df['bar'].astype(float) df.index = df.index.astype('category') df.at['a', 'foo'] = ['123'] print(df) ``` #### Problem description Output is: ``` bar foo a None [123] bar foo a NaN 123 bar foo a None [123] bar foo a NaN 123 ``` Behavior of the operation `df.loc['a', 'foo'] = ['123']` depends on the type of the `bar` column, even though the `bar` column has nothing to do with the operation. If one writes a function using such operations, and a new column containing some unrelated data is added to the data frame, the function will break. The dependency on unrelated columns is also surprising. If `bar` is of type `object`, then the list `['123']` is assigned to the cell. If `bar` is of type `float`, then the string `'123'` is assigned to the cell. If the list is longer than one element, then in the latter case one gets the exception `ValueError: Must have equal len keys and value when setting with an iterable`. Instead of `loc`, using `at` works consistently for the first two examples. However, if one changes the index's type to `category` instead of `object` as in the last two examples, then one observes the same inconsistency as with `loc`. This is even more surprising, since one gets the same `ValueError: Must have equal len keys and value when setting with an iterable` exception for longer lists, and `at` is supposed to do single element assignment, but that exception suggests that it is trying to do multiple element assignment instead. #### Expected Output ``` bar foo a None [123] bar foo a NaN [123] bar foo a None [123] bar foo a NaN [123] ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.6.final.0 python-bits: 64 OS: Darwin OS-release: 17.3.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: None pip: 18.1 setuptools: 39.0.1 Cython: 0.28.5 numpy: 1.15.2 scipy: 1.1.0 pyarrow: None xarray: 0.10.9 IPython: 6.5.0 sphinx: 1.8.1 patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 2.2.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: 1.0.1 sqlalchemy: 1.2.11 pymysql: None psycopg2: 2.7.5 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: 0.1.6 pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25806/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25806/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25807
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25807/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25807/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25807/events
https://github.com/pandas-dev/pandas/issues/25807
423,422,872
MDU6SXNzdWU0MjM0MjI4NzI=
25,807
BUG: DataFrame.update() drops timezone info
{ "avatar_url": "https://avatars.githubusercontent.com/u/1850821?v=4", "events_url": "https://api.github.com/users/GrivIN/events{/privacy}", "followers_url": "https://api.github.com/users/GrivIN/followers", "following_url": "https://api.github.com/users/GrivIN/following{/other_user}", "gists_url": "https://api.github.com/users/GrivIN/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/GrivIN", "id": 1850821, "login": "GrivIN", "node_id": "MDQ6VXNlcjE4NTA4MjE=", "organizations_url": "https://api.github.com/users/GrivIN/orgs", "received_events_url": "https://api.github.com/users/GrivIN/received_events", "repos_url": "https://api.github.com/users/GrivIN/repos", "site_admin": false, "starred_url": "https://api.github.com/users/GrivIN/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/GrivIN/subscriptions", "type": "User", "url": "https://api.github.com/users/GrivIN" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
1
2019-03-20T19:01:47Z
2019-03-21T11:14:06Z
2019-03-21T11:14:06Z
NONE
null
#### Code Sample ```python import pandas as pd import datetime as dt import pytz as tz data = pd.DataFrame([{'localized_date': dt.datetime(2018, 1, 12, 8, 15, tzinfo=tz.timezone('Europe/Berlin'))}]) data """ localized_date 0 2018-01-12 08:22:00+01:00 """ data.dtypes """ localized_date datetime64[ns, Europe/Berlin] dtype: object """ data.update(data) data """ localized_date 0 2018-01-12 07:22:00 """ data.dtypes """ localized_date datetime64[ns] dtype: object """ ``` #### Problem description Update() method drops timezone info for datetime columns and cast all values to utc without a warning. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-46-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: None pip: 9.0.1 setuptools: 39.0.1 Cython: None numpy: 1.16.2 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: 0.999999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25807/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25807/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25808
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25808/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25808/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25808/events
https://github.com/pandas-dev/pandas/pull/25808
423,489,961
MDExOlB1bGxSZXF1ZXN0MjYzMDUxOTkw
25,808
DOC: Improved README formatting.
{ "avatar_url": "https://avatars.githubusercontent.com/u/237814?v=4", "events_url": "https://api.github.com/users/gromag/events{/privacy}", "followers_url": "https://api.github.com/users/gromag/followers", "following_url": "https://api.github.com/users/gromag/following{/other_user}", "gists_url": "https://api.github.com/users/gromag/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gromag", "id": 237814, "login": "gromag", "node_id": "MDQ6VXNlcjIzNzgxNA==", "organizations_url": "https://api.github.com/users/gromag/orgs", "received_events_url": "https://api.github.com/users/gromag/received_events", "repos_url": "https://api.github.com/users/gromag/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gromag/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gromag/subscriptions", "type": "User", "url": "https://api.github.com/users/gromag" }
[ { "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": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-20T21:54:01Z
2019-03-21T03:07:49Z
2019-03-21T03:07:44Z
CONTRIBUTOR
null
Fixed a couple of minor inconsistencies in the formatting of the CheatSheet README 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/25808/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25808/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25808.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25808", "merged_at": "2019-03-21T03:07:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25808.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25808" }
https://api.github.com/repos/pandas-dev/pandas/issues/25809
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25809/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25809/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25809/events
https://github.com/pandas-dev/pandas/issues/25809
423,511,394
MDU6SXNzdWU0MjM1MTEzOTQ=
25,809
DateTimeIndex.to_frame() drops timezone in pandas 0.24
{ "avatar_url": "https://avatars.githubusercontent.com/u/781659?v=4", "events_url": "https://api.github.com/users/jakevdp/events{/privacy}", "followers_url": "https://api.github.com/users/jakevdp/followers", "following_url": "https://api.github.com/users/jakevdp/following{/other_user}", "gists_url": "https://api.github.com/users/jakevdp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jakevdp", "id": 781659, "login": "jakevdp", "node_id": "MDQ6VXNlcjc4MTY1OQ==", "organizations_url": "https://api.github.com/users/jakevdp/orgs", "received_events_url": "https://api.github.com/users/jakevdp/received_events", "repos_url": "https://api.github.com/users/jakevdp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jakevdp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jakevdp/subscriptions", "type": "User", "url": "https://api.github.com/users/jakevdp" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", ...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-20T23:08:11Z
2019-03-21T11:13:32Z
2019-03-21T11:13:32Z
CONTRIBUTOR
null
Behavior in pandas 0.23: ```python >>> import pandas as pd >>> pd.__version__ 0.23.0 >>> x = pd.date_range(start='2019-01-01', end='2019-01-30', freq='D') >>> x = x.tz_localize('UTC') >>> x.to_frame().dtypes 0 datetime64[ns, UTC] dtype: object ``` Behavior in pandas 0.24 ```python >>> import pandas as pd >>> pd.__version__ 0.24.2 >>> x = pd.date_range(start='2019-01-01', end='2019-01-30', freq='D') >>> x = x.tz_localize('UTC') >>> x.to_frame().dtypes 0 datetime64[ns] dtype: object ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/25809/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25809/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/25810
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25810/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25810/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25810/events
https://github.com/pandas-dev/pandas/pull/25810
423,517,101
MDExOlB1bGxSZXF1ZXN0MjYzMDczOTEy
25,810
BUG: DataFrame.update with tz-aware date doesn't return naive data
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "370f77", "default": false, "description": "DataFrame...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-20T23:31:14Z
2019-03-21T15:25:10Z
2019-03-21T11:14:06Z
MEMBER
null
- [x] closes #25807 - [x] tests added / passed - [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/25810/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25810/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25810.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25810", "merged_at": "2019-03-21T11:14:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25810.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25810" }
https://api.github.com/repos/pandas-dev/pandas/issues/25811
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25811/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25811/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25811/events
https://github.com/pandas-dev/pandas/pull/25811
423,523,141
MDExOlB1bGxSZXF1ZXN0MjYzMDc4NzE3
25,811
BUG: DatetimeIndex.to_frame does not drop timezone information
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "e99695", "default": false, "description": "Related t...
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/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": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
3
2019-03-20T23:59:02Z
2019-03-21T15:24:53Z
2019-03-21T11:13:32Z
MEMBER
null
- [x] closes #25809 - [x] tests added / passed - [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/25811/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25811/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25811.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25811", "merged_at": "2019-03-21T11:13:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/25811.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25811" }
https://api.github.com/repos/pandas-dev/pandas/issues/25812
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/25812/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/25812/comments
https://api.github.com/repos/pandas-dev/pandas/issues/25812/events
https://github.com/pandas-dev/pandas/pull/25812
423,528,442
MDExOlB1bGxSZXF1ZXN0MjYzMDgyOTI4
25,812
PERF: Improve performance of Series.isin() on sets
{ "avatar_url": "https://avatars.githubusercontent.com/u/23020003?v=4", "events_url": "https://api.github.com/users/kykosic/events{/privacy}", "followers_url": "https://api.github.com/users/kykosic/followers", "following_url": "https://api.github.com/users/kykosic/following{/other_user}", "gists_url": "https://api.github.com/users/kykosic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kykosic", "id": 23020003, "login": "kykosic", "node_id": "MDQ6VXNlcjIzMDIwMDAz", "organizations_url": "https://api.github.com/users/kykosic/orgs", "received_events_url": "https://api.github.com/users/kykosic/received_events", "repos_url": "https://api.github.com/users/kykosic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kykosic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kykosic/subscriptions", "type": "User", "url": "https://api.github.com/users/kykosic" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "02d7e1", "default"...
closed
false
null
[]
null
2
2019-03-21T00:23:25Z
2019-03-24T14:38:39Z
2019-03-24T14:05:39Z
CONTRIBUTOR
null
- [x] closes #25507 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Issue #25507 pointed out that using `DataFrame.isin` or `Series.isin` on a set took extremely long due to the set being first converted to a list then back to a hash table to lookup values. This fix eliminates that conversion and simply uses the set to directly test membership. Sample code from issue: ```python import pandas as pd squares = set(a**2 for a in range(10000000)) series = pd.Series(range(100)) def test_isin(): _ = series.isin(squares) %timeit test_isin() ``` Output: ``` Before: 3.89 s ± 66.1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) After: 134 µs ± 11.3 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) ``` There are already several unit tests covering this function on sets with different dtypes. Additionally, I added an additional asv benchmark for sets: ``` series_methods.IsIn.time_isin ======== ============= dtype -------- ------------- int64 1.46±0.04ms uint64 1.76±0.1ms object 3.53±0.2ms ======== ============= series_methods.IsIn.time_isin_set ======== ============= dtype -------- ------------- int64 1.58±0.03ms uint64 1.61±0.06ms object 3.24±0.04ms ======== ============= ``` If the additional benchmark is overkill I can of course remove 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/25812/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/25812/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/25812.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/25812", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/25812.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/25812" }