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/26913
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26913/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26913/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26913/events
https://github.com/pandas-dev/pandas/issues/26913
457,209,864
MDU6SXNzdWU0NTcyMDk4NjQ=
26,913
Tracking issue for EA Series Operations Support
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
null
4
2019-06-18T00:53:59Z
2020-09-19T14:35:38Z
2020-09-19T14:35:37Z
NONE
null
*Stale*
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26913/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26913/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26914
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26914/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26914/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26914/events
https://github.com/pandas-dev/pandas/pull/26914
457,216,976
MDExOlB1bGxSZXF1ZXN0Mjg5MDc0Njc5
26,914
WIP/POC: Allow (N, 1) and (1,N) EAs
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "6138b5", "default": false, "description": "Extendin...
closed
false
null
[]
null
29
2019-06-18T01:30:21Z
2021-11-20T23:23:20Z
2019-07-01T20:57:03Z
MEMBER
null
Discussed on the mailing list last week, cc @TomAugspurger @jreback @jorisvandenbossche The central claim: if we allow EAs to take on shapes (N, 1) and (1, N), then we can get some major simplifications in core.internals. For the proof of concept I've made the Datetimelike arrays accept these shapes and updated `DatetimeTZBlock` to see what simplifications are available. The `_wrap_data` implementation would also work for `Categorical` and `PandasArray`. Three categories of simplifications are not in here yet and you'll have to use your imaginations - some can only be made once all EAs allow these shapes, e.g. not having to pass `ndim` arg to Block constructors - some would require additional tweaks on the EA subclasses, e.g. making `shift`, `__iter__`, or `take` aware of 2Dness - some I just haven't got to yet. core.internals is rough. Added bonus: this fleshes out bugs (see #26864)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26914/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26914/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26914.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26914", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26914.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26914" }
https://api.github.com/repos/pandas-dev/pandas/issues/26915
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26915/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26915/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26915/events
https://github.com/pandas-dev/pandas/issues/26915
457,230,197
MDU6SXNzdWU0NTcyMzAxOTc=
26,915
Should Pandas adopt a naming convention for its protocol methods
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "color": "6138b5", "default": false, "description": "Extending pandas with custom dtypes or arrays.", "id": 849023693, "name": "ExtensionArray", "node_id": "MDU6TGFiZWw4NDkwMjM2OTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray" } ]
closed
false
null
[]
null
6
2019-06-18T02:34:47Z
2019-08-02T15:00:26Z
2019-06-19T17:14:48Z
NONE
null
numpy has defined various protocol extensions over the years, and has consistently named them with an array prefix, and "dunder" notation: - `__array__` - `__array_prepare__`, `__array_wrap__`, [Subclassing ndarray](http://docs.python.org/doc/numpy/user/basics.subclassing.html) - `__aray_ufunc__` [NEP13](https://www.numpy.org/neps/nep-0013-ufunc-overrides.html ) - `__array_function__` [NEP18](https://www.numpy.org/neps/nep-0018-array-function-protocol.html) pandas has't been as diligent. The one example I've been dealing with, is `_reduce`. Originally an internal Series method (not a protocol), it now dispatches to `_reduce` for subclasses of `ExtensionArray`. https://github.com/pandas-dev/pandas/blob/baa77c33fb71c29acea21ba06adaf426ed4cb561/pandas/core/series.py#L3743-L3745 When reading the code for a new EA project, its hard to pick out that _reduce is actually an override of the parent class, instead of just an internal function written by the EA author. Something like `__pandas_reduce__` would have made this clearer. Due to inexperience with EA, I lost a bit of time figuring out why `s.sum()` wasn't invoking the EA implementation I thought it would. Granted, it's not exactly a protocol. For the forseeable future, this will always be an `ExtensionArray` subclass, rather than a duck typed object. But, for readability, and while EA is experimental, this might be the right time to clean it up.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26915/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26915/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26916
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26916/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26916/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26916/events
https://github.com/pandas-dev/pandas/pull/26916
457,237,577
MDExOlB1bGxSZXF1ZXN0Mjg5MDg5OTQw
26,916
BUG: Fix timedelta64+Timestamp, closes #24775
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "5319e7", "default": false, "description": "Timedelta...
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-06-18T03:08:55Z
2019-06-25T14:10:04Z
2019-06-25T12:48:14Z
MEMBER
null
- [x] closes #24775 - [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/26916/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26916/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26916.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26916", "merged_at": "2019-06-25T12:48:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26916.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26916" }
https://api.github.com/repos/pandas-dev/pandas/issues/26917
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26917/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26917/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26917/events
https://github.com/pandas-dev/pandas/issues/26917
457,293,709
MDU6SXNzdWU0NTcyOTM3MDk=
26,917
Tabular numbers should be used on tables
{ "avatar_url": "https://avatars.githubusercontent.com/u/204911?v=4", "events_url": "https://api.github.com/users/dansondergaard/events{/privacy}", "followers_url": "https://api.github.com/users/dansondergaard/followers", "following_url": "https://api.github.com/users/dansondergaard/following{/other_user}", "gists_url": "https://api.github.com/users/dansondergaard/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dansondergaard", "id": 204911, "login": "dansondergaard", "node_id": "MDQ6VXNlcjIwNDkxMQ==", "organizations_url": "https://api.github.com/users/dansondergaard/orgs", "received_events_url": "https://api.github.com/users/dansondergaard/received_events", "repos_url": "https://api.github.com/users/dansondergaard/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dansondergaard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dansondergaard/subscriptions", "type": "User", "url": "https://api.github.com/users/dansondergaard" }
[ { "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
[]
null
5
2019-06-18T06:55:39Z
2020-02-10T07:45:35Z
2020-02-10T07:45:35Z
NONE
null
**Describe the bug** Tables rendered in Jupyter Lab (likely also Jupyter Notebook), e.g. from pandas, do not use tabular numbers. This causes sorted columns to look unsorted and makes numbers harder to read and compare. **To Reproduce** Create a table like this: <img width="299" alt="Screenshot 2019-06-14 at 08 38 42" src="https://user-images.githubusercontent.com/204911/59488447-dc541700-8e7f-11e9-8aff-50274888859c.png"> **Expected behavior** With tabular numbers applied through CSS: <img width="302" alt="Screenshot 2019-06-14 at 08 41 07" src="https://user-images.githubusercontent.com/204911/59488557-3228bf00-8e80-11e9-917d-62e6024233bf.png"> CSS used to apply tabular numbers: ``` table { font-variant-numeric: tabular-nums; } ``` **Screenshots** Screenshots attached above. **Desktop (please complete the following information):** - OS: Any - Browser: Any - JupyterLab: Tested on 0.35.6, but probably applies to any version of Jupyter Lab
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26917/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26917/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26918
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26918/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26918/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26918/events
https://github.com/pandas-dev/pandas/pull/26918
457,301,872
MDExOlB1bGxSZXF1ZXN0Mjg5MTM2MjA2
26,918
WIP [DOC/EA]: developer docs for implementing Series.round/sum/etc in EA
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "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": "6138b5", "default": false, "description": "Extending pandas with...
closed
false
null
[]
null
8
2019-06-18T07:17:23Z
2019-07-31T16:20:22Z
2019-06-30T16:44:46Z
NONE
null
This summarized my current understanding of how the dispatch of Series methods *should* work for EA (related https://github.com/pandas-dev/pandas/issues/26913, https://github.com/pandas-dev/pandas/issues/26730, and https://github.com/pandas-dev/pandas/issues/26835) and It also provides helpful warnings against the several pitfalls I fell into while figuring things out. There are a lot more details involved then I foresaw. The document is sloppy pseudo-sphinx for now (I haven't even compiled it yet), just to see if you agree with the content before spending the effort to polish it. I will, if/when the content represent a consensus instead of just my own take on the issue. The description of how things work doesn't match the current state of the code right now, because there are a lot of little cleanups to be made in various functions: - Getting rid of `com.values_for` - Getting rid of `_values` and maybe even `_data` in some cases - Getting rid of redundant calls to `np.asarray(self)` or `np.asarray(self._values)` and such. but I don't think there's actually any radical change implied. It's just about making methods consistent in how they delegate to numpy, so that EA developers can count on predictable behavior and so reason about how the pandas, numpy, and their own classes interact. So I hope this will actually seem natural and undramatic, but I may have overlooked one or more vital issues. One important realization I've come to is that the recent discussion regarding NEP18 was somewhat of a red herring rabbit-hole. IMO, pandas should simply provide the explicit guarantee that some things go via `_reduce` (or a future [`__reduce_pandas__`]()https://github.com/pandas-dev/pandas/issues/26915), while the others go to `np.<func>(array)`, and that the return value type should be an ExtensionArray when applicable. How the EA author deals with numpy's dispatch logic is nothing we need or should want to to speak out on. That's between the EA author and numpy. Avoiding NEP18 altogether means that #26817, the `round()` PR, can be simplified to just a one line change to `Series.round`, and adding a new 4-line `round` method on `DecimalArray` as an example. This would be the typical change needed to support (and provde examples) for other Series methods which are currently out of alignment. So going down the NEP18 (as suggested to me) seems like it was a misstep IMO, now we know. Possible Concerns for future (not covered in doc): - How should we support EA for np operation which Series does not provide, like `ceil` (discussed in #26892). We may need to modify `Series.apply` with a special case for EA, so that `s.apply(np.floor)` works for EA. I'm not sure. - What if future operations are added to the Series namespace? If we ever add a new Series method, which is not a reduction (going via `_reduce`), and is not a convenience around some numpy function (so that the guarantee mentioned above doesn't hold), we will need to have a new mechanism in order to allow EA to support it. if this is a real concern, and there's no good answer, we might want to think about having a more general dispatching interface in place right now, instead of settling on the numpy dispatch guarantee mentioned, so as to be handle both existing and future operations. As an imaginary example, if next year we add the `Series.fnorb` method, which fnorbs a numeric array using a new, cutting-edge, cython-optimized fnorbing algorithm, how do we then allow EA authors to provide an implementation for their own int ndarray backed EA? cc @jorisvandenbossche, @TomAugspurger.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26918/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26918/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26918.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26918", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26918.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26918" }
https://api.github.com/repos/pandas-dev/pandas/issues/26919
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26919/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26919/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26919/events
https://github.com/pandas-dev/pandas/issues/26919
457,445,253
MDU6SXNzdWU0NTc0NDUyNTM=
26,919
BUG: DataFrame(ndarray, dtype=..) does unsafe conversion
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtyp...
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
0
2019-06-18T12:14:57Z
2021-05-21T15:45:13Z
2021-05-21T15:45:13Z
MEMBER
null
From https://github.com/pandas-dev/pandas/pull/26848. When you pass a ndarray to the DataFrame constructor and specify a dtype, this does a "plain" numpy `astype`, which can have some unwanted side-effects (that we avoid in other parts of pandas) such as np.nan -> integer conversion and out of bounds timestamps: ``` In [26]: pd.DataFrame(np.array([[1, np.nan], [2, 3]]), dtype='int64') Out[26]: 0 1 0 1 -9223372036854775808 1 2 3 In [27]: pd.DataFrame(np.array([['2300-01-01']], dtype='datetime64[D]'), dtype='datetime64[ns]') Out[27]: 0 0 1715-06-13 00:25:26.290448384 ``` Both cases are guarded in DataFrame.astype: ``` In [29]: pd.DataFrame(np.array([[1, np.nan], [2, 3]])).astype(dtype='int64') ... ~/scipy/pandas/pandas/core/dtypes/cast.py in astype_nansafe(arr, dtype, copy, skipna) 678 679 if not np.isfinite(arr).all(): --> 680 raise ValueError('Cannot convert non-finite values (NA or inf) to ' 681 'integer') 682 ValueError: Cannot convert non-finite values (NA or inf) to integer In [30]: pd.DataFrame(np.array([['2300-01-01']], dtype='datetime64[D]')).astype(dtype='datetime64[ns]') ... OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 2300-01-01 00:00:00 ``` I suppose we want to do such a safe astype in DataFrame constructor itself 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/26919/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26919/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26920
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26920/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26920/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26920/events
https://github.com/pandas-dev/pandas/issues/26920
457,492,489
MDU6SXNzdWU0NTc0OTI0ODk=
26,920
Lookback methods (rolling/ewm/etc.) should accept series instead of just int/float
{ "avatar_url": "https://avatars.githubusercontent.com/u/6055027?v=4", "events_url": "https://api.github.com/users/JakeTheSnake3p0/events{/privacy}", "followers_url": "https://api.github.com/users/JakeTheSnake3p0/followers", "following_url": "https://api.github.com/users/JakeTheSnake3p0/following{/other_user}", "gists_url": "https://api.github.com/users/JakeTheSnake3p0/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JakeTheSnake3p0", "id": 6055027, "login": "JakeTheSnake3p0", "node_id": "MDQ6VXNlcjYwNTUwMjc=", "organizations_url": "https://api.github.com/users/JakeTheSnake3p0/orgs", "received_events_url": "https://api.github.com/users/JakeTheSnake3p0/received_events", "repos_url": "https://api.github.com/users/JakeTheSnake3p0/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JakeTheSnake3p0/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JakeTheSnake3p0/subscriptions", "type": "User", "url": "https://api.github.com/users/JakeTheSnake3p0" }
[]
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-06-18T13:46:09Z
2019-06-21T21:18:31Z
2019-06-21T21:18:27Z
NONE
null
#### Issue: Using variable lookback-lengths in pandas methods Per underlying stock asset, I utilize a homodyne discriminator derived from close prices which determines the appropriate lookback length for other indicators such as macd, smart volume, ehlers rsi, etc. When I retrieve history on an asset, the data arrives in bulk. I want to apply my indicators en-masse to the entire dataset instead of having to iterate through each row in order to generate the appropriate values (lookback period, then indicator values). That means ideally I would create the 'lookback period' column on the entire dataset through a homodyne discriminator method/class and subsequently apply all of my indicator classes to the same dataset, most of which may depend on the lookback period. Given the current implementation of ewm/rolling which seemingly accept only a static integer/float, all of my calculations will be off. #### Ideal code which generates the error: ```python import pandas as pd import numpy as np # Initialize dataframe with source data df = pd.DataFrame() df['source'] = pd.Series(range(100, 200)) # Typically 'period' is generated by some class # such as a homodyne discriminator for which # other classes depend on for lookback length df['period'] = np.nan df.period.iloc[0] = 1 df.period.iloc[-1] = 10 df.period.interpolate(inplace=True) df.period = df.period.astype('int64', copy=False) print(df) # A given class that depends on the lookback # length determined by the discriminator df['dependant'] = df.source.ewm(span=df.period, adjust=False).mean() print(df) ``` #### Error: > ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-1084-aws 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.23.4 pytest: 4.2.0 pip: 19.0.1 setuptools: 40.8.0 Cython: 0.29.2 numpy: 1.14.5 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: None patsy: 0.5.1 dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 3.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: 1.2.16 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 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/26920/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26920/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26921
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26921/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26921/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26921/events
https://github.com/pandas-dev/pandas/issues/26921
457,500,347
MDU6SXNzdWU0NTc1MDAzNDc=
26,921
pandas.DataFrame.plot error for time series data
{ "avatar_url": "https://avatars.githubusercontent.com/u/40760987?v=4", "events_url": "https://api.github.com/users/alexgawrilow/events{/privacy}", "followers_url": "https://api.github.com/users/alexgawrilow/followers", "following_url": "https://api.github.com/users/alexgawrilow/following{/other_user}", "gists_url": "https://api.github.com/users/alexgawrilow/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexgawrilow", "id": 40760987, "login": "alexgawrilow", "node_id": "MDQ6VXNlcjQwNzYwOTg3", "organizations_url": "https://api.github.com/users/alexgawrilow/orgs", "received_events_url": "https://api.github.com/users/alexgawrilow/received_events", "repos_url": "https://api.github.com/users/alexgawrilow/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexgawrilow/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexgawrilow/subscriptions", "type": "User", "url": "https://api.github.com/users/alexgawrilow" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, ...
open
false
null
[]
null
3
2019-06-18T14:00:13Z
2020-05-31T08:18:13Z
null
NONE
null
#### Code Sample ```python import pandas as pd idx = pd.date_range(start="2018", freq=pd.DateOffset(days=1), periods=2) ts = pd.DataFrame({"A": [1, 2]}, idx) ts.plot() ``` #### Problem description I created the index of a time series using pd.date_range and provided the frequency as a `DateOffset` object. This index was passed to the `DataFrame` constructor to create a time series. When calling the `plot` method on this time series, pandas is not able to parse the frequency correctly: ``` 233 if isinstance(freq, DateOffset): --> 234 freq = freq.rule_code 235 else: 236 freq = get_base_alias(freq) ~/venv/lib/python3.6/site-packages/pandas/tseries/offsets.py in rule_code(self) 372 @property 373 def rule_code(self): --> 374 return self._prefix 375 376 @cache_readonly ~venv/lib/python3.6/site-packages/pandas/tseries/offsets.py in _prefix(self) 368 @property 369 def _prefix(self): --> 370 raise NotImplementedError('Prefix not defined') 371 372 @property ``` #### Expected Output When passing the frequency to `pd.date_range` as a string, everything works fine, however both indices are equal. ```python idx2 = pd.date_range(start="2018", freq="D", periods=2) ts = pd.DataFrame({"A": [1, 2]}, idx2) ts.plot() idx.equals(idx2) ``` Output: `True` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.7.final.0 python-bits: 64 OS: Linux OS-release: 4.18.0-10-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.3.1 pip: 19.1.1 setuptools: 41.0.1 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: 2.2.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: 4.7.1 html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26921/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26921/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26922
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26922/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26922/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26922/events
https://github.com/pandas-dev/pandas/issues/26922
457,506,889
MDU6SXNzdWU0NTc1MDY4ODk=
26,922
Link from, for e.g., version/0.22/generate, to stable/reference
{ "avatar_url": "https://avatars.githubusercontent.com/u/110564?v=4", "events_url": "https://api.github.com/users/dumbledad/events{/privacy}", "followers_url": "https://api.github.com/users/dumbledad/followers", "following_url": "https://api.github.com/users/dumbledad/following{/other_user}", "gists_url": "https://api.github.com/users/dumbledad/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dumbledad", "id": 110564, "login": "dumbledad", "node_id": "MDQ6VXNlcjExMDU2NA==", "organizations_url": "https://api.github.com/users/dumbledad/orgs", "received_events_url": "https://api.github.com/users/dumbledad/received_events", "repos_url": "https://api.github.com/users/dumbledad/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dumbledad/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dumbledad/subscriptions", "type": "User", "url": "https://api.github.com/users/dumbledad" }
[ { "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
2
2019-06-18T14:12:02Z
2019-06-18T19:10:34Z
null
NONE
null
Google often drops me in specific documentation from a single release, rather than the stable reference. For example the google search [pandas groupby aggregate](https://www.google.com/search?safe=active&rlz=1C1CHBD_en-GBIE841IE842&ei=4eMIXbCFKaXD8gKrzJLoBg&q=pandas+groupby+aggregate&oq=pandas+groupby+aggregat&gs_l=psy-ab.3.0.0i67j0l9.4663.11142..13900...1.0..0.52.506.10......0....1..gws-wiz.......0i71j35i39j0i20i263.BPBJmUg8WD8) had these two as top results: - https://pandas.pydata.org/pandas-docs/version/0.23/generated/pandas.core.groupby.DataFrameGroupBy.agg.html - https://pandas.pydata.org/pandas-docs/version/0.22/generated/pandas.core.groupby.DataFrameGroupBy.agg.html Neither of those pages include an easy way to get back to the main version of the page (is it https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.agg.html ?) It would be useful if it were easier to get from a specific version of the docs to the stable reference version.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26922/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26922/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26923
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26923/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26923/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26923/events
https://github.com/pandas-dev/pandas/pull/26923
457,511,195
MDExOlB1bGxSZXF1ZXN0Mjg5MzA1MjMz
26,923
Calculate normalized freqs in value_counts correctly when bins is not None
{ "avatar_url": "https://avatars.githubusercontent.com/u/13034472?v=4", "events_url": "https://api.github.com/users/krsnik93/events{/privacy}", "followers_url": "https://api.github.com/users/krsnik93/followers", "following_url": "https://api.github.com/users/krsnik93/following{/other_user}", "gists_url": "https://api.github.com/users/krsnik93/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/krsnik93", "id": 13034472, "login": "krsnik93", "node_id": "MDQ6VXNlcjEzMDM0NDcy", "organizations_url": "https://api.github.com/users/krsnik93/orgs", "received_events_url": "https://api.github.com/users/krsnik93/received_events", "repos_url": "https://api.github.com/users/krsnik93/repos", "site_admin": false, "starred_url": "https://api.github.com/users/krsnik93/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/krsnik93/subscriptions", "type": "User", "url": "https://api.github.com/users/krsnik93" }
[ { "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
[]
null
7
2019-06-18T14:19:51Z
2019-09-20T14:53:02Z
2019-09-20T14:53:02Z
CONTRIBUTOR
null
- [x] closes #25970 - [x] 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/26923/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26923/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26923.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26923", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26923.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26923" }
https://api.github.com/repos/pandas-dev/pandas/issues/26924
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26924/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26924/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26924/events
https://github.com/pandas-dev/pandas/issues/26924
457,512,284
MDU6SXNzdWU0NTc1MTIyODQ=
26,924
DOC: Disallow crawlers in development docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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-06-18T14:21:51Z
2019-06-18T23:57:08Z
2019-06-18T23:57:08Z
MEMBER
null
(continiung the discussion in https://github.com/pandas-docs/pandas-docs-travis/pull/3#issuecomment-503148283) Afaik we're currently not telling search engine which is the copy of the documentation they should be indexing. They seem to be smart enough, and they've been returning the right restults so far, but given that we're now changing the dev documentation to dev.pandas.io, it's probably worth to tell them not to index that copy. It should be as easy as adding a `robots.txt` in the root of the dev docs repo with this content: ``` User-agent: * Disallow: / ``` See: https://en.wikipedia.org/wiki/Robots_exclusion_standard This can be easily done adding another line similar to the one used for the `CNAME`: https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml#L148 @TomAugspurger @jorisvandenbossche does this make sense?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26924/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26924/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26925
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26925/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26925/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26925/events
https://github.com/pandas-dev/pandas/issues/26925
457,520,817
MDU6SXNzdWU0NTc1MjA4MTc=
26,925
Index dtype is changed to object after left join
{ "avatar_url": "https://avatars.githubusercontent.com/u/5909081?v=4", "events_url": "https://api.github.com/users/kayibal/events{/privacy}", "followers_url": "https://api.github.com/users/kayibal/followers", "following_url": "https://api.github.com/users/kayibal/following{/other_user}", "gists_url": "https://api.github.com/users/kayibal/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kayibal", "id": 5909081, "login": "kayibal", "node_id": "MDQ6VXNlcjU5MDkwODE=", "organizations_url": "https://api.github.com/users/kayibal/orgs", "received_events_url": "https://api.github.com/users/kayibal/received_events", "repos_url": "https://api.github.com/users/kayibal/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kayibal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kayibal/subscriptions", "type": "User", "url": "https://api.github.com/users/kayibal" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stac...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
11
2019-06-18T14:36:38Z
2021-07-10T05:02:48Z
null
NONE
null
#### Code Sample ```python import pandas as pd import numpy as np left = pd.DataFrame( columns=['A'], index=pd.Index([], name='id', dtype=np.int64) ) right = pd.DataFrame( [[5]], columns=['B'], index=pd.Index([42], name='id', dtype=np.int64) ) res_idx_dtype = left.join(right).index.dtype assert res_idx_dtype == np.int64 ``` #### Problem description When executing a left join on two dataframes I would expect the resulting index type to be of the same type my left dataframe was. I ran into this issue while using dask. I executed another join on the resulting dataframe which resulted in an error, because the index was of type object instead of np.int64. #### Expected Output ``` >>> left.join(right).index.dtype dtype('int64') ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Darwin OS-release: 17.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.23.3 pytest: None pip: 9.0.3 setuptools: 40.4.3 Cython: 0.29.10 numpy: 1.14.3 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.0.1 sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.5 blosc: None bottleneck: None tables: 3.5.2 numexpr: 2.6.9 feather: None matplotlib: 2.2.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: 1.2.9 pymysql: None psycopg2: None jinja2: 2.10 s3fs: 0.2.1 fastparquet: 0.3.1 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/26925/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26925/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26926
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26926/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26926/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26926/events
https://github.com/pandas-dev/pandas/issues/26926
457,523,713
MDU6SXNzdWU0NTc1MjM3MTM=
26,926
STY: use black
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
11
2019-06-18T14:41:47Z
2019-07-07T11:23:58Z
2019-07-07T11:23:58Z
CONTRIBUTOR
null
I have seen a number of other project adopt: https://pypi.org/project/black/, as well as use in my company. This basically is a style formatter that plays nice with flake8 and is completely opionated, the only option is line-length. This is a good thing. This would involve a one-time updating of code (though we can do it somewhat incrementally).
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26926/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26926/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26927
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26927/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26927/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26927/events
https://github.com/pandas-dev/pandas/issues/26927
457,549,865
MDU6SXNzdWU0NTc1NDk4NjU=
26,927
Dataframe.mean with numeric_only=False results in error with strings
{ "avatar_url": "https://avatars.githubusercontent.com/u/8093436?v=4", "events_url": "https://api.github.com/users/smangham/events{/privacy}", "followers_url": "https://api.github.com/users/smangham/followers", "following_url": "https://api.github.com/users/smangham/following{/other_user}", "gists_url": "https://api.github.com/users/smangham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smangham", "id": 8093436, "login": "smangham", "node_id": "MDQ6VXNlcjgwOTM0MzY=", "organizations_url": "https://api.github.com/users/smangham/orgs", "received_events_url": "https://api.github.com/users/smangham/received_events", "repos_url": "https://api.github.com/users/smangham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smangham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smangham/subscriptions", "type": "User", "url": "https://api.github.com/users/smangham" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy d...
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" }
8
2019-06-18T15:28:57Z
2021-11-13T17:32:21Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df = pd.DataFrame({ 'A': [0, 1, 2], 'B': ['a', 'b', 'c'], 'C': [4, 5, 6] }) df.mean(axis=0, numeric_only=False, skipna=False) ``` #### Problem description Instead of outputting a `NaN` for a non-numeric column of strings when trying to take the mean, it instead throws `TypeError: could not convert string 'abc' to float`. #### Expected Output I would expect this to output a series with values `[1, NaN, 5]`. My work-around is currently `df.apply(pd.to_numeric, args=['coerce']).mean(axis=0, skipna=False)`, which outputs the expected result. #### 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-51-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 pandas: 0.24.2 pytest: None pip: 19.1.1 setuptools: 40.6.3 Cython: 0.29.2 numpy: 1.16.0 scipy: 1.2.1 pyarrow: 0.12.0 xarray: None IPython: None sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: 3.4.4 numexpr: 2.6.9 feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml.etree: None bs4: None 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/26927/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26927/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26928
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26928/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26928/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26928/events
https://github.com/pandas-dev/pandas/issues/26928
457,591,064
MDU6SXNzdWU0NTc1OTEwNjQ=
26,928
ENH: Add circular statistics methods for DataFrames and Series
{ "avatar_url": "https://avatars.githubusercontent.com/u/4604869?v=4", "events_url": "https://api.github.com/users/petebachant/events{/privacy}", "followers_url": "https://api.github.com/users/petebachant/followers", "following_url": "https://api.github.com/users/petebachant/following{/other_user}", "gists_url": "https://api.github.com/users/petebachant/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/petebachant", "id": 4604869, "login": "petebachant", "node_id": "MDQ6VXNlcjQ2MDQ4Njk=", "organizations_url": "https://api.github.com/users/petebachant/orgs", "received_events_url": "https://api.github.com/users/petebachant/received_events", "repos_url": "https://api.github.com/users/petebachant/repos", "site_admin": false, "starred_url": "https://api.github.com/users/petebachant/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/petebachant/subscriptions", "type": "User", "url": "https://api.github.com/users/petebachant" }
[]
closed
false
null
[]
null
3
2019-06-18T16:52:26Z
2019-06-18T18:51:16Z
2019-06-18T18:51:16Z
NONE
null
Let me know if this is out of scope, but it would be nice to perform typical statistics calculations on circular quantities with a similar interface as, e.g., `mean` --> `circmean`, including the `level` arg. It would also be great to be able to note that the input is in degrees to avoid having to convert back and forth from radians. ```python mean_dir = df.direction_deg.circmean(degrees=True, level="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/26928/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26928/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26929
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26929/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26929/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26929/events
https://github.com/pandas-dev/pandas/issues/26929
457,608,165
MDU6SXNzdWU0NTc2MDgxNjU=
26,929
BUG: DataFrame.shift with axis=1 shifts object columns to the next column with object dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/24297785?v=4", "events_url": "https://api.github.com/users/nchrisr/events{/privacy}", "followers_url": "https://api.github.com/users/nchrisr/followers", "following_url": "https://api.github.com/users/nchrisr/following{/other_user}", "gists_url": "https://api.github.com/users/nchrisr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nchrisr", "id": 24297785, "login": "nchrisr", "node_id": "MDQ6VXNlcjI0Mjk3Nzg1", "organizations_url": "https://api.github.com/users/nchrisr/orgs", "received_events_url": "https://api.github.com/users/nchrisr/received_events", "repos_url": "https://api.github.com/users/nchrisr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nchrisr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nchrisr/subscriptions", "type": "User", "url": "https://api.github.com/users/nchrisr" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "eb6420", "default": false, "description": "Non-arithmetic algos: va...
closed
false
null
[]
null
8
2019-06-18T17:32:55Z
2020-09-26T22:58:41Z
2020-09-26T22:58:41Z
NONE
null
#### Code Sample ```python2.7 import pandas as pd import StringIO # Store the csv string in a variable gps_string = """ "2010-01-12 18:00:00","$GPGGA","180439","7249.2150","N","11754.4238","W","2","10","0.9","-8.1","M","-12.4","M","","*57","","","" "2010-01-12 17:30:00","$GPGGA","173439","7249.2160","N","11754.4233","W","2","11","0.8","-4.5","M","-12.4","M","","*5B","","","" "2010-01-12 17:00:00","$GPGGA","170439","7249.2152","N","11754.4235","W","2","11","0.8","-3.1","M","-12.4","M","","*5C","","","" "2010-01-12 16:30:00","N","11754.4210","W","2","09","1.1","-13.1","M","-12.4","M","","*6C","","","","","","" "2010-01-12 16:00:00","N","11754.4229","W","2","10","0.9","-2.9","M","-12.4","M","","*53","","","","","","" "2010-01-12 15:30:00","N","11754.4269","W","2","09","0.8","-4.3","M","-12.4","M","","*54","","","","","","" "2010-01-12 15:00:00","N","11754.4267","W","2","10","0.8","-1.6","M","-12.4","M","","*56","","","","","","" "2010-01-12 14:30:00","$GPGGA","143439","7249.2152","N","11754.4253","W","2","11","0.7","-4.3","M","-12.4","M","","*56","","","" "2010-01-12 14:00:00","N","11754.4245","W","2","10","0.9","-7.0","M","-12.4","M","","*50","","","","","","" "2010-01-12 13:30:00","$GPGGA","133439","7249.2134","N","11754.4243","W","2","11","0.7","-10.7","M","-12.4","M","","*61","","","" "2010-01-12 13:00:00","N","11754.4245","W","2","10","0.8","-5.5","M","-12.4","M","","*56","","","","","","" "2010-01-12 12:30:00","N","11754.4226","W","2","10","0.9","-7.1","M","-12.4","M","","*59","","","","","","" "2010-01-12 12:00:00","N","11754.4238","W","2","10","0.8","-6.5","M","-12.4","M","","*51","","","","","","" "2010-01-12 11:30:00","N","11754.4227","W","2","10","0.8","0.1","M","-12.4","M","","*73","","","","","","" "2010-01-12 11:00:00","-7.4","M","-12.4","M","","*5F","","","","","","","","","","","","" "2010-01-12 10:30:00","N","11754.4271","W","2","08","1.1","-8.4","M","-12.4","M","","*5A","","","","","","" """ # Read the csv string into a dataframe. gps_df = pd.read_csv(StringIO.StringIO(gps_string), header=None, index_col=0) rows_to_shift = gps_df[gps_df[15].isnull()].index gps_df.loc[rows_to_shift] = gps_df.loc[rows_to_shift].shift(periods=1, axis=1) # create this file to see the outcome gps_df.to_csv("f.csv") ``` #### Problem description I am trying to use the ```Dataframe. shift()``` function to move certain rows of data into their correct columns, and the ```Dataframe.shift()``` function is doing some weird things, it is creating an empty column of ```null(s)``` and moves one of the columns to the end of the ```dataframe```. **Screenshots** Original data: <img width="1268" alt="Screen Shot 2019-06-18 at 4 09 22 PM" src="https://user-images.githubusercontent.com/24297785/59721139-3c332080-91e6-11e9-9468-fc876234ecaa.png"> Output after execution of the code <img width="1250" alt="Screen Shot 2019-06-18 at 4 31 15 PM" src="https://user-images.githubusercontent.com/24297785/59721303-9d5af400-91e6-11e9-9cdb-6988a32e9720.png"> As seen above, the data that was originally in column 10 has been move to column 15 for some reason. Also a column with ```null``` values has been created in column 6. I expect that the data should be moved to the right by one step, that is the data in each column should move to the column to the left of it, and the current behaviour is confusing, based on the documentation of what this function should do. My expected output: <img width="1227" alt="Screen Shot 2019-06-18 at 4 16 40 PM" src="https://user-images.githubusercontent.com/24297785/59721366-ced3bf80-91e6-11e9-9330-7889d4afffc2.png"> #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.14.final.0 python-bits: 32 OS: Windows </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/26929/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26929/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26930
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26930/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26930/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26930/events
https://github.com/pandas-dev/pandas/issues/26930
457,609,179
MDU6SXNzdWU0NTc2MDkxNzk=
26,930
CI: Write azure failed builds summary as a GitHub comment
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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": "a2bca7", "default": false, "description": "Continuo...
open
false
null
[]
null
0
2019-06-18T17:35:19Z
2021-07-10T05:04:16Z
null
MEMBER
null
I think it'd safe us a significant amount of time, if when a build fails, we get a nice github comment with the problems. The same idea as what pep8speaks does for linting, but for most things. I think in some cases it'll save us from having to navigate to the logs (which in azure is even more complex than needed, see #26895). In the cases when we still need to go to the logs for full tracebacks or whatever, we should be able to have direct links to the log in the comment. For first-time contributors, the comment will generate an email with the exact problem, and they should be able to follow up and leave the CI green without our intervention. This can be very useful for changes to the docstrings. So, when we go and review PRs, there are no formatting mistakes... Ideally, azure-pipelines should provide it, for them would be quite trivial to implement, since they can get the permissions to add comments as a GitHub app. I created https://github.com/microsoft/azure-pipelines-tasks/issues/10665 and ask PMs couple of times, but doesn't seem this will happen. The alternative is a bit trickier, which is having a small web app (like 100 lines long flask script) in a server, and add a webhook that calls it after the build finishes (this can be done from either github or azure). The app can do a REST call to azure to get the log content, and the rest should be a simple regex to get the errors. Let me know if anyone thinks this is not a good idea, or you know of a better solution. For Travis there seems to be an app that does this (or something similar), https://www.travisbuddy.com/, but I'm not sure if there is something for azure.
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26930/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26930/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26931
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26931/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26931/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26931/events
https://github.com/pandas-dev/pandas/pull/26931
457,679,198
MDExOlB1bGxSZXF1ZXN0Mjg5NDM5MzI2
26,931
DOC: Disallowing search engines in the development docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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-06-18T20:25:05Z
2019-06-19T08:20:58Z
2019-06-18T23:57:08Z
MEMBER
null
- [X] closes #26924 - [ ] 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/26931/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26931/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26931.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26931", "merged_at": "2019-06-18T23:57:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26931.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26931" }
https://api.github.com/repos/pandas-dev/pandas/issues/26932
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26932/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26932/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26932/events
https://github.com/pandas-dev/pandas/pull/26932
457,700,747
MDExOlB1bGxSZXF1ZXN0Mjg5NDU2ODAy
26,932
CI: Running tests with xvfb for the clipboard to work
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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
[]
null
11
2019-06-18T21:17:54Z
2019-06-20T10:41:28Z
2019-06-20T10:41:27Z
MEMBER
null
- [X] closes #26887 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry With some luck this should make the clipboard tests work in azure. @jorisvandenbossche @jreback can you have a look once the CI finishes?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26932/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26932/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26932.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26932", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26932.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26932" }
https://api.github.com/repos/pandas-dev/pandas/issues/26933
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26933/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26933/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26933/events
https://github.com/pandas-dev/pandas/pull/26933
457,735,350
MDExOlB1bGxSZXF1ZXN0Mjg5NDg0ODQ3
26,933
DOC: Make section title capitalization consistent #26830
{ "avatar_url": "https://avatars.githubusercontent.com/u/21090529?v=4", "events_url": "https://api.github.com/users/restlessadmin/events{/privacy}", "followers_url": "https://api.github.com/users/restlessadmin/followers", "following_url": "https://api.github.com/users/restlessadmin/following{/other_user}", "gists_url": "https://api.github.com/users/restlessadmin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/restlessadmin", "id": 21090529, "login": "restlessadmin", "node_id": "MDQ6VXNlcjIxMDkwNTI5", "organizations_url": "https://api.github.com/users/restlessadmin/orgs", "received_events_url": "https://api.github.com/users/restlessadmin/received_events", "repos_url": "https://api.github.com/users/restlessadmin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/restlessadmin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/restlessadmin/subscriptions", "type": "User", "url": "https://api.github.com/users/restlessadmin" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
15
2019-06-18T23:12:48Z
2019-06-19T17:44:57Z
2019-06-19T00:10:35Z
CONTRIBUTOR
null
- [x] closes #26830 Adjusted titles in Docs to have consistent first letter only capitalization, unless proper noun in title.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26933/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26933/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26933.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26933", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26933.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26933" }
https://api.github.com/repos/pandas-dev/pandas/issues/26934
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26934/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26934/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26934/events
https://github.com/pandas-dev/pandas/issues/26934
457,763,423
MDU6SXNzdWU0NTc3NjM0MjM=
26,934
Issue with parsing PeriodDtype columns in read_csv()
{ "avatar_url": "https://avatars.githubusercontent.com/u/43659243?v=4", "events_url": "https://api.github.com/users/mc4229/events{/privacy}", "followers_url": "https://api.github.com/users/mc4229/followers", "following_url": "https://api.github.com/users/mc4229/following{/other_user}", "gists_url": "https://api.github.com/users/mc4229/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mc4229", "id": 43659243, "login": "mc4229", "node_id": "MDQ6VXNlcjQzNjU5MjQz", "organizations_url": "https://api.github.com/users/mc4229/orgs", "received_events_url": "https://api.github.com/users/mc4229/received_events", "repos_url": "https://api.github.com/users/mc4229/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mc4229/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mc4229/subscriptions", "type": "User", "url": "https://api.github.com/users/mc4229" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "color": "0e8a16", "default": true, "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" }
4
2019-06-19T01:25:47Z
2019-07-17T11:50:47Z
2019-07-17T11:50:47Z
NONE
null
#### Code Sample ```python df = pd.DataFrame({'Int': [1, 2, 3], 'Period': pd.period_range(start="2019-01", end="2019-03", freq="M")}) df.to_csv("PeriodDtype.csv") pd.read_csv("PeriodDtype.csv", dtype={"Int": np.int64, "Period": pd.PeriodDtype("M")}) ``` #### Problem description Using pandas 0.24.2, I wrote a simple data frame with the following dtypes into a csv file, ``` Int int64 Period period[M] dtype: object ``` When I tried to read it back in, I found that `read_csv()` could not parse `PeriodDtype("M")`. I got the following error message: ``` NotImplementedError: Extension Array: <class 'pandas.core.arrays.period.PeriodArray'> must implement _from_sequence_of_strings in order to be used in parser methods ``` I saw a similar issue #24542 raised for Datetime dtype. It seems that `_from_sequence_of_strings()` is also not defined for `PeriodArray`, which prevents parsing columns with `PeriodDtype`. I think adding `_from_sequence_of_strings()` for `PeriodArray` would be a good enhancement. If that is the case I would be interested in making that change. #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.2.final.0 python-bits: 64 OS: Darwin OS-release: 18.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 3.8.0 pip: 10.0.1 setuptools: 40.2.0 Cython: 0.28.5 numpy: 1.16.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 6.5.0 sphinx: 1.7.9 patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.5 blosc: None bottleneck: 1.2.1 tables: 3.4.4 numexpr: 2.6.8 feather: None matplotlib: 2.2.3 openpyxl: 2.5.6 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.1.0 lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.11 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/26934/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26934/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26935
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26935/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26935/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26935/events
https://github.com/pandas-dev/pandas/issues/26935
457,775,458
MDU6SXNzdWU0NTc3NzU0NTg=
26,935
A unified method dispatch protocol for ExtensionArrays
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[]
closed
false
null
[]
null
5
2019-06-19T02:25:25Z
2019-08-02T15:44:13Z
2019-07-08T01:49:52Z
NONE
null
What I'd like to have is: 1. a single, unified interface for dispatching Series methods 2. which supports EA 3. for all methods 4. and allows every method to be overridden by EA, as-needed 5. supports NA 6. doesn't require EA authors to implement some methods to signature-compatible with numpy (`round`), and signature compatible with a competing pandas version in other (`sum` via `_reduce`) 7. Clearly namespaces pandas functions, which also indicates cooperation/opt-in (perhaps via duck typing), so that 7a. its clear which methods implements pandas interface 7b. there are no methods which are named like a numpy method, but with a pandas signature, or vice versa 7c. when reading an EA's code, you don't have to guess or figure out which code is a pandas method and which is an internal method for the EA (like the poorly named `_reduce`) 8. provides good error messages for unimplemented methods.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26935/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26935/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26936
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26936/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26936/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26936/events
https://github.com/pandas-dev/pandas/pull/26936
457,776,807
MDExOlB1bGxSZXF1ZXN0Mjg5NTE2MjU3
26,936
Add type hint for (core.arrays).ranges
{ "avatar_url": "https://avatars.githubusercontent.com/u/11509423?v=4", "events_url": "https://api.github.com/users/xcz011/events{/privacy}", "followers_url": "https://api.github.com/users/xcz011/followers", "following_url": "https://api.github.com/users/xcz011/following{/other_user}", "gists_url": "https://api.github.com/users/xcz011/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xcz011", "id": 11509423, "login": "xcz011", "node_id": "MDQ6VXNlcjExNTA5NDIz", "organizations_url": "https://api.github.com/users/xcz011/orgs", "received_events_url": "https://api.github.com/users/xcz011/received_events", "repos_url": "https://api.github.com/users/xcz011/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xcz011/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xcz011/subscriptions", "type": "User", "url": "https://api.github.com/users/xcz011" }
[ { "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" }
4
2019-06-19T02:31:44Z
2019-06-21T04:11:23Z
2019-06-21T01:48:23Z
CONTRIBUTOR
null
- [x] xref #26792 - [ ] 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/26936/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26936/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26936.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26936", "merged_at": "2019-06-21T01:48:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26936.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26936" }
https://api.github.com/repos/pandas-dev/pandas/issues/26937
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26937/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26937/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26937/events
https://github.com/pandas-dev/pandas/pull/26937
457,790,748
MDExOlB1bGxSZXF1ZXN0Mjg5NTI2NzIy
26,937
WIP: `overlaps` handling of empty intervals in Interval and IntervalArray
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "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": "Interval data type", ...
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-06-19T03:39:41Z
2019-06-28T18:59:24Z
2019-06-20T16:15:54Z
NONE
null
This supercedes #26894, which made `Interval()` raise an exception on attempts to create of the form `[x,x)` or `(x,x]`. - [X] closes #26893 - [x] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Discussion in #26893 suggests we may want to treat empty intervals as Singletons in the future. But for now, just fix overlaps. *update*: `IntervalArray` has its own vectorized implementation of `overlaps`, fixed and now shares the new test cases I added for `Interval.overlaps`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26937/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26937/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26937.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26937", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26937.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26937" }
https://api.github.com/repos/pandas-dev/pandas/issues/26938
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26938/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26938/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26938/events
https://github.com/pandas-dev/pandas/issues/26938
457,907,635
MDU6SXNzdWU0NTc5MDc2MzU=
26,938
pivot_table raises DataError: No numeric types to aggregate with Timedelta
{ "avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4", "events_url": "https://api.github.com/users/scls19fr/events{/privacy}", "followers_url": "https://api.github.com/users/scls19fr/followers", "following_url": "https://api.github.com/users/scls19fr/following{/other_user}", "gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scls19fr", "id": 109167, "login": "scls19fr", "node_id": "MDQ6VXNlcjEwOTE2Nw==", "organizations_url": "https://api.github.com/users/scls19fr/orgs", "received_events_url": "https://api.github.com/users/scls19fr/received_events", "repos_url": "https://api.github.com/users/scls19fr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions", "type": "User", "url": "https://api.github.com/users/scls19fr" }
[ { "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
[]
null
4
2019-06-19T09:35:32Z
2021-02-11T15:12:20Z
2019-06-19T10:26:23Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python In [1]: import pandas as pd In [2]: df = pd.DataFrame({"Name": ["A", "B", "C", "B", "A", "C"], "Laptime": [48.0,48.0,48.0,48.0,48.0,48.0], "Time": [12.0, 14, 16, 62, 60, 64]}) In [3]: df.dtypes Out[3]: Name object Laptime float64 Time float64 dtype: object In [4]: pd.pivot_table(df, values="Laptime", index="Time", columns="Name") ``` returns ``` Name A B C Time 12.0 48.0 NaN NaN 14.0 NaN 48.0 NaN 16.0 NaN NaN 48.0 60.0 48.0 NaN NaN 62.0 NaN 48.0 NaN 64.0 NaN NaN 48.0 ``` but when columns and/or index are `Timedelta`, `pivot_table` raises an exception ``` In [5]: df = pd.DataFrame({"Name": ["A", "B", "C", "B", "A", "C"], "Laptime": [48.0,48.0,48.0,48.0,48.0,48.0], "Time": [12.0, 14, 16, 62, 60, 64]}) In [6]: for colname in ["Laptime", "Time"]: df[colname] = pd.to_timedelta(df[colname], unit='s') In [7]: df.dtypes Out[7]: Name object Laptime timedelta64[ns] Time timedelta64[ns] dtype: object In [8]: pd.pivot_table(df, values="Laptime", index="Time", columns="Name") ``` it raises DataError: No numeric types to aggregate #### Problem description raises: DataError: No numeric types to aggregate #### Expected Output shouldn't raises exception but should return ``` Name A B C Time 00:00:12 00:00:48 NaT NaT 00:00:14 NaT 00:00:48 NaT 00:00:16 NaT NaT 00:00:48 00:00:60 00:00:48 NaT NaT 00:00:62 NaT 00:00:48 NaT 00:00:64 NaT NaT 00:00:48 ``` #### Output of ``pd.show_versions()`` <details> pd.show_versions() /Users/scls/anaconda3/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. """) INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Darwin OS-release: 17.7.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: fr_FR.UTF-8 LOCALE: fr_FR.UTF-8 pandas: 0.24.2 pytest: 4.5.0 pip: 19.1 setuptools: 41.0.1 Cython: 0.29.7 numpy: 1.16.4 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.5.0 sphinx: 2.0.1 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: 1.2.1 tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.8 lxml.etree: 4.3.3 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.3 pymysql: 0.9.3 psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26938/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26938/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26939
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26939/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26939/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26939/events
https://github.com/pandas-dev/pandas/issues/26939
457,939,980
MDU6SXNzdWU0NTc5Mzk5ODA=
26,939
BUG: cannot set Series with reverse slicer
{ "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": "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...
closed
false
null
[]
null
2
2019-06-19T10:46:29Z
2019-08-28T23:01:47Z
2019-08-28T23:01:47Z
CONTRIBUTOR
null
Minimal example: ``` >>> import pandas as pd >>> s = pd.Series(index=range(2010, 2020)) >>> s.loc[2015:2010:-1] = [6, 5, 4, 3, 2, 1] Traceback (most recent call last): [...] ValueError: cannot set using a slice indexer with a different length than the value ``` I see no reason why this shouldn't work, as setting with the forward slicer works without problems, and *getting* with the reverse slicer also works without issue: ``` >>> # turn list around because slicer is (not) reversed compared to above >>> s.loc[2010:2015] = [6, 5, 4, 3, 2, 1][::-1] >>> s 2010 1.0 2011 2.0 2012 3.0 2013 4.0 2014 5.0 2015 6.0 2016 NaN 2017 NaN 2018 NaN 2019 NaN dtype: float64 >>> s.loc[2015:2010:-1] == [6, 5, 4, 3, 2, 1] # comparison, not assignment 2015 True 2014 True 2013 True 2012 True 2011 True 2010 True dtype: bool ``` PS: For the failure, it does not matter if the RHS is a np.array, etc.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26939/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26939/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26940
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26940/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26940/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26940/events
https://github.com/pandas-dev/pandas/pull/26940
457,964,589
MDExOlB1bGxSZXF1ZXN0Mjg5NjY1NjAy
26,940
BUG: Fix skiplist init error with empty window
{ "avatar_url": "https://avatars.githubusercontent.com/u/13166114?v=4", "events_url": "https://api.github.com/users/ihsansecer/events{/privacy}", "followers_url": "https://api.github.com/users/ihsansecer/followers", "following_url": "https://api.github.com/users/ihsansecer/following{/other_user}", "gists_url": "https://api.github.com/users/ihsansecer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ihsansecer", "id": 13166114, "login": "ihsansecer", "node_id": "MDQ6VXNlcjEzMTY2MTE0", "organizations_url": "https://api.github.com/users/ihsansecer/orgs", "received_events_url": "https://api.github.com/users/ihsansecer/received_events", "repos_url": "https://api.github.com/users/ihsansecer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ihsansecer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ihsansecer/subscriptions", "type": "User", "url": "https://api.github.com/users/ihsansecer" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, ...
closed
false
null
[]
{ "closed_at": "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-06-19T11:44:17Z
2019-07-11T15:47:45Z
2019-06-21T01:19:27Z
CONTRIBUTOR
null
- [x] fixes MemoryError issue in #26005 - [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/26940/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26940/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26940.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26940", "merged_at": "2019-06-21T01:19:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26940.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26940" }
https://api.github.com/repos/pandas-dev/pandas/issues/26941
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26941/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26941/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26941/events
https://github.com/pandas-dev/pandas/issues/26941
458,008,069
MDU6SXNzdWU0NTgwMDgwNjk=
26,941
DOC: Validate consistency of title capitalization
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/16887528?v=4", "events_url": "https://api.github.com/users/tonywu1999/events{/privacy}", "followers_url": "https://api.github.com/users/tonywu1999/followers", "following_url": "https://api.github.com/users/tonywu1999/following{/other_user}", "gists_url": "https://api.github.com/users/tonywu1999/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tonywu1999", "id": 16887528, "login": "tonywu1999", "node_id": "MDQ6VXNlcjE2ODg3NTI4", "organizations_url": "https://api.github.com/users/tonywu1999/orgs", "received_events_url": "https://api.github.com/users/tonywu1999/received_events", "repos_url": "https://api.github.com/users/tonywu1999/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tonywu1999/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tonywu1999/subscriptions", "type": "User", "url": "https://api.github.com/users/tonywu1999" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/16887528?v=4", "events_url": "https://api.github.com/users/tonywu1999/events{/privacy}", "followers_url": "https://api.github.com/users/tonywu1999/followers", "following_url": "https://api.github.com/users/tonywu1999/following{/other_user}", ...
null
12
2019-06-19T13:16:37Z
2020-03-07T20:06:26Z
2020-03-07T20:06:26Z
MEMBER
null
In #26933, we're making the capitalization of the title sections consisten. We use to have many titles capitalized as `This is the Section Title`, and we changed all them (probably few were forgotten) to `This is the section title`. To keep this consistency, we should validate that the capitalization is correct in the CI. This can be done by extracting all the titles, and making sure that only the first letter of the sentence is uppercase, or words defined in a short list, like `Series`, `DataFrame`,... I think this can be done in two ways: - As a sphinx extension that validates the titles as they are processed, and generates warnings if they are not (this will automatically fail the CI). - As an independent script The first option should be simpler if sphinx can implement this as extension, but not sure if that's the 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/26941/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26941/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26942
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26942/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26942/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26942/events
https://github.com/pandas-dev/pandas/pull/26942
458,035,056
MDExOlB1bGxSZXF1ZXN0Mjg5NzIyOTM2
26,942
Docs: Capitalisation of title line changed to lower case
{ "avatar_url": "https://avatars.githubusercontent.com/u/16741749?v=4", "events_url": "https://api.github.com/users/HolgerSpernau/events{/privacy}", "followers_url": "https://api.github.com/users/HolgerSpernau/followers", "following_url": "https://api.github.com/users/HolgerSpernau/following{/other_user}", "gists_url": "https://api.github.com/users/HolgerSpernau/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/HolgerSpernau", "id": 16741749, "login": "HolgerSpernau", "node_id": "MDQ6VXNlcjE2NzQxNzQ5", "organizations_url": "https://api.github.com/users/HolgerSpernau/orgs", "received_events_url": "https://api.github.com/users/HolgerSpernau/received_events", "repos_url": "https://api.github.com/users/HolgerSpernau/repos", "site_admin": false, "starred_url": "https://api.github.com/users/HolgerSpernau/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/HolgerSpernau/subscriptions", "type": "User", "url": "https://api.github.com/users/HolgerSpernau" }
[ { "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" }
4
2019-06-19T14:05:43Z
2019-06-20T21:26:07Z
2019-06-20T20:45:41Z
NONE
null
- [ ] 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/26942/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26942/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26942.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26942", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26942.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26942" }
https://api.github.com/repos/pandas-dev/pandas/issues/26943
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26943/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26943/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26943/events
https://github.com/pandas-dev/pandas/issues/26943
458,039,800
MDU6SXNzdWU0NTgwMzk4MDA=
26,943
pandas.read_hdf leaves file open when requested data key does not exist
{ "avatar_url": "https://avatars.githubusercontent.com/u/45592308?v=4", "events_url": "https://api.github.com/users/RomanKoziolek/events{/privacy}", "followers_url": "https://api.github.com/users/RomanKoziolek/followers", "following_url": "https://api.github.com/users/RomanKoziolek/following{/other_user}", "gists_url": "https://api.github.com/users/RomanKoziolek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RomanKoziolek", "id": 45592308, "login": "RomanKoziolek", "node_id": "MDQ6VXNlcjQ1NTkyMzA4", "organizations_url": "https://api.github.com/users/RomanKoziolek/orgs", "received_events_url": "https://api.github.com/users/RomanKoziolek/received_events", "repos_url": "https://api.github.com/users/RomanKoziolek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RomanKoziolek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RomanKoziolek/subscriptions", "type": "User", "url": "https://api.github.com/users/RomanKoziolek" }
[]
closed
false
null
[]
null
6
2019-06-19T14:14:09Z
2019-06-21T09:11:58Z
2019-06-21T09:11:58Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas data = pandas.read_hdf(<h5_file_name>, mode='r', key=key) ``` #### Problem description When trying to read HDF5 file and the requested key object does not exist in the file, pandas pytables raises `KeyError('No object named {key} in the file'.)` and does not close the opened file. I would expect that the HDF5 file is closed after trying to read the key object, whether it was successful or not. Trying to write to the file which is opened in read mode fails with exception. The problematic code is in `pandas.io.pytables.py` file, method `select`, line 712. #### Workaround Check if the key exists before trying to read it from file. ```python import h5py key_exists = True with h5py.File(<h5_file_name>, mode='r') as file: group = file.get(key) if not group: key_exists = False if key_exists: ... ``` Should you need more details, please let me know.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26943/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26943/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26944
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26944/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26944/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26944/events
https://github.com/pandas-dev/pandas/issues/26944
458,047,034
MDU6SXNzdWU0NTgwNDcwMzQ=
26,944
Slicing an index with DateTime throws AttributeError: 'int' object has no attribute 'stop'
{ "avatar_url": "https://avatars.githubusercontent.com/u/15952683?v=4", "events_url": "https://api.github.com/users/soilstack/events{/privacy}", "followers_url": "https://api.github.com/users/soilstack/followers", "following_url": "https://api.github.com/users/soilstack/following{/other_user}", "gists_url": "https://api.github.com/users/soilstack/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/soilstack", "id": 15952683, "login": "soilstack", "node_id": "MDQ6VXNlcjE1OTUyNjgz", "organizations_url": "https://api.github.com/users/soilstack/orgs", "received_events_url": "https://api.github.com/users/soilstack/received_events", "repos_url": "https://api.github.com/users/soilstack/repos", "site_admin": false, "starred_url": "https://api.github.com/users/soilstack/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/soilstack/subscriptions", "type": "User", "url": "https://api.github.com/users/soilstack" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0b02e1", "default": false, "description": "Related 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" }
5
2019-06-19T14:26:43Z
2019-07-01T18:19:17Z
2019-07-01T18:19:17Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python idx = pd.IndexSlice dt_index = pd.date_range(start="1jan2019 00:15:33",periods=100,freq="h") #this will fail #dt_index = pd.date_range(start="1jan2019",periods=100,freq="d") #this works zf = pd.DataFrame(index=dt_index) zf['foo']=10 zf['bar']="squat" zf['zaa']=range(len(dt_index)) zf.index.name="date" zf = zf.reset_index().set_index(["date", "bar", "zaa"]) zf.loc[idx['2019-1-1':'2019-1-3',"squat",:],:] # This works ok zf.loc[idx['2019-1-1':,"squat",:],:] # This fails AttributeError: 'int' object has no attribute 'stop' zf.loc[idx['2019-1-1':None,'squat',:],:] # AttributeError: 'int' object has no attribute 'stop' ``` #### Problem description The same slice of a multindex fails if the index is DateTimes but works if the index is Dates-only. This occurs in pandas 0.24.2 A [related-sounding ticket ](https://github.com/pandas-dev/pandas/issues/10331)said if I have a reproducible example, post a new ticket. #### Expected Output same output as if I'd sliced a dates-only index (provided in the example above) #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 10, 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: 0.29.6 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.4.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.5 lxml.etree: 4.3.2 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26944/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26944/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26945
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26945/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26945/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26945/events
https://github.com/pandas-dev/pandas/issues/26945
458,052,168
MDU6SXNzdWU0NTgwNTIxNjg=
26,945
ufunc[Series, Series] should align before aplying the ufunc?
{ "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": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "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-06-19T14:35:50Z
2019-07-23T20:46:44Z
2019-07-23T20:46:28Z
CONTRIBUTOR
null
Should this align before doing the ufunc? ```python In [1]: import numpy as np In [2]: import pandas as pd In [3]: s1 = pd.Series([1, 2, 3]) In [4]: s2 = s1.iloc[[0, 2, 1]] In [5]: np.add(s1, s2) Out[5]: 0 2 1 5 2 5 dtype: int64 ``` IMO, the expected output should be ``` In [6]: np.add(*s1.align(s2)) Out[6]: 0 2 1 4 2 6 dtype: int64 ``` cc @shoyer, @jbrockmendel, @jorisvandenbossche
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26945/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26945/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26946
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26946/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26946/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26946/events
https://github.com/pandas-dev/pandas/issues/26946
458,070,650
MDU6SXNzdWU0NTgwNzA2NTA=
26,946
modfy[SparseArray] raises
{ "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" }
[]
closed
false
null
[]
null
0
2019-06-19T15:08:48Z
2019-06-19T17:57:41Z
2019-06-19T17:57:41Z
CONTRIBUTOR
null
```python In [1]: import pandas as pd; import numpy as np In [2]: sparse = pd.SparseArray([0.0, 3.5], fill_value=0.0) ...: r1, r2 = np.modf(sparse) ...: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-1f85037f7dc7> in <module> 1 sparse = pd.SparseArray([0.0, 3.5], fill_value=0.0) ----> 2 r1, r2 = np.modf(sparse) ~/sandbox/pandas/pandas/core/arrays/sparse.py in __array_ufunc__(self, ufunc, method, *inputs, **kwargs) 1700 return self._simple_new(sp_values, 1701 self.sp_index, -> 1702 SparseDtype(sp_values.dtype, fill_value)) 1703 1704 result = getattr(ufunc, method)(*[np.asarray(x) for x in inputs], AttributeError: 'tuple' object has no attribute 'dtype' ``` PR coming soon.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26946/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26946/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26947
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26947/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26947/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26947/events
https://github.com/pandas-dev/pandas/pull/26947
458,076,381
MDExOlB1bGxSZXF1ZXN0Mjg5NzU2ODAw
26,947
BUG: modf(SparseArray)
{ "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": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" } ]
closed
false
null
[]
{ "closed_at": "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-06-19T15:19:48Z
2019-06-19T18:40:58Z
2019-06-19T17:57:41Z
CONTRIBUTOR
null
Closes #26946
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26947/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26947/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26947.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26947", "merged_at": "2019-06-19T17:57:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26947.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26947" }
https://api.github.com/repos/pandas-dev/pandas/issues/26948
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26948/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26948/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26948/events
https://github.com/pandas-dev/pandas/issues/26948
458,108,990
MDU6SXNzdWU0NTgxMDg5OTA=
26,948
to_csv header=False not working
{ "avatar_url": "https://avatars.githubusercontent.com/u/1682656?v=4", "events_url": "https://api.github.com/users/mkagenius/events{/privacy}", "followers_url": "https://api.github.com/users/mkagenius/followers", "following_url": "https://api.github.com/users/mkagenius/following{/other_user}", "gists_url": "https://api.github.com/users/mkagenius/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mkagenius", "id": 1682656, "login": "mkagenius", "node_id": "MDQ6VXNlcjE2ODI2NTY=", "organizations_url": "https://api.github.com/users/mkagenius/orgs", "received_events_url": "https://api.github.com/users/mkagenius/received_events", "repos_url": "https://api.github.com/users/mkagenius/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mkagenius/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mkagenius/subscriptions", "type": "User", "url": "https://api.github.com/users/mkagenius" }
[ { "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-06-19T16:25:13Z
2020-01-21T04:28:47Z
2020-01-21T04:28:47Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here c = a.apply(fixsub, axis=1) c = c.fillna("nan") c.to_csv('solution2.csv', header=False, index=False) ``` #### Problem description Even after putting header=False, header keeps coming in the csv #### Expected Output no header should come in the csv file #### Output of ``pd.show_versions()`` 0.24.2 ### How to fix culprit code in pandas/io/formats/csvs.py ```python def _save_header(self): writer = self.writer obj = self.obj index_label = self.index_label cols = self.cols has_mi_columns = self.has_mi_columns header = self.header encoded_labels = [] has_aliases = isinstance(header, (tuple, list, np.ndarray, ABCIndexClass)) if not (has_aliases or self.header): ## BUG HERE FIX NEEDED return ``` [paste the output of ``pd.show_versions()`` here below this line] 0.24.2 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26948/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26948/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26949
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26949/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26949/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26949/events
https://github.com/pandas-dev/pandas/pull/26949
458,128,386
MDExOlB1bGxSZXF1ZXN0Mjg5Nzk4NDk4
26,949
WIP/CI/TST: Clean up of the tests script
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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
[]
null
9
2019-06-19T17:12:24Z
2019-09-08T15:59:55Z
2019-09-08T15:59:55Z
MEMBER
null
Follow up of the conversation in #26932, and fixing some of the things that #24106 tried. The main change is **call pytest once** instead of once for `single` and once for `multi`. This shouldn't be a problem since I add the parameter `--dist=loadfile` which should prevent tests in the same file running in parallel. I don't think running `serial` tests in parallel with tests in other files should be a problem. Other things cleaned in the PR: - Setting always the proxy (shouldn't hurt for not network tests, and makes things simpler) - Using as many processes as cores, not 2 - Removed hack for when no tests were found (since we don't call only for `single` tests, there will always be tests to run) So far testing, let's see how does this work in the CI.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26949/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26949/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26949.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26949", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26949.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26949" }
https://api.github.com/repos/pandas-dev/pandas/issues/26950
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26950/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26950/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26950/events
https://github.com/pandas-dev/pandas/pull/26950
458,133,175
MDExOlB1bGxSZXF1ZXN0Mjg5ODAyMzMz
26,950
DOC: Make section title capitalization consistent #26830
{ "avatar_url": "https://avatars.githubusercontent.com/u/21090529?v=4", "events_url": "https://api.github.com/users/restlessadmin/events{/privacy}", "followers_url": "https://api.github.com/users/restlessadmin/followers", "following_url": "https://api.github.com/users/restlessadmin/following{/other_user}", "gists_url": "https://api.github.com/users/restlessadmin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/restlessadmin", "id": 21090529, "login": "restlessadmin", "node_id": "MDQ6VXNlcjIxMDkwNTI5", "organizations_url": "https://api.github.com/users/restlessadmin/orgs", "received_events_url": "https://api.github.com/users/restlessadmin/received_events", "repos_url": "https://api.github.com/users/restlessadmin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/restlessadmin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/restlessadmin/subscriptions", "type": "User", "url": "https://api.github.com/users/restlessadmin" }
[ { "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" }
7
2019-06-19T17:24:26Z
2019-06-27T21:25:13Z
2019-06-27T21:25:03Z
CONTRIBUTOR
null
- [X] closes #26830 This superseeds #26933, and should contain all the fixes requested there.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26950/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26950/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26950.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26950", "merged_at": "2019-06-27T21:25:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26950.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26950" }
https://api.github.com/repos/pandas-dev/pandas/issues/26951
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26951/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26951/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26951/events
https://github.com/pandas-dev/pandas/pull/26951
458,148,260
MDExOlB1bGxSZXF1ZXN0Mjg5ODE0NTAx
26,951
Additional tests for ufunc(Series)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "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": "006b75", "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" }
10
2019-06-19T18:02:20Z
2019-06-21T15:58:34Z
2019-06-21T15:58:29Z
CONTRIBUTOR
null
This adds a set of tests for ufuncs on Series. The goal is to establish the correct behavior prior to implementing `Series.__array_ufunc__`. There are two kinds of xfails right now 1. Series[Sparse] fails because `Series.__array_ufunc__` doesn't yet dispatch to `Series.array.__array_ufunc__` 2. `ufunc(series, series)` when the two series are unaligned. It's been determined that these should align, but isn't currently implemented. LMK if there's anything I can do to make these tests clearer. The heavy parameterization is a bit unfortunate, but I think the best option. xref https://github.com/pandas-dev/pandas/pull/23293
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26951/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26951/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26951.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26951", "merged_at": "2019-06-21T15:58:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26951.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26951" }
https://api.github.com/repos/pandas-dev/pandas/issues/26952
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26952/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26952/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26952/events
https://github.com/pandas-dev/pandas/issues/26952
458,245,400
MDU6SXNzdWU0NTgyNDU0MDA=
26,952
CI: api.test_api.TestPDApi.test_api fails irrelevantly
{ "avatar_url": "https://avatars.githubusercontent.com/u/13166114?v=4", "events_url": "https://api.github.com/users/ihsansecer/events{/privacy}", "followers_url": "https://api.github.com/users/ihsansecer/followers", "following_url": "https://api.github.com/users/ihsansecer/following{/other_user}", "gists_url": "https://api.github.com/users/ihsansecer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ihsansecer", "id": 13166114, "login": "ihsansecer", "node_id": "MDQ6VXNlcjEzMTY2MTE0", "organizations_url": "https://api.github.com/users/ihsansecer/orgs", "received_events_url": "https://api.github.com/users/ihsansecer/received_events", "repos_url": "https://api.github.com/users/ihsansecer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ihsansecer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ihsansecer/subscriptions", "type": "User", "url": "https://api.github.com/users/ihsansecer" }
[]
closed
false
null
[]
null
0
2019-06-19T22:00:22Z
2019-06-20T11:48:14Z
2019-06-20T11:48:14Z
CONTRIBUTOR
null
#### Problem description In the pull request #26940, I have changed a piece of code in `pandas/_libs/window.pyx`. Tests pass successfully (including those in tests/api) on my local but not on CI. It seems that `hard_dependencies, dependency, missing_dependencies` are on the pd namespace and not deleted as supposed (see [here](https://github.com/pandas-dev/pandas/blob/master/pandas/__init__.py#L17)). But I don't think changes in #26940 cause this assertion error. #### Error ([Here](https://travis-ci.org/pandas-dev/pandas/jobs/547916861#L2443)) ```python =================================== FAILURES =================================== ______________________________ TestPDApi.test_api ______________________________ [gw1] linux -- Python 3.7.3 /home/travis/miniconda3/envs/pandas-dev/bin/python self = <pandas.tests.api.test_api.TestPDApi object at 0x7f2145f522e8> def test_api(self): self.check(pd, self.lib + self.misc + self.modules + self.deprecated_modules + self.classes + self.deprecated_classes + self.deprecated_classes_in_future + self.funcs + self.funcs_option + self.funcs_read + self.funcs_to + self.deprecated_funcs_in_future + self.deprecated_funcs + self.private_modules, > self.ignored) pandas/tests/api/test_api.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas/tests/api/test_api.py:18: in check tm.assert_almost_equal(result, expected) pandas/util/testing.py:325: in assert_almost_equal **kwargs) pandas/_libs/testing.pyx:65: in pandas._libs.testing.assert_almost_equal cpdef assert_almost_equal(a, b, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise_assert_detail(obj, '{0} length are different'.format(obj), E AssertionError: Iterable are different E E Iterable length are different E [left]: 132 E [right]: 129 E [diff]: ['dependency', 'missing_dependencies', 'hard_dependencies'] pandas/_libs/testing.pyx:163: AssertionError ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26952/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26952/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26953
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26953/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26953/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26953/events
https://github.com/pandas-dev/pandas/pull/26953
458,294,353
MDExOlB1bGxSZXF1ZXN0Mjg5OTMzNjQw
26,953
TST: Fix flaky import test
{ "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" }, { "color": "5319e7", "d...
closed
false
null
[]
null
6
2019-06-20T01:38:08Z
2019-06-20T11:48:18Z
2019-06-20T11:48:14Z
CONTRIBUTOR
null
I'm not sure why, but the missing dependency test is causing issues. Now we check that things work by running it in a subprocess with site-packages disabled. Closes https://github.com/pandas-dev/pandas/issues/26952
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26953/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26953/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26953.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26953", "merged_at": "2019-06-20T11:48:14Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26953.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26953" }
https://api.github.com/repos/pandas-dev/pandas/issues/26954
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26954/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26954/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26954/events
https://github.com/pandas-dev/pandas/pull/26954
458,297,168
MDExOlB1bGxSZXF1ZXN0Mjg5OTM1NzMx
26,954
POC: 2D support for 1D ExtensionArray subclasses
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "6138b5", "default": false, "description": "Extendin...
closed
false
null
[]
null
24
2019-06-20T01:52:41Z
2021-11-20T23:23:22Z
2019-07-01T20:57:14Z
MEMBER
null
[ci skip] Companion to #26914 trying out a way to implement 2D methods for EA subclasses that don't do it natively. Chose the arrow EA as the example to start with, then discovered that equality checks return a scalar instead of operating elementwise, so mostly just comparing the shapes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26954/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26954/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26954.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26954", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26954.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26954" }
https://api.github.com/repos/pandas-dev/pandas/issues/26955
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26955/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26955/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26955/events
https://github.com/pandas-dev/pandas/issues/26955
458,310,393
MDU6SXNzdWU0NTgzMTAzOTM=
26,955
Column headers out of alignment in 10 MInutes tutorial
{ "avatar_url": "https://avatars.githubusercontent.com/u/703084?v=4", "events_url": "https://api.github.com/users/vlbrown/events{/privacy}", "followers_url": "https://api.github.com/users/vlbrown/followers", "following_url": "https://api.github.com/users/vlbrown/following{/other_user}", "gists_url": "https://api.github.com/users/vlbrown/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vlbrown", "id": 703084, "login": "vlbrown", "node_id": "MDQ6VXNlcjcwMzA4NA==", "organizations_url": "https://api.github.com/users/vlbrown/orgs", "received_events_url": "https://api.github.com/users/vlbrown/received_events", "repos_url": "https://api.github.com/users/vlbrown/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vlbrown/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vlbrown/subscriptions", "type": "User", "url": "https://api.github.com/users/vlbrown" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "ededed", "default": false, "description": "__repr__ of pandas ob...
open
false
null
[]
null
3
2019-06-20T02:57:46Z
2021-07-10T05:08:10Z
null
NONE
null
Beginning at line `In [93]:` in getting_started/10min.html, the column headers of the output data frames go out of alignment. Is this meant to have a semantic meaning that is not addressed by the tutorial commentary? #### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame({'A': ['foo', 'bar', 'foo', 'bar', 'foo', 'bar', 'foo', 'foo'], 'B': ['one', 'one', 'two', 'three', 'two', 'two', 'one', 'three'], 'C': np.random.randn(8), 'D': np.random.randn(8)}) df.groupby('A').sum() ``` #### Problem description Output column headers do not line up as expected C D A bar -2.802588 2.42611 foo 3.146492 -0.63958 #### Expected Output A C D bar -2.802588 2.42611 foo 3.146492 -0.63958 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.3.1 pip: 19.0.3 setuptools: 40.8.0 Cython: 0.29.6 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.4.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: None bottleneck: 1.2.1 tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.5 lxml.etree: 4.3.2 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: 0.7.0 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/26955/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26955/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26956
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26956/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26956/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26956/events
https://github.com/pandas-dev/pandas/issues/26956
458,367,644
MDU6SXNzdWU0NTgzNjc2NDQ=
26,956
TypeError: to_html() got an unexpected keyword argument 'line_width'
{ "avatar_url": "https://avatars.githubusercontent.com/u/32630860?v=4", "events_url": "https://api.github.com/users/piofel/events{/privacy}", "followers_url": "https://api.github.com/users/piofel/followers", "following_url": "https://api.github.com/users/piofel/following{/other_user}", "gists_url": "https://api.github.com/users/piofel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/piofel", "id": 32630860, "login": "piofel", "node_id": "MDQ6VXNlcjMyNjMwODYw", "organizations_url": "https://api.github.com/users/piofel/orgs", "received_events_url": "https://api.github.com/users/piofel/received_events", "repos_url": "https://api.github.com/users/piofel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/piofel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/piofel/subscriptions", "type": "User", "url": "https://api.github.com/users/piofel" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
3
2019-06-20T06:15:19Z
2019-06-21T02:18:49Z
2019-06-21T02:18:49Z
NONE
null
While the documentation [https://pandas.pydata.org/pandas-docs/version/0.22/generated/pandas.DataFrame.to_html.html](https://pandas.pydata.org/pandas-docs/version/0.22/generated/pandas.DataFrame.to_html.html) promises the parameter `line_width` (at the bottom of the parameters list), using this parameter throws the error: `TypeError: to_html() got an unexpected keyword argument 'line_width'`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26956/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26956/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26957
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26957/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26957/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26957/events
https://github.com/pandas-dev/pandas/pull/26957
458,368,647
MDExOlB1bGxSZXF1ZXN0Mjg5OTg5NzA3
26,957
TST: fix class method of test BoolArray
{ "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": "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" }
2
2019-06-20T06:18:12Z
2019-06-20T06:59:23Z
2019-06-20T06:58:53Z
MEMBER
null
From discussion in https://github.com/pandas-dev/pandas/pull/26914.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26957/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26957/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26957.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26957", "merged_at": "2019-06-20T06:58:52Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26957.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26957" }
https://api.github.com/repos/pandas-dev/pandas/issues/26958
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26958/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26958/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26958/events
https://github.com/pandas-dev/pandas/issues/26958
458,410,904
MDU6SXNzdWU0NTg0MTA5MDQ=
26,958
ENH: provide nunique method on Rolling object
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "d4c5f9", "default": false, "description": "rolling,...
open
false
null
[]
null
0
2019-06-20T07:58:10Z
2019-06-20T12:26:39Z
null
MEMBER
null
GroupBy objects expose a `nunique` method of Series/DataFrame (and also for `resample` it works), but Rolling does not: ``` In [89]: values = np.random.choice(np.arange(10), 100) In [90]: s = pd.Series(values, index=pd.date_range("2019-01-01", freq='H', periods=100)) In [92]: s.groupby(pd.Grouper(freq='D')).nunique() Out[92]: 2019-01-01 10 2019-01-02 8 2019-01-03 10 2019-01-04 10 2019-01-05 4 Freq: D, dtype: int64 ``` vs ``` In [93]: s.rolling('D').apply(pd.Series.nunique, raw=False) Out[93]: 2019-01-01 00:00:00 1.0 2019-01-01 01:00:00 2.0 2019-01-01 02:00:00 3.0 ... # or In [95]: s.rolling('D').apply(lambda x: len(pd.unique(x)), raw=True) Out[95]: 2019-01-01 00:00:00 1.0 2019-01-01 01:00:00 2.0 2019-01-01 02:00:00 3.0 ... ``` I think it would be nice to also have this method available on `rolling` objects.
{ "+1": 6, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 6, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26958/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26958/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26959
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26959/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26959/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26959/events
https://github.com/pandas-dev/pandas/issues/26959
458,421,410
MDU6SXNzdWU0NTg0MjE0MTA=
26,959
API? how to do a "rolling groupby" or groupby with overlapping groups?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0052cc", "default": false, "description": null, ...
open
false
null
[]
null
11
2019-06-20T08:21:41Z
2020-06-17T10:24:22Z
null
MEMBER
null
Sparked by @betatim's question on twitter: https://twitter.com/betatim/status/1141321049918906368 Suppose you have the following data: ``` repo_id = np.random.choice(np.arange(1000), 10000) index = pd.Timestamp("2019-01-01") + pd.to_timedelta(np.random.randint(0, 24*30*6, size=10000), unit='H') df = pd.DataFrame({'repo_id': repo_id}, index=index).sort_index() ``` ``` In [111]: df.head() Out[111]: repo_id 2019-01-01 01:00:00 162 2019-01-01 01:00:00 850 2019-01-01 01:00:00 414 2019-01-01 02:00:00 753 2019-01-01 02:00:00 125 ``` Data at somewhat randomly points in time (here hourly, but precision doesn't matter much). Assume now you want to calculate a rolling 30D (monthly) statistic for each day. For example the rolling number of unique values over a period of time (the elegant but somewhat verbose python code to do this: https://gist.github.com/betatim/c59039682d92fab89859358e8c585313) A rolling operation does not exactly give what you want, because `df.rolling()` will calculate this 24H mean for each row, while there might be many rows for a single day, and you are only interested in 1 value for that day. A groupby/resample operation can also not achieve this goal, as that could give monthly number of unique values, but it cannot shift this month period one day at a time, since the groups cannot be overlapping. With rolling you can do something like `df.rolling("30D").nunique().resample('D').last()`. But this is 1) very slow, as the `rolling` in the first step is doing way too many calculations that you afterwards throw away with `resample().last()`, and 2) I am not sure the binning for timestamps within the same day happens fully as desired. I found this an interesting use case, to think about if there are ways to better handle this in pandas, or how such an API could look like.
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 1, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26959/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26959/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26960
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26960/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26960/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26960/events
https://github.com/pandas-dev/pandas/issues/26960
458,558,039
MDU6SXNzdWU0NTg1NTgwMzk=
26,960
Why do I get strange aggregation result from DataFrame groupby()?
{ "avatar_url": "https://avatars.githubusercontent.com/u/2176922?v=4", "events_url": "https://api.github.com/users/tjliupeng/events{/privacy}", "followers_url": "https://api.github.com/users/tjliupeng/followers", "following_url": "https://api.github.com/users/tjliupeng/following{/other_user}", "gists_url": "https://api.github.com/users/tjliupeng/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tjliupeng", "id": 2176922, "login": "tjliupeng", "node_id": "MDQ6VXNlcjIxNzY5MjI=", "organizations_url": "https://api.github.com/users/tjliupeng/orgs", "received_events_url": "https://api.github.com/users/tjliupeng/received_events", "repos_url": "https://api.github.com/users/tjliupeng/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tjliupeng/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tjliupeng/subscriptions", "type": "User", "url": "https://api.github.com/users/tjliupeng" }
[ { "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
1
2019-06-20T09:55:57Z
2019-06-20T12:22:00Z
2019-06-20T12:22:00Z
NONE
null
#### Pandas version: 0.22 #### Problem I try to use the numpy.size() to count the group size for the groups from pandas Dataframe groupby(), and I get strange result. Can any guys explain how the aggregation of groupby works? ```python >>> df=pd.DataFrame({'A':[1,1,2,2], 'B':[1,2,3,4],'C':[0.11,0.32,0.93,0.65],'D':["This","That","How","What"]}) >>> df A B C D 0 1 1 0.11 This 1 1 2 0.32 That 2 2 3 0.93 How 3 2 4 0.65 What >>> df.groupby('A',as_index=False).agg(np.size) A B C D 0 1 2 2.0 2 1 2 2 2.0 2 >>> df.groupby('A',as_index=False)['C'].agg(np.size) A C 0 1 8 1 2 8 >>> df.groupby('A',as_index=False)[['C']].agg(np.size) A C 0 1 2.0 1 2 2.0 >>> grouped=df.groupby('A', as_index=False) >>> grouped['C','D'].agg(np.size) A C D 0 1 2.0 2 1 2 2.0 2 ``` In the code, if we use groupby() following **['C']**, the group size is 8, equal to the correct group size * field number, that is 2 * 4; if we use groupby() following column **[['C']] or ['C','D']**, the group size is right. If setting **as_index** to **True**, I can get a Series with correct value. But I want the groupby field **'A'** included also, so **as_index** is set to **False**, #### Expected Output My expected output is that I can still get a DataFrame which should include column 'A' and 'C', and value of column 'C' is the group size, should be 2 in this code example.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26960/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26960/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26961
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26961/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26961/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26961/events
https://github.com/pandas-dev/pandas/pull/26961
458,574,773
MDExOlB1bGxSZXF1ZXN0MjkwMTU1MjAw
26,961
BUG: Fix TypeError by adding line_width argument to to_html() (#26956)
{ "avatar_url": "https://avatars.githubusercontent.com/u/28931398?v=4", "events_url": "https://api.github.com/users/tomcdonald/events{/privacy}", "followers_url": "https://api.github.com/users/tomcdonald/followers", "following_url": "https://api.github.com/users/tomcdonald/following{/other_user}", "gists_url": "https://api.github.com/users/tomcdonald/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tomcdonald", "id": 28931398, "login": "tomcdonald", "node_id": "MDQ6VXNlcjI4OTMxMzk4", "organizations_url": "https://api.github.com/users/tomcdonald/orgs", "received_events_url": "https://api.github.com/users/tomcdonald/received_events", "repos_url": "https://api.github.com/users/tomcdonald/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tomcdonald/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomcdonald/subscriptions", "type": "User", "url": "https://api.github.com/users/tomcdonald" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "006b75", "default": false, "description": "read_html, to_html, S...
closed
false
null
[]
null
7
2019-06-20T10:29:35Z
2019-06-21T02:30:43Z
2019-06-21T02:30:43Z
NONE
null
Closes #26956 Added in the line_width argument to the to_html() function to prevent TypeError being thrown when argument used.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26961/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26961/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26961.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26961", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26961.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26961" }
https://api.github.com/repos/pandas-dev/pandas/issues/26962
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26962/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26962/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26962/events
https://github.com/pandas-dev/pandas/issues/26962
458,596,594
MDU6SXNzdWU0NTg1OTY1OTQ=
26,962
CI: Fix Azure Pipelines problem with PATH
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "207de5", "default": false, "description": ...
closed
false
null
[]
null
4
2019-06-20T11:18:22Z
2019-08-07T09:38:42Z
2019-08-07T09:38:42Z
MEMBER
null
We should be able to set the environment variable `PATH` in an Azure Pipelines job with `echo '##vso[task.prependpath]$HOME/miniconda3/bin'`. See https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml#L27 But that didn't work when we implemented it, so we ended up setting the path manually in every step (e.g. https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml#L48). This is adding noise to our CI configuration, making it harder to see what every step is doing. We should try to understand what's the problem with setting the `PATH`, and fix it. This also applies to `ci/azure/posix.yml` (besides `azure-pipelines.yml` in the root).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26962/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26962/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26963
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26963/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26963/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26963/events
https://github.com/pandas-dev/pandas/issues/26963
458,613,913
MDU6SXNzdWU0NTg2MTM5MTM=
26,963
qcut fails with labels=True
{ "avatar_url": "https://avatars.githubusercontent.com/u/702580?v=4", "events_url": "https://api.github.com/users/RoyalTS/events{/privacy}", "followers_url": "https://api.github.com/users/RoyalTS/followers", "following_url": "https://api.github.com/users/RoyalTS/following{/other_user}", "gists_url": "https://api.github.com/users/RoyalTS/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RoyalTS", "id": 702580, "login": "RoyalTS", "node_id": "MDQ6VXNlcjcwMjU4MA==", "organizations_url": "https://api.github.com/users/RoyalTS/orgs", "received_events_url": "https://api.github.com/users/RoyalTS/received_events", "repos_url": "https://api.github.com/users/RoyalTS/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RoyalTS/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RoyalTS/subscriptions", "type": "User", "url": "https://api.github.com/users/RoyalTS" }
[ { "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": "9aace2", "default": false, "description": "cut, qcut", "id":...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2019-06-20T11:57:26Z
2020-04-05T02:10:08Z
null
NONE
null
The docs say that `qcut()` takes either a list or a boolean as its `labels` argument. The argument is `None` by default. This, which I would have expected to give me the standard set of labels -- like None -- errors: ```python pd.qcut(range(5), 4, labels=True) ``` This may well be expected behavior, but it does strike me as semantically weird.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26963/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26963/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26964
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26964/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26964/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26964/events
https://github.com/pandas-dev/pandas/issues/26964
458,638,271
MDU6SXNzdWU0NTg2MzgyNzE=
26,964
BUG: NaNs converted to 1970-01-01 instead of NaT
{ "avatar_url": "https://avatars.githubusercontent.com/u/297142?v=4", "events_url": "https://api.github.com/users/timcera/events{/privacy}", "followers_url": "https://api.github.com/users/timcera/followers", "following_url": "https://api.github.com/users/timcera/following{/other_user}", "gists_url": "https://api.github.com/users/timcera/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/timcera", "id": 297142, "login": "timcera", "node_id": "MDQ6VXNlcjI5NzE0Mg==", "organizations_url": "https://api.github.com/users/timcera/orgs", "received_events_url": "https://api.github.com/users/timcera/received_events", "repos_url": "https://api.github.com/users/timcera/repos", "site_admin": false, "starred_url": "https://api.github.com/users/timcera/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/timcera/subscriptions", "type": "User", "url": "https://api.github.com/users/timcera" }
[ { "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-06-20T12:48:53Z
2019-07-07T20:36:38Z
2019-07-05T03:14:52Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np s = pd.Series([1, 2, np.nan, np.nan, np.nan]).astype('M8[ns]') print(s) ``` 0 1970-01-01 00:00:00.000000001 1 1970-01-01 00:00:00.000000002 2 1970-01-01 00:00:00.000000000 3 1970-01-01 00:00:00.000000000 4 1970-01-01 00:00:00.000000000 dtype: datetime64[ns] #### Problem description This problem is on the master branch as of commit baeb1bf92b763861212d0dee951bd8ea658deadb All 'nan' like entries, when converted to datetime should be NaT. Several tests are failing, the example above is from pandas/tests/test_algos.py #### Expected Output 0 1970-01-01 00:00:00.000000001 1 1970-01-01 00:00:00.000000002 2 NaT 3 NaT 4 NaT dtype: datetime64[ns] #### Output of ``pd.show_versions()`` <details> [paste the output of ``pd.show_versions()`` here below this line] INSTALLED VERSIONS ------------------ commit: baeb1bf92b763861212d0dee951bd8ea658deadb python: 3.7.3.final.0 python-bits: 32 OS: Linux OS-release: 3.18.0-19095-g86596f58eadf machine: aarch64 processor: byteorder: little LC_ALL: en_US.utf8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.25.0.dev0+761.gbaeb1bf92.dirty pytest: 4.5.0 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.10 numpy: 1.16.3 scipy: 1.3.0 pyarrow: None xarray: 0.12.1 IPython: 7.5.0 sphinx: 2.0.1 patsy: None dateutil: 2.8.0 pytz: 2019.1 blosc: 1.8.1 bottleneck: None tables: 3.5.2 numexpr: 2.6.9 feather: None matplotlib: 3.1.0 openpyxl: 2.6.2 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.8 lxml.etree: 4.3.4 bs4: 4.7.1 html5lib: 0.9999999 sqlalchemy: 1.3.4 pymysql: None psycopg2: None jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: 0.2.2 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26964/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26964/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26965
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26965/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26965/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26965/events
https://github.com/pandas-dev/pandas/pull/26965
458,642,968
MDExOlB1bGxSZXF1ZXN0MjkwMjA1Njc5
26,965
REF: remove special-casing for internal EAs from format_array
{ "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": "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": "6138b...
closed
false
null
[]
null
11
2019-06-20T12:58:31Z
2019-08-28T16:46:05Z
2019-08-28T16:46:04Z
MEMBER
null
- [ ] closes #26837 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [n/a ] whatsnew entry cc @jorisvandenbossche changes to tests for spacing before Datetime64TZ, which now have additional space.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26965/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26965/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26965.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26965", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26965.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26965" }
https://api.github.com/repos/pandas-dev/pandas/issues/26966
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26966/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26966/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26966/events
https://github.com/pandas-dev/pandas/pull/26966
458,676,757
MDExOlB1bGxSZXF1ZXN0MjkwMjMwNDky
26,966
Surface NumPy FutureWarning about comparisons
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "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-06-20T14:00:58Z
2019-06-21T01:11:56Z
2019-06-21T01:11:56Z
CONTRIBUTOR
null
Closes https://github.com/pandas-dev/pandas/issues/22698 Specifically, see https://github.com/pandas-dev/pandas/issues/22698#issuecomment-458968300. I don't think we need to worry about the others in https://github.com/pandas-dev/pandas/issues/22698#issuecomment-422446071 datetimearray and integer array. I couldn't reproduce the returning a scalar behavior with those.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26966/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26966/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26966.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26966", "merged_at": "2019-06-21T01:11:56Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26966.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26966" }
https://api.github.com/repos/pandas-dev/pandas/issues/26967
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26967/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26967/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26967/events
https://github.com/pandas-dev/pandas/issues/26967
458,689,849
MDU6SXNzdWU0NTg2ODk4NDk=
26,967
Length information in error message of sanitize_index
{ "avatar_url": "https://avatars.githubusercontent.com/u/39841686?v=4", "events_url": "https://api.github.com/users/vishal-srini-rao/events{/privacy}", "followers_url": "https://api.github.com/users/vishal-srini-rao/followers", "following_url": "https://api.github.com/users/vishal-srini-rao/following{/other_user}", "gists_url": "https://api.github.com/users/vishal-srini-rao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vishal-srini-rao", "id": 39841686, "login": "vishal-srini-rao", "node_id": "MDQ6VXNlcjM5ODQxNjg2", "organizations_url": "https://api.github.com/users/vishal-srini-rao/orgs", "received_events_url": "https://api.github.com/users/vishal-srini-rao/received_events", "repos_url": "https://api.github.com/users/vishal-srini-rao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vishal-srini-rao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vishal-srini-rao/subscriptions", "type": "User", "url": "https://api.github.com/users/vishal-srini-rao" }
[ { "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" }
4
2019-06-20T14:24:01Z
2019-06-26T19:51:12Z
2019-06-26T19:51:03Z
NONE
null
It may be helpful for quicker debugging to provide information of data and index lengths in the error message in sanitize_index function: https://github.com/pandas-dev/pandas/blob/2115bf3d58ecc20aa2b10e05574eaa06de1e56ec/pandas/core/internals/construction.py#L516 The modified code could be: raise ValueError(f'Length of values {len(data)} does not match length of index {len(index)}')
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26967/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26967/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26968
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26968/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26968/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26968/events
https://github.com/pandas-dev/pandas/pull/26968
458,695,870
MDExOlB1bGxSZXF1ZXN0MjkwMjQ0OTA0
26,968
DO NOT MERGE: Timing test files
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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
[]
null
7
2019-06-20T14:34:50Z
2019-06-29T09:14:09Z
2019-06-29T09:14:08Z
MEMBER
null
Checking how long every test file takes to run in the CI. In #26949 I'd like to run tests constraining that a whole file must be run in a single worker (so we can run `single` tests in parallel). This means that files that will take a lot of time won't be parallelized well, and should be splitted for this to work. So, I want to know how long each takes.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26968/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26968/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26968.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26968", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26968.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26968" }
https://api.github.com/repos/pandas-dev/pandas/issues/26969
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26969/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26969/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26969/events
https://github.com/pandas-dev/pandas/issues/26969
458,730,273
MDU6SXNzdWU0NTg3MzAyNzM=
26,969
ValueError in series.py when using transform on groupby object
{ "avatar_url": "https://avatars.githubusercontent.com/u/19158178?v=4", "events_url": "https://api.github.com/users/PeterJPRoche/events{/privacy}", "followers_url": "https://api.github.com/users/PeterJPRoche/followers", "following_url": "https://api.github.com/users/PeterJPRoche/following{/other_user}", "gists_url": "https://api.github.com/users/PeterJPRoche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PeterJPRoche", "id": 19158178, "login": "PeterJPRoche", "node_id": "MDQ6VXNlcjE5MTU4MTc4", "organizations_url": "https://api.github.com/users/PeterJPRoche/orgs", "received_events_url": "https://api.github.com/users/PeterJPRoche/received_events", "repos_url": "https://api.github.com/users/PeterJPRoche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PeterJPRoche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PeterJPRoche/subscriptions", "type": "User", "url": "https://api.github.com/users/PeterJPRoche" }
[ { "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, ...
open
false
null
[]
null
6
2019-06-20T15:36:48Z
2021-07-10T05:09:21Z
null
NONE
null
I am seeing a ValueError when running the following example code ``` import pandas as pd import numpy as np if __name__ == '__main__': print(pd.__version__) print(np.__version__) df = pd.DataFrame({'ID': [1,1,2,3,3], 'VALUE': [110,110,200,300,301]}) dfg = df.groupby('ID')['VALUE'] print(dfg.get_group(1)) df['MODE_VALUE'] = df.groupby('ID')['VALUE'].transform(lambda x: x.mode()) print(df['MODE_VALUE']) ``` the output is ``` 0.24.2 1.15.4 0 110 1 110 Traceback (most recent call last): ... File "..../models/testing/test_env.py", line 13, in <module> df['MODE_VALUE'] = df.groupby('ID')['VALUE'].transform(lambda x: x.mode()) File "..../lib/python3.6/site-packages/pandas/core/groupby/generic.py", line 941, in transform s = klass(res, indexer) File "..../lib/python3.6/site-packages/pandas/core/series.py", line 255, in __init__ .format(val=len(data), ind=len(index))) ValueError: Length of passed values is 1, index implies 2 ``` however the index and data being checked in series.py (line 255) is ``` Name: VALUE, dtype: int64 [110] Int64Index([0, 1], dtype='int64') ``` There only seems to be one value [110] in the data array, not two [110,110]. I would have expected the transform to operate on a series with the two values. The code works fine (as I expected) in my previous version of pandas 0.22.0. I noticed the issue only after updating to pandas 0.24.2 ``` 0.22.0 1.15.4 0 110 1 110 Name: VALUE, dtype: int64 0 110 1 110 2 200 3 300 4 301 Name: MODE_VALUE, dtype: int64 ``` I am not sure if this is expected behaviour or a bug, just posting here to get some help! There are features in 0.24.2 I would like (e.g. DataFrame.to_numpy()) to use but am stuck on this breaking code issue! 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/26969/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26969/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26970
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26970/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26970/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26970/events
https://github.com/pandas-dev/pandas/issues/26970
458,762,085
MDU6SXNzdWU0NTg3NjIwODU=
26,970
pprint_thing for sequences
{ "avatar_url": "https://avatars.githubusercontent.com/u/1047337?v=4", "events_url": "https://api.github.com/users/jamesmyatt/events{/privacy}", "followers_url": "https://api.github.com/users/jamesmyatt/followers", "following_url": "https://api.github.com/users/jamesmyatt/following{/other_user}", "gists_url": "https://api.github.com/users/jamesmyatt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jamesmyatt", "id": 1047337, "login": "jamesmyatt", "node_id": "MDQ6VXNlcjEwNDczMzc=", "organizations_url": "https://api.github.com/users/jamesmyatt/orgs", "received_events_url": "https://api.github.com/users/jamesmyatt/received_events", "repos_url": "https://api.github.com/users/jamesmyatt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jamesmyatt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jamesmyatt/subscriptions", "type": "User", "url": "https://api.github.com/users/jamesmyatt" }
[ { "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": "00980...
closed
false
null
[]
null
5
2019-06-20T16:42:24Z
2020-07-03T08:50:52Z
2019-06-24T09:49:49Z
CONTRIBUTOR
null
I am using a custom dataclass as in the index of a DataFrame, which works fine. However, since it implements the Sequence protocol, pprint_thing is rendering every element, rather than the object itself. I would rather use the __str__ method that I have written. I know I can avoid this by changing "pprint_nest_depth" option to 0, but it would be nice to have a direct way of achieving this. My main question is why the presence of a "__next__" attribute is used as the indicator that the correct output is the result of "str" ( https://github.com/pandas-dev/pandas/blob/cfd65e98e694b2ad40e97d06ffdd9096a3dea909/pandas/io/formats/printing.py#L207) This is related to #17695, #18843 and #22333.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26970/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26970/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26971
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26971/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26971/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26971/events
https://github.com/pandas-dev/pandas/issues/26971
458,768,119
MDU6SXNzdWU0NTg3NjgxMTk=
26,971
Code sample on pandas.Series.eq page is for pandas.Series.add
{ "avatar_url": "https://avatars.githubusercontent.com/u/14127094?v=4", "events_url": "https://api.github.com/users/mmorang/events{/privacy}", "followers_url": "https://api.github.com/users/mmorang/followers", "following_url": "https://api.github.com/users/mmorang/following{/other_user}", "gists_url": "https://api.github.com/users/mmorang/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mmorang", "id": 14127094, "login": "mmorang", "node_id": "MDQ6VXNlcjE0MTI3MDk0", "organizations_url": "https://api.github.com/users/mmorang/orgs", "received_events_url": "https://api.github.com/users/mmorang/received_events", "repos_url": "https://api.github.com/users/mmorang/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mmorang/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mmorang/subscriptions", "type": "User", "url": "https://api.github.com/users/mmorang" }
[ { "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
1
2019-06-20T16:57:17Z
2019-06-20T18:45:47Z
2019-06-20T18:45:42Z
NONE
null
#### Problem description The code sample shown in the "Examples" section on the [doc page for pandas.Series.eq](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.eq.html) appears to be for pandas.Series.add instead of eq. ![image](https://user-images.githubusercontent.com/14127094/59866977-c774f900-9341-11e9-9d15-6925da53b7c3.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/26971/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26971/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26972
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26972/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26972/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26972/events
https://github.com/pandas-dev/pandas/issues/26972
458,855,981
MDU6SXNzdWU0NTg4NTU5ODE=
26,972
Index(SparseArray([int])) has object type
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtyp...
open
false
null
[]
null
1
2019-06-20T20:21:19Z
2021-07-10T05:10:12Z
null
CONTRIBUTOR
null
```python In [2]: pd.Index(pd.SparseArray([1, 2])) Out[2]: Index([1, 2], dtype='object') ``` Should this be an Int64Index?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26972/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26972/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26973
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26973/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26973/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26973/events
https://github.com/pandas-dev/pandas/issues/26973
458,864,330
MDU6SXNzdWU0NTg4NjQzMzA=
26,973
HDFStore cannot read Pytables file when where specified
{ "avatar_url": "https://avatars.githubusercontent.com/u/14239619?v=4", "events_url": "https://api.github.com/users/kylekeppler/events{/privacy}", "followers_url": "https://api.github.com/users/kylekeppler/followers", "following_url": "https://api.github.com/users/kylekeppler/following{/other_user}", "gists_url": "https://api.github.com/users/kylekeppler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kylekeppler", "id": 14239619, "login": "kylekeppler", "node_id": "MDQ6VXNlcjE0MjM5NjE5", "organizations_url": "https://api.github.com/users/kylekeppler/orgs", "received_events_url": "https://api.github.com/users/kylekeppler/received_events", "repos_url": "https://api.github.com/users/kylekeppler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kylekeppler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kylekeppler/subscriptions", "type": "User", "url": "https://api.github.com/users/kylekeppler" }
[ { "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", ...
open
false
null
[]
null
2
2019-06-20T20:34:50Z
2020-05-16T20:38:32Z
null
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import tables as tb import pandas as pd # write with pytables arr = np.zeros(4, dtype={'names':('size', 'age', 'weight'), 'formats':('i2', 'i4', 'u8')}) arr[0] = 2 arr[2] = (1, 2, 3) fn = 'myfile2' fileh = tb.open_file(fn+'.h5', mode='w') filters = tb.Filters(complevel=9, complib='blosc', fletcher32=True) table = fileh.create_table(fileh.root, 'mytable', description=arr.dtype, filters=filters) for i in range(5): table.append(arr) fileh.close() # read with pandas (with where) s = pd.HDFStore(fn+'.h5', mode='r') s.select('mytable', where='age=2') >> TypeError: Cannot compare 2 of type <class 'int'> to None column s.close() # read with pandas (without where) s = pd.HDFStore(fn+'.h5', mode='r') s.select('mytable') >> <pd.DataFrame> s.close() ``` #### Problem description When the where is specified, you get `TypeError: Cannot compare 2 of type <class 'int'> to None column` but the data is read correctly when where is not given. #### Expected Output ``` size age weight 0 2 2 2 2 1 2 3 4 2 2 2 6 1 2 3 8 2 2 2 10 1 2 3 12 2 2 2 14 1 2 3 16 2 2 2 18 1 2 3 ``` #### 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 142 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.24.2 pytest: 4.6.2 pip: 19.1.1 setuptools: 41.0.1 Cython: None numpy: 1.16.3 scipy: None pyarrow: None xarray: None IPython: 7.5.0 sphinx: None patsy: None dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: None tables: 3.5.1 numexpr: 2.6.9 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.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26973/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26973/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26974
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26974/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26974/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26974/events
https://github.com/pandas-dev/pandas/issues/26974
458,913,767
MDU6SXNzdWU0NTg5MTM3Njc=
26,974
Index constructor doesn't validate kwargs
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved er...
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
21
2019-06-20T22:26:36Z
2020-12-22T23:45:29Z
2020-12-22T23:45:29Z
CONTRIBUTOR
null
```python In [4]: pd.Index([1, 2], abc=1) Out[4]: Int64Index([1, 2], dtype='int64') ``` This should raise, since `abc` isn't a valid keyword.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26974/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26974/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26975
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26975/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26975/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26975/events
https://github.com/pandas-dev/pandas/pull/26975
458,924,555
MDExOlB1bGxSZXF1ZXN0MjkwNDA3NjAw
26,975
Assorted cleanups
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "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" }
4
2019-06-20T23:00:10Z
2019-06-21T00:56:41Z
2019-06-21T00:51:19Z
MEMBER
null
- [ ] 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/26975/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26975/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26975.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26975", "merged_at": "2019-06-21T00:51:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26975.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26975" }
https://api.github.com/repos/pandas-dev/pandas/issues/26976
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26976/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26976/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26976/events
https://github.com/pandas-dev/pandas/issues/26976
458,966,605
MDU6SXNzdWU0NTg5NjY2MDU=
26,976
algos.take calling validate_indices incorrectly?
{ "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": "009800", "default": false, "description": "Sparse Data Type", "id": 49182326, "name": "Sparse", "node_id": "MDU6TGFiZWw0OTE4MjMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse" } ]
closed
false
null
[]
{ "closed_at": "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-06-21T01:43:05Z
2019-06-27T18:33:20Z
2019-06-27T18:33:20Z
MEMBER
null
https://github.com/pandas-dev/pandas/blob/master/pandas/core/algorithms.py#L1528 In core.algorithms.take: ``` if allow_fill: # Pandas style, -1 means NA validate_indices(indices, len(arr)) result = take_1d(arr, indices, axis=axis, allow_fill=True, fill_value=fill_value) ``` It looks to me like the `validate_indices` call should be `validate_indices(indices, arr.shape[axis])`. Found while attempting to simplify #26914.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26976/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26976/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26977
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26977/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26977/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26977/events
https://github.com/pandas-dev/pandas/issues/26977
458,975,072
MDU6SXNzdWU0NTg5NzUwNzI=
26,977
Abnormal results on multiIndex difference
{ "avatar_url": "https://avatars.githubusercontent.com/u/17853131?v=4", "events_url": "https://api.github.com/users/heury/events{/privacy}", "followers_url": "https://api.github.com/users/heury/followers", "following_url": "https://api.github.com/users/heury/following{/other_user}", "gists_url": "https://api.github.com/users/heury/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/heury", "id": 17853131, "login": "heury", "node_id": "MDQ6VXNlcjE3ODUzMTMx", "organizations_url": "https://api.github.com/users/heury/orgs", "received_events_url": "https://api.github.com/users/heury/received_events", "repos_url": "https://api.github.com/users/heury/repos", "site_admin": false, "starred_url": "https://api.github.com/users/heury/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/heury/subscriptions", "type": "User", "url": "https://api.github.com/users/heury" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" }, { "color": "207de5", "default": false, "descript...
closed
false
null
[]
null
5
2019-06-21T02:17:44Z
2019-06-26T02:11:37Z
2019-06-22T01:46:36Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` arrays = [['a', 'b', 'c', 'd'], [1,2,3,4]] tuples = list(zip(*arrays)) index = pd.MultiIndex.from_tuples(tuples, names=['first', 'second']) index1 = index.copy() index1.difference(index) #This should be empty results but I got following results Out[65]: MultiIndex(levels=[['a', 'b', 'c', 'd'], [1, 2, 3, 4]], codes=[[], []], names=['first', 'second']) index1 = index[:index.size-1] index1.difference(index) #This results is empty as I expected Out[67]: MultiIndex(levels=[[], []], codes=[[], []], names=['first', 'second']) ``` #### Problem description MultiIndex difference returns all indexes if two indexes are same. I guess it should be empty. SingleIndex difference returns empty if two indexes are same. Refer to following example ``` idx1 = pd.Index([2, 1, 3, 4]) idx2 = idx1.copy() idx1.difference(idx2) Out[60]: Int64Index([], dtype='int64') ``` #### Expected Output #### Output of ``pd.show_versions()`` NSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 9, 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: 0.29.6 numpy: 1.16.2 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.4.0 sphinx: 1.8.5 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2018.9 blosc: 1.8.1 bottleneck: 1.2.1 tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.1 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.5 lxml.etree: 4.3.2 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None <details> [paste the output of ``pd.show_versions()`` here below this line] </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26977/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26977/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26978
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26978/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26978/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26978/events
https://github.com/pandas-dev/pandas/pull/26978
459,007,716
MDExOlB1bGxSZXF1ZXN0MjkwNDYxMDM2
26,978
ENH: Reset MultiIndex at specific column levels
{ "avatar_url": "https://avatars.githubusercontent.com/u/40122794?v=4", "events_url": "https://api.github.com/users/ryanreh99/events{/privacy}", "followers_url": "https://api.github.com/users/ryanreh99/followers", "following_url": "https://api.github.com/users/ryanreh99/following{/other_user}", "gists_url": "https://api.github.com/users/ryanreh99/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ryanreh99", "id": 40122794, "login": "ryanreh99", "node_id": "MDQ6VXNlcjQwMTIyNzk0", "organizations_url": "https://api.github.com/users/ryanreh99/orgs", "received_events_url": "https://api.github.com/users/ryanreh99/received_events", "repos_url": "https://api.github.com/users/ryanreh99/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ryanreh99/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ryanreh99/subscriptions", "type": "User", "url": "https://api.github.com/users/ryanreh99" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
null
9
2019-06-21T04:54:00Z
2019-07-29T03:14:34Z
2019-07-11T16:07:57Z
CONTRIBUTOR
null
- [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry **Code Sample** ```python >>> index = pd.MultiIndex.from_tuples([('bird', 'falcon'), ('bird', 'parrot'), ('mammal', 'lion'), ('mammal', 'monkey')], names=['class', 'name']) >>> columns = pd.MultiIndex.from_tuples([('speed', 'max'), ('species', 'type')]) >>> df = pd.DataFrame([(389.0, 'fly'), ( 24.0, 'fly'), ( 80.5, 'run'), (np.nan, 'jump')], index=index, columns=columns) >>> df ``` ```console speed species max type class name bird falcon 389.0 fly parrot 24.0 fly mammal lion 80.5 run monkey NaN jump ``` ```python >>> df.reset_index(level=['class', 'name'], col_level=[1, 0], col_fill=['genus', 'pet']) ``` ```console genus name speed species class pet max type 0 bird falcon 389.0 fly 1 bird parrot 24.0 fly 2 mammal lion 80.5 run 3 mammal monkey NaN jump ``` **Explanation** For DataFrames having MultiIndex Index and MultiIndex columns, the `col_level` parameter can also accept a list / tuple so that each index level's name can be mapped to a specific column level. if not enough `col_level` / `col_fill` values are given, then the last given value maps to the remaining levels.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26978/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26978/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26978.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26978", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26978.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26978" }
https://api.github.com/repos/pandas-dev/pandas/issues/26979
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26979/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26979/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26979/events
https://github.com/pandas-dev/pandas/pull/26979
459,046,795
MDExOlB1bGxSZXF1ZXN0MjkwNDg5NzM5
26,979
CLN: clean-up sanitize_array series construction
{ "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": "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" }
5
2019-06-21T07:08:27Z
2019-06-28T12:32:45Z
2019-06-28T12:32:41Z
MEMBER
null
Some possible clean-up that I encountered when doing https://github.com/pandas-dev/pandas/pull/26848/
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26979/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26979/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26979.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26979", "merged_at": "2019-06-28T12:32:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26979.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26979" }
https://api.github.com/repos/pandas-dev/pandas/issues/26980
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26980/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26980/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26980/events
https://github.com/pandas-dev/pandas/issues/26980
459,074,079
MDU6SXNzdWU0NTkwNzQwNzk=
26,980
rolling method: use time window and win_type
{ "avatar_url": "https://avatars.githubusercontent.com/u/37548991?v=4", "events_url": "https://api.github.com/users/phineas-pta/events{/privacy}", "followers_url": "https://api.github.com/users/phineas-pta/followers", "following_url": "https://api.github.com/users/phineas-pta/following{/other_user}", "gists_url": "https://api.github.com/users/phineas-pta/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phineas-pta", "id": 37548991, "login": "phineas-pta", "node_id": "MDQ6VXNlcjM3NTQ4OTkx", "organizations_url": "https://api.github.com/users/phineas-pta/orgs", "received_events_url": "https://api.github.com/users/phineas-pta/received_events", "repos_url": "https://api.github.com/users/phineas-pta/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phineas-pta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phineas-pta/subscriptions", "type": "User", "url": "https://api.github.com/users/phineas-pta" }
[ { "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": "d4c5f9", "default": false, "description": "rolling,...
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2019-06-21T08:21:17Z
2020-05-08T19:44:05Z
null
NONE
null
I have the same problem with this [StackOverflow post](https://stackoverflow.com/questions/47377581/pandas-rolling-specifying-time-window-and-win-type), I reproduce it here. The goal is to calculate weighted time-based moving average over an irregular time series #### Code Sample ```python import pandas as pd from pandas.tseries.frequencies import to_offset dft = pd.DataFrame( {'B': [0, 1, 2, 3, 4]}, index = pd.Index( [ pd.Timestamp('20130101 09:00:00'), pd.Timestamp('20130101 09:00:02'), pd.Timestamp('20130101 09:00:03'), pd.Timestamp('20130101 09:00:05'), pd.Timestamp('20130101 09:00:06') ], name = 'foo' ) ) dft.rolling('2s').sum() # worked dft.rolling('2s', win_types='triang').sum() # error: Invalid window dft.rolling(to_offset('2s'), win_types='triang').sum() # error: Invalid window dft.rolling(pd.Timedelta('2s'), win_types='triang').sum() # error: Invalid window ``` #### Problem description the `.rolling` method doesn't accept a time window and not-default window type I look at the [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rolling.html) and try with offset window but still have the same problem If it's not possible to use time window, could you please update the documentation #### Output of ``pd.show_versions()`` <details> ``` commit: None python: 3.6.8.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None pandas: 0.24.2 pytest: None pip: 19.1.1 setuptools: 41.0.1 Cython: None numpy: 1.16.4 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.5.0 sphinx: 2.1.0 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.1.0 openpyxl: 2.6.2 xlrd: 1.2.0 xlwt: None xlsxwriter: None lxml.etree: None bs4: None html5lib: None sqlalchemy: 1.3.4 pymysql: None psycopg2: None jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None ``` </details>
{ "+1": 6, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 6, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26980/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26980/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26981
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26981/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26981/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26981/events
https://github.com/pandas-dev/pandas/issues/26981
459,086,197
MDU6SXNzdWU0NTkwODYxOTc=
26,981
DOC: Do not mention private classes in the documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "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
[]
null
5
2019-06-21T08:50:03Z
2019-06-23T11:58:07Z
2019-06-23T11:58:07Z
MEMBER
null
The public documentation shouldn't mention private classes, which the users are not expected to know about, and they could be removed in the future without proper deprecation. We've got a script to find them, it can be run with `./scripts/validate_docstrings.py --errors=GL04` Currently there are those cases: ``` pandas.Series.pipe: Private classes (NDFrame) should not be mentioned in public docstrings pandas.Series.where: Private classes (NDFrame) should not be mentioned in public docstrings pandas.Series.mask: Private classes (NDFrame) should not be mentioned in public docstrings pandas.Series.first_valid_index: Private classes (NDFrame) should not be mentioned in public docstrings pandas.Series.last_valid_index: Private classes (NDFrame) should not be mentioned in public docstrings pandas.Series.tshift: Private classes (NDFrame) should not be mentioned in public docstrings pandas.Series.to_dense: Private classes (NDFrame) should not be mentioned in public docstrings pandas.core.resample.Resampler.get_group: Private classes (NDFrame) should not be mentioned in public docstrings pandas.DataFrame.where: Private classes (NDFrame) should not be mentioned in public docstrings pandas.DataFrame.mask: Private classes (NDFrame) should not be mentioned in public docstrings pandas.DataFrame.pipe: Private classes (NDFrame) should not be mentioned in public docstrings pandas.DataFrame.tshift: Private classes (NDFrame) should not be mentioned in public docstrings pandas.DataFrame.first_valid_index: Private classes (NDFrame) should not be mentioned in public docstrings pandas.DataFrame.last_valid_index: Private classes (NDFrame) should not be mentioned in public docstrings pandas.DataFrame.to_dense: Private classes (NDFrame) should not be mentioned in public docstrings pandas.core.groupby.GroupBy.get_group: Private classes (NDFrame) should not be mentioned in public docstrings pandas.core.groupby.DataFrameGroupBy.tshift: Private classes (NDFrame) should not be mentioned in public docstrings ``` I'd say in most cases we can replace `NDFrame` by `Series or DataFrame` but may be we can rephrase sentences too. After all them are corrected, we should add to `ci/code_checks.sh` the code `GL04` to the part where we validate the documentation, so the CI checks for it, and mentions to `NDFrame` or other private classes are not reintroduced. Also in the same PR we can add `GL05`, which is not validated but there are no errors in the code for it, so we can start validating 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/26981/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26981/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26982
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26982/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26982/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26982/events
https://github.com/pandas-dev/pandas/issues/26982
459,113,587
MDU6SXNzdWU0NTkxMTM1ODc=
26,982
DOC: Fix docstring quotes in pandas.tseries
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "0e8a16", "default": true, "description": null, "id": 7171206...
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
4
2019-06-21T09:51:24Z
2020-09-28T15:39:32Z
2020-09-28T15:39:32Z
MEMBER
null
In pandas we keep the quotes in the docstrings standardized in the next way: ```python def foo(): """ This is correct. """ ``` But for historical reasons we still have many of this form: ```python def foo(): """This is incorrect.""" ``` We have a script that is able to detect the wrong cases, that gives the next errors in `pandas.tseries`: ``` $ ./scripts/validate_docstrings.py --errors=GL01,GL02 --prefix=pandas.tseries pandas.tseries.offsets.DateOffset.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.DateOffset.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BusinessDay.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BusinessDay.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BusinessHour.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BusinessHour.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.CustomBusinessDay.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.CustomBusinessDay.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.CustomBusinessHour.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.CustomBusinessHour.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.MonthOffset.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.MonthOffset.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.MonthEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.MonthEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.MonthBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.MonthBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BusinessMonthEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BusinessMonthEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BusinessMonthBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BusinessMonthBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.CustomBusinessMonthEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.CustomBusinessMonthEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.CustomBusinessMonthBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.CustomBusinessMonthBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.SemiMonthOffset.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.SemiMonthOffset.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.SemiMonthEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.SemiMonthEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.SemiMonthBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.SemiMonthBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Week.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Week.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.WeekOfMonth.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.WeekOfMonth.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.LastWeekOfMonth.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.LastWeekOfMonth.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.QuarterOffset.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.QuarterOffset.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BQuarterEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BQuarterEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BQuarterBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BQuarterBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.QuarterEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.QuarterEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.QuarterBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.QuarterBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.YearOffset.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.YearOffset.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BYearEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BYearEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BYearBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BYearBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.YearEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.YearEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.YearBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.YearBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.FY5253.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.FY5253.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.FY5253Quarter.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.FY5253Quarter.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Easter.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Easter.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Tick.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Tick.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Day.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Day.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Hour.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Hour.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Minute.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Minute.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Second.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Second.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Milli.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Milli.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Micro.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Micro.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.Nano.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.Nano.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BDay.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BDay.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BMonthEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BMonthEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.BMonthBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.BMonthBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.CBMonthEnd.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.CBMonthEnd.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.CBMonthBegin.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.CBMonthBegin.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) pandas.tseries.offsets.CDay.normalize: Docstring text (summary) should start in the line immediately after the opening quotes (not in the same line, or leaving a blank line in between) pandas.tseries.offsets.CDay.normalize: Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same line as the text, or leave a blank line between the last text and the quotes) ``` We should fix all them, in preparation to validate in the continuous integration that all docstrings in pandas follow our standard.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26982/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26982/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26983
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26983/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26983/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26983/events
https://github.com/pandas-dev/pandas/issues/26983
459,154,912
MDU6SXNzdWU0NTkxNTQ5MTI=
26,983
BLD: wheel building is failing
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.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": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" }, { "color": "e11d21", "default": false, ...
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-06-21T11:38:44Z
2019-06-24T14:32:23Z
2019-06-24T14:32:22Z
CONTRIBUTOR
null
after the latest round of merges, seems wheel buidling is failing: https://travis-ci.org/MacPython/pandas-wheels/builds/548526771 ``` =================================== FAILURES =================================== _______________________ test_missing_required_dependency _______________________ [gw1] linux -- Python 3.5.5 /venv/bin/python def test_missing_required_dependency(): # GH 23868 # use the -S flag to disable site-packages call = ['python', '-S', '-c', 'import pandas'] with pytest.raises(subprocess.CalledProcessError) as exc: subprocess.check_output(call, stderr=subprocess.STDOUT) output = exc.value.stdout.decode() > assert all(x in output for x in ['numpy', 'pytz', 'dateutil']) E assert False E + where False = all(<generator object test_missing_required_dependency.<locals>.<genexpr> at 0x7f6e59bd4c50>) /venv/lib/python3.5/site-packages/pandas/tests/test_downstream.py:145: AssertionError =============================== warnings summary =============================== ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26983/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26983/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26984
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26984/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26984/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26984/events
https://github.com/pandas-dev/pandas/issues/26984
459,182,703
MDU6SXNzdWU0NTkxODI3MDM=
26,984
Use pytest tmp file management fixtures instead of ensure_clean[_path|_dir]
{ "avatar_url": "https://avatars.githubusercontent.com/u/265630?v=4", "events_url": "https://api.github.com/users/jgehrcke/events{/privacy}", "followers_url": "https://api.github.com/users/jgehrcke/followers", "following_url": "https://api.github.com/users/jgehrcke/following{/other_user}", "gists_url": "https://api.github.com/users/jgehrcke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgehrcke", "id": 265630, "login": "jgehrcke", "node_id": "MDQ6VXNlcjI2NTYzMA==", "organizations_url": "https://api.github.com/users/jgehrcke/orgs", "received_events_url": "https://api.github.com/users/jgehrcke/received_events", "repos_url": "https://api.github.com/users/jgehrcke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgehrcke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgehrcke/subscriptions", "type": "User", "url": "https://api.github.com/users/jgehrcke" }
[ { "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": "C4A000", "default": false, "description": "pandas t...
open
false
null
[]
null
5
2019-06-21T12:53:01Z
2021-07-10T05:11:06Z
null
CONTRIBUTOR
null
Opened as of discussion in https://github.com/pandas-dev/pandas/pull/26818. `tests/io/test_pytables.py` uses a context manager called `ensure_clean_path`. It might be worth using the pytest `tmp_path` fixture instead which I think provides everything we need with less code (also easier to understand for new contributors familiar with pytest). And it provides even a little more functionality, comparison: - it guarantees file system isolation between tests (as does `ensure_clean_path`). - it makes it obvious which file belongs to which test via expressive naming (as opposed to `ensure_clean_path`). - it retains files for later inspection as opposed to `ensure_clean_path`. That can be useful for debugging after test failure. Note: the pytest-managed temp files are removed in a rolling fashion across test runner invocations so that storage space requirement does not grow indefinitely with the number of invocations. Cf. comment https://github.com/pandas-dev/pandas/pull/26818#issuecomment-504368606
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26984/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26984/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26985
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26985/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26985/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26985/events
https://github.com/pandas-dev/pandas/issues/26985
459,258,706
MDU6SXNzdWU0NTkyNTg3MDY=
26,985
Performance drop and MemoryError during insert and _consolidate_inplace
{ "avatar_url": "https://avatars.githubusercontent.com/u/912790?v=4", "events_url": "https://api.github.com/users/ololobus/events{/privacy}", "followers_url": "https://api.github.com/users/ololobus/followers", "following_url": "https://api.github.com/users/ololobus/following{/other_user}", "gists_url": "https://api.github.com/users/ololobus/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ololobus", "id": 912790, "login": "ololobus", "node_id": "MDQ6VXNlcjkxMjc5MA==", "organizations_url": "https://api.github.com/users/ololobus/orgs", "received_events_url": "https://api.github.com/users/ololobus/received_events", "repos_url": "https://api.github.com/users/ololobus/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ololobus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ololobus/subscriptions", "type": "User", "url": "https://api.github.com/users/ololobus" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "fbca04", "default"...
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
7
2019-06-21T15:39:48Z
2020-12-11T02:35:42Z
2020-12-11T02:35:42Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np n = 2000000 data = pd.DataFrame({'a' : range(n)}) for i in range(1, 100): data['col_' + str(i)] = np.random.choice(['a', 'b'], n) for i in range(1, 600): data['test_{}'.format(i)] = i print(str(i)) ``` #### Problem description Following [this StackOverflow question](https://stackoverflow.com/questions/56690909/python-is-facing-an-overhead-every-98-executions). I run this code sample on Ubuntu 18.04 LTS machine with 16 GB of RAM and 2 GB Swap. Execution produces following stacktrace: ```shell 294 295 296 297 Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/pandas/core/indexes/base.py", line 2657, in get_loc return self._engine.get_loc(key) File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1601, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1608, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'test_298' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/pandas/core/internals/managers.py", line 1053, in set loc = self.items.get_loc(item) File "/usr/local/lib/python3.6/dist-packages/pandas/core/indexes/base.py", line 2659, in get_loc return self._engine.get_loc(self._maybe_cast_indexer(key)) File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 132, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1601, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1608, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'test_298' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "py-memory-test.py", line 12, in <module> data['test_{}'.format(i)] = i File "/usr/local/lib/python3.6/dist-packages/pandas/core/frame.py", line 3370, in __setitem__ self._set_item(key, value) File "/usr/local/lib/python3.6/dist-packages/pandas/core/frame.py", line 3446, in _set_item NDFrame._set_item(self, key, value) File "/usr/local/lib/python3.6/dist-packages/pandas/core/generic.py", line 3172, in _set_item self._data.set(key, value) File "/usr/local/lib/python3.6/dist-packages/pandas/core/internals/managers.py", line 1056, in set self.insert(len(self.items), item, value) File "/usr/local/lib/python3.6/dist-packages/pandas/core/internals/managers.py", line 1184, in insert self._consolidate_inplace() File "/usr/local/lib/python3.6/dist-packages/pandas/core/internals/managers.py", line 929, in _consolidate_inplace self.blocks = tuple(_consolidate(self.blocks)) File "/usr/local/lib/python3.6/dist-packages/pandas/core/internals/managers.py", line 1899, in _consolidate _can_consolidate=_can_consolidate) File "/usr/local/lib/python3.6/dist-packages/pandas/core/internals/blocks.py", line 3149, in _merge_blocks new_values = new_values[argsort] MemoryError ``` I have found [following code](https://github.com/pandas-dev/pandas/blob/224362951942e1f4e05fb8948596620aedac26d9/pandas/core/internals/managers.py#L1179) inside `pandas` core: ```python def insert(self, loc, item, value, allow_duplicates=False): ... self._known_consolidated = False if len(self.blocks) > 100: self._consolidate_inplace() ``` It seems that this consolidation process takes place every ~100th iteration and substantially affects performance and memory usage. In order to proof this hypothesis I have tried to modify `100` to `1000000` and it worked just fine, no performance gaps, no `MemoryError`. It looks quite weird from my perspective, since 'consolidation' sounds like it should reduce memory usage. Probably `pandas` should allocate some private Swap files (e.g. via `mmap`) if it is running out RAM+SystemSwap in order to be able to successfully complete consolidation process. #### Expected Output ```shell 1 2 3 4 5 ... 599 ``` Without substantial freezes every ~100th iteration and `MemoryError`. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.8.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-50-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.4 scipy: None pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.6.1 pytz: 2018.3 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: 2.7.3.1 (dt dec pq3 ext lo64) jinja2: None s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26985/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26985/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26986
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26986/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26986/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26986/events
https://github.com/pandas-dev/pandas/pull/26986
459,270,754
MDExOlB1bGxSZXF1ZXN0MjkwNjY2NzQx
26,986
CLN: move pytables tests to tests/io/pytables dir
{ "avatar_url": "https://avatars.githubusercontent.com/u/265630?v=4", "events_url": "https://api.github.com/users/jgehrcke/events{/privacy}", "followers_url": "https://api.github.com/users/jgehrcke/followers", "following_url": "https://api.github.com/users/jgehrcke/following{/other_user}", "gists_url": "https://api.github.com/users/jgehrcke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jgehrcke", "id": 265630, "login": "jgehrcke", "node_id": "MDQ6VXNlcjI2NTYzMA==", "organizations_url": "https://api.github.com/users/jgehrcke/orgs", "received_events_url": "https://api.github.com/users/jgehrcke/received_events", "repos_url": "https://api.github.com/users/jgehrcke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jgehrcke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jgehrcke/subscriptions", "type": "User", "url": "https://api.github.com/users/jgehrcke" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "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" }
6
2019-06-21T16:09:09Z
2019-06-21T17:55:34Z
2019-06-21T17:55:28Z
CONTRIBUTOR
null
This is a follow-up to [this comment](https://github.com/pandas-dev/pandas/pull/26818#issuecomment-504443559). This moves two test modules (`test_pytables.py` and `test_pytables_missing.py`) into the new `tests/io/pytables` directory introduced in https://github.com/pandas-dev/pandas/pull/26818. @jreback let me know if I should create an issue for this first.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26986/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26986/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26986.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26986", "merged_at": "2019-06-21T17:55:28Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26986.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26986" }
https://api.github.com/repos/pandas-dev/pandas/issues/26987
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26987/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26987/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26987/events
https://github.com/pandas-dev/pandas/issues/26987
459,281,629
MDU6SXNzdWU0NTkyODE2Mjk=
26,987
AttributeError with divmod(Series, Series) with 0 in the denominator
{ "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": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "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-06-21T16:38:08Z
2019-07-06T21:45:47Z
2019-07-06T21:45:47Z
CONTRIBUTOR
null
Strange one. This works, ```python In [39]: a = pd.Series([1, 1]) In [40]: divmod(a, pd.Series([1, 2])); ``` This raises ```pytb In [41]: divmod(a, pd.Series([0, 2])); --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-41-04277abe6f5a> in <module> ----> 1 divmod(a, pd.Series([0, 2])); ~/sandbox/pandas/pandas/core/ops.py in wrapper(left, right) 1714 rvalues = rvalues.values 1715 -> 1716 result = safe_na_op(lvalues, rvalues) 1717 return construct_result(left, result, 1718 index=left.index, name=res_name, dtype=None) ~/sandbox/pandas/pandas/core/ops.py in safe_na_op(lvalues, rvalues) 1660 try: 1661 with np.errstate(all='ignore'): -> 1662 return na_op(lvalues, rvalues) 1663 except Exception: 1664 if is_object_dtype(lvalues): ~/sandbox/pandas/pandas/core/ops.py in na_op(x, y) 1640 result = masked_arith_op(x, y, op) 1641 -> 1642 result = missing.fill_zeros(result, x, y, op_name, fill_zeros) 1643 return result 1644 ~/sandbox/pandas/pandas/core/missing.py in fill_zeros(result, x, y, name, fill) 544 mask = ((y == 0) & ~np.isnan(result)).ravel() 545 --> 546 shape = result.shape 547 result = result.astype('float64', copy=False).ravel() 548 AttributeError: 'tuple' object has no attribute 'shape' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26987/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26987/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26988
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26988/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26988/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26988/events
https://github.com/pandas-dev/pandas/issues/26988
459,294,956
MDU6SXNzdWU0NTkyOTQ5NTY=
26,988
Bug: Series[category].replace casts incorrectly
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtyp...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
0
2019-06-21T17:17:01Z
2019-11-16T21:54:02Z
2019-11-16T21:54:02Z
MEMBER
null
``` dti = pd.date_range('2016-01-01', periods=3, tz='US/Pacific') ser = pd.Series(dti) cat = ser.astype('category') >>> cat 0 2016-01-01 00:00:00-08:00 1 2016-01-02 00:00:00-08:00 2 2016-01-03 00:00:00-08:00 dtype: category Categories (3, datetime64[ns, US/Pacific]): [2016-01-01 00:00:00-08:00, 2016-01-02 00:00:00-08:00, 2016-01-03 00:00:00-08:00] >>> cat.replace(cat[1], 'foo') 0 1451635200000000000 1 1451721600000000000 2 1451808000000000000 dtype: int64 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26988/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26988/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26989
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26989/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26989/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26989/events
https://github.com/pandas-dev/pandas/issues/26989
459,299,804
MDU6SXNzdWU0NTkyOTk4MDQ=
26,989
Series with MultiIndex "at" function raises "TypeError"
{ "avatar_url": "https://avatars.githubusercontent.com/u/20464623?v=4", "events_url": "https://api.github.com/users/ndamclean/events{/privacy}", "followers_url": "https://api.github.com/users/ndamclean/followers", "following_url": "https://api.github.com/users/ndamclean/following{/other_user}", "gists_url": "https://api.github.com/users/ndamclean/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ndamclean", "id": 20464623, "login": "ndamclean", "node_id": "MDQ6VXNlcjIwNDY0NjIz", "organizations_url": "https://api.github.com/users/ndamclean/orgs", "received_events_url": "https://api.github.com/users/ndamclean/received_events", "repos_url": "https://api.github.com/users/ndamclean/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ndamclean/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ndamclean/subscriptions", "type": "User", "url": "https://api.github.com/users/ndamclean" }
[ { "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": "20...
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
5
2019-06-21T17:30:57Z
2020-05-25T22:07:51Z
2020-05-25T22:07:50Z
NONE
null
#### Code Sample ```python # Your code here import pandas as pd s = pd.Series(index=pd.MultiIndex.from_tuples([('a', 0)])) s.loc['a', 0] # loc function works fine, no complaints here s.at['a', 0] # raises TypeError ``` #### Stack Trace: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/pandas/core/indexing.py", line 2270, in __getitem__ return self.obj._get_value(*key, takeable=self._takeable) TypeError: _get_value() got multiple values for argument 'takeable' ``` #### Problem description I would expect the `at` function to either return the values given by the indexers or raise a `KeyError`. In the above example, the index value exists, so `at` should return the value from the series at that index (`nan`). The `at` function works fine for series with normal indexes. There is nothing in the documentation indicating it should not work for multi-indexes. #### Expected Output ``` nan nan ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-50-generic machine: x86_64 processor: byteorder: little LC_ALL: None LANG: C.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 3.4.2 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.10 numpy: 1.16.4 scipy: 1.3.0 pyarrow: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.7.3 pytz: 2019.1 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: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10.1 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/26989/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26989/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26990
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26990/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26990/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26990/events
https://github.com/pandas-dev/pandas/issues/26990
459,340,387
MDU6SXNzdWU0NTkzNDAzODc=
26,990
Show astype example with dict in docs
{ "avatar_url": "https://avatars.githubusercontent.com/u/4340493?v=4", "events_url": "https://api.github.com/users/stevennic/events{/privacy}", "followers_url": "https://api.github.com/users/stevennic/followers", "following_url": "https://api.github.com/users/stevennic/following{/other_user}", "gists_url": "https://api.github.com/users/stevennic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stevennic", "id": 4340493, "login": "stevennic", "node_id": "MDQ6VXNlcjQzNDA0OTM=", "organizations_url": "https://api.github.com/users/stevennic/orgs", "received_events_url": "https://api.github.com/users/stevennic/received_events", "repos_url": "https://api.github.com/users/stevennic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stevennic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stevennic/subscriptions", "type": "User", "url": "https://api.github.com/users/stevennic" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
4
2019-06-21T19:25:24Z
2019-06-22T19:19:38Z
2019-06-22T19:19:38Z
CONTRIBUTOR
null
It would be useful to be able to change a column dtype inline. For example with a DataFrame-level astype() overload: Assuming `df` has a column called `str_col` that is a string (object), `df.astype(col='str_col', dtype='int').head()` The use case that brought me here is to numerically sort a string column without permanently changing it. What I was hoping to do is `df.astype(col='str_col', dtype='int').sort_values(by='str_col')` Instead, I had to do this: `df = df.assign(int_col = lambda x: x['str_col'].astype('int')).sort_values(by='int_col').drop('int_col', axis = 'columns')` The method would also support dictionaries for multiple column type changes: `df.astype({'col1':'type1', 'col2':'type2'})`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26990/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26990/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26991
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26991/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26991/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26991/events
https://github.com/pandas-dev/pandas/issues/26991
459,347,016
MDU6SXNzdWU0NTkzNDcwMTY=
26,991
Can't read cvs using Pandas
{ "avatar_url": "https://avatars.githubusercontent.com/u/51931191?v=4", "events_url": "https://api.github.com/users/zialecuyer/events{/privacy}", "followers_url": "https://api.github.com/users/zialecuyer/followers", "following_url": "https://api.github.com/users/zialecuyer/following{/other_user}", "gists_url": "https://api.github.com/users/zialecuyer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/zialecuyer", "id": 51931191, "login": "zialecuyer", "node_id": "MDQ6VXNlcjUxOTMxMTkx", "organizations_url": "https://api.github.com/users/zialecuyer/orgs", "received_events_url": "https://api.github.com/users/zialecuyer/received_events", "repos_url": "https://api.github.com/users/zialecuyer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/zialecuyer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/zialecuyer/subscriptions", "type": "User", "url": "https://api.github.com/users/zialecuyer" }
[ { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
6
2019-06-21T19:45:39Z
2019-06-24T11:13:01Z
2019-06-24T11:13:01Z
NONE
null
variable = pandas.read_csv(r"C://Users/zialecuyermorison/Desktop/data/iris.csv") header.sepal_length( ) ```python --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-61-ef9a5393d1d5> in <module> ----> 1 variable = pandas.read_csv(r"C://Users/zialecuyermorison/Desktop/data/iris.csv") /anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision) 700 skip_blank_lines=skip_blank_lines) 701 --> 702 return _read(filepath_or_buffer, kwds) 703 704 parser_f.__name__ = name /anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds) 427 428 # Create the parser. --> 429 parser = TextFileReader(filepath_or_buffer, **kwds) 430 431 if chunksize or iterator: /anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py in __init__(self, f, engine, **kwds) 893 self.options['has_index_names'] = kwds['has_index_names'] 894 --> 895 self._make_engine(self.engine) 896 897 def close(self): /anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py in _make_engine(self, engine) 1120 def _make_engine(self, engine='c'): 1121 if engine == 'c': -> 1122 self._engine = CParserWrapper(self.f, **self.options) 1123 else: 1124 if engine == 'python': /anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py in __init__(self, src, **kwds) 1851 kwds['usecols'] = self.usecols 1852 -> 1853 self._reader = parsers.TextReader(src, **kwds) 1854 self.unnamed_cols = self._reader.unnamed_cols 1855 pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.__cinit__() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source() FileNotFoundError: [Errno 2] File b'C://Users/zialecuyermorison/Desktop/data/iris.csv' does not exist: b'C://Users/zialecuyermorison/Desktop/data/iris.csv' ``` #### Problem description I inputted the following code into JupyterLab and I know the path is right and I've tried switching / for \ using // and adding r in front of the C. I still get the following error. I also tried reloading the pandas library. #### Expected Output to pull up the data on Jupyterlab notebook in a table like format hopefully. ![image](https://user-images.githubusercontent.com/51931191/59947558-c1a71280-942a-11e9-94f9-2630ff38fde7.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/26991/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26991/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26992
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26992/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26992/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26992/events
https://github.com/pandas-dev/pandas/pull/26992
459,357,546
MDExOlB1bGxSZXF1ZXN0MjkwNzM1NDc3
26,992
add type hint for core/computation/eval
{ "avatar_url": "https://avatars.githubusercontent.com/u/11509423?v=4", "events_url": "https://api.github.com/users/xcz011/events{/privacy}", "followers_url": "https://api.github.com/users/xcz011/followers", "following_url": "https://api.github.com/users/xcz011/following{/other_user}", "gists_url": "https://api.github.com/users/xcz011/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/xcz011", "id": 11509423, "login": "xcz011", "node_id": "MDQ6VXNlcjExNTA5NDIz", "organizations_url": "https://api.github.com/users/xcz011/orgs", "received_events_url": "https://api.github.com/users/xcz011/received_events", "repos_url": "https://api.github.com/users/xcz011/repos", "site_admin": false, "starred_url": "https://api.github.com/users/xcz011/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/xcz011/subscriptions", "type": "User", "url": "https://api.github.com/users/xcz011" }
[ { "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
8
2019-06-21T20:18:46Z
2019-09-08T16:41:51Z
2019-09-08T16:41:44Z
CONTRIBUTOR
null
- [x] closes #26792 - [ ] 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/26992/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26992/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26992.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26992", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/26992.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26992" }
https://api.github.com/repos/pandas-dev/pandas/issues/26993
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26993/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26993/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26993/events
https://github.com/pandas-dev/pandas/pull/26993
459,370,340
MDExOlB1bGxSZXF1ZXN0MjkwNzQ2MDMy
26,993
xfail test_missing_required_dependency test
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2019-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-06-21T20:58:02Z
2020-04-28T20:42:11Z
2019-06-21T22:10:44Z
CONTRIBUTOR
null
See https://github.com/MacPython/pandas-wheels/pull/50. I can't get this test to work reliably.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26993/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26993/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26993.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26993", "merged_at": "2019-06-21T22:10:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26993.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26993" }
https://api.github.com/repos/pandas-dev/pandas/issues/26994
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26994/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26994/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26994/events
https://github.com/pandas-dev/pandas/pull/26994
459,416,471
MDExOlB1bGxSZXF1ZXN0MjkwNzgzMzE1
26,994
DOC: df.astype example using dictionary
{ "avatar_url": "https://avatars.githubusercontent.com/u/4340493?v=4", "events_url": "https://api.github.com/users/stevennic/events{/privacy}", "followers_url": "https://api.github.com/users/stevennic/followers", "following_url": "https://api.github.com/users/stevennic/following{/other_user}", "gists_url": "https://api.github.com/users/stevennic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stevennic", "id": 4340493, "login": "stevennic", "node_id": "MDQ6VXNlcjQzNDA0OTM=", "organizations_url": "https://api.github.com/users/stevennic/orgs", "received_events_url": "https://api.github.com/users/stevennic/received_events", "repos_url": "https://api.github.com/users/stevennic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stevennic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stevennic/subscriptions", "type": "User", "url": "https://api.github.com/users/stevennic" }
[ { "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-06-22T01:05:34Z
2019-06-22T19:41:24Z
2019-06-22T19:19:38Z
CONTRIBUTOR
null
Closes #26990
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26994/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26994/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26994.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26994", "merged_at": "2019-06-22T19:19:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26994.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26994" }
https://api.github.com/repos/pandas-dev/pandas/issues/26995
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26995/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26995/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26995/events
https://github.com/pandas-dev/pandas/issues/26995
459,424,149
MDU6SXNzdWU0NTk0MjQxNDk=
26,995
Non-Deep copy for Categorical?
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "6138b5", "default": false, "description": "E...
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-06-22T02:47:40Z
2019-06-27T21:22:38Z
2019-06-27T21:22:38Z
MEMBER
null
Categorical.copy passes `values=self._codes.copy()`, and doesn't have a `deep=False` kwarg (which the base ExtensionArray does). This is causing trouble in #26954. Is this intentional @TomAugspurger? Pandas-internal EAs with `copy` behavior not respecting `deep` kwarg: - [ ] Categorical (no kwarg at all) - [ ] DatetimeLike (ignores kwarg) - [ ] PandasArray IntegerArray, IntervalArray, and SparseArray look correct.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26995/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26995/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26996
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26996/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26996/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26996/events
https://github.com/pandas-dev/pandas/issues/26996
459,437,870
MDU6SXNzdWU0NTk0Mzc4NzA=
26,996
BUG: Series.rolling min_period is ignored and NA behaves strangely
{ "avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4", "events_url": "https://api.github.com/users/ghost/events{/privacy}", "followers_url": "https://api.github.com/users/ghost/followers", "following_url": "https://api.github.com/users/ghost/following{/other_user}", "gists_url": "https://api.github.com/users/ghost/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ghost", "id": 10137, "login": "ghost", "node_id": "MDQ6VXNlcjEwMTM3", "organizations_url": "https://api.github.com/users/ghost/orgs", "received_events_url": "https://api.github.com/users/ghost/received_events", "repos_url": "https://api.github.com/users/ghost/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ghost/subscriptions", "type": "User", "url": "https://api.github.com/users/ghost" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "d4c5f9", "default": false, "description": "rolling, ewma, expanding...
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
1
2019-06-22T05:08:59Z
2020-01-26T00:29:40Z
2020-01-26T00:29:40Z
NONE
null
Using current d39a6de668 This may be two separate issues, I can't tell. ### Case 1. ```python import pandas as pd ser=pd.Series(range(10)) ser[:5]=None print(ser) pd.Series(ser).rolling(3, min_periods=3).count() ``` returns ``` 0 0.0 1 0.0 2 0.0 3 0.0 4 0.0 5 1.0 6 2.0 7 3.0 8 3.0 9 3.0 dtype: float64 ``` I expected the first few results to be NA. perhaps related: ``` pd.Series(ser).rolling(3, min_periods=999).count() ``` doesn't raise an exception. ### Case 2. for series with DatetimeIndex and rolling with an offset, the behavior is also strange, but different. ```python import pandas as pd import random from itertools import chain dates = ["2001-01-01"]*2 + ["2001-01-02"]*2 + ["2001-01-03"]*2 + ["2001-01-04"]*2 + ["2001-01-05"]*2+ ["2001-01-06"]*2 ser=pd.Series(index=pd.DatetimeIndex(dates)) ser[0]=111 ser[2]=222 ser[6]=333 res=ser.rolling("2D", min_periods=1).count() df=pd.DataFrame(dict(data=ser,count=res)) print(df) ``` result ``` data count 2001-01-01 111.0 1.0 # OK. The day has one non-NA value, 2001-01-01 NaN 1.0 # and min_period is satisfied 2001-01-02 222.0 2.0 # OK 2001-01-02 NaN 2.0 # OK 2001-01-03 NaN 1.0 # why is this 1.0? this date has no values in it. 2001-01-03 NaN 1.0 # again 2001-01-04 333.0 1.0 # OK 2001-01-04 NaN 1.0 # OK 2001-01-05 NaN 1.0 # why is this 1.0? this date has no values in it. 2001-01-05 NaN 1.0 # again 2001-01-06 NaN NaN # why is this NaN? min_periods is satisfied 2001-01-06 NaN NaN # and non-NA count should 0. ``` encountered in the course of #26959
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26996/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26996/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26997
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26997/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26997/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26997/events
https://github.com/pandas-dev/pandas/pull/26997
459,456,640
MDExOlB1bGxSZXF1ZXN0MjkwODEyMjU4
26,997
DOC: Do not mention private classes in the documentation
{ "avatar_url": "https://avatars.githubusercontent.com/u/24699211?v=4", "events_url": "https://api.github.com/users/LiXuanqi/events{/privacy}", "followers_url": "https://api.github.com/users/LiXuanqi/followers", "following_url": "https://api.github.com/users/LiXuanqi/following{/other_user}", "gists_url": "https://api.github.com/users/LiXuanqi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LiXuanqi", "id": 24699211, "login": "LiXuanqi", "node_id": "MDQ6VXNlcjI0Njk5MjEx", "organizations_url": "https://api.github.com/users/LiXuanqi/orgs", "received_events_url": "https://api.github.com/users/LiXuanqi/received_events", "repos_url": "https://api.github.com/users/LiXuanqi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LiXuanqi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LiXuanqi/subscriptions", "type": "User", "url": "https://api.github.com/users/LiXuanqi" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
3
2019-06-22T09:30:32Z
2019-06-23T11:58:07Z
2019-06-23T11:58:07Z
CONTRIBUTOR
null
- [x] closes #26981 - [x] tests `python validate_docstrings.py --errors=GL04` passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26997/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26997/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/26997.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/26997", "merged_at": "2019-06-23T11:58:06Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/26997.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26997" }
https://api.github.com/repos/pandas-dev/pandas/issues/26998
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26998/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26998/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26998/events
https://github.com/pandas-dev/pandas/issues/26998
459,467,500
MDU6SXNzdWU0NTk0Njc1MDA=
26,998
DataFrame.reset_index(inplace=True) with column names collision brakes dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/8855640?v=4", "events_url": "https://api.github.com/users/s-wakaba/events{/privacy}", "followers_url": "https://api.github.com/users/s-wakaba/followers", "following_url": "https://api.github.com/users/s-wakaba/following{/other_user}", "gists_url": "https://api.github.com/users/s-wakaba/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/s-wakaba", "id": 8855640, "login": "s-wakaba", "node_id": "MDQ6VXNlcjg4NTU2NDA=", "organizations_url": "https://api.github.com/users/s-wakaba/orgs", "received_events_url": "https://api.github.com/users/s-wakaba/received_events", "repos_url": "https://api.github.com/users/s-wakaba/repos", "site_admin": false, "starred_url": "https://api.github.com/users/s-wakaba/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/s-wakaba/subscriptions", "type": "User", "url": "https://api.github.com/users/s-wakaba" }
[ { "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": "4530B5", "default": false, "description": "Relating to inplace para...
open
false
null
[]
null
1
2019-06-22T12:03:22Z
2021-10-29T02:22:14Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np a = pd.DataFrame( np.random.random(12).reshape([4,3]), columns = ['A', 'B', 'C'], index = pd.MultiIndex.from_product([['p','q'],['x','y']], names=['A','D']), ) print(a) # A B C # A D # p x 0.809155 0.181919 0.957133 # y 0.625364 0.802854 0.065737 # q x 0.288116 0.570645 0.944983 # y 0.926358 0.684897 0.724123 try: a.reset_index(inplace=True) except ValueError as e: print(e) # cannot insert A, already exists print(a) # D A B C # A D # p x x 0.809155 0.181919 0.957133 # y y 0.625364 0.802854 0.065737 # q x x 0.288116 0.570645 0.944983 # y y 0.926358 0.684897 0.724123 ``` #### Problem description when there are columns with the same name in data-body and multi-index on calling `DataFrame.reset_index()`, `ValueError` is thrown. however, if `inplace=True` option is specified, this operation is not atomic and leaves DataFrame itself incomplete. I think keeping original data is better and consistent when such exceptions are occurred. #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.7.1.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-862.3.2.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.0.2 pip: 10.0.1 setuptools: 39.0.1 Cython: 0.29.2 numpy: 1.15.4 scipy: 1.1.0 pyarrow: None xarray: None IPython: 7.2.0 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.2 openpyxl: 2.5.12 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.2 lxml.etree: 4.2.5 bs4: 4.6.3 html5lib: 1.0.1 sqlalchemy: 1.2.15 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/26998/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26998/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/26999
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/26999/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/26999/comments
https://api.github.com/repos/pandas-dev/pandas/issues/26999/events
https://github.com/pandas-dev/pandas/issues/26999
459,471,624
MDU6SXNzdWU0NTk0NzE2MjQ=
26,999
to_excel() TyperError: Unsupported type <class 'pandas._libs.tslibs.period.Period'> in write()
{ "avatar_url": "https://avatars.githubusercontent.com/u/6278002?v=4", "events_url": "https://api.github.com/users/riptusk331/events{/privacy}", "followers_url": "https://api.github.com/users/riptusk331/followers", "following_url": "https://api.github.com/users/riptusk331/following{/other_user}", "gists_url": "https://api.github.com/users/riptusk331/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/riptusk331", "id": 6278002, "login": "riptusk331", "node_id": "MDQ6VXNlcjYyNzgwMDI=", "organizations_url": "https://api.github.com/users/riptusk331/orgs", "received_events_url": "https://api.github.com/users/riptusk331/received_events", "repos_url": "https://api.github.com/users/riptusk331/repos", "site_admin": false, "starred_url": "https://api.github.com/users/riptusk331/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/riptusk331/subscriptions", "type": "User", "url": "https://api.github.com/users/riptusk331" }
[ { "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": "eb6420", "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" }
4
2019-06-22T12:57:10Z
2019-06-28T12:38:32Z
2019-06-28T12:38:32Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python writer = pd.ExcelWriter(Path().resolve() / 'output' / 'out.xlsx') for dftup in exportlist: dftup[0].to_excel(writer, sheet_name=dftup[2]) ``` #### Problem description Note that a similar issue was covered in in #19242, but with a different data type. The above code takes a list of tuples which contain the DataFrames (in position 0) and the desired sheet names (in position 2) I would like to write. These DataFrames have MultiIndex columns whose levels are type PeriodIndex. The first level is an index of yearly Periods (freq='Y') and the second level an index of Quarterly periods (freq='Q'). When I try to write the DataFrames to excel, I get the following error (I can post the whole trace if needed). Any ideas? ``` TypeError: Unsupported type <class 'pandas._libs.tslibs.period.Period'> in write() ``` #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.7.3.final.0 python-bits: 64 OS: Darwin OS-release: 18.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.24.2 pytest: 4.5.0 pip: 19.1.1 setuptools: 41.0.1 Cython: 0.29.8 numpy: 1.16.4 scipy: 1.2.1 pyarrow: None xarray: None IPython: 7.5.0 sphinx: 2.0.1 patsy: 0.5.1 dateutil: 2.8.0 pytz: 2019.1 blosc: None bottleneck: 1.2.1 tables: 3.5.1 numexpr: 2.6.9 feather: None matplotlib: 3.0.3 openpyxl: 2.6.2 xlrd: 1.2.0 xlwt: 1.3.0 xlsxwriter: 1.1.8 lxml.etree: 4.3.3 bs4: 4.7.1 html5lib: 1.0.1 sqlalchemy: 1.3.3 pymysql: None psycopg2: 2.7.6.1 (dt dec pq3 ext lo64) jinja2: 2.10.1 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/26999/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/26999/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27000
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27000/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27000/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27000/events
https://github.com/pandas-dev/pandas/issues/27000
459,475,397
MDU6SXNzdWU0NTk0NzUzOTc=
27,000
Proposal: Shorter default Series/DataFrame repr when truncated
{ "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "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-06-22T13:41:00Z
2019-07-03T21:59:48Z
2019-07-03T21:59:48Z
MEMBER
null
There haven been previous attempts to reduce the length of the Series/DataFrame repr (`pandas.options.display.max_rows`), eg https://github.com/pandas-dev/pandas/pull/20514. Related pandas-dev email: https://mail.python.org/pipermail/pandas-dev/2018-March/000732.html In that discussion, I once made the following proposal to introduce two thresholds: - We have 2 thresholds instead of 1 (the current 'max_rows'): a number of rows to show *in* a truncated repr, and a max number of rows to show without truncating - For 'big' dataframes, we show a truncated repr. And then I would go even lower than 20 and only show first/last 5 (so like a max_rows of 10) - For 'small' dataframes, we show the full dataframe without truncating, up to the threshold. We would still need to define those two thresholds. But for example, using the current max_rows of 60: we could show a full repr up to 60 rows, and once the number of rows > 60, we only show 10 (first/last 5). You can then still set both thresholds at the same number (like 20, as in the linked PR above) to not get this variable behaviour. This is actually similar to what numpy arrays do (but with a bigger threshold: eg np.random.randn(1000) shows all 1000 elements, np.random.randn(1001) shows the first/lst 3). And it is also very similar to what R tibbles do: they have a "print_min" and "print_max" options with exactly this behaviour, only their "print_max" is lower (it's 10 and 20, respectively): > options(tibble.print_max = n, tibble.print_min = m): if there are more than > n rows, print only the first m rows. Use options(tibble.print_max = Inf) > to always show all rows.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27000/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27000/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27001
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27001/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27001/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27001/events
https://github.com/pandas-dev/pandas/pull/27001
459,475,602
MDExOlB1bGxSZXF1ZXN0MjkwODI0NDg2
27,001
BUG: fix empty Series repr for subclasses
{ "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
{ "closed_at": "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-06-22T13:44:00Z
2019-07-09T15:02:19Z
2019-06-25T00:47:47Z
MEMBER
null
Currently, the 'Series' name is hardcoded in the empty repr. This small patch ensures it uses the name of the class.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27001/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27001/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27001.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27001", "merged_at": "2019-06-25T00:47:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27001.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27001" }
https://api.github.com/repos/pandas-dev/pandas/issues/27002
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27002/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27002/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27002/events
https://github.com/pandas-dev/pandas/issues/27002
459,477,978
MDU6SXNzdWU0NTk0Nzc5Nzg=
27,002
Improve DataFrame.to_string()
{ "avatar_url": "https://avatars.githubusercontent.com/u/177976?v=4", "events_url": "https://api.github.com/users/darkdragon-001/events{/privacy}", "followers_url": "https://api.github.com/users/darkdragon-001/followers", "following_url": "https://api.github.com/users/darkdragon-001/following{/other_user}", "gists_url": "https://api.github.com/users/darkdragon-001/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/darkdragon-001", "id": 177976, "login": "darkdragon-001", "node_id": "MDQ6VXNlcjE3Nzk3Ng==", "organizations_url": "https://api.github.com/users/darkdragon-001/orgs", "received_events_url": "https://api.github.com/users/darkdragon-001/received_events", "repos_url": "https://api.github.com/users/darkdragon-001/repos", "site_admin": false, "starred_url": "https://api.github.com/users/darkdragon-001/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/darkdragon-001/subscriptions", "type": "User", "url": "https://api.github.com/users/darkdragon-001" }
[ { "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": "ededed", "default": false, "description": "__repr__...
closed
false
null
[]
null
6
2019-06-22T14:13:03Z
2019-06-24T02:27:07Z
2019-06-24T02:27:07Z
NONE
null
Add the following options: - Draw borders: specify border characters and which ones to draw _(similar to [texttable](https://pypi.org/project/texttable/))_ - Allow multi-line cells for long strings instead of truncation (they are visually separated by the borders) - ~~Use [Markdown table format](https://help.github.com/en/articles/organizing-information-with-tables). This could also be implemented in a separate `to_markdown()` function.~~ _(Duplicate of #11052)_
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27002/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27002/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27003
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27003/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27003/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27003/events
https://github.com/pandas-dev/pandas/issues/27003
459,505,390
MDU6SXNzdWU0NTk1MDUzOTA=
27,003
AssertionError with DataFrame.from_records() when it should create column of nulls
{ "avatar_url": "https://avatars.githubusercontent.com/u/22127152?v=4", "events_url": "https://api.github.com/users/d-tork/events{/privacy}", "followers_url": "https://api.github.com/users/d-tork/followers", "following_url": "https://api.github.com/users/d-tork/following{/other_user}", "gists_url": "https://api.github.com/users/d-tork/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/d-tork", "id": 22127152, "login": "d-tork", "node_id": "MDQ6VXNlcjIyMTI3MTUy", "organizations_url": "https://api.github.com/users/d-tork/orgs", "received_events_url": "https://api.github.com/users/d-tork/received_events", "repos_url": "https://api.github.com/users/d-tork/repos", "site_admin": false, "starred_url": "https://api.github.com/users/d-tork/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/d-tork/subscriptions", "type": "User", "url": "https://api.github.com/users/d-tork" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "ffa0ff", "default": false, "description": "Incorrec...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
6
2019-06-22T19:44:45Z
2021-07-10T05:23:24Z
2021-07-10T05:23:23Z
NONE
null
https://github.com/pandas-dev/pandas/blob/cb00deb94500205fcb27a33cc1d0df79a9727f8b/pandas/core/frame.py#L1430-L1556 I passed a list of data with 5 columns but a column header list of 6 items. The documentation for `pd.DataFrame.from_records()` says: > any names not found in the data will become all-NA columns However, instead I get: ```python AssertionError: 6 columns passed, passed data has 5 columns ``` If I am interpreting this wrong or using this method the wrong way, I'm welcome to any suggestions too. Code to reproduce: ```python >>> import pandas as pd >>> data = [list(range(1,6))] >>> data [[1, 2, 3, 4, 5]] >>> col_headers = 'A B C D E F'.split() >>> col_headers ['A', 'B', 'C', 'D', 'E', 'F'] >>> df = pd.DataFrame.from_records(data=data, columns=col_headers) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/dtorkelson/miniconda3/envs/branker/lib/python3.7/site-packages/pandas/core/frame.py", line 1512, in from_records coerce_float=coerce_float) File "/Users/dtorkelson/miniconda3/envs/branker/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 404, in to_arrays dtype=dtype) File "/Users/dtorkelson/miniconda3/envs/branker/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 436, in _list_to_arrays coerce_float=coerce_float) File "/Users/dtorkelson/miniconda3/envs/branker/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 492, in _convert_object_array con=len(content))) AssertionError: 6 columns passed, passed data had 5 columns >>> col_headers.pop(5) 'F' >>> df = pd.DataFrame.from_records(data=data, columns=col_headers) >>> df A B C D E 0 1 2 3 4 5 ``` The extra column name is passed because this code is being used to create many dataframes in a loop, which are being appended to each other. Many have data in the sixth column, but for those that don't, I was hoping (and thinking) that pandas would fill it in with nulls.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27003/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27003/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27004
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27004/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27004/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27004/events
https://github.com/pandas-dev/pandas/pull/27004
459,519,791
MDExOlB1bGxSZXF1ZXN0MjkwODUzNTgw
27,004
TST: fix flaky test
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "5319e7", "default": false, "description": "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" } ]
closed
false
null
[]
null
3
2019-06-22T23:28:15Z
2019-06-23T16:10:38Z
2019-06-23T09:05:27Z
MEMBER
null
One of the tests that uses this fixture modifies its value, so the `scope` kwarg is incorrect. The failure depends on the order in which the test is run. AFAICT only showing up on OSX. Hits one of the checkboxes in #26823.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27004/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27004/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27004.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27004", "merged_at": "2019-06-23T09:05:27Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27004.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27004" }
https://api.github.com/repos/pandas-dev/pandas/issues/27005
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27005/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27005/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27005/events
https://github.com/pandas-dev/pandas/pull/27005
459,540,874
MDExOlB1bGxSZXF1ZXN0MjkwODY2ODMy
27,005
Add informal definition of "label" in note
{ "avatar_url": "https://avatars.githubusercontent.com/u/3386865?v=4", "events_url": "https://api.github.com/users/sgpinkus/events{/privacy}", "followers_url": "https://api.github.com/users/sgpinkus/followers", "following_url": "https://api.github.com/users/sgpinkus/following{/other_user}", "gists_url": "https://api.github.com/users/sgpinkus/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sgpinkus", "id": 3386865, "login": "sgpinkus", "node_id": "MDQ6VXNlcjMzODY4NjU=", "organizations_url": "https://api.github.com/users/sgpinkus/orgs", "received_events_url": "https://api.github.com/users/sgpinkus/received_events", "repos_url": "https://api.github.com/users/sgpinkus/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sgpinkus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sgpinkus/subscriptions", "type": "User", "url": "https://api.github.com/users/sgpinkus" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
null
8
2019-06-23T06:12:16Z
2019-06-30T08:40:10Z
2019-06-24T14:23:57Z
NONE
null
The term "label" is used extenisively, but (AFAICT) it is never explained what a "label" is. Is an integer offset a label? Do labels apply to rows and columns, multi-indexes? What's the relation between an "index" "axis" and "label" ... etc. - [ ] 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/27005/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27005/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27005.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27005", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/27005.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27005" }
https://api.github.com/repos/pandas-dev/pandas/issues/27006
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27006/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27006/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27006/events
https://github.com/pandas-dev/pandas/pull/27006
459,540,887
MDExOlB1bGxSZXF1ZXN0MjkwODY2ODQx
27,006
BUG: XlsxWriter ignoring formats on numpy types if merged cells
{ "avatar_url": "https://avatars.githubusercontent.com/u/6278002?v=4", "events_url": "https://api.github.com/users/riptusk331/events{/privacy}", "followers_url": "https://api.github.com/users/riptusk331/followers", "following_url": "https://api.github.com/users/riptusk331/following{/other_user}", "gists_url": "https://api.github.com/users/riptusk331/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/riptusk331", "id": 6278002, "login": "riptusk331", "node_id": "MDQ6VXNlcjYyNzgwMDI=", "organizations_url": "https://api.github.com/users/riptusk331/orgs", "received_events_url": "https://api.github.com/users/riptusk331/received_events", "repos_url": "https://api.github.com/users/riptusk331/repos", "site_admin": false, "starred_url": "https://api.github.com/users/riptusk331/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/riptusk331/subscriptions", "type": "User", "url": "https://api.github.com/users/riptusk331" }
[ { "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": "eb6420", "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" }
13
2019-06-23T06:12:41Z
2019-06-28T23:11:27Z
2019-06-28T12:38:32Z
CONTRIBUTOR
null
The XlsxWriter `write_cells` method takes a `cells` parameter that is itself derived from a generator of the various cells in the DataFrame. It calls the `_value_with_format()` to convert any numpy types to Python types for the Excel writer. In the section of code that deals with writing merged cells, the original passed `cell.val` parameter was being passed into the writer, rather than the `val` returned from the `_value_with_format()` function. This caused incompatible numpy or Pandas types to get passed into the writer when the condition of being in a 'merged' (grouped) DataFrame cell was met. In my case, I had a Pandas `Period` object in the MultiIndex of a grouped DataFrame . All that needed to be done to fix this was simply removing the `cell.` from `cell.val` that was being passed into `wks.merge_range()` function, and replacing it with the correct `val`, which is 'type safe' for the Excel writer. - [x] closes #26999 - [x] tests added / passed - [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/27006/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27006/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27006.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27006", "merged_at": "2019-06-28T12:38:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27006.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27006" }
https://api.github.com/repos/pandas-dev/pandas/issues/27007
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27007/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27007/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27007/events
https://github.com/pandas-dev/pandas/pull/27007
459,546,889
MDExOlB1bGxSZXF1ZXN0MjkwODcwODE2
27,007
CLN: Fix typos (mainly in docs and comments)
{ "avatar_url": "https://avatars.githubusercontent.com/u/15278512?v=4", "events_url": "https://api.github.com/users/minho42/events{/privacy}", "followers_url": "https://api.github.com/users/minho42/followers", "following_url": "https://api.github.com/users/minho42/following{/other_user}", "gists_url": "https://api.github.com/users/minho42/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/minho42", "id": 15278512, "login": "minho42", "node_id": "MDQ6VXNlcjE1Mjc4NTEy", "organizations_url": "https://api.github.com/users/minho42/orgs", "received_events_url": "https://api.github.com/users/minho42/received_events", "repos_url": "https://api.github.com/users/minho42/repos", "site_admin": false, "starred_url": "https://api.github.com/users/minho42/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/minho42/subscriptions", "type": "User", "url": "https://api.github.com/users/minho42" }
[ { "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-06-23T07:46:10Z
2019-06-24T15:56:10Z
2019-06-24T15:52:42Z
CONTRIBUTOR
null
- [ ] 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/27007/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27007/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27007.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27007", "merged_at": "2019-06-24T15:52:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27007.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27007" }
https://api.github.com/repos/pandas-dev/pandas/issues/27008
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27008/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27008/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27008/events
https://github.com/pandas-dev/pandas/issues/27008
459,564,117
MDU6SXNzdWU0NTk1NjQxMTc=
27,008
to_excel Mishandles Mixing of tz-aware datetimes
{ "avatar_url": "https://avatars.githubusercontent.com/u/811999?v=4", "events_url": "https://api.github.com/users/shashurup/events{/privacy}", "followers_url": "https://api.github.com/users/shashurup/followers", "following_url": "https://api.github.com/users/shashurup/following{/other_user}", "gists_url": "https://api.github.com/users/shashurup/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shashurup", "id": 811999, "login": "shashurup", "node_id": "MDQ6VXNlcjgxMTk5OQ==", "organizations_url": "https://api.github.com/users/shashurup/orgs", "received_events_url": "https://api.github.com/users/shashurup/received_events", "repos_url": "https://api.github.com/users/shashurup/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shashurup/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shashurup/subscriptions", "type": "User", "url": "https://api.github.com/users/shashurup" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", ...
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
10
2019-06-23T11:14:10Z
2019-06-29T20:54:28Z
2019-06-29T20:54:28Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` In [14]: import pandas as pd In [14]: ew = pd.ExcelWriter('test.xlsx') In [15]: df = pd.DataFrame([pd.to_datetime('2019-06-22 01:11'), pd.to_datetime('2019-06-22 01:11 ...: Z'), pd.to_datetime('2019-06-22 01:11MSK')]) In [16]: df Out[16]: 0 0 2019-06-22 01:11:00 1 2019-06-22 01:11:00+00:00 2 2019-06-22 01:11:00+03:00 In [17]: df.to_excel(ew, sheet_name='sh1') In [18]: ew.save() In [19]: ew.close() ``` (MSK is +03:00) #### Problem description ExcelWriter seems to incorrectly convert timestamps with timezones. Time part seems to be converted correctly, however date part looks like it was unchanged. #### Expected excel sheet content 0 | 2019-06-22 01:11:00 1 | 2019-06-22 01:11:00 2 | 2019-06-21 22:11:00 #### Actual excel sheet content 0 | 2019-06-22 01:11:00 1 | 2019-06-22 01:11:00 2 | 2019-06-**22** 22:11:00 pandas is 0.24.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/27008/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27008/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27009
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27009/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27009/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27009/events
https://github.com/pandas-dev/pandas/pull/27009
459,569,490
MDExOlB1bGxSZXF1ZXN0MjkwODg1MDYw
27,009
PLT: Cleaner plotting backend API, and unify Series and DataFrame accessors
{ "avatar_url": "https://avatars.githubusercontent.com/u/10058240?v=4", "events_url": "https://api.github.com/users/datapythonista/events{/privacy}", "followers_url": "https://api.github.com/users/datapythonista/followers", "following_url": "https://api.github.com/users/datapythonista/following{/other_user}", "gists_url": "https://api.github.com/users/datapythonista/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/datapythonista", "id": 10058240, "login": "datapythonista", "node_id": "MDQ6VXNlcjEwMDU4MjQw", "organizations_url": "https://api.github.com/users/datapythonista/orgs", "received_events_url": "https://api.github.com/users/datapythonista/received_events", "repos_url": "https://api.github.com/users/datapythonista/repos", "site_admin": false, "starred_url": "https://api.github.com/users/datapythonista/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/datapythonista/subscriptions", "type": "User", "url": "https://api.github.com/users/datapythonista" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "e11d21", "default": false, "description": "Bl...
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" }
25
2019-06-23T12:18:33Z
2019-07-03T18:28:35Z
2019-07-03T18:21:02Z
MEMBER
null
- [X] xref #26747 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The main changes are: The API that backends need to implement is simply a function `plot(data, kind, **kwargs)`. After testing different approaches (abstract class previously mentioned and others), I think this is what makes things simpler in both ends pandas and the backends. For `hvplot` `hvPlot.__call__` is already what needs to be implemented, and this change will mainly require to delete a bit of code. For `pdvega` a bit more work will be needed, but this will help remove a significant amount of repetitive code. Second thing, more in the pandas side, I unify the accessors of `Series` and `DataFrame`. There will be minor changes, like unified documentation (which I think it's great, but docstrings will have to be generic), and also `Series.plot.scatter` will exist (which now doesn't) but will generate an exception if called. Not a big deal I'd say, because now it's already possible to do `Series.plot(kind='scatter')`, so it'll just make both cases consistent. Same things apply to `hexbin`. CC: @pandas-dev/pandas-core @philippjfr @jakevdp
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27009/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27009/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27009.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27009", "merged_at": "2019-07-03T18:21:02Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27009.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27009" }
https://api.github.com/repos/pandas-dev/pandas/issues/27010
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27010/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27010/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27010/events
https://github.com/pandas-dev/pandas/pull/27010
459,608,981
MDExOlB1bGxSZXF1ZXN0MjkwOTExNDM3
27,010
TST: Fix flaky test
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "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" }
4
2019-06-23T19:27:36Z
2019-06-27T21:31:35Z
2019-06-27T21:27:18Z
MEMBER
null
Addresses one of the checkboxes in #26823
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27010/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27010/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/27010.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/27010", "merged_at": "2019-06-27T21:27:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/27010.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/27010" }
https://api.github.com/repos/pandas-dev/pandas/issues/27011
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27011/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27011/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27011/events
https://github.com/pandas-dev/pandas/issues/27011
459,614,071
MDU6SXNzdWU0NTk2MTQwNzE=
27,011
BUG: ensure_index inconsistently coerces np.nan to pd.NaT depending if timezones are present
{ "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": "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-08-22T19:23:14Z", "closed_issues": 145, "created_at": "2019-06-30T19:32:22Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "on-merge: backport to 0.25.x", "due_on": "2019-08-21T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/65", "id": 4452219, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65/labels", "node_id": "MDk6TWlsZXN0b25lNDQ1MjIxOQ==", "number": 65, "open_issues": 0, "state": "closed", "title": "0.25.1", "updated_at": "2019-08-22T19:52:56Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/65" }
1
2019-06-23T20:23:59Z
2019-07-24T11:42:49Z
2019-07-24T11:42:49Z
MEMBER
null
#### Code Sample, a copy-pastable example if possible On master: ```python In [1]: import numpy as np; import pandas as pd; pd.__version__ Out[1]: '0.25.0.dev0+783.g2b9b58dad' In [2]: ts_list = [pd.Timestamp('2018-01-01'), np.nan] ...: tstz_list = [pd.Timestamp('2018-01-01', tz='UTC'), np.nan] In [3]: pd.core.indexes.base.ensure_index(ts_list) Out[3]: DatetimeIndex(['2018-01-01', 'NaT'], dtype='datetime64[ns]', freq=None) In [4]: pd.core.indexes.base.ensure_index(tstz_list) Out[4]: Index([2018-01-01 00:00:00+00:00, nan], dtype='object') ``` #### Problem description `Out[4]` does not coerce `np.nan` to `pd.NaT` and results in an `Index` with `object` dtype instead of a `DatetimeIndex`. This causes downstream issues with `IntervalIndex`/`IntervalArray` as it can cause a valid `IntervalIndex`/`IntervalArray` to not be roundtripable from it's equivalent `list`/`np.array` representation: ```python In [5]: left = pd.DatetimeIndex(['2018-01-01', pd.NaT], tz='UTC') ...: right = pd.DatetimeIndex(['2018-01-02', pd.NaT], tz='UTC') ...: ii = pd.IntervalIndex.from_arrays(left, right) ...: ii Out[5]: IntervalIndex([(2018-01-01, 2018-01-02], nan], closed='right', dtype='interval[datetime64[ns, UTC]]') In [6]: pd.IntervalIndex(ii.tolist()) --------------------------------------------------------------------------- TypeError: category, object, and string subtypes are not supported for IntervalIndex In [7]: pd.IntervalIndex(ii.to_numpy()) --------------------------------------------------------------------------- TypeError: category, object, and string subtypes are not supported for IntervalIndex ``` Under the hood the `list`/`np.array` is being converted to `left`/`right` components, which are then passed to `ensure_index`, resulting in an `Index` with `object` dtype, hence the error message. Note that the equivalent roundtrip without a tz works fine, as expected based on the inconsistency noted in the `ensure_index` example: ```python In [8]: left = pd.DatetimeIndex(['2018-01-01', pd.NaT]) ...: right = pd.DatetimeIndex(['2018-01-02', pd.NaT]) ...: ii = pd.IntervalIndex.from_arrays(left, right) ...: ii Out[8]: IntervalIndex([(2018-01-01, 2018-01-02], nan], closed='right', dtype='interval[datetime64[ns]]') In [9]: pd.IntervalIndex(ii.tolist()) Out[9]: IntervalIndex([(2018-01-01, 2018-01-02], nan], closed='right', dtype='interval[datetime64[ns]]') In [10]: pd.IntervalIndex(ii.to_numpy()) Out[10]: IntervalIndex([(2018-01-01, 2018-01-02], nan], closed='right', dtype='interval[datetime64[ns]]') ``` #### Expected Output I'd expect `Out[4]` to be coerced to a `DatetimeIndex` with `pd.NaT` and the appropriate tz: ```python Out[4]: DatetimeIndex(['2018-01-01 00:00:00+00:00', 'NaT'], dtype='datetime64[ns, UTC]', freq=None) ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit : 2b9b58dadf8a4e02b94747b6c8b22bec4b6eeefd python : 3.7.3.final.0 python-bits : 64 OS : Linux OS-release : 4.19.14-041914-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 pandas : 0.25.0.dev0+783.g2b9b58dad numpy : 1.16.4 pytz : 2019.1 dateutil : 2.8.0 pip : 19.1.1 setuptools : 40.8.0 Cython : 0.29.10 pytest : 4.6.2 hypothesis : 4.23.6 sphinx : 1.8.5 blosc : None feather : None xlsxwriter : 1.1.8 lxml.etree : 4.3.3 html5lib : 1.0.1 pymysql : None psycopg2 : None jinja2 : 2.10.1 IPython : 7.5.0 pandas_datareader: None bs4 : 4.7.1 bottleneck : 1.2.1 fastparquet : 0.3.0 gcsfs : None matplotlib : 3.1.0 numexpr : 2.6.9 openpyxl : 2.6.2 pandas_gbq : None pyarrow : 0.11.1 pytables : None s3fs : 0.2.1 scipy : 1.2.1 sqlalchemy : 1.3.4 tables : 3.5.2 xarray : 0.12.1 xlrd : 1.2.0 xlwt : 1.3.0 xlsxwriter : 1.1.8 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27011/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27011/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/27012
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/27012/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/27012/comments
https://api.github.com/repos/pandas-dev/pandas/issues/27012/events
https://github.com/pandas-dev/pandas/issues/27012
459,617,860
MDU6SXNzdWU0NTk2MTc4NjA=
27,012
TST: fixture names for REPL usability
{ "avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4", "events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}", "followers_url": "https://api.github.com/users/jbrockmendel/followers", "following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}", "gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbrockmendel", "id": 8078968, "login": "jbrockmendel", "node_id": "MDQ6VXNlcjgwNzg5Njg=", "organizations_url": "https://api.github.com/users/jbrockmendel/orgs", "received_events_url": "https://api.github.com/users/jbrockmendel/received_events", "repos_url": "https://api.github.com/users/jbrockmendel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions", "type": "User", "url": "https://api.github.com/users/jbrockmendel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
null
1
2019-06-23T21:05:35Z
2019-11-05T22:11:20Z
2019-11-05T22:11:20Z
MEMBER
null
The pytest docs (https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly) suggest a pattern that would make fixturized tests a zillion times less frustrating to troubleshoot when they fail. Instead of ``` @pytest.fixture def whatever(): ``` We use ``` def whatever(): @pytest.fixture(name="whatever") def whatever_fixture(): return whatever() ``` This way, when a test fails, I can recreate it in the repl with ``` from pandas.tests.extensions.test_categorical import * data = data() ``` instead of having to copy-and-paste the contents of the `data` fixture like a savage.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/27012/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/27012/timeline
null
null
null