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/31715
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31715/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31715/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31715/events
|
https://github.com/pandas-dev/pandas/pull/31715
| 560,558,714
|
MDExOlB1bGxSZXF1ZXN0MzcxNTI3NTQ4
| 31,715
|
REF: organize MultiIndex indexing tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-05T18:44:09Z
| 2020-02-07T00:02:47Z
| 2020-02-07T00:01:27Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31715/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31715/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31715.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31715",
"merged_at": "2020-02-07T00:01:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31715.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31715"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31716
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31716/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31716/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31716/events
|
https://github.com/pandas-dev/pandas/pull/31716
| 560,563,037
|
MDExOlB1bGxSZXF1ZXN0MzcxNTMxMDI3
| 31,716
|
fix mypy errors in pandas/tests/arithmetic/test_datetime64.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17853006?v=4",
"events_url": "https://api.github.com/users/SaturnFromTitan/events{/privacy}",
"followers_url": "https://api.github.com/users/SaturnFromTitan/followers",
"following_url": "https://api.github.com/users/SaturnFromTitan/following{/other_user}",
"gists_url": "https://api.github.com/users/SaturnFromTitan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SaturnFromTitan",
"id": 17853006,
"login": "SaturnFromTitan",
"node_id": "MDQ6VXNlcjE3ODUzMDA2",
"organizations_url": "https://api.github.com/users/SaturnFromTitan/orgs",
"received_events_url": "https://api.github.com/users/SaturnFromTitan/received_events",
"repos_url": "https://api.github.com/users/SaturnFromTitan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SaturnFromTitan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SaturnFromTitan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SaturnFromTitan"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-05T18:52:59Z
| 2020-02-19T14:09:38Z
| 2020-02-19T12:02:59Z
|
CONTRIBUTOR
| null |
Part of #28926
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31716/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31716/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31716.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31716",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31716.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31716"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31717
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31717/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31717/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31717/events
|
https://github.com/pandas-dev/pandas/issues/31717
| 560,567,596
|
MDU6SXNzdWU1NjA1Njc1OTY=
| 31,717
|
Are the contributors in the whatsnew v1.0.1 note correct?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "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
| 2020-02-05T19:02:26Z
| 2020-03-23T13:41:35Z
| 2020-03-23T13:41:35Z
|
MEMBER
| null |
Having a look at https://github.com/pandas-dev/pandas/milestone/69?closed=1, it seems there's some contributors (e.g. dsaxton , srvanrell) who aren't listed in the whatsnew page: https://pandas.pydata.org/docs/whatsnew/v1.0.1.html
> A total of 7 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.
>
> Guillaume Lemaitre
>
> Jeff Reback
>
> Joris Van den Bossche
>
> Kaiqi Dong
>
> MeeseeksMachine
>
> Pandas Development Team
>
> Tom Augspurger
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31717/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31717/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31718
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31718/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31718/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31718/events
|
https://github.com/pandas-dev/pandas/pull/31718
| 560,577,240
|
MDExOlB1bGxSZXF1ZXN0MzcxNTQyNzMz
| 31,718
|
fix type errors in pandas/tests/extension/json/array.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17853006?v=4",
"events_url": "https://api.github.com/users/SaturnFromTitan/events{/privacy}",
"followers_url": "https://api.github.com/users/SaturnFromTitan/followers",
"following_url": "https://api.github.com/users/SaturnFromTitan/following{/other_user}",
"gists_url": "https://api.github.com/users/SaturnFromTitan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SaturnFromTitan",
"id": 17853006,
"login": "SaturnFromTitan",
"node_id": "MDQ6VXNlcjE3ODUzMDA2",
"organizations_url": "https://api.github.com/users/SaturnFromTitan/orgs",
"received_events_url": "https://api.github.com/users/SaturnFromTitan/received_events",
"repos_url": "https://api.github.com/users/SaturnFromTitan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SaturnFromTitan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SaturnFromTitan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SaturnFromTitan"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-05T19:21:46Z
| 2020-02-05T20:59:29Z
| 2020-02-05T20:59:22Z
|
CONTRIBUTOR
| null |
Part of #28926
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31718/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31718/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31718.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31718",
"merged_at": "2020-02-05T20:59:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31718.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31718"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31719
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31719/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31719/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31719/events
|
https://github.com/pandas-dev/pandas/issues/31719
| 560,588,761
|
MDU6SXNzdWU1NjA1ODg3NjE=
| 31,719
|
Change of rolling behavior in Pandas 1.0.0 vs 0.25.3
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/793516?v=4",
"events_url": "https://api.github.com/users/icexelloss/events{/privacy}",
"followers_url": "https://api.github.com/users/icexelloss/followers",
"following_url": "https://api.github.com/users/icexelloss/following{/other_user}",
"gists_url": "https://api.github.com/users/icexelloss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/icexelloss",
"id": 793516,
"login": "icexelloss",
"node_id": "MDQ6VXNlcjc5MzUxNg==",
"organizations_url": "https://api.github.com/users/icexelloss/orgs",
"received_events_url": "https://api.github.com/users/icexelloss/received_events",
"repos_url": "https://api.github.com/users/icexelloss/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/icexelloss/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/icexelloss/subscriptions",
"type": "User",
"url": "https://api.github.com/users/icexelloss"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-02-05T19:44:12Z
| 2020-02-05T19:52:14Z
| 2020-02-05T19:52:14Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
df = pd.DataFrame({
'a': np.arange(10, dtype=float),
'b': [3.0, np.NaN] * 5,
'key': list('ddeefffggh'),
})
expected = df.sort_values(['key', 'a']).assign(
rolled=lambda d: d.groupby('key')
.b.rolling(3, min_periods=1)
.apply(lambda x: x.mean(), raw=True)
.reset_index(level=0, drop=True)
)
```
#### Problem description
1.0.0 result:
```
a b key rolled
0 0.0 3.0 d 3.0
1 1.0 NaN d 3.0
2 2.0 3.0 e 3.0
3 3.0 NaN e 3.0
4 4.0 3.0 f 3.0
5 5.0 NaN f 3.0
6 6.0 3.0 f 3.0
7 7.0 NaN g NaN
8 8.0 3.0 g 3.0
9 9.0 NaN h NaN
```
0.25.3 behavior:
```
a b key rolled
0 0.0 3.0 d 3.0
1 1.0 NaN d NaN
2 2.0 3.0 e 3.0
3 3.0 NaN e NaN
4 4.0 3.0 f 3.0
5 5.0 NaN f NaN
6 6.0 3.0 f NaN
7 7.0 NaN g NaN
8 8.0 3.0 g NaN
9 9.0 NaN h NaN
```
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
For documentation-related issues, you can check the latest versions of the docs on `master` here:
https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31719/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31719/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31720
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31720/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31720/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31720/events
|
https://github.com/pandas-dev/pandas/issues/31720
| 560,599,263
|
MDU6SXNzdWU1NjA1OTkyNjM=
| 31,720
|
`Series.replace` fails on categoricals with list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/903655?v=4",
"events_url": "https://api.github.com/users/bnaul/events{/privacy}",
"followers_url": "https://api.github.com/users/bnaul/followers",
"following_url": "https://api.github.com/users/bnaul/following{/other_user}",
"gists_url": "https://api.github.com/users/bnaul/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bnaul",
"id": 903655,
"login": "bnaul",
"node_id": "MDQ6VXNlcjkwMzY1NQ==",
"organizations_url": "https://api.github.com/users/bnaul/orgs",
"received_events_url": "https://api.github.com/users/bnaul/received_events",
"repos_url": "https://api.github.com/users/bnaul/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bnaul/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bnaul/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bnaul"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 3
| 2020-02-05T20:05:27Z
| 2020-02-17T16:59:53Z
| 2020-02-17T16:59:53Z
|
CONTRIBUTOR
| null |
Looks like this was introduced in #27026: not sure of the details of what was incorrect in the old version but I do know that this at least didn't error:
```python
cat = pd.CategoricalIndex(['a', 'b']).to_series()
cat.replace('a', 'A') # works
cat.replace(['a'], 'A')
~/model/.venv/lib/python3.7/site-packages/pandas/core/arrays/categorical.py in replace(self, to_replace, value, inplace)
2440 inplace = validate_bool_kwarg(inplace, "inplace")
2441 cat = self if inplace else self.copy()
-> 2442 if to_replace in cat.categories:
2443 if isna(value):
2444 cat.remove_categories(to_replace, inplace=True)
~/model/.venv/lib/python3.7/site-packages/pandas/core/indexes/base.py in __contains__(self, key)
3898 @Appender(_index_shared_docs["contains"] % _index_doc_kwargs)
3899 def __contains__(self, key) -> bool:
-> 3900 hash(key)
3901 try:
3902 return key in self._engine
TypeError: unhashable type: 'list'
```
Seems like most of the methods used in this implementation already handle list-like inputs so it should be a pretty easy fix..?
#### Output of ``pd.show_versions()``
<details>
pandas : 1.0.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31720/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31720/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31721
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31721/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31721/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31721/events
|
https://github.com/pandas-dev/pandas/pull/31721
| 560,625,002
|
MDExOlB1bGxSZXF1ZXN0MzcxNTgyMDIy
| 31,721
|
CLN: inconsistent kwarg name
|
{
"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 |
[] | null | 1
| 2020-02-05T20:58:40Z
| 2020-04-05T17:34:04Z
| 2020-02-06T17:16:23Z
|
MEMBER
| null |
A couple of days ago the "setting" kwarg got introduced in core.indexing, but I should have called it "is_setter" to match the existing pattern in that module. This fixes that.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31721/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31721/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31721.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31721",
"merged_at": "2020-02-06T17:16:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31721.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31721"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31722
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31722/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31722/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31722/events
|
https://github.com/pandas-dev/pandas/issues/31722
| 560,626,630
|
MDU6SXNzdWU1NjA2MjY2MzA=
| 31,722
|
API/BUG: Inconsistent errors/msgs between loc vs at
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-05T21:02:07Z
| 2020-02-06T23:58:05Z
| 2020-02-06T23:58:05Z
|
MEMBER
| null |
```
df = DataFrame({"A": [1, 2, 3]}, index=list("abc"))
>>> df.at[0]
ValueError: At based indexing on an non-integer index can only have non-integer indexers
>>> df.loc[0]
TypeError: cannot do label indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [0] of <class 'int'>
```
I would expect these to behave the same.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31722/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31722/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31723
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31723/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31723/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31723/events
|
https://github.com/pandas-dev/pandas/pull/31723
| 560,646,987
|
MDExOlB1bGxSZXF1ZXN0MzcxNjAwNTM1
| 31,723
|
DOC: Add 1.0.2 whatsnew
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 6
| 2020-02-05T21:43:43Z
| 2020-02-06T21:05:06Z
| 2020-02-06T07:49:01Z
|
CONTRIBUTOR
| null |
- Need this for PR https://github.com/pandas-dev/pandas/issues/31677
cc. @TomAugspurger @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/31723/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31723/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31723.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31723",
"merged_at": "2020-02-06T07:49:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31723.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31723"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31724
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31724/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31724/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31724/events
|
https://github.com/pandas-dev/pandas/pull/31724
| 560,650,673
|
MDExOlB1bGxSZXF1ZXN0MzcxNjAzNjI2
| 31,724
|
API/BUG: make .at raise same exceptions as .loc
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-02-05T21:51:48Z
| 2020-02-07T08:49:26Z
| 2020-02-06T23:58:06Z
|
MEMBER
| null |
- [x] closes #31722
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This also (very) indirectly addresses #31683 which in turn will let us get rid of `CategoricalIndex.get_value` altogether.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31724/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31724/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31724.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31724",
"merged_at": "2020-02-06T23:58:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31724.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31724"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31725
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31725/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31725/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31725/events
|
https://github.com/pandas-dev/pandas/issues/31725
| 560,669,804
|
MDU6SXNzdWU1NjA2Njk4MDQ=
| 31,725
|
API: add ignore_index keyword to dropna() and other similar functions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/55477181?v=4",
"events_url": "https://api.github.com/users/davidwales/events{/privacy}",
"followers_url": "https://api.github.com/users/davidwales/followers",
"following_url": "https://api.github.com/users/davidwales/following{/other_user}",
"gists_url": "https://api.github.com/users/davidwales/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidwales",
"id": 55477181,
"login": "davidwales",
"node_id": "MDQ6VXNlcjU1NDc3MTgx",
"organizations_url": "https://api.github.com/users/davidwales/orgs",
"received_events_url": "https://api.github.com/users/davidwales/received_events",
"repos_url": "https://api.github.com/users/davidwales/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidwales/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidwales/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidwales"
}
|
[
{
"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": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
open
| false
| null |
[] | null | 0
| 2020-02-05T22:35:04Z
| 2021-07-28T04:52:15Z
| null |
CONTRIBUTOR
| null |
#### Code Sample
**Before**
```python
df = pd.DataFrame({'A': [0, pd.NA, 1]})
df.dropna().reset_index(drop=True)
```
**After**
```python
df = pd.DataFrame({'A': [0, pd.NA, 1]})
df.dropna(ignore_index=True)
```
#### Problem description
I have noticed a lot of dataframe reshaping functions acquiring the `ignore_index` keyword. (e.g. #30114). I think `df.dropna()` is a good candidate for this keyword, as are any other functions which change the index from being a consecutive sequence of integers
#### Expected Output
```python
In [1]: import pandas as pd
In [2]: df = pd.DataFrame({'A': [0, pd.NA, 1]})
In [3]: df
Out[3]:
A
0 0
1 <NA>
2 1
In [4]: df.dropna().reset_index(drop=True)
Out[4]:
A
0 0
1 1
In [5]: df.dropna(ignore_index=True)
Out[5]:
A
0 0
1 1
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31725/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31725/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31726
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31726/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31726/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31726/events
|
https://github.com/pandas-dev/pandas/issues/31726
| 560,690,149
|
MDU6SXNzdWU1NjA2OTAxNDk=
| 31,726
|
pandas.read_excel() close the io stream
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8295094?v=4",
"events_url": "https://api.github.com/users/dujiaxin/events{/privacy}",
"followers_url": "https://api.github.com/users/dujiaxin/followers",
"following_url": "https://api.github.com/users/dujiaxin/following{/other_user}",
"gists_url": "https://api.github.com/users/dujiaxin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dujiaxin",
"id": 8295094,
"login": "dujiaxin",
"node_id": "MDQ6VXNlcjgyOTUwOTQ=",
"organizations_url": "https://api.github.com/users/dujiaxin/orgs",
"received_events_url": "https://api.github.com/users/dujiaxin/received_events",
"repos_url": "https://api.github.com/users/dujiaxin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dujiaxin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dujiaxin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dujiaxin"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-05T23:28:56Z
| 2020-02-06T05:56:45Z
| 2020-02-06T05:56:44Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
with open(r'a.xlsx','rb') as f: # input the .xlsx
df_top = pd.read_excel(f,'Sheet1',encoding = 'utf-8').iloc[:,0:2]
df_less = pd.read_excel(f,'Sheet2',encoding = 'utf-8').iloc[:,0:2]
```
#### Problem description
The first read_excel() works fine. But the second read_excel() get the following:
Traceback (most recent call last):
File "xxx.py", line 127, in <module>
df_less = pd.read_excel(f,'Sheet2',encoding = 'utf-8').iloc[:,0:2]
File "xxx\pandas\io\excel\_base.py", line 304, in read_excel
io = ExcelFile(io, engine=engine)
File "xxx\pandas\io\excel\_base.py", line 821, in __init__
self._reader = self._engines[engine](self._io)
File "xxx\pandas\io\excel\_xlrd.py", line 21, in __init__
super().__init__(filepath_or_buffer)
File "xxx\pandas\io\excel\_base.py", line 350, in __init__
filepath_or_buffer.seek(0)
ValueError: seek of closed file
It seems the read_excel() change the io object "f". Is that some new feature in 1.0? Older versions don't have the problem.
I think it should be fixed because a function should not change the outer variable.
#### Expected Output
read_excel() should not change the io stream and should be able to read the same io stream several times.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.3.2
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31726/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31726/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31727
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31727/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31727/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31727/events
|
https://github.com/pandas-dev/pandas/pull/31727
| 560,693,198
|
MDExOlB1bGxSZXF1ZXN0MzcxNjM5MDU0
| 31,727
|
TST/CLN: dtype test_construct_from_string
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-05T23:38:33Z
| 2020-02-06T23:41:32Z
| 2020-02-06T08:37:13Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31727/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31727/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31727.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31727",
"merged_at": "2020-02-06T08:37:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31727.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31727"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31728
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31728/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31728/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31728/events
|
https://github.com/pandas-dev/pandas/pull/31728
| 560,694,506
|
MDExOlB1bGxSZXF1ZXN0MzcxNjQwMTA4
| 31,728
|
TYP: partial typing of masked 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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-05T23:42:50Z
| 2020-02-12T20:56:43Z
| 2020-02-12T01:32:21Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31728/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31728/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31728.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31728",
"merged_at": "2020-02-12T01:32:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31728.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31728"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31729
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31729/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31729/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31729/events
|
https://github.com/pandas-dev/pandas/pull/31729
| 560,709,731
|
MDExOlB1bGxSZXF1ZXN0MzcxNjUyNzgy
| 31,729
|
BUG: Fix to_excel writers handling of cols
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 4
| 2020-02-06T00:32:35Z
| 2020-05-01T22:02:17Z
| 2020-02-06T23:41:13Z
|
CONTRIBUTOR
| null |
- [x] closes #31677
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry - pending https://github.com/pandas-dev/pandas/pull/31723
Ref: https://github.com/pandas-dev/pandas/pull/31723
cc. @WillAyd @jbrockmendel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31729/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31729/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31729.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31729",
"merged_at": "2020-02-06T23:41:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31729.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31729"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31730
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31730/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31730/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31730/events
|
https://github.com/pandas-dev/pandas/pull/31730
| 560,731,467
|
MDExOlB1bGxSZXF1ZXN0MzcxNjcwNDM5
| 31,730
|
fixed mypy errors in mypy-pandas.tests.extension.decimal.test_decimal
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/17853006?v=4",
"events_url": "https://api.github.com/users/SaturnFromTitan/events{/privacy}",
"followers_url": "https://api.github.com/users/SaturnFromTitan/followers",
"following_url": "https://api.github.com/users/SaturnFromTitan/following{/other_user}",
"gists_url": "https://api.github.com/users/SaturnFromTitan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SaturnFromTitan",
"id": 17853006,
"login": "SaturnFromTitan",
"node_id": "MDQ6VXNlcjE3ODUzMDA2",
"organizations_url": "https://api.github.com/users/SaturnFromTitan/orgs",
"received_events_url": "https://api.github.com/users/SaturnFromTitan/received_events",
"repos_url": "https://api.github.com/users/SaturnFromTitan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SaturnFromTitan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SaturnFromTitan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SaturnFromTitan"
}
|
[
{
"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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-06T01:54:12Z
| 2020-02-09T17:48:39Z
| 2020-02-09T17:48:38Z
|
CONTRIBUTOR
| null |
Part of #28926
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31730/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31730/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31730.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31730",
"merged_at": "2020-02-09T17:48:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31730.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31730"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31731
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31731/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31731/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31731/events
|
https://github.com/pandas-dev/pandas/issues/31731
| 560,750,052
|
MDU6SXNzdWU1NjA3NTAwNTI=
| 31,731
|
BUG: DataFrame.convert_dtypes fails on column that is already "string" dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/55477181?v=4",
"events_url": "https://api.github.com/users/davidwales/events{/privacy}",
"followers_url": "https://api.github.com/users/davidwales/followers",
"following_url": "https://api.github.com/users/davidwales/following{/other_user}",
"gists_url": "https://api.github.com/users/davidwales/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidwales",
"id": 55477181,
"login": "davidwales",
"node_id": "MDQ6VXNlcjU1NDc3MTgx",
"organizations_url": "https://api.github.com/users/davidwales/orgs",
"received_events_url": "https://api.github.com/users/davidwales/received_events",
"repos_url": "https://api.github.com/users/davidwales/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidwales/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidwales/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidwales"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 6
| 2020-02-06T03:06:19Z
| 2020-02-12T15:05:29Z
| 2020-02-12T15:05:29Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
In [1]: df = pd.DataFrame({'A': ['a', 'b', 'c'], 'B': ['d', 'e', 'f']})
In [2]: df.dtypes
Out[2]:
A object
B object
dtype: object
In [3]: df1 = df.convert_dtypes()
In [4]: df1.dtypes
Out[4]:
A string # <------ expected
B string # <------ expected
dtype: object
In [5]: df2 = df1.convert_dtypes()
In [6]: df2.dtypes
Out[6]:
A object # <------ NOT expected
B object # <------ NOT expected
dtype: object
In [7]: df3['A'] = 'test'
In [8]: df3
Out[8]:
A B
0 test d # <------ expected
1 test e # <------ expected
2 test f # <------ expected
In [9]: df3.dtypes
Out[9]:
A object # <------ NOT expected (but understandable)
B string # <------ expected
dtype: object
In [10]: df4 = df3.convert_dtypes()
In [11]: df4
Out[11]:
A B
0 test b'd' # <------ NOT expected (Why are they bytes now???)
1 test b'e' # <------ NOT expected
2 test b'f' # <------ NOT expected
In [12]: df4.dtypes
Out[12]:
A string # <------ expected
B object # <------ NOT expected
dtype: object
```
#### Problem description
The documentation for [DataFrame.convert_dtypes()](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.convert_dtypes.html) *claims* that it will 'Convert columns to best possible dtypes using dtypes supporting pd.NA'. However, this does not appear to be the case. As you can see in `Out[6]` above, if the dtypes are already optimal, they will be converted back to objects.
Even worse, if some of the dtypes are optimal, but other dtypes are objects, they will be switched -- the optimal dtypes will become objects, and the objects will become optimal.
Some mysterious additional details:
- Assigning a string to an 'optimal' column changes the dtype to object. (`Out[9]`)
- If one column is a string, and the other an object `df.convert_dtypes()` will not only cause the string column to become object and the object column to become string, it will also change the strings in the newly created object column into bytes (`Out[11]`)
#### Expected Output
Anything which can be converted to one of the new nullable datatypes would be converted to one of the new nullable datatypes. Anything which is already a nullable datatype would remain as it is.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : 0.29.14
pytest : 5.3.4
hypothesis : 4.54.2
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.4.2
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.4
pyxlsb : None
s3fs : None
scipy : 1.3.2
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : 0.14.1
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31731/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31731/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31732
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31732/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31732/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31732/events
|
https://github.com/pandas-dev/pandas/issues/31732
| 560,752,345
|
MDU6SXNzdWU1NjA3NTIzNDU=
| 31,732
|
Wrong start datetime for data_range
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41546976?v=4",
"events_url": "https://api.github.com/users/GYHHAHA/events{/privacy}",
"followers_url": "https://api.github.com/users/GYHHAHA/followers",
"following_url": "https://api.github.com/users/GYHHAHA/following{/other_user}",
"gists_url": "https://api.github.com/users/GYHHAHA/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GYHHAHA",
"id": 41546976,
"login": "GYHHAHA",
"node_id": "MDQ6VXNlcjQxNTQ2OTc2",
"organizations_url": "https://api.github.com/users/GYHHAHA/orgs",
"received_events_url": "https://api.github.com/users/GYHHAHA/received_events",
"repos_url": "https://api.github.com/users/GYHHAHA/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GYHHAHA/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GYHHAHA/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GYHHAHA"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-02-06T03:15:27Z
| 2020-02-06T04:09:48Z
| 2020-02-06T04:09:47Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>>pd.date_range(start='1/1/2018', periods=5, freq='M')
DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31', '2018-04-30',
'2018-05-31'],
dtype='datetime64[ns]', freq='M')
```
#### Problem description
Why datatime start from '2018-01-31' ?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31732/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31732/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31733
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31733/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31733/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31733/events
|
https://github.com/pandas-dev/pandas/pull/31733
| 560,764,258
|
MDExOlB1bGxSZXF1ZXN0MzcxNjk2MzYy
| 31,733
|
Add --quiet option to isort command
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4275273?v=4",
"events_url": "https://api.github.com/users/d1618033/events{/privacy}",
"followers_url": "https://api.github.com/users/d1618033/followers",
"following_url": "https://api.github.com/users/d1618033/following{/other_user}",
"gists_url": "https://api.github.com/users/d1618033/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/d1618033",
"id": 4275273,
"login": "d1618033",
"node_id": "MDQ6VXNlcjQyNzUyNzM=",
"organizations_url": "https://api.github.com/users/d1618033/orgs",
"received_events_url": "https://api.github.com/users/d1618033/received_events",
"repos_url": "https://api.github.com/users/d1618033/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/d1618033/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/d1618033/subscriptions",
"type": "User",
"url": "https://api.github.com/users/d1618033"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-02-06T04:00:01Z
| 2020-02-07T06:12:44Z
| 2020-02-07T06:12:19Z
|
CONTRIBUTOR
| null |
- [x] closes #30974
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31733/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31733/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31733.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31733",
"merged_at": "2020-02-07T06:12:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31733.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31733"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31734
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31734/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31734/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31734/events
|
https://github.com/pandas-dev/pandas/pull/31734
| 560,775,119
|
MDExOlB1bGxSZXF1ZXN0MzcxNzA1MTQy
| 31,734
|
BUG: list-like to_replace on Categorical.replace is ignored or crash
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/29615021?v=4",
"events_url": "https://api.github.com/users/JustinZhengBC/events{/privacy}",
"followers_url": "https://api.github.com/users/JustinZhengBC/followers",
"following_url": "https://api.github.com/users/JustinZhengBC/following{/other_user}",
"gists_url": "https://api.github.com/users/JustinZhengBC/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JustinZhengBC",
"id": 29615021,
"login": "JustinZhengBC",
"node_id": "MDQ6VXNlcjI5NjE1MDIx",
"organizations_url": "https://api.github.com/users/JustinZhengBC/orgs",
"received_events_url": "https://api.github.com/users/JustinZhengBC/received_events",
"repos_url": "https://api.github.com/users/JustinZhengBC/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JustinZhengBC/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JustinZhengBC/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JustinZhengBC"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 8
| 2020-02-06T04:41:51Z
| 2020-02-17T17:00:54Z
| 2020-02-17T16:59:53Z
|
CONTRIBUTOR
| null |
- [X] closes #31720
- [X] tests added / passed
- [x] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Covers the case where `to_replace` is a list-like and `value` is a string. Other cases, like "`to_replace` is dict and `value` is None", or "`to_replace` and `value` are both lists" are handled earlier in generic.py
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31734/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31734/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31734.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31734",
"merged_at": "2020-02-17T16:59:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31734.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31734"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31735
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31735/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31735/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31735/events
|
https://github.com/pandas-dev/pandas/issues/31735
| 560,782,346
|
MDU6SXNzdWU1NjA3ODIzNDY=
| 31,735
|
BUG: groupby _cython_agg_blocks implicitly assumes unique columns
|
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
| 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
| 2020-02-06T05:07:00Z
| 2020-09-15T22:33:48Z
| 2020-09-15T22:33:48Z
|
MEMBER
| null |
xref #31616, the two test cases that adds both have unique columns. Editing test_agg_split_object_part_datetime to make columns non-unique breaks it:
```
df = pd.DataFrame(
{
"A": pd.date_range("2000", periods=4),
"B": ["a", "b", "c", "d"],
"C": [1, 2, 3, 4],
"D": ["b", "c", "d", "e"],
"E": pd.date_range("2000", periods=4),
"F": [1, 2, 3, 4],
}
).astype(object)
df.columns = ["A", "B", "B", "D", "E", "F"]
>>> result = df.groupby([0, 0, 0, 0]).min()
pandas.core.indexes.base.InvalidIndexError: Reindexing only valid with uniquely valued Index objects
```
cc @WillAyd @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/31735/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31735/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31736
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31736/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31736/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31736/events
|
https://github.com/pandas-dev/pandas/pull/31736
| 560,785,803
|
MDExOlB1bGxSZXF1ZXN0MzcxNzEzODc2
| 31,736
|
REF: turn _try_mi into MultiIndex._get_values_for_loc
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-06T05:18:42Z
| 2020-02-09T17:26:37Z
| 2020-02-09T17:04:00Z
|
MEMBER
| null |
Discussed in #31640.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31736/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31736/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31736.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31736",
"merged_at": "2020-02-09T17:04:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31736.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31736"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31737
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31737/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31737/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31737/events
|
https://github.com/pandas-dev/pandas/pull/31737
| 560,837,349
|
MDExOlB1bGxSZXF1ZXN0MzcxNzU1OTM0
| 31,737
|
Backport PR #31723 on branch 1.0.x (DOC: Add 1.0.2 whatsnew)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 2
| 2020-02-06T07:49:29Z
| 2020-02-06T11:12:07Z
| 2020-02-06T11:12:07Z
|
NONE
| null |
Backport PR #31723: DOC: Add 1.0.2 whatsnew
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31737/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31737/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31737.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31737",
"merged_at": "2020-02-06T11:12:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31737.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31737"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31739
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31739/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31739/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31739/events
|
https://github.com/pandas-dev/pandas/issues/31739
| 560,870,782
|
MDU6SXNzdWU1NjA4NzA3ODI=
| 31,739
|
CI: continuous-integration/travis-ci/pr build fails due to unavailable channel
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-02-06T09:06:08Z
| 2020-02-06T15:44:12Z
| 2020-02-06T15:44:12Z
|
MEMBER
| null |
#### Problem description
**continuous-integration/travis-ci/pr** build currently seems to fail for everyone, regardless of PR. Error output below:
```
conda env create -q --file=ci/deps/travis-37.yaml
Collecting package metadata (repodata.json): ...working... failed
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: c3i_test
channel url: https://conda.anaconda.org/c3i_test
error code: 404
You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
The command "ci/setup_env.sh" failed and exited with 1 during .
Your build has been stopped.
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31739/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31739/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31740
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31740/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31740/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31740/events
|
https://github.com/pandas-dev/pandas/issues/31740
| 560,889,161
|
MDU6SXNzdWU1NjA4ODkxNjE=
| 31,740
|
matplotlib's xaxis "margin" dropped when plotting using pandas
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7373718?v=4",
"events_url": "https://api.github.com/users/mhooreman/events{/privacy}",
"followers_url": "https://api.github.com/users/mhooreman/followers",
"following_url": "https://api.github.com/users/mhooreman/following{/other_user}",
"gists_url": "https://api.github.com/users/mhooreman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mhooreman",
"id": 7373718,
"login": "mhooreman",
"node_id": "MDQ6VXNlcjczNzM3MTg=",
"organizations_url": "https://api.github.com/users/mhooreman/orgs",
"received_events_url": "https://api.github.com/users/mhooreman/received_events",
"repos_url": "https://api.github.com/users/mhooreman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mhooreman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mhooreman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mhooreman"
}
|
[
{
"color": "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
| 2020-02-06T09:39:10Z
| 2020-02-06T10:53:38Z
| 2020-02-06T10:48:28Z
|
NONE
| null |
#### Code Sample
```python
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(10)
y = x
fig, axs = plt.subplots(2, 1, constrained_layout=True)
axs[0].plot(x, y, linestyle='', marker='.')
axs[0].set_title('matplotlib')
pd.Series(y, index=x).plot(ax=axs[1], linestyle='', marker='.')
axs[1].set_title('pandas')
fig.show()
```
#### Problem description

Matplotlib adds some "margin" on both sides of the horizontal axis, but pandas does not.
This is a problem because, when we plot using points, the extreme x values are shown confused with the vertical axis lines, which makes them very difficult to see.
Would it be possible to align pandas' behavior with matplotlib's one?
Thanks a lot.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-74-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.3
numpy : 1.17.4
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0
Cython : 0.29.14
pytest : None
hypothesis : None
sphinx : 2.2.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : None
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.10.1
pandas_datareader: None
bs4 : 4.8.1
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.1
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.3
sqlalchemy : None
tables : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31740/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31740/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31741
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31741/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31741/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31741/events
|
https://github.com/pandas-dev/pandas/pull/31741
| 560,914,571
|
MDExOlB1bGxSZXF1ZXN0MzcxODE4Njg3
| 31,741
|
TST: expand tests for ExtensionArray setitem with nullable arrays
|
{
"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"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-06T10:22:46Z
| 2020-02-13T13:41:55Z
| 2020-02-13T13:39:47Z
|
MEMBER
| null |
Follow-up on https://github.com/pandas-dev/pandas/pull/31484 to add some more test cases (eg also test the validation done in the `check_array_indexer` (wrong length, missing values), as well for nullable integer arrays), similarly to the tests I added for `__getitem__`.
cc @charlesdong1991
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31741/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31741/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31741.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31741",
"merged_at": "2020-02-13T13:39:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31741.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31741"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31742
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31742/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31742/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31742/events
|
https://github.com/pandas-dev/pandas/issues/31742
| 560,927,444
|
MDU6SXNzdWU1NjA5Mjc0NDQ=
| 31,742
|
Rename mad() in mean_absolute_deviation()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1886360?v=4",
"events_url": "https://api.github.com/users/michaeldorner/events{/privacy}",
"followers_url": "https://api.github.com/users/michaeldorner/followers",
"following_url": "https://api.github.com/users/michaeldorner/following{/other_user}",
"gists_url": "https://api.github.com/users/michaeldorner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaeldorner",
"id": 1886360,
"login": "michaeldorner",
"node_id": "MDQ6VXNlcjE4ODYzNjA=",
"organizations_url": "https://api.github.com/users/michaeldorner/orgs",
"received_events_url": "https://api.github.com/users/michaeldorner/received_events",
"repos_url": "https://api.github.com/users/michaeldorner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaeldorner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaeldorner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaeldorner"
}
|
[
{
"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": "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"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-02-06T10:44:28Z
| 2020-02-06T13:26:36Z
| 2020-02-06T11:09:38Z
|
NONE
| null |
#### Problem description
MAD is a overloaded shortcut: It stands for *M*edian *A*bsolute *D*eviation (more common), but also can be used as *M*ean *A*bsolute *D*eviation (which is used in pandas).
#### Expected Output
To avoid confusion, the method should be renamed from `.mad()` to `.mean_absolute_deviation()`, and when implemented the more commonly used `.median_absolute_deviation()`.
If you are fine with it, I would kick off a PR.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-24-generic
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.25.0
numpy : 1.17.0
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.0.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.7.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.0
matplotlib : 3.1.1
numexpr : 2.6.9
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.6
tables : 3.5.2
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31742/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31742/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31743
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31743/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31743/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31743/events
|
https://github.com/pandas-dev/pandas/issues/31743
| 560,969,543
|
MDU6SXNzdWU1NjA5Njk1NDM=
| 31,743
|
pd.to_datetime() Error in MacOS - TypeError(f"dtype {data.dtype} cannot be converted to datetime64[ns]") TypeError: dtype timedelta64[ns] cannot be converted to datetime64[ns]
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39926679?v=4",
"events_url": "https://api.github.com/users/CaioEuzebio/events{/privacy}",
"followers_url": "https://api.github.com/users/CaioEuzebio/followers",
"following_url": "https://api.github.com/users/CaioEuzebio/following{/other_user}",
"gists_url": "https://api.github.com/users/CaioEuzebio/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CaioEuzebio",
"id": 39926679,
"login": "CaioEuzebio",
"node_id": "MDQ6VXNlcjM5OTI2Njc5",
"organizations_url": "https://api.github.com/users/CaioEuzebio/orgs",
"received_events_url": "https://api.github.com/users/CaioEuzebio/received_events",
"repos_url": "https://api.github.com/users/CaioEuzebio/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CaioEuzebio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CaioEuzebio/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CaioEuzebio"
}
|
[
{
"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
| 2020-02-06T12:05:07Z
| 2020-02-17T17:06:16Z
| 2020-02-17T17:06:15Z
|
NONE
| null |
#### Function Error in MacOS
```python
df = pd.read_csv('filemane.csv', encoding='latin-1')
df1['ProcessFinishTime'] = pd.to_datetime(df1['ProcessFinishTime'],errors='ignore')
df1['ProcessStartTime'] = pd.to_datetime(df1['ProcessStartTime'],errors='ignore')
```
#### Problem description
Hi Guys,
This is a problem that a faced in MacOS only about DateTime, I trying to convert format (12:54:58)
in to DateTime.
It run correctly in Windows(10) and Linux(ubuntu) as well, however, in MacOS i faced this problem that returns an error message below:
```
raise TypeError(f"dtype {data.dtype} cannot be converted to datetime64[ns]")
TypeError: dtype timedelta64[ns] cannot be converted to datetime64[ns]
```
I search for and for while it's not cleary to me the reason for this error happens.
And my questions is:
**1**- This issue is particular for MAcOS?
**2**2 - I try to replace pd.to_datetime() for pd.to_timedelta(), however pd.to_datetime is too better.
**3**- I try to replace pd.to_datetime() for pd.to_timedelta(), however pd.to_datetime is too better.
Below is the documentation that i follow.:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html
Using latest version in both systems.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31743/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31743/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31744
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31744/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31744/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31744/events
|
https://github.com/pandas-dev/pandas/issues/31744
| 560,975,722
|
MDU6SXNzdWU1NjA5NzU3MjI=
| 31,744
|
Wrong char in Polish datetime month_name function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49059487?v=4",
"events_url": "https://api.github.com/users/CezaryPukownik/events{/privacy}",
"followers_url": "https://api.github.com/users/CezaryPukownik/followers",
"following_url": "https://api.github.com/users/CezaryPukownik/following{/other_user}",
"gists_url": "https://api.github.com/users/CezaryPukownik/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CezaryPukownik",
"id": 49059487,
"login": "CezaryPukownik",
"node_id": "MDQ6VXNlcjQ5MDU5NDg3",
"organizations_url": "https://api.github.com/users/CezaryPukownik/orgs",
"received_events_url": "https://api.github.com/users/CezaryPukownik/received_events",
"repos_url": "https://api.github.com/users/CezaryPukownik/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CezaryPukownik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CezaryPukownik/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CezaryPukownik"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "fbca04",
"default": false,
"description": "Windows OS",
"id": 57186974,
"name": "Windows",
"node_id": "MDU6TGFiZWw1NzE4Njk3NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows"
}
] |
open
| false
| null |
[] | null | 4
| 2020-02-06T12:17:32Z
| 2021-07-28T04:53:51Z
| null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# using this:
df['date'].dt.month_name('PL')
# should return this:
df['date'].dt.month_name('PL').str.replace('ñ','ń')
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution.]
Wrong char was used for Polish month name.
Pandas returns 'Styczeñ', should be 'Styczeń'.
ñ -> ń
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
For documentation-related issues, you can check the latest versions of the docs on `master` here:
https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.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 : en
LOCALE : None.None
pandas : 0.25.1
numpy : 1.16.5
pytz : 2019.3
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.2.1
hypothesis : None
sphinx : 2.2.0
blosc : None
feather : 0.4.0
xlsxwriter : 1.2.1
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.9
tables : 3.5.2
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31744/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31744/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31745
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31745/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31745/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31745/events
|
https://github.com/pandas-dev/pandas/pull/31745
| 561,017,576
|
MDExOlB1bGxSZXF1ZXN0MzcxOTAzMjgx
| 31,745
|
CI: Update travis-37.yaml Conda channel
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 1
| 2020-02-06T13:36:53Z
| 2020-02-06T15:44:14Z
| 2020-02-06T15:44:12Z
|
CONTRIBUTOR
| null |
Remove unrequired channel
- [x] closes #31739
Cc @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/31745/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31745/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31745.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31745",
"merged_at": "2020-02-06T15:44:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31745.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31745"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31746
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31746/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31746/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31746/events
|
https://github.com/pandas-dev/pandas/issues/31746
| 561,019,877
|
MDU6SXNzdWU1NjEwMTk4Nzc=
| 31,746
|
New string data type aggregations (min, max, sum) work for DataFrames but not Series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7226751?v=4",
"events_url": "https://api.github.com/users/tdpetrou/events{/privacy}",
"followers_url": "https://api.github.com/users/tdpetrou/followers",
"following_url": "https://api.github.com/users/tdpetrou/following{/other_user}",
"gists_url": "https://api.github.com/users/tdpetrou/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tdpetrou",
"id": 7226751,
"login": "tdpetrou",
"node_id": "MDQ6VXNlcjcyMjY3NTE=",
"organizations_url": "https://api.github.com/users/tdpetrou/orgs",
"received_events_url": "https://api.github.com/users/tdpetrou/received_events",
"repos_url": "https://api.github.com/users/tdpetrou/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tdpetrou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tdpetrou/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tdpetrou"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
},
{
"color": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
},
{
"color": "120491",
"default": false,
"description": "Identifying/Dropping nuisance columns in reductions, groupby.add, DataFrame.apply",
"id": 2365523662,
"name": "Nuisance Columns",
"node_id": "MDU6TGFiZWwyMzY1NTIzNjYy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Nuisance%20Columns"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 6
| 2020-02-06T13:40:53Z
| 2021-07-28T04:55:04Z
| null |
CONTRIBUTOR
| null |
```python
>>> s = pd.Series(['a', 'b'], dtype='string')
>>> s.max()
TypeError: Cannot perform reduction 'max' with string dtype
>>> df = s.to_frame()
>>> df.max()
0 b
dtype: object
```
#### Problem description
I assume this isn't supposed to work on DataFrames if it doesn't work on strings. min and sum do the same thing.
#### Expected Output
Consistent behavior for both dataframes and series
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Darwin
OS-release : 19.2.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0+untagged.1.gce8af21.dirty
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : 0.29.14
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.13
tables : None
tabulate : 0.8.3
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 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/31746/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31746/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31747
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31747/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31747/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31747/events
|
https://github.com/pandas-dev/pandas/issues/31747
| 561,029,433
|
MDU6SXNzdWU1NjEwMjk0MzM=
| 31,747
|
read_parquet gives ArrowIOError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/27843989?v=4",
"events_url": "https://api.github.com/users/azimgivron/events{/privacy}",
"followers_url": "https://api.github.com/users/azimgivron/followers",
"following_url": "https://api.github.com/users/azimgivron/following{/other_user}",
"gists_url": "https://api.github.com/users/azimgivron/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/azimgivron",
"id": 27843989,
"login": "azimgivron",
"node_id": "MDQ6VXNlcjI3ODQzOTg5",
"organizations_url": "https://api.github.com/users/azimgivron/orgs",
"received_events_url": "https://api.github.com/users/azimgivron/received_events",
"repos_url": "https://api.github.com/users/azimgivron/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/azimgivron/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/azimgivron/subscriptions",
"type": "User",
"url": "https://api.github.com/users/azimgivron"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-02-06T13:57:12Z
| 2020-02-06T19:03:16Z
| 2020-02-06T19:03:16Z
|
NONE
| null |
I am trying to open a .parquet file in pandas but I am failing at it. I tried the solution proposed in https://stackoverflow.com/questions/54201799/pandas-cannot-read-parquet-files-created-in-pyspark but it is not working for me.
Does anyone have a clue of how to fix this ?
####
python code:
pd.read_parquet('filepath')
####
Error received in the consol:
ArrowIOError Traceback (most recent call last)
<ipython-input-32-623a6e60c94a> in <module>
----> 2 pd.read_parquet('filepath'')
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\parquet.py in read_parquet(path, engine, columns, **kwargs)
308
309 impl = get_engine(engine)
--> 310 return impl.read(path, columns=columns, **kwargs)
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\parquet.py in read(self, path, columns, **kwargs)
123 kwargs["use_pandas_metadata"] = True
124 result = self.api.parquet.read_table(
--> 125 path, columns=columns, **kwargs
126 ).to_pandas()
127 if should_close:
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\parquet.py in read_table(source, columns, use_threads, metadata, use_pandas_metadata, memory_map, read_dictionary, filesystem, filters, buffer_size)
1272 read_dictionary=read_dictionary,
1273 buffer_size=buffer_size,
-> 1274 filesystem=filesystem, filters=filters)
1275 else:
1276 pf = ParquetFile(source, metadata=metadata,
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\parquet.py in __init__(self, path_or_paths, filesystem, schema, metadata, split_row_groups, validate_schema, filters, metadata_nthreads, read_dictionary, memory_map, buffer_size)
1058
1059 if validate_schema:
-> 1060 self.validate_schemas()
1061
1062 def equals(self, other):
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\parquet.py in validate_schemas(self)
1090 self.schema = self.common_metadata.schema
1091 else:
-> 1092 self.schema = self.pieces[0].get_metadata().schema
1093 elif self.schema is None:
1094 self.schema = self.metadata.schema
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\parquet.py in get_metadata(self)
558 metadata : FileMetaData
559 """
--> 560 f = self.open()
561 return f.metadata
562
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\parquet.py in open(self)
565 Returns instance of ParquetFile
566 """
--> 567 reader = self.open_file_func(self.path)
568 if not isinstance(reader, ParquetFile):
569 reader = ParquetFile(reader, **self.file_options)
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\parquet.py in _open_dataset_file(dataset, path, meta)
940 read_dictionary=dataset.read_dictionary,
941 common_metadata=dataset.common_metadata,
--> 942 buffer_size=dataset.buffer_size
943 )
944
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\parquet.py in __init__(self, source, metadata, common_metadata, read_dictionary, memory_map, buffer_size)
135 self.reader.open(source, use_memory_map=memory_map,
136 buffer_size=buffer_size,
--> 137 read_dictionary=read_dictionary, metadata=metadata)
138 self.common_metadata = common_metadata
139 self._nested_paths_by_prefix = self._build_nested_paths()
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\_parquet.pyx in pyarrow._parquet.ParquetReader.open()
C:\ProgramData\Anaconda3\lib\site-packages\pyarrow\error.pxi in pyarrow.lib.check_status()
ArrowIOError: Invalid parquet file. Corrupt footer.
####
version:
python 3.7.6
pandas 1.0.1
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31747/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31747/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31748
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31748/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31748/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31748/events
|
https://github.com/pandas-dev/pandas/pull/31748
| 561,029,573
|
MDExOlB1bGxSZXF1ZXN0MzcxOTEzMzI1
| 31,748
|
BUG: Fixed encoding of pd.NA with to_json
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/25773476?v=4",
"events_url": "https://api.github.com/users/ArtificialQualia/events{/privacy}",
"followers_url": "https://api.github.com/users/ArtificialQualia/followers",
"following_url": "https://api.github.com/users/ArtificialQualia/following{/other_user}",
"gists_url": "https://api.github.com/users/ArtificialQualia/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ArtificialQualia",
"id": 25773476,
"login": "ArtificialQualia",
"node_id": "MDQ6VXNlcjI1NzczNDc2",
"organizations_url": "https://api.github.com/users/ArtificialQualia/orgs",
"received_events_url": "https://api.github.com/users/ArtificialQualia/received_events",
"repos_url": "https://api.github.com/users/ArtificialQualia/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ArtificialQualia/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ArtificialQualia/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ArtificialQualia"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 4
| 2020-02-06T13:57:26Z
| 2020-02-08T08:17:10Z
| 2020-02-08T08:11:34Z
|
CONTRIBUTOR
| null |
- [x] closes #31615
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31748/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31748/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31748.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31748",
"merged_at": "2020-02-08T08:11:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31748.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31748"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31749
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31749/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31749/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31749/events
|
https://github.com/pandas-dev/pandas/pull/31749
| 561,097,258
|
MDExOlB1bGxSZXF1ZXN0MzcxOTY5NTkx
| 31,749
|
Backport PR #31745 on branch 1.0.x (CI: Update travis-37.yaml Conda channel )
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-06T15:44:25Z
| 2020-02-06T23:41:55Z
| 2020-02-06T23:41:55Z
|
NONE
| null |
Backport PR #31745: CI: Update travis-37.yaml Conda channel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31749/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31749/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31749.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31749",
"merged_at": "2020-02-06T23:41:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31749.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31749"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31750
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31750/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31750/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31750/events
|
https://github.com/pandas-dev/pandas/issues/31750
| 561,161,417
|
MDU6SXNzdWU1NjExNjE0MTc=
| 31,750
|
Decoding issue when reading in py3 a datetime64 hdf data that was created in py2
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/130238?v=4",
"events_url": "https://api.github.com/users/pedroreys/events{/privacy}",
"followers_url": "https://api.github.com/users/pedroreys/followers",
"following_url": "https://api.github.com/users/pedroreys/following{/other_user}",
"gists_url": "https://api.github.com/users/pedroreys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pedroreys",
"id": 130238,
"login": "pedroreys",
"node_id": "MDQ6VXNlcjEzMDIzOA==",
"organizations_url": "https://api.github.com/users/pedroreys/orgs",
"received_events_url": "https://api.github.com/users/pedroreys/received_events",
"repos_url": "https://api.github.com/users/pedroreys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pedroreys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pedroreys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pedroreys"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-06T17:30:08Z
| 2020-02-09T21:34:20Z
| 2020-02-09T21:34:20Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
### In Python 2, create the `.hdf` file with a `datetime64[ns]` column
```python
#python 2
>>> d = {"data": pd.Timestamp("2020-02-06T18:00")}
>>> df = pd.DataFrame(d, index=[1])
>>> df
data
1 2020-02-06 18:00:00
>>> df.dtypes
data datetime64[ns]
dtype: object
>>> df.to_hdf('py2_data.hdf', 'py2_data')
```
### Reading the hdf in python 2 works just fine
```python
# python2
>>> df = pd.read_hdf('py2_data.hdf', 'py2_data')
>>> df
data
1 2020-02-06 18:00:00
>>> df.dtypes
data datetime64[ns]
dtype: object
```
## Reading the hdf in **Python 3** the dtype of the data column is set to `int64` instead of `datatime64`
```python
# python 3
>>> df = pd.read_hdf('py2_data.hdf', 'py2_data')
>>> df
data
1 1581012000000000000
>>> df.dtypes
data int64
dtype: object
```
#### Problem description
The reason why the _dtype_ is being loaded as a `int64` in python 3 is because pandas is not reading correctly the `value_type` attribute from the hdf file. The current implementation does *not* explicitly decodes to "UTF-8" the attribute value when its type is `np.bytes_`, which causes it to read the dtype as `b'datetime64` instead of the correct `datetime64` value. That, in turn, causes it to treat the raw value `1581012000000000000` with an inferred dtype of `int64` instead of coercing it to a `M8[ns]` dtype that would give the correct `2020-02-06 18:00:00` datetime value.
This is a similar problem to the one from issue #15725, but that one was when reading the _index_ from the _hdf_ but this one is when reading the data.
The fix for this seems to be really straight forward, you just need to ensure the value of the`value_type` attribute is decoded to _UTF-8_ when reading it from the hdf file. More specifically, [in this line of pytables.py](https://github.com/pandas-dev/pandas/blob/v1.0.1/pandas/io/pytables.py#L2727)
```diff
diff --git a/pytables.py b/pytables.py
index 06c9aa1..9d074d5 100644
--- a/pytables.py
+++ b/pytables.py
@@ -2724,7 +2724,7 @@ class GenericFixed(Fixed):
if isinstance(node, tables.VLArray):
ret = node[0][start:stop]
else:
- dtype = getattr(attrs, "value_type", None)
+ dtype = _ensure_decoded(getattr(attrs, "value_type", None))
shape = getattr(attrs, "shape", None)
```
I can make the change and open a PR, as it seems to be really straight forward, just let me know what you prefer.
Note: this is an issue only when the ".hdf" file is created in python 2 using the _fixed_ format. If it is created using the _table_ format it works as expected.
Thanks!
#### Expected Output
The expected output is that in python 3 it will parse the dtype of the columns correctly, so in this case it should be:
```python
>>> df = pd.read_hdf('py2_data.hdf', 'py2_data')
>>> df
data
1 2020-02-06 18:00:00
>>> df.dtypes
data datetime64[ns]
dtype: object
```
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.10.final.0
python-bits : 64
OS : Darwin
OS-release : 18.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
```
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31750/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31750/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31751
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31751/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31751/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31751/events
|
https://github.com/pandas-dev/pandas/pull/31751
| 561,162,838
|
MDExOlB1bGxSZXF1ZXN0MzcyMDIzODkz
| 31,751
|
F string fixes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19581172?v=4",
"events_url": "https://api.github.com/users/drewseibert/events{/privacy}",
"followers_url": "https://api.github.com/users/drewseibert/followers",
"following_url": "https://api.github.com/users/drewseibert/following{/other_user}",
"gists_url": "https://api.github.com/users/drewseibert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/drewseibert",
"id": 19581172,
"login": "drewseibert",
"node_id": "MDQ6VXNlcjE5NTgxMTcy",
"organizations_url": "https://api.github.com/users/drewseibert/orgs",
"received_events_url": "https://api.github.com/users/drewseibert/received_events",
"repos_url": "https://api.github.com/users/drewseibert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/drewseibert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/drewseibert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/drewseibert"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-06T17:33:01Z
| 2020-02-06T21:43:36Z
| 2020-02-06T21:43:30Z
|
CONTRIBUTOR
| null |
Related to issue https://github.com/pandas-dev/pandas/issues/29547
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31751/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31751/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31751.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31751",
"merged_at": "2020-02-06T21:43:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31751.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31751"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31752
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31752/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31752/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31752/events
|
https://github.com/pandas-dev/pandas/pull/31752
| 561,164,986
|
MDExOlB1bGxSZXF1ZXN0MzcyMDI1NTky
| 31,752
|
REF: _cython_agg_blocks
|
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-02-06T17:37:16Z
| 2020-08-27T20:18:58Z
| 2020-02-08T00:41:34Z
|
MEMBER
| null |
This is effectively an alternative approach to #31616, trying to use a 1-pass approach.
This does _not_ address the uniqueness problem discussed in #31735.
cc @TomAugspurger @WillAyd
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31752/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31752/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31752.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31752",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31752.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31752"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31753
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31753/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31753/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31753/events
|
https://github.com/pandas-dev/pandas/pull/31753
| 561,204,302
|
MDExOlB1bGxSZXF1ZXN0MzcyMDU3NjA4
| 31,753
|
CLN/TST: organize DatetimeIndex tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-06T18:54:23Z
| 2020-02-06T23:53:21Z
| 2020-02-06T23:48:19Z
|
MEMBER
| null |
1/many
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31753/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31753/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31753.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31753",
"merged_at": "2020-02-06T23:48:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31753.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31753"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31754
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31754/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31754/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31754/events
|
https://github.com/pandas-dev/pandas/issues/31754
| 561,213,510
|
MDU6SXNzdWU1NjEyMTM1MTA=
| 31,754
|
`raw=True` no longer applies to groupby().rolling() in 1.0.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/793516?v=4",
"events_url": "https://api.github.com/users/icexelloss/events{/privacy}",
"followers_url": "https://api.github.com/users/icexelloss/followers",
"following_url": "https://api.github.com/users/icexelloss/following{/other_user}",
"gists_url": "https://api.github.com/users/icexelloss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/icexelloss",
"id": 793516,
"login": "icexelloss",
"node_id": "MDQ6VXNlcjc5MzUxNg==",
"organizations_url": "https://api.github.com/users/icexelloss/orgs",
"received_events_url": "https://api.github.com/users/icexelloss/received_events",
"repos_url": "https://api.github.com/users/icexelloss/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/icexelloss/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/icexelloss/subscriptions",
"type": "User",
"url": "https://api.github.com/users/icexelloss"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 1
| 2020-02-06T19:13:09Z
| 2020-02-10T12:50:32Z
| 2020-02-10T12:50:32Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
df = pd.DataFrame({'id': [1, 1, 1], 'value': [1, 2, 3]})
def foo(x):
print(type(x))
return 0.0
```
When setting `raw=True`
```
>>> df.groupby("id").value.rolling(1).apply(foo, raw=True, engine='numba')
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
id
1 0 0.0
1 0.0
2 0.0
Name: value, dtype: float64
>>> df.groupby("id").value.rolling(1).apply(foo, raw=True, engine='cython')
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
id
1 0 0.0
1 0.0
2 0.0
Name: value, dtype: float64
>>> df.groupby("id").value.rolling(1).apply(foo, raw=True)
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
<class 'pandas.core.series.Series'>
id
1 0 0.0
1 0.0
2 0.0
Name: value, dtype: float64
```
#### Problem description
This changes the behavior of `raw=True`, it seems it no long allows user to pass numpy array to a rolling udf.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31754/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31754/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31755
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31755/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31755/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31755/events
|
https://github.com/pandas-dev/pandas/pull/31755
| 561,219,013
|
MDExOlB1bGxSZXF1ZXN0MzcyMDY5OTQ1
| 31,755
|
CLN: misplaced TimedeltaIndex tests
|
{
"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",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-06T19:24:38Z
| 2020-02-09T15:39:46Z
| 2020-02-09T15:02:58Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31755/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31755/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31755.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31755",
"merged_at": "2020-02-09T15:02:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31755.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31755"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31756
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31756/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31756/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31756/events
|
https://github.com/pandas-dev/pandas/pull/31756
| 561,238,439
|
MDExOlB1bGxSZXF1ZXN0MzcyMDg1OTI3
| 31,756
|
BUG Decode to UTF-8 the dtype string read from a hdf file
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/130238?v=4",
"events_url": "https://api.github.com/users/pedroreys/events{/privacy}",
"followers_url": "https://api.github.com/users/pedroreys/followers",
"following_url": "https://api.github.com/users/pedroreys/following{/other_user}",
"gists_url": "https://api.github.com/users/pedroreys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pedroreys",
"id": 130238,
"login": "pedroreys",
"node_id": "MDQ6VXNlcjEzMDIzOA==",
"organizations_url": "https://api.github.com/users/pedroreys/orgs",
"received_events_url": "https://api.github.com/users/pedroreys/received_events",
"repos_url": "https://api.github.com/users/pedroreys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pedroreys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pedroreys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pedroreys"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-02-06T20:02:14Z
| 2020-02-10T13:49:36Z
| 2020-02-09T21:34:20Z
|
CONTRIBUTOR
| null |
Fixes GH31750
The dtype value wasn't being decoded to `UTF-8` when reading a DataFrame
from a hdf file. This was a problem when reading a hdf that was
created from python 2 with a fixed format as the dtype was being read as `b'datetime'`
instead of `datetime`, which caused `HDFStore` to read the data as
`int64` instead of coercing it to the correct `datetime64` dtype.
- [x] closes #31750
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31756/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31756/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31756.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31756",
"merged_at": "2020-02-09T21:34:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31756.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31756"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31757
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31757/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31757/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31757/events
|
https://github.com/pandas-dev/pandas/pull/31757
| 561,239,069
|
MDExOlB1bGxSZXF1ZXN0MzcyMDg2NDQw
| 31,757
|
Implement some reductions for string Series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"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 | 10
| 2020-02-06T20:03:28Z
| 2021-03-30T20:16:50Z
| 2020-03-05T02:24:36Z
|
MEMBER
| null |
- [x] closes #31746, closes #18588
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31757/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31757/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31757.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31757",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31757.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31757"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31758
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31758/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31758/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31758/events
|
https://github.com/pandas-dev/pandas/pull/31758
| 561,242,304
|
MDExOlB1bGxSZXF1ZXN0MzcyMDg5MTcy
| 31,758
|
REF/TST: misplaced tests in tests.indexes.period
|
{
"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": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-06T20:10:22Z
| 2020-02-09T17:23:01Z
| 2020-02-09T17:04:58Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31758/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31758/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31758.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31758",
"merged_at": "2020-02-09T17:04:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31758.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31758"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31759
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31759/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31759/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31759/events
|
https://github.com/pandas-dev/pandas/issues/31759
| 561,251,755
|
MDU6SXNzdWU1NjEyNTE3NTU=
| 31,759
|
DEPR: disallow mutating operations in groupby.apply
|
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-02-06T20:28:43Z
| 2020-06-28T06:53:45Z
| 2020-06-28T06:53:45Z
|
MEMBER
| null |
A common issue [citation needed] comes up in groupby.apply when a user passes a function that modifies its argument in-place. This is because we call the function on the first group first to see if we can use a fastpath, and then again when we apply it to all groups.
We could add a kwarg to specify if a function may mutate its data, e.g. `gb.apply(myfunc, may_mutate=True)` in which case we could avoid re-calling the function (probably means no fast-path). With `may_mutate=False` we could use a context in which we set the data's flags to be immutable before calling anything on 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/31759/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31759/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31760
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31760/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31760/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31760/events
|
https://github.com/pandas-dev/pandas/issues/31760
| 561,272,002
|
MDU6SXNzdWU1NjEyNzIwMDI=
| 31,760
|
groupby().agg() calls the user function for an extra time with empty inputs in 1.0.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/793516?v=4",
"events_url": "https://api.github.com/users/icexelloss/events{/privacy}",
"followers_url": "https://api.github.com/users/icexelloss/followers",
"following_url": "https://api.github.com/users/icexelloss/following{/other_user}",
"gists_url": "https://api.github.com/users/icexelloss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/icexelloss",
"id": 793516,
"login": "icexelloss",
"node_id": "MDQ6VXNlcjc5MzUxNg==",
"organizations_url": "https://api.github.com/users/icexelloss/orgs",
"received_events_url": "https://api.github.com/users/icexelloss/received_events",
"repos_url": "https://api.github.com/users/icexelloss/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/icexelloss/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/icexelloss/subscriptions",
"type": "User",
"url": "https://api.github.com/users/icexelloss"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 10
| 2020-02-06T21:11:37Z
| 2020-02-21T18:38:13Z
| 2020-02-21T18:38:13Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
df = pd.DataFrame({"key": ["a", "b", "c", "c"], "value": [1, 2, 3, 4]})
def foo(x):
print(f"called with {x}")
return len(x)
df.groupby("key")["value"].agg(foo)
```
#### Problem description
In 1.0.0, this code outputs:
```
called with Series([], Name: value, dtype: int64)
called with 0 1
Name: value, dtype: int64
called with 1 2
Name: value, dtype: int64
called with 2 3
3 4
Name: value, dtype: int64
Out[10]:
key
a 1
b 1
c 2
Name: value, dtype: int64
```
In 0.25.3, the code outputs:
```
In [5]: df.groupby("key")["value"].agg(foo)
called with 0 1
Name: value, dtype: int64
called with 1 2
Name: value, dtype: int64
called with 2 3
3 4
Name: value, dtype: int64
Out[5]:
key
a 1
b 1
c 2
Name: value, dtype: int64
```
In 1.0.0, `foo` is called one more time with empty input, which can break user code
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
For documentation-related issues, you can check the latest versions of the docs on `master` here:
https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31760/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31760/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31761
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31761/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31761/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31761/events
|
https://github.com/pandas-dev/pandas/pull/31761
| 561,284,341
|
MDExOlB1bGxSZXF1ZXN0MzcyMTI0MTA2
| 31,761
|
replaced old format strings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/49557941?v=4",
"events_url": "https://api.github.com/users/UnforgivenSoul/events{/privacy}",
"followers_url": "https://api.github.com/users/UnforgivenSoul/followers",
"following_url": "https://api.github.com/users/UnforgivenSoul/following{/other_user}",
"gists_url": "https://api.github.com/users/UnforgivenSoul/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/UnforgivenSoul",
"id": 49557941,
"login": "UnforgivenSoul",
"node_id": "MDQ6VXNlcjQ5NTU3OTQx",
"organizations_url": "https://api.github.com/users/UnforgivenSoul/orgs",
"received_events_url": "https://api.github.com/users/UnforgivenSoul/received_events",
"repos_url": "https://api.github.com/users/UnforgivenSoul/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/UnforgivenSoul/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/UnforgivenSoul/subscriptions",
"type": "User",
"url": "https://api.github.com/users/UnforgivenSoul"
}
|
[
{
"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"
},
{
"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 |
[] | null | 3
| 2020-02-06T21:36:36Z
| 2020-03-07T21:17:30Z
| 2020-03-07T21:17:30Z
|
NONE
| null |
Changed the string formatting to f-strings.
ref #29547
- [ ] 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/31761/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31761/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31761.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31761",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31761.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31761"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31762
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31762/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31762/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31762/events
|
https://github.com/pandas-dev/pandas/issues/31762
| 561,297,557
|
MDU6SXNzdWU1NjEyOTc1NTc=
| 31,762
|
Rolling Apply Docs Broken
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-06T22:05:07Z
| 2020-03-10T08:35:48Z
| 2020-03-10T08:35:48Z
|
MEMBER
| null |
A google of "rolling apply" for me yields:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.window.Rolling.apply.html
Which results in an HTTP 403. Working link now is:
https://pandas.pydata.org/docs/reference/api/pandas.core.window.rolling.Rolling.apply.html
As pointed out by @TomAugspurger seems to be an issue with `window.Rolling.apply` vs `window.rolling.Rolling.apply` (/docs should be a symlink to /pandas-docs/stable)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31762/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31762/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31763
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31763/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31763/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31763/events
|
https://github.com/pandas-dev/pandas/issues/31763
| 561,316,399
|
MDU6SXNzdWU1NjEzMTYzOTk=
| 31,763
|
Assigning scalars to nullable dataframe columns reverts to default dtypes.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/55477181?v=4",
"events_url": "https://api.github.com/users/davidwales/events{/privacy}",
"followers_url": "https://api.github.com/users/davidwales/followers",
"following_url": "https://api.github.com/users/davidwales/following{/other_user}",
"gists_url": "https://api.github.com/users/davidwales/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidwales",
"id": 55477181,
"login": "davidwales",
"node_id": "MDQ6VXNlcjU1NDc3MTgx",
"organizations_url": "https://api.github.com/users/davidwales/orgs",
"received_events_url": "https://api.github.com/users/davidwales/received_events",
"repos_url": "https://api.github.com/users/davidwales/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidwales/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidwales/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidwales"
}
|
[
{
"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 series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
open
| false
| null |
[] | null | 11
| 2020-02-06T22:49:44Z
| 2021-07-28T04:57:03Z
| null |
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
In [2]: df = pd.DataFrame({'A': ['a', 'b', 'c']}, dtype='string')
In [3]: df.dtypes
Out[3]:
A string
dtype: object
In [4]: df['A'] = 'test'
In [5]: df.dtypes
Out[5]:
A object
dtype: object
In [6]: df['A'] = pd.Series(['test'] * len(df), dtype='string', index=df.index)
In [7]: df
Out[7]:
A
0 test
1 test
2 test
In [8]: df.dtypes
Out[8]:
A string
dtype: object
# Don't need to set the index with pd.array()
In [9]: df['A'] = pd.array(['test'] * len(df) , dtype='string')
In [40]: df.dtypes
Out[40]:
A string
dtype: object
```
#### Problem description
Because the new nullable datatypes are not yet the default, it's very tricky to convince dtypes to stay as nullable dtypes. Helpful shortcuts for assigning repeating values to a dataframe column infer the default types, even if the column is currently a nullable type, and the data being added can be represented in the same nullable type. I'm not sure if it's best just to wait until the nullable dtypes become the default, and live with the workarounds shown above for now, or if perhaps another keyword could be added to [`df.assign()`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html) to specify the intended dtype of a column.
Alternatively, is there any scope for adding dtype information to scalars?
Something like:
```python
df['A'] = pd.typed('test', dtype='string')
# OR
df['A'] = pd.StringDtype('test')
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31763/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31763/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31764
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31764/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31764/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31764/events
|
https://github.com/pandas-dev/pandas/pull/31764
| 561,335,373
|
MDExOlB1bGxSZXF1ZXN0MzcyMTY2MTI5
| 31,764
|
Backport PR #31729 on branch 1.0.x (BUG: Fix to_excel writers handling of cols)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-06T23:41:26Z
| 2020-02-07T00:38:54Z
| 2020-02-07T00:38:54Z
|
NONE
| null |
Backport PR #31729: BUG: Fix to_excel writers handling of cols
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31764/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31764/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31764.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31764",
"merged_at": "2020-02-07T00:38:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31764.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31764"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31765
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31765/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31765/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31765/events
|
https://github.com/pandas-dev/pandas/pull/31765
| 561,371,939
|
MDExOlB1bGxSZXF1ZXN0MzcyMTk1NTYz
| 31,765
|
REF: Remove CategoricalIndex.get_value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-07T01:47:17Z
| 2020-02-09T15:47:49Z
| 2020-02-09T14:58:33Z
|
MEMBER
| null |
It is no longer needed following #31724.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31765/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31765/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31765.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31765",
"merged_at": "2020-02-09T14:58:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31765.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31765"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31766
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31766/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31766/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31766/events
|
https://github.com/pandas-dev/pandas/pull/31766
| 561,373,083
|
MDExOlB1bGxSZXF1ZXN0MzcyMTk2NTE0
| 31,766
|
REF: share _partial_date_slice between PeriodIndex/DatetimeIndex
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-07T01:51:47Z
| 2020-02-09T17:29:46Z
| 2020-02-09T16:56:08Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31766/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31766/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31766.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31766",
"merged_at": "2020-02-09T16:56:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31766.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31766"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31767
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31767/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31767/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31767/events
|
https://github.com/pandas-dev/pandas/pull/31767
| 561,399,314
|
MDExOlB1bGxSZXF1ZXN0MzcyMjE3MjM4
| 31,767
|
TST: parametrize some indexing tests
|
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-07T03:29:37Z
| 2020-02-09T17:23:42Z
| 2020-02-09T16:42:15Z
|
MEMBER
| null |
2/many
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31767/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31767/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31767.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31767",
"merged_at": "2020-02-09T16:42:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31767.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31767"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31768
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31768/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31768/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31768/events
|
https://github.com/pandas-dev/pandas/pull/31768
| 561,409,491
|
MDExOlB1bGxSZXF1ZXN0MzcyMjI1NTQ3
| 31,768
|
CLN: trim unreachable indexing code
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-07T04:11:11Z
| 2020-02-09T20:58:48Z
| 2020-02-09T20:42:31Z
|
MEMBER
| null |
make _set_value not return anything (the DataFrame docstring in particular is misleading)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31768/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31768/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31768.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31768",
"merged_at": "2020-02-09T20:42:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31768.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31768"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31769
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31769/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31769/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31769/events
|
https://github.com/pandas-dev/pandas/pull/31769
| 561,498,926
|
MDExOlB1bGxSZXF1ZXN0MzcyMjk3OTY2
| 31,769
|
ERR: improve error message for invalid indexer
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-07T08:47:08Z
| 2020-02-08T10:27:06Z
| 2020-02-08T10:26:59Z
|
MEMBER
| null |
Convert the long repr of the Index into just the name. So something like
```
cannot do slice indexing on <class 'pandas.core.indexes.datetimes.DatetimeIndex'> with these indexers [key] of <class 'float'>
```
becomes
```
cannot do slice indexing on DatetimeIndex with these indexers [key] of type float"
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31769/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31769/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31769.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31769",
"merged_at": "2020-02-08T10:26:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31769.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31769"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31770
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31770/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31770/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31770/events
|
https://github.com/pandas-dev/pandas/issues/31770
| 561,530,400
|
MDU6SXNzdWU1NjE1MzA0MDA=
| 31,770
|
read_from_sql() throws TypeError: 'NoneType' object is not iterable in sql.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26329691?v=4",
"events_url": "https://api.github.com/users/Semiarty/events{/privacy}",
"followers_url": "https://api.github.com/users/Semiarty/followers",
"following_url": "https://api.github.com/users/Semiarty/following{/other_user}",
"gists_url": "https://api.github.com/users/Semiarty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Semiarty",
"id": 26329691,
"login": "Semiarty",
"node_id": "MDQ6VXNlcjI2MzI5Njkx",
"organizations_url": "https://api.github.com/users/Semiarty/orgs",
"received_events_url": "https://api.github.com/users/Semiarty/received_events",
"repos_url": "https://api.github.com/users/Semiarty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Semiarty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Semiarty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Semiarty"
}
|
[] |
closed
| false
| null |
[] | null | 3
| 2020-02-07T09:50:39Z
| 2020-02-11T08:45:47Z
| 2020-02-07T11:23:43Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pyodbc
import sys
from contextlib import contextmanager
import textwrap
import pandas as pd
@contextmanager
def open_db_connection(connection_string):
pyodbc.pooling = False
connection = pyodbc.connect(connection_string)
try:
yield connection
except pyodbc.DatabaseError as err:
error, = err.args
sys.stderr.write(error.message)
finally:
connection.close()
def create_query_string(sql_full_path):
with open(sql_full_path, 'r') as f_in:
lines = f_in.read()
query_string = textwrap.dedent("""{}""".format(lines))
return query_string
def query(server, database, driver, queryObj):
connection_string = 'DRIVER={};SERVER={};DATABASE={};Trusted_Connection=yes'.format(driver, server, database)
noCount = """ SET NOCOUNT ON; """
with open_db_connection(connection_string) as conn:
res = pd.read_sql_query(noCount+queryObj, conn)
return res
def get_data_set(sql_file_name, db_info):
query_string = create_query_string(sql_file_name+'.sql')
server = db_info['server']
database = db_info['database']
driver = db_info['driver']
df = query(server, database, driver, query_string)
#df.to_excel(sql_file_name+'_backup.xlsx', index=False)
return df
db_info = {'server' : 'wsp', 'database' : 'fin', 'driver' : 'SQL Server'}
df = get_data_set('equities', db_info)
```
SQL part
```sql
IF OBJECT_ID('tempdb..#tmp') IS NOT NULL DROP TABLE #tmp;
select *
into #tmp
from fin.dbo.items_info
IF OBJECT_ID('tempdb..#test1') IS NOT NULL DROP TABLE #test1;
select t.PositionID, b.SecurityID
into #test1
from #tmp as t
inner join fin.dbo.items as b on (b.PositionID = t.PositionID and b.StudyDate = '20191230')
where t.ast = 'eq';
IF OBJECT_ID('tempdb..#beta_index') IS NOT NULL DROP TABLE #beta_index;
select distinct isin, beta_index into #beta_index from md.data.equity;
IF OBJECT_ID('tempdb..#test2') IS NOT NULL DROP TABLE #test2;
select t.PositionID,
case
when count(i.beta_index)=0 then 1
else count(i.beta_index)
end as noIndex
into #test2
from #test1 as t
left join #beta_index as i on (t.SecurityID = i.isin)
group by t.PositionID;
select * from #test2
```
#### Problem description
I am trying to get a dataframe from the above query, however it throws TypeError: 'NoneType' object is not iterable when trying to pull results from #test2 table ('SET NOCOUNT ON;' is being used) . Everything up to that point and after works perfectly, however it looks like it has something to do with counting and grouping. I can pull #test1 table above just fine. No issues with other lengthy queries with insert, update, group though.
Additionally, this query works fine when running it in SSMS v18.4 (using it as a driver).
#### Expected Output
I expect to get an output from #table2 table. The select statement should return a non empty table (which it does in SSMS).
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31770/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31770/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31771
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31771/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31771/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31771/events
|
https://github.com/pandas-dev/pandas/issues/31771
| 561,586,460
|
MDU6SXNzdWU1NjE1ODY0NjA=
| 31,771
|
BUG: df.to_markdown() with empty frame incorrect output
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/40694343?v=4",
"events_url": "https://api.github.com/users/ThibTrip/events{/privacy}",
"followers_url": "https://api.github.com/users/ThibTrip/followers",
"following_url": "https://api.github.com/users/ThibTrip/following{/other_user}",
"gists_url": "https://api.github.com/users/ThibTrip/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ThibTrip",
"id": 40694343,
"login": "ThibTrip",
"node_id": "MDQ6VXNlcjQwNjk0MzQz",
"organizations_url": "https://api.github.com/users/ThibTrip/orgs",
"received_events_url": "https://api.github.com/users/ThibTrip/received_events",
"repos_url": "https://api.github.com/users/ThibTrip/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ThibTrip/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ThibTrip/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ThibTrip"
}
|
[
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18493550?v=4",
"events_url": "https://api.github.com/users/ylin00/events{/privacy}",
"followers_url": "https://api.github.com/users/ylin00/followers",
"following_url": "https://api.github.com/users/ylin00/following{/other_user}",
"gists_url": "https://api.github.com/users/ylin00/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ylin00",
"id": 18493550,
"login": "ylin00",
"node_id": "MDQ6VXNlcjE4NDkzNTUw",
"organizations_url": "https://api.github.com/users/ylin00/orgs",
"received_events_url": "https://api.github.com/users/ylin00/received_events",
"repos_url": "https://api.github.com/users/ylin00/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ylin00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ylin00/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ylin00"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/18493550?v=4",
"events_url": "https://api.github.com/users/ylin00/events{/privacy}",
"followers_url": "https://api.github.com/users/ylin00/followers",
"following_url": "https://api.github.com/users/ylin00/following{/other_user}",
"gists_url": "https://api.github.com/users/ylin00/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ylin00",
"id": 18493550,
"login": "ylin00",
"node_id": "MDQ6VXNlcjE4NDkzNTUw",
"organizations_url": "https://api.github.com/users/ylin00/orgs",
"received_events_url": "https://api.github.com/users/ylin00/received_events",
"repos_url": "https://api.github.com/users/ylin00/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ylin00/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ylin00/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ylin00"
}
] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 9
| 2020-02-07T11:39:00Z
| 2020-12-12T23:28:05Z
| 2020-12-12T23:28:05Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame({'id': [], 'first_name': [], 'last_name': []}).set_index('id')
print(df.to_markdown())
```
```
| id | first_name | last_name |
||
```
#### Problem description
The markdown output of empty DataFrames does not seem right to me (see Expected Output).
#### Expected Output
```
| id | first_name | last_name |
|-----:|-------------:|------------:|
```
#### Render difference
##### Current
| id | first_name | last_name |
||
##### Expected
| id | first_name | last_name |
|-----:|-------------:|------------:|
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.2.1
hypothesis : None
sphinx : 2.2.0
blosc : None
feather : None
xlsxwriter : 1.2.1
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.2.1
pyxlsb : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.12
tables : 3.5.2
tabulate : 0.8.6
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.1
numba : 0.45.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31771/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31771/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31772
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31772/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31772/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31772/events
|
https://github.com/pandas-dev/pandas/issues/31772
| 561,591,791
|
MDU6SXNzdWU1NjE1OTE3OTE=
| 31,772
|
BUG: setitem on string dtype with slices fails
|
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-07T11:50:24Z
| 2020-02-12T12:38:27Z
| 2020-02-12T12:38:27Z
|
MEMBER
| null |
```
In [33]: df = pd.DataFrame({'A': ['a', 'b', 'c']}, dtype='string')
In [34]: df.loc[0:, 'A'] = "test"
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-34-bc65087be9d7> in <module>
----> 1 df.loc[0:, 'A'] = "test"
~/scipy/pandas/pandas/core/indexing.py in __setitem__(self, key, value)
629 key = com.apply_if_callable(key, self.obj)
630 indexer = self._get_setitem_indexer(key)
--> 631 self._setitem_with_indexer(indexer, value)
632
633 def _validate_key(self, key, axis: int):
~/scipy/pandas/pandas/core/indexing.py in _setitem_with_indexer(self, indexer, value)
1014 # actually do the set
1015 self.obj._consolidate_inplace()
-> 1016 self.obj._data = self.obj._data.setitem(indexer=indexer, value=value)
1017 self.obj._maybe_update_cacher(clear=True)
1018
~/scipy/pandas/pandas/core/internals/managers.py in setitem(self, **kwargs)
538
539 def setitem(self, **kwargs):
--> 540 return self.apply("setitem", **kwargs)
541
542 def putmask(self, **kwargs):
~/scipy/pandas/pandas/core/internals/managers.py in apply(self, f, filter, **kwargs)
417 applied = b.apply(f, **kwargs)
418 else:
--> 419 applied = getattr(b, f)(**kwargs)
420 result_blocks = _extend_blocks(applied, result_blocks)
421
~/scipy/pandas/pandas/core/internals/blocks.py in setitem(self, indexer, value)
1801
1802 check_setitem_lengths(indexer, value, self.values)
-> 1803 self.values[indexer] = value
1804 return self
1805
~/scipy/pandas/pandas/core/arrays/string_.py in __setitem__(self, key, value)
260 raise ValueError("Must provide strings.")
261
--> 262 super().__setitem__(key, value)
263
264 def fillna(self, value=None, method=None, limit=None):
~/scipy/pandas/pandas/core/arrays/numpy_.py in __setitem__(self, key, value)
273 value = np.asarray(value, dtype=self._ndarray.dtype)
274
--> 275 self._ndarray[key] = value
276
277 def __len__(self) -> int:
IndexError: arrays used as indices must be of integer (or boolean) type
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31772/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31772/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31773
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31773/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31773/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31773/events
|
https://github.com/pandas-dev/pandas/pull/31773
| 561,597,736
|
MDExOlB1bGxSZXF1ZXN0MzcyMzc5MDM4
| 31,773
|
BUG: fix StringArray/PandasArray setitem with slice
|
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 2
| 2020-02-07T12:03:45Z
| 2020-02-12T13:14:26Z
| 2020-02-12T12:38:27Z
|
MEMBER
| null |
Closes #31772
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31773/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31773/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31773.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31773",
"merged_at": "2020-02-12T12:38:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31773.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31773"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31774
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31774/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31774/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31774/events
|
https://github.com/pandas-dev/pandas/issues/31774
| 561,619,074
|
MDU6SXNzdWU1NjE2MTkwNzQ=
| 31,774
|
REGR: Timestamp subtraction raises TypeError, Non informative
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9756388?v=4",
"events_url": "https://api.github.com/users/sbrugman/events{/privacy}",
"followers_url": "https://api.github.com/users/sbrugman/followers",
"following_url": "https://api.github.com/users/sbrugman/following{/other_user}",
"gists_url": "https://api.github.com/users/sbrugman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sbrugman",
"id": 9756388,
"login": "sbrugman",
"node_id": "MDQ6VXNlcjk3NTYzODg=",
"organizations_url": "https://api.github.com/users/sbrugman/orgs",
"received_events_url": "https://api.github.com/users/sbrugman/received_events",
"repos_url": "https://api.github.com/users/sbrugman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sbrugman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sbrugman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sbrugman"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 8
| 2020-02-07T12:51:01Z
| 2020-03-11T01:45:54Z
| 2020-03-11T01:45:54Z
|
NONE
| null |
#### Code Sample
```python
import pandas as pd
print(pd.Timestamp('2101-01-01 00:00:00') - pd.Timestamp('1688-01-01 00:00:00'))
```
Outputs:
```
TypeError: unsupported operand type(s) for -: 'Timestamp' and 'Timestamp'
```
#### Problem description
The difference between the timestamps is too large for the Timedelta object. This can be traced back to these lines:
https://github.com/pandas-dev/pandas/blob/2dadd0f48949182dda412eb4032b5234c43c83c1/pandas/_libs/tslibs/c_timestamp.pyx#L303
For the example we can see that
```python
print(pd.Timedelta(pd.Timestamp('2101-01-01 00:00:00').value - pd.Timestamp('1688-01-01 00:00:00').value))
```
results in
```OverflowError: int too big to convert```
#### Expected Output
Ideally, the expected output is:
```
150845 days 00:00:00
```
Note the expected output matches that of pandas 0.25.3.
Alternatively, the error message should be at least somewhat informative, for example by propagating the OverflowError (removing the try/except block from L302-305) or raising a new TypeError (similar to L296).
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.0
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 42.0.2.post20191201
Cython : None
pytest : 5.3.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : 0.3.2
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
pytest : 5.3.2
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : 0.46.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31774/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31774/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31775
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31775/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31775/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31775/events
|
https://github.com/pandas-dev/pandas/issues/31775
| 561,626,051
|
MDU6SXNzdWU1NjE2MjYwNTE=
| 31,775
|
Feature Request: Sample method for Groupby objects
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6627924?v=4",
"events_url": "https://api.github.com/users/yadunathg/events{/privacy}",
"followers_url": "https://api.github.com/users/yadunathg/followers",
"following_url": "https://api.github.com/users/yadunathg/following{/other_user}",
"gists_url": "https://api.github.com/users/yadunathg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yadunathg",
"id": 6627924,
"login": "yadunathg",
"node_id": "MDQ6VXNlcjY2Mjc5MjQ=",
"organizations_url": "https://api.github.com/users/yadunathg/orgs",
"received_events_url": "https://api.github.com/users/yadunathg/received_events",
"repos_url": "https://api.github.com/users/yadunathg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yadunathg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yadunathg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yadunathg"
}
|
[
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32339541?v=4",
"events_url": "https://api.github.com/users/echozzy629/events{/privacy}",
"followers_url": "https://api.github.com/users/echozzy629/followers",
"following_url": "https://api.github.com/users/echozzy629/following{/other_user}",
"gists_url": "https://api.github.com/users/echozzy629/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echozzy629",
"id": 32339541,
"login": "echozzy629",
"node_id": "MDQ6VXNlcjMyMzM5NTQx",
"organizations_url": "https://api.github.com/users/echozzy629/orgs",
"received_events_url": "https://api.github.com/users/echozzy629/received_events",
"repos_url": "https://api.github.com/users/echozzy629/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echozzy629/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echozzy629/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echozzy629"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/32339541?v=4",
"events_url": "https://api.github.com/users/echozzy629/events{/privacy}",
"followers_url": "https://api.github.com/users/echozzy629/followers",
"following_url": "https://api.github.com/users/echozzy629/following{/other_user}",
"gists_url": "https://api.github.com/users/echozzy629/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echozzy629",
"id": 32339541,
"login": "echozzy629",
"node_id": "MDQ6VXNlcjMyMzM5NTQx",
"organizations_url": "https://api.github.com/users/echozzy629/orgs",
"received_events_url": "https://api.github.com/users/echozzy629/received_events",
"repos_url": "https://api.github.com/users/echozzy629/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echozzy629/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echozzy629/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echozzy629"
}
] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-07T13:05:50Z
| 2020-08-02T17:39:24Z
| 2020-06-14T15:22:16Z
|
NONE
| null |
Many times it is desirable to be able to iterate over a small number of groups of a group by object. Currently there is no direct way to get a random sample of groups.
Similar to DataFrame.sample method, can we have Groupby.sample method which gives us a Dictionary{'group_name'->'group_labels'} containing n randomly selected groups?
#### Expected behaviour
```python
import pandas as pd
df = pd.DataFrame([['Male', 1], ['Female', 3], ['Female', 2], ['Other', 1]],
columns=['gender', 'feature'])
grouped_df = df.groupby('gender')
# Desired feature
grouped_df.sample(n=2)
# {'Female': Int64Index([1, 2], dtype='int64'),
# 'Male': Int64Index([0], 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/31775/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31775/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31776
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31776/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31776/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31776/events
|
https://github.com/pandas-dev/pandas/issues/31776
| 561,650,453
|
MDU6SXNzdWU1NjE2NTA0NTM=
| 31,776
|
cannot import name 'OrderedDict'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41759287?v=4",
"events_url": "https://api.github.com/users/aminemosbah/events{/privacy}",
"followers_url": "https://api.github.com/users/aminemosbah/followers",
"following_url": "https://api.github.com/users/aminemosbah/following{/other_user}",
"gists_url": "https://api.github.com/users/aminemosbah/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aminemosbah",
"id": 41759287,
"login": "aminemosbah",
"node_id": "MDQ6VXNlcjQxNzU5Mjg3",
"organizations_url": "https://api.github.com/users/aminemosbah/orgs",
"received_events_url": "https://api.github.com/users/aminemosbah/received_events",
"repos_url": "https://api.github.com/users/aminemosbah/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aminemosbah/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aminemosbah/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aminemosbah"
}
|
[] |
closed
| false
| null |
[] | null | 4
| 2020-02-07T13:53:16Z
| 2020-02-07T17:01:55Z
| 2020-02-07T16:33:01Z
|
NONE
| null |
#### cannot import name 'OrderedDict'
trying to work on collab and panda failed to import 'OrderedDict'
here is the code
import pandas as pd
data = pd.read_csv('/content/causalnex/fulcase_causal.csv', delimiter=';', index_col=0)
data.head(5)
here is the message
/usr/local/lib/python3.6/dist-packages/pandas/io/formats/html.py in <module>()
8 from textwrap import dedent
9
---> 10 from pandas.compat import OrderedDict, lzip, map, range, u, unichr, zip
11
12 from pandas.core.dtypes.generic import ABCMultiIndex
ImportError: cannot import name 'OrderedDict'
any suggestion
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31776/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31776/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31777
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31777/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31777/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31777/events
|
https://github.com/pandas-dev/pandas/issues/31777
| 561,673,055
|
MDU6SXNzdWU1NjE2NzMwNTU=
| 31,777
|
GroupBy aggregation of DataFrame with MultiIndex columns breaks with custom function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/320128?v=4",
"events_url": "https://api.github.com/users/sbitzer/events{/privacy}",
"followers_url": "https://api.github.com/users/sbitzer/followers",
"following_url": "https://api.github.com/users/sbitzer/following{/other_user}",
"gists_url": "https://api.github.com/users/sbitzer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sbitzer",
"id": 320128,
"login": "sbitzer",
"node_id": "MDQ6VXNlcjMyMDEyOA==",
"organizations_url": "https://api.github.com/users/sbitzer/orgs",
"received_events_url": "https://api.github.com/users/sbitzer/received_events",
"repos_url": "https://api.github.com/users/sbitzer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sbitzer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sbitzer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sbitzer"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 4
| 2020-02-07T14:33:09Z
| 2020-03-12T02:32:55Z
| 2020-03-12T02:32:55Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
df = pd.DataFrame(
np.random.rand(10, 4),
columns=pd.MultiIndex.from_product([[1, 2], [3, 4]]))
grp = df.groupby(np.r_[np.ones(5), np.zeros(5)])
grp.agg(lambda s: s.mean())
```
#### Problem description
The above call raises
```python
ValueError: Length mismatch: Expected axis has 4 elements, new values have 2 elements
```
because
https://github.com/pandas-dev/pandas/blob/cf01369d5d82362565d5c58ee4d6094782b0f8e1/pandas/core/groupby/generic.py#L970-L972
assumes that the original columns were only `Index`. Doing
```python
grp.agg('mean')
```
works as expected (result with MultiIndex columns).
#### Expected Output
That of
```python
grp.agg('mean')
```
#### Output of ``pd.show_versions()``
<details>
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 7
machine : AMD64
processor : Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : None
pytest : 5.3.4
hypothesis : None
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.4
pyxlsb : None
s3fs : None
scipy : 1.3.2
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31777/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31777/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31778
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31778/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31778/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31778/events
|
https://github.com/pandas-dev/pandas/issues/31778
| 561,683,368
|
MDU6SXNzdWU1NjE2ODMzNjg=
| 31,778
|
Error: tuple index out of range
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59971621?v=4",
"events_url": "https://api.github.com/users/aman-thind/events{/privacy}",
"followers_url": "https://api.github.com/users/aman-thind/followers",
"following_url": "https://api.github.com/users/aman-thind/following{/other_user}",
"gists_url": "https://api.github.com/users/aman-thind/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aman-thind",
"id": 59971621,
"login": "aman-thind",
"node_id": "MDQ6VXNlcjU5OTcxNjIx",
"organizations_url": "https://api.github.com/users/aman-thind/orgs",
"received_events_url": "https://api.github.com/users/aman-thind/received_events",
"repos_url": "https://api.github.com/users/aman-thind/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aman-thind/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aman-thind/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aman-thind"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-07T14:50:49Z
| 2020-02-07T18:29:50Z
| 2020-02-07T18:29:50Z
|
NONE
| null |
I/P
dims = np.shape(df)
print(dims)
O/P
(142, 3)
I/P
pixel_matrix = np.reshape(df, (dims[0]* dims[1], dims[2]))
print(np.shape(pixel_matrix))
O/P
IndexError Traceback (most recent call last)
<ipython-input-71-0f88d37eb802> in <module>
----> 1 pixel_matrix = np.reshape(df, (dims[0]* dims[1], dims[2]))
2 print(np.shape(pixel_matrix))
IndexError: tuple index out of range
How to solve this error?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31778/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31778/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31779
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31779/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31779/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31779/events
|
https://github.com/pandas-dev/pandas/issues/31779
| 561,696,081
|
MDU6SXNzdWU1NjE2OTYwODE=
| 31,779
|
Categorical.from_codes fails for the (new nullable) Int64 dtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/118834?v=4",
"events_url": "https://api.github.com/users/mila/events{/privacy}",
"followers_url": "https://api.github.com/users/mila/followers",
"following_url": "https://api.github.com/users/mila/following{/other_user}",
"gists_url": "https://api.github.com/users/mila/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mila",
"id": 118834,
"login": "mila",
"node_id": "MDQ6VXNlcjExODgzNA==",
"organizations_url": "https://api.github.com/users/mila/orgs",
"received_events_url": "https://api.github.com/users/mila/received_events",
"repos_url": "https://api.github.com/users/mila/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mila/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mila/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mila"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 1
| 2020-02-07T15:10:35Z
| 2020-02-12T14:12:51Z
| 2020-02-12T12:36:51Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
>>> import pandas as pd
>>> codes = pd.Series([1, 0], dtype="Int64")
>>> pd.Categorical.from_codes(codes, categories=["foo", "bar"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../lib/python3.7/site-packages/pandas/core/arrays/categorical.py", line 649, in from_codes
raise ValueError("codes need to be array-like integers")
ValueError: codes need to be array-like integers
```
#### Problem description
`Categories.from_codes` works with Series with the Numpy `"int64"` dtype.
```python
>>> codes = pd.Series([1, 0])
>>> pd.Categorical.from_codes(codes, categories=["foo", "bar"])
[bar, foo]
Categories (2, object): [foo, bar]
```
I would expect that it will work with the new Pandas `"Int64"` dtype.
#### 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.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31779/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31779/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31780
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31780/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31780/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31780/events
|
https://github.com/pandas-dev/pandas/issues/31780
| 561,703,265
|
MDU6SXNzdWU1NjE3MDMyNjU=
| 31,780
|
Groupby get_group is not consistent - sometimes it returns the grouping columns, sometimes it doesn't
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34656862?v=4",
"events_url": "https://api.github.com/users/giuliobeseghi/events{/privacy}",
"followers_url": "https://api.github.com/users/giuliobeseghi/followers",
"following_url": "https://api.github.com/users/giuliobeseghi/following{/other_user}",
"gists_url": "https://api.github.com/users/giuliobeseghi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giuliobeseghi",
"id": 34656862,
"login": "giuliobeseghi",
"node_id": "MDQ6VXNlcjM0NjU2ODYy",
"organizations_url": "https://api.github.com/users/giuliobeseghi/orgs",
"received_events_url": "https://api.github.com/users/giuliobeseghi/received_events",
"repos_url": "https://api.github.com/users/giuliobeseghi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giuliobeseghi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giuliobeseghi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giuliobeseghi"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-02-07T15:22:36Z
| 2020-09-09T12:37:30Z
| 2020-09-09T12:37:30Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.DataFrame(
{"a": range(50), "b": range(0, 100, 2), "c": list(range(10)) * 5}
)
grouper = df.groupby("c")
grouper.get_group(0)
```
#### Problem description
This is quite weird and unfortunately I can't replicate it. The previous piece of code randomly returns one of the two options:
1)
| | a | b | c |
|---:|----:|----:|----:|
| 0 | 0 | 0 | 0 |
| 10 | 10 | 20 | 0 |
| 20 | 20 | 40 | 0 |
| 30 | 30 | 60 | 0 |
| 40 | 40 | 80 | 0 |
2)
| | a | b |
|---:|----:|----:|
| 0 | 0 | 0 |
| 10 | 10 | 20 |
| 20 | 20 | 40 |
| 30 | 30 | 60 |
| 40 | 40 | 80 |
If I run it now, I get option 1 (which I assume it's the expected one, since `Groupby.get_group` doesn't say anything about dropping the column used in the groupby https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.groupby.GroupBy.get_group.html)
However, a few minutes earlier I ran this
```python
[grouper.get_group(i).do_something_with_c_column() for i in grouper.groups.keys()]
```
And it raised a `KeyError`. Which is the right behavior? Can anyone else replicate this?
#### Output of ``pd.show_versions()``
<details>
numexpr.utils - INFO - NumExpr defaulting to 8 threads.
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : 0.29.14
pytest : 5.3.5
hypothesis : 5.4.1
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : 0.4.0
scipy : 1.3.2
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : 0.8.3
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31780/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31780/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31781
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31781/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31781/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31781/events
|
https://github.com/pandas-dev/pandas/issues/31781
| 561,706,557
|
MDU6SXNzdWU1NjE3MDY1NTc=
| 31,781
|
numpy.core._exceptions while resample using spline interpolation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48772414?v=4",
"events_url": "https://api.github.com/users/Lama09/events{/privacy}",
"followers_url": "https://api.github.com/users/Lama09/followers",
"following_url": "https://api.github.com/users/Lama09/following{/other_user}",
"gists_url": "https://api.github.com/users/Lama09/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Lama09",
"id": 48772414,
"login": "Lama09",
"node_id": "MDQ6VXNlcjQ4NzcyNDE0",
"organizations_url": "https://api.github.com/users/Lama09/orgs",
"received_events_url": "https://api.github.com/users/Lama09/received_events",
"repos_url": "https://api.github.com/users/Lama09/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Lama09/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Lama09/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Lama09"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-02-07T15:28:28Z
| 2021-07-28T05:01:12Z
| 2021-07-28T05:01:12Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
time value1 value2 value3
run_id
19 00:00:00 14.45 1000.0 5.800000
19 00:00:00.010000 14.45 1000.0 5.591578
19 00:00:00.020000 14.45 1000.0 5.878844
19 00:00:00.030000 14.45 1000.0 5.974964
19 00:00:00.040000 14.45 1000.0 5.643659
... ... ... ... ...
20 00:00:00.647290 17.46 1500.0 5.695907
```
#### Problem description
I have a grouped timeseries from measurement data which looks like this. I now would like to increase the sample rate from 0.01s to 0.001s using the following code.
```python
for name, group in data.groupby('run_id'):
temp = group.reset_index().set_index('time').resample('0.001S').interpolate(method='spline', order=2)
```
This will end up in the following exception.
```python
numpy.core._exceptions.UFuncTypeError: Cannot cast ufunc 'greater' input 1 from dtype('float64') to dtype('<m8[ns]') with casting rule 'same_kind'
```
Select a frequency for downsampling like this.
```python
temp = group.reset_index().set_index('time').resample('0.02S').interpolate(method='spline', order=2)
```
It seems to be working. The upsampling is working if I change the interpolation method to linear.
```python
temp = group.reset_index().set_index('time').resample('0.001S').interpolate(method='linear')
```
What I'm doing wrong here? I also tried an approach to apply the resampling directly to the groupby object like this.
```python
data.reset_index().set_index('time').groupby('run_id').resample('0.001S').interpolate(method='linear')
```
Does this make sense or do I need the apply() approach here?
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.3
numpy : 1.17.1
pytz : 2017.3
dateutil : 2.6.1
pip : 19.3.1
setuptools : 41.2.0
Cython : 0.27.3
pytest : 5.1.2
hypothesis : None
sphinx : 2.1.2
blosc : None
feather : None
xlsxwriter : 1.0.2
lxml.etree : 4.1.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 6.2.1
pandas_datareader: None
bs4 : 4.6.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.1.1
matplotlib : 2.1.2
numexpr : 2.6.4
odfpy : None
openpyxl : 2.4.10
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.0.0
sqlalchemy : 1.2.1
tables : None
xarray : None
xlrd : 1.1.0
xlwt : 1.3.0
xlsxwriter : 1.0.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/31781/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31781/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31782
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31782/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31782/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31782/events
|
https://github.com/pandas-dev/pandas/issues/31782
| 561,708,785
|
MDU6SXNzdWU1NjE3MDg3ODU=
| 31,782
|
Different behavior of numpy functions when used as a Python lambda function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2044286?v=4",
"events_url": "https://api.github.com/users/suddensleep/events{/privacy}",
"followers_url": "https://api.github.com/users/suddensleep/followers",
"following_url": "https://api.github.com/users/suddensleep/following{/other_user}",
"gists_url": "https://api.github.com/users/suddensleep/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/suddensleep",
"id": 2044286,
"login": "suddensleep",
"node_id": "MDQ6VXNlcjIwNDQyODY=",
"organizations_url": "https://api.github.com/users/suddensleep/orgs",
"received_events_url": "https://api.github.com/users/suddensleep/received_events",
"repos_url": "https://api.github.com/users/suddensleep/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/suddensleep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/suddensleep/subscriptions",
"type": "User",
"url": "https://api.github.com/users/suddensleep"
}
|
[
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 1
| 2020-02-07T15:32:27Z
| 2020-02-07T21:24:11Z
| 2020-02-07T21:23:43Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
df = pd.DataFrame().from_dict({"a": [1, 1, 1, 1], "b": [1, 2, 3, 4]})
df
a b
0 1 1
1 1 2
2 1 3
3 1 4
gdf = df.groupby("a")
gdf['b'].agg([("std1", lambda x: np.std(x))]) # ddof = 0
std1
a
1 1.118034
gdf['b'].agg([("std2", np.std)]) # ddof = 1
std2
a
1 1.290994
```
#### Problem description
To most Python/Pandas users, `np.std` and `lambda x: np.std(x)` should be interchangeable, as should any other method and its lambda equivalent. However, due to the implicit translation to `pd.std` that occurs in the latter example, these two calls use different default values of the `ddof` parameter, which can lead to real mismatches when refactoring code.
Given the discussion on closed Issue #13344, I gather that this is intended behavior, but it is nevertheless confusing. We may want to consider allowing for comparable output, at least as a default; if users want to override that behavior, they can explicitly provide a value for `ddof`.
#### Expected Output
BOTH aggregates output the `ddof = 1` calculation:
```
std2
a
1 1.290994
```
when no parameters are passed to the lambda.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Darwin
OS-release : 19.2.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200119
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31782/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31782/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31783
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31783/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31783/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31783/events
|
https://github.com/pandas-dev/pandas/issues/31783
| 561,716,539
|
MDU6SXNzdWU1NjE3MTY1Mzk=
| 31,783
|
read_excel error for header=None and index_col as list
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5959019?v=4",
"events_url": "https://api.github.com/users/lcmcninch/events{/privacy}",
"followers_url": "https://api.github.com/users/lcmcninch/followers",
"following_url": "https://api.github.com/users/lcmcninch/following{/other_user}",
"gists_url": "https://api.github.com/users/lcmcninch/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lcmcninch",
"id": 5959019,
"login": "lcmcninch",
"node_id": "MDQ6VXNlcjU5NTkwMTk=",
"organizations_url": "https://api.github.com/users/lcmcninch/orgs",
"received_events_url": "https://api.github.com/users/lcmcninch/received_events",
"repos_url": "https://api.github.com/users/lcmcninch/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lcmcninch/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lcmcninch/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lcmcninch"
}
|
[
{
"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",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-07T15:44:24Z
| 2020-07-10T13:54:00Z
| 2020-07-10T13:54:00Z
|
NONE
| null |
#### Code Sample
```python
import pandas as pd
df = pd.read_excel('Book1.xlsx', header=None, index_col = [0, 1])
```
#### Problem description
Above leads to the following error. This seems to be related to the combination of header=None and index_col as a list. If I give an integer index_col, or leave out header=None (or specify a header) there is no error.
The only other reference to this issue I found was [this stack overflow question](https://stackoverflow.com/questions/48334347/read-excel-in-pandas-giving-error-for-no-header-and-multiple-index-cols).
I am seeing this in the latest release (1.0.1) as well as an older one (0.25.3). I haven't been able to install from master because I'm working on windows and don't have a compiler set up.
Example exel file (although the contents doesn't matter, it could be workbook with an empty sheet): [Book1.xlsx](https://github.com/pandas-dev/pandas/files/4171589/Book1.xlsx)
```
<redact>\lib\site-packages\pandas\io\excel\_base.py in read_excel(io, sheet_name, header, names, index_col, usecols, squeeze, dtype, engine, converters, true_values, false_values, skiprows, nrows, na_values, keep_default_na, verbose, parse_dates, date_parser, thousands, comment, skipfooter, convert_float, mangle_dupe_cols, **kwds)
332 convert_float=convert_float,
333 mangle_dupe_cols=mangle_dupe_cols,
--> 334 **kwds,
335 )
336
<redact>\lib\site-packages\pandas\io\excel\_base.py in parse(self, sheet_name, header, names, index_col, usecols, squeeze, converters, true_values, false_values, skiprows, nrows, na_values, parse_dates, date_parser, thousands, comment, skipfooter, convert_float, mangle_dupe_cols, **kwds)
883 convert_float=convert_float,
884 mangle_dupe_cols=mangle_dupe_cols,
--> 885 **kwds,
886 )
887
<redact>\lib\site-packages\pandas\io\excel\_base.py in parse(self, sheet_name, header, names, index_col, usecols, squeeze, dtype, true_values, false_values, skiprows, nrows, na_values, verbose, parse_dates, date_parser, thousands, comment, skipfooter, convert_float, mangle_dupe_cols, **kwds)
467 # Forward fill values for MultiIndex index.
468 if not is_list_like(header):
--> 469 offset = 1 + header
470 else:
471 offset = 1 + max(header)
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
```
#### Expected Output
A DataFrame with two column indexes.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31783/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31783/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31784
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31784/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31784/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31784/events
|
https://github.com/pandas-dev/pandas/issues/31784
| 561,722,585
|
MDU6SXNzdWU1NjE3MjI1ODU=
| 31,784
|
BUG: DataFrame._item_cache not cleared on on .copy()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1503955?v=4",
"events_url": "https://api.github.com/users/tommontroy/events{/privacy}",
"followers_url": "https://api.github.com/users/tommontroy/followers",
"following_url": "https://api.github.com/users/tommontroy/following{/other_user}",
"gists_url": "https://api.github.com/users/tommontroy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tommontroy",
"id": 1503955,
"login": "tommontroy",
"node_id": "MDQ6VXNlcjE1MDM5NTU=",
"organizations_url": "https://api.github.com/users/tommontroy/orgs",
"received_events_url": "https://api.github.com/users/tommontroy/received_events",
"repos_url": "https://api.github.com/users/tommontroy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tommontroy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tommontroy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tommontroy"
}
|
[
{
"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 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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33635204?v=4",
"events_url": "https://api.github.com/users/neilkg/events{/privacy}",
"followers_url": "https://api.github.com/users/neilkg/followers",
"following_url": "https://api.github.com/users/neilkg/following{/other_user}",
"gists_url": "https://api.github.com/users/neilkg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neilkg",
"id": 33635204,
"login": "neilkg",
"node_id": "MDQ6VXNlcjMzNjM1MjA0",
"organizations_url": "https://api.github.com/users/neilkg/orgs",
"received_events_url": "https://api.github.com/users/neilkg/received_events",
"repos_url": "https://api.github.com/users/neilkg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neilkg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neilkg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neilkg"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/33635204?v=4",
"events_url": "https://api.github.com/users/neilkg/events{/privacy}",
"followers_url": "https://api.github.com/users/neilkg/followers",
"following_url": "https://api.github.com/users/neilkg/following{/other_user}",
"gists_url": "https://api.github.com/users/neilkg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neilkg",
"id": 33635204,
"login": "neilkg",
"node_id": "MDQ6VXNlcjMzNjM1MjA0",
"organizations_url": "https://api.github.com/users/neilkg/orgs",
"received_events_url": "https://api.github.com/users/neilkg/received_events",
"repos_url": "https://api.github.com/users/neilkg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neilkg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neilkg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neilkg"
}
] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-07T15:54:02Z
| 2020-04-06T14:35:32Z
| 2020-04-06T14:33:38Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
import copy
import pandas as pd
import platform
print('Python Version', platform.python_version())
print('Pandas Version', pd.__version__)
a = [1.]
d = {}
d['a'] = a
df = pd.DataFrame(d)
print('Initial data frame')
print(df)
print('------')
\# This statement must be before the print statement
\# Removing this causes the bug to disappear
df['x'] = 0.0
\# Removing this causes the bug to disappear
print("df['a'].values=", df['a'].values)
print('-----')
\# Removing the copy causes the bug to disappear
\# copy.deepcopy(df) or df.copy() leads to the same result
\#df1 = copy.deepcopy(df)
df1 = df.copy()
\# set the first element of 'a' to value
value = -1.0
df['a'].values[0] = value
print("After setting df['a'].values[0] = %f" % (value))
print(df)
print('-------')
print("df['a'].values=", df['a'].values)
print('-------')
\# Removing this causes the bug to disappear
df['y'] = 0.0
print('Final')
print(df)
print('-------')
print("df['a'].values=", df['a'].values)
#### Problem description
First, we build a dataframe from a dictionary containing a list.
After that, we add a column, do add some print statements, copy the dataframe. The addition of the column and print statement are crucial to the bug showing up. The fact that the print statement matters leads me to believe that it's memory issue.
The critical point is that we set df['a'].values[0] = -1.0 which is somehow not permanent.
Lastly we add another column. This column addition is necessary for the issue to occur.
In short the issue looks like this:
a = [1.0]
df = pd.DataFrame({'a': a})
df['x'] = 0.0 # necessary for bug
print(df['a'].values) # necessary for bug
df1 = df.copy()
df['a'].values[0] = -1.0 # this is the statement which is ignored
print(df['a'].values)
print(df)
df['y'] = 0.0 # necessary for bug
print(df['a'].values)
At this point, we'd expect df['a'].values = [-1.0], but in fact df['a'].values == 1.0
I've tested this issue on a wide variety of versions. The last version where it works as expected is 0.16.2 and the version with the unexpected result is 0.17.1. I've tried this with python 3.6 / pandas=1.0.0 on Linux and python 3.7 / pandas 1.0.1 on OS X and get the same result.
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.0.final.0
python-bits : 64
OS : Darwin
OS-release : 17.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.15.1
pytz : 2019.3
dateutil : 2.7.3
pip : 18.0
setuptools : 40.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10
IPython : 6.5.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31784/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31784/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31785
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31785/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31785/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31785/events
|
https://github.com/pandas-dev/pandas/issues/31785
| 561,754,012
|
MDU6SXNzdWU1NjE3NTQwMTI=
| 31,785
|
Crash when using align between a Series and a DataFrame and ffill (or bfill) method
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10088846?v=4",
"events_url": "https://api.github.com/users/m-lal/events{/privacy}",
"followers_url": "https://api.github.com/users/m-lal/followers",
"following_url": "https://api.github.com/users/m-lal/following{/other_user}",
"gists_url": "https://api.github.com/users/m-lal/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/m-lal",
"id": 10088846,
"login": "m-lal",
"node_id": "MDQ6VXNlcjEwMDg4ODQ2",
"organizations_url": "https://api.github.com/users/m-lal/orgs",
"received_events_url": "https://api.github.com/users/m-lal/received_events",
"repos_url": "https://api.github.com/users/m-lal/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/m-lal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/m-lal/subscriptions",
"type": "User",
"url": "https://api.github.com/users/m-lal"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 3
| 2020-02-07T16:49:59Z
| 2020-02-09T17:12:59Z
| 2020-02-09T17:12:59Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
# Your code here
import pandas as pd
x = pd.Series(range(10), index=range(10))
y = pd.DataFrame(0.0, index=range(20), columns=range(12))
# works fine (no fill method)
x.align(y)
# crash
x.align(y, method='ffill')
# works fine if x is converted to a DataFrame
x.to_frame().align(y, method='ffill')
```
#### Problem description
This problem only occurs on pandas version >= 1.0.0
Pretty simple bug to reproduce... Quite a serious issue! It should probably shows elsewhere also.
**When using align between a Series and a DataFrame with a fill method the code hits this
assert isinstance(obj, type(self)), type(obj)
AssertionError: <class 'pandas.core.frame.DataFrame'>**
My guess is that isinstance(obj, type(self)) try to assert that a Series is a DataFrame which is not the case.
#### Expected Output
Similar to x.align(y), with forward filled values.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 19.0.3
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : None
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : 0.48.0
</details>
|
{
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31785/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31785/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31786
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31786/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31786/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31786/events
|
https://github.com/pandas-dev/pandas/pull/31786
| 561,793,364
|
MDExOlB1bGxSZXF1ZXN0MzcyNTM2ODYw
| 31,786
|
REF: remove iloc case from _convert_slice_indexer
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-07T18:12:27Z
| 2020-02-10T20:10:01Z
| 2020-02-09T17:06:36Z
|
MEMBER
| null |
_convert_slice_indexer is turning out to be one of the stickier methods to figure out, xref #31658.
The case with kind=None is only called from one place in core.indexing, and that is not reached in the tests. I'd like to either a) figure out a non-None kind to pass to it, or b) determine that it can never be reached so can be removed. Any thoughts on this are very welcome.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31786/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31786/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31786.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31786",
"merged_at": "2020-02-09T17:06:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31786.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31786"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31787
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31787/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31787/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31787/events
|
https://github.com/pandas-dev/pandas/issues/31787
| 561,800,459
|
MDU6SXNzdWU1NjE4MDA0NTk=
| 31,787
|
plotting backends doesn't plot for the first time after importing pandas
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/46084304?v=4",
"events_url": "https://api.github.com/users/rushabh-v/events{/privacy}",
"followers_url": "https://api.github.com/users/rushabh-v/followers",
"following_url": "https://api.github.com/users/rushabh-v/following{/other_user}",
"gists_url": "https://api.github.com/users/rushabh-v/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rushabh-v",
"id": 46084304,
"login": "rushabh-v",
"node_id": "MDQ6VXNlcjQ2MDg0MzA0",
"organizations_url": "https://api.github.com/users/rushabh-v/orgs",
"received_events_url": "https://api.github.com/users/rushabh-v/received_events",
"repos_url": "https://api.github.com/users/rushabh-v/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rushabh-v/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rushabh-v/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rushabh-v"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-02-07T18:28:42Z
| 2020-02-15T05:07:15Z
| 2020-02-15T05:07:15Z
|
CONTRIBUTOR
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
pd.set_option('plotting.backend', 'matplotlib')
pd.Series([1, 2, 3]).plot()
```
```python
import pandas as pd
pd.options.plotting.backend = 'matplotlib'
pd.Series([1, 2, 3]).plot()
```
```python
import pandas as pd
pd.Series([1, 2, 3]).plot(backend='matplotlib')
```
#### Problem description
If you use any of the above three options to plot. for the first time, it will just return something like `<matplotlib.axes._subplots.AxesSubplot at 0x7f6b28a75ac8>
`. And then, from the next time onwards it will plot the graph. Even if you use one option after another then also from the second time onwards it works fine.
#### Expected Output
It should plot the graph for the first time also.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Linux
OS-release : 4.20.5-042005-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_IN
LOCALE : en_IN.ISO8859-1
pandas : 1.0.0rc0
numpy : 1.16.4
pytz : 2019.1
dateutil : 2.8.0
pip : 20.0.2
setuptools : 41.0.1
Cython : 0.29.12
pytest : 5.0.1
hypothesis : None
sphinx : 2.1.2
blosc : None
feather : None
xlsxwriter : 1.1.8
lxml.etree : 4.3.4
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.6.1
pandas_datareader: None
bs4 : 4.7.1
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.3.4
matplotlib : 3.1.0
numexpr : 2.6.9
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.0.1
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.5
tables : 3.5.2
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.1.8
numba : 0.44.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31787/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31787/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31788
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31788/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31788/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31788/events
|
https://github.com/pandas-dev/pandas/pull/31788
| 561,810,111
|
MDExOlB1bGxSZXF1ZXN0MzcyNTUwNDc0
| 31,788
|
BUG: Too aggressive typing in NDFrame.align
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 6
| 2020-02-07T18:50:27Z
| 2020-02-12T21:49:41Z
| 2020-02-09T17:12:59Z
|
CONTRIBUTOR
| null |
- [x] closes #31785
The type checking was too aggressive. ``right`` has type ``Any``, so the wrapping in ``_ensure_type`` should not be done.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31788/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31788/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31788.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31788",
"merged_at": "2020-02-09T17:12:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31788.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31788"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31789
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31789/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31789/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31789/events
|
https://github.com/pandas-dev/pandas/issues/31789
| 561,824,998
|
MDU6SXNzdWU1NjE4MjQ5OTg=
| 31,789
|
MemoryError when using series.rolling().corr(other) with >1.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1246446?v=4",
"events_url": "https://api.github.com/users/mdering/events{/privacy}",
"followers_url": "https://api.github.com/users/mdering/followers",
"following_url": "https://api.github.com/users/mdering/following{/other_user}",
"gists_url": "https://api.github.com/users/mdering/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mdering",
"id": 1246446,
"login": "mdering",
"node_id": "MDQ6VXNlcjEyNDY0NDY=",
"organizations_url": "https://api.github.com/users/mdering/orgs",
"received_events_url": "https://api.github.com/users/mdering/received_events",
"repos_url": "https://api.github.com/users/mdering/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mdering/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mdering/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mdering"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 1
| 2020-02-07T19:24:00Z
| 2020-02-10T17:51:32Z
| 2020-02-10T17:51:32Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
srs1 = pd.Series(np.random.rand(11521),pd.date_range('2019-08-15', '2019-08-23',freq='1T'))
srs2 = pd.Series(np.random.rand(11521),pd.date_range('2019-08-15', '2019-08-23',freq='1T'))
srs1.rolling(pd.to_timedelta("12H")).corr(srs2)
```
#### Problem description
Running the code above results in the following error `Unable to allocate 314. TiB for an array with shape (43200000000000,) and data type int64` on pandas 1.0.1. Confirmed that this used to work on pandas 0.25.3.
#### Expected Output
The correct calculations
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 19.2.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : 0.29.14
pytest : 5.3.5
hypothesis : 5.4.1
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : 0.3.2
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.13.0
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : 0.13.0
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31789/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31789/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31790
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31790/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31790/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31790/events
|
https://github.com/pandas-dev/pandas/pull/31790
| 561,836,994
|
MDExOlB1bGxSZXF1ZXN0MzcyNTcyNzQz
| 31,790
|
TST: Making use of tm.external_error_raised
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "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 | 6
| 2020-02-07T19:47:34Z
| 2020-02-29T10:32:49Z
| 2020-02-20T02:21:16Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
After #31130 got merged, I can do what I couldn't do [here](https://github.com/pandas-dev/pandas/pull/30998#discussion_r368177775)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31790/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31790/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31790.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31790",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31790.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31790"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31791
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31791/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31791/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31791/events
|
https://github.com/pandas-dev/pandas/pull/31791
| 561,862,287
|
MDExOlB1bGxSZXF1ZXN0MzcyNTkzMTcx
| 31,791
|
CI: fix feather 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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 12
| 2020-02-07T20:44:58Z
| 2020-03-12T13:31:17Z
| 2020-02-08T00:13:10Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31791/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31791/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31791.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31791",
"merged_at": "2020-02-08T00:13:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31791.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31791"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31792
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31792/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31792/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31792/events
|
https://github.com/pandas-dev/pandas/pull/31792
| 561,864,472
|
MDExOlB1bGxSZXF1ZXN0MzcyNTk0OTky
| 31,792
|
Some code cleanups
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-02-07T20:50:04Z
| 2020-02-29T10:32:22Z
| 2020-02-12T16:09:01Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31792/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31792/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31792.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31792",
"merged_at": "2020-02-12T16:09:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31792.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31792"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31793
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31793/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31793/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31793/events
|
https://github.com/pandas-dev/pandas/issues/31793
| 561,882,209
|
MDU6SXNzdWU1NjE4ODIyMDk=
| 31,793
|
Difference between two Timestamp with different timezone object type fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7696611?v=4",
"events_url": "https://api.github.com/users/antoine-gallix/events{/privacy}",
"followers_url": "https://api.github.com/users/antoine-gallix/followers",
"following_url": "https://api.github.com/users/antoine-gallix/following{/other_user}",
"gists_url": "https://api.github.com/users/antoine-gallix/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/antoine-gallix",
"id": 7696611,
"login": "antoine-gallix",
"node_id": "MDQ6VXNlcjc2OTY2MTE=",
"organizations_url": "https://api.github.com/users/antoine-gallix/orgs",
"received_events_url": "https://api.github.com/users/antoine-gallix/received_events",
"repos_url": "https://api.github.com/users/antoine-gallix/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/antoine-gallix/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/antoine-gallix/subscriptions",
"type": "User",
"url": "https://api.github.com/users/antoine-gallix"
}
|
[
{
"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": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
},
{
"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"
}
] |
open
| false
| null |
[] | null | 11
| 2020-02-07T21:30:34Z
| 2021-07-28T05:02:29Z
| null |
NONE
| null |
I encountered an issue while calculating the difference between two timestamps
of different origin. The first timestamp comes from a function using the `arrow`
package. The timestamp is in UTC timezone. The other timestamp comes for another
package returning a `pandas.DataFrame`, also with UTC timestamps. An exception is
raised when trying to get the difference between the two timestamps. Here follow
some come that reproduces the error, with some details about the respective
time zones.
```python
import arrow
import pandas
def info(name, thing):
print(f"{name} | tzinfo: {thing.tzinfo} | tzinfo type: {type(thing.tzinfo)}")
arrow_now = arrow.utcnow()
info("arrow.utcnow()", arrow_now)
arrow_now_datetime = arrow_now.datetime
info("arrow.utcnow().datetime", arrow_now_datetime)
timestamp_from_datetime_from_arrow_now = pandas.Timestamp(arrow_now_datetime)
info(
"pandas.Timestamp(arrow.utcnow().datetime)", timestamp_from_datetime_from_arrow_now
)
pandas_now_timestamp = pandas.Timestamp.utcnow()
info("pandas.Timestamp.utcnow()", pandas_now_timestamp)
```
Running the above code produces:
```
arrow.utcnow() | tzinfo: tzutc() | tzinfo type: <class 'dateutil.tz.tz.tzutc'>
arrow.utcnow().datetime | tzinfo: tzutc() | tzinfo type: <class 'dateutil.tz.tz.tzutc'>
pandas.Timestamp(arrow.utcnow().datetime) | tzinfo: tzutc() | tzinfo type: <class 'dateutil.tz.tz.tzutc'>
pandas.Timestamp.utcnow() | tzinfo: UTC | tzinfo type: <class 'pytz.UTC'>
```
Both timestamps are in the same timezone, but the timezone object itself comes from different packages. Now when trying to get the difference between the two timestamps:
`timestamp_from_datetime_from_arrow_now - pandas_now_timestamp`
I get the following error:
`TypeError: Timestamp subtraction must have the same timezones or no timezones`
I would expect that if the Timestamp objects are initialized without error,
which is the case, that they are valid object that can work with each other,
independently from what were the timestamps build with. It's not the case.
#### System Info
<details>
- system: Ubuntu 19.04 disco
- python version: 3.7.4
- arrow version: 0.15.5
- pandas version: 1.0.0
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 5.0.0-38-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.11.1
IPython : 6.0.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 1.3.13
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31793/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31793/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31794
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31794/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31794/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31794/events
|
https://github.com/pandas-dev/pandas/pull/31794
| 561,885,127
|
MDExOlB1bGxSZXF1ZXN0MzcyNjEyMDU1
| 31,794
|
BUG: Avoid casting Int to object in Categorical.from_codes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 3
| 2020-02-07T21:37:33Z
| 2020-02-12T15:34:46Z
| 2020-02-12T12:36:51Z
|
MEMBER
| null |
- [x] closes #31779
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31794/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31794/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31794.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31794",
"merged_at": "2020-02-12T12:36:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31794.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31794"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31795
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31795/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31795/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31795/events
|
https://github.com/pandas-dev/pandas/pull/31795
| 561,893,508
|
MDExOlB1bGxSZXF1ZXN0MzcyNjE4OTgz
| 31,795
|
ENH: add from_dummies
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"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": "370f77",
"default": false,
"description": "DataFrame data structure",
"id": 1049312478,
"name": "DataFrame",
"node_id": "MDU6TGFiZWwxMDQ5MzEyNDc4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/DataFrame"
}
] |
closed
| false
| null |
[] | null | 7
| 2020-02-07T21:59:08Z
| 2020-10-10T14:14:50Z
| 2020-05-26T09:43:37Z
|
MEMBER
| null |
Just a first draft
Will close #8745
Screenshot of examples

|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31795/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31795/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31795.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31795",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31795.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31795"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31796
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31796/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31796/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31796/events
|
https://github.com/pandas-dev/pandas/pull/31796
| 561,898,576
|
MDExOlB1bGxSZXF1ZXN0MzcyNjIzMTIy
| 31,796
|
ENH: add Series.info
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "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": "8dd5fc",
"default": false,
"description": "Series data structure",
"id": 1357732944,
"name": "Series",
"node_id": "MDU6TGFiZWwxMzU3NzMyOTQ0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Series"
}
] |
closed
| false
| null |
[] | null | 10
| 2020-02-07T22:12:38Z
| 2020-10-10T14:14:44Z
| 2020-10-07T16:39:28Z
|
MEMBER
| null |
- [x] initial draft to close #5167
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
screenshot of the example

------
Note to self: this change from `ba72b59b44f15076877e784e16cbc66aa03e0adc` breaks the tests
```diff
- # groupby dtype.name to collect e.g. Categorical columns
- counts = data.dtypes.value_counts().groupby(lambda x: x.name).sum()
+ counts = data._data.get_dtype_counts()
```
----
### Updated
Currently, looks like this:

|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31796/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31796/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31796.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31796",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31796.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31796"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31797
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31797/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31797/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31797/events
|
https://github.com/pandas-dev/pandas/pull/31797
| 561,903,650
|
MDExOlB1bGxSZXF1ZXN0MzcyNjI3NDA1
| 31,797
|
CLN: assorted indexing-related 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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-02-07T22:26:40Z
| 2020-02-10T16:20:43Z
| 2020-02-10T10:39:25Z
|
MEMBER
| null |
- _setitem_with_indexer isnt consistent about whether or not it returns anything, make it always-None
- avoid using private loc method from DataFrame
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31797/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31797/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31797.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31797",
"merged_at": "2020-02-10T10:39:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31797.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31797"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31798
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31798/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31798/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31798/events
|
https://github.com/pandas-dev/pandas/issues/31798
| 561,927,138
|
MDU6SXNzdWU1NjE5MjcxMzg=
| 31,798
|
Failed to create the storer for xarray on HDFStore
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20059518?v=4",
"events_url": "https://api.github.com/users/ericksc/events{/privacy}",
"followers_url": "https://api.github.com/users/ericksc/followers",
"following_url": "https://api.github.com/users/ericksc/following{/other_user}",
"gists_url": "https://api.github.com/users/ericksc/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ericksc",
"id": 20059518,
"login": "ericksc",
"node_id": "MDQ6VXNlcjIwMDU5NTE4",
"organizations_url": "https://api.github.com/users/ericksc/orgs",
"received_events_url": "https://api.github.com/users/ericksc/received_events",
"repos_url": "https://api.github.com/users/ericksc/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ericksc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ericksc/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ericksc"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-02-07T23:45:06Z
| 2021-07-28T05:08:54Z
| 2021-07-28T05:08:53Z
|
NONE
| null |
When The code below tried to store into a hdf in case of xarray DataArray but it cased an error. Other datatypes
```python
import pandas as pd
import xarray as xr
import tempfile
def test_hdfstore():
with tempfile.NamedTemporaryFile('r', suffix='.hdf') as f:
with pd.HDFStore(f.name, "a") as store:
obj = xr.DataArray([[1,2],[3,4]],
dims=('x', 'y'),
coords={'x': ['A', 'B'], 'y':['a','b']})
store['my_obj'] = obj
```
#### Problem description
When a DataArray was tried to be stored in an HDF5 file but it caused an error like this:
```
File "C:\ProgramData\Anaconda3\envs\python37\lib\site-packages\pandas\io\pytables.py", line 556, in __setitem__
self.put(key, value)
File "C:\ProgramData\Anaconda3\envs\python37\lib\site-packages\pandas\io\pytables.py", line 1042, in put
errors=errors,
File "C:\ProgramData\Anaconda3\envs\python37\lib\site-packages\pandas\io\pytables.py", line 1682, in _write_to_group
s = self._create_storer(group, format, value, encoding=encoding, errors=errors)
File "C:\ProgramData\Anaconda3\envs\python37\lib\site-packages\pandas\io\pytables.py", line 1548, in _create_storer
raise TypeError("value must be None, Series, or DataFrame")
TypeError: value must be None, Series, or DataFrame
```
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : 0.15.0
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31798/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31798/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31799
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31799/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31799/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31799/events
|
https://github.com/pandas-dev/pandas/pull/31799
| 561,933,462
|
MDExOlB1bGxSZXF1ZXN0MzcyNjUxNzQ1
| 31,799
|
Added pd.NA to nulls_fixture
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-02-08T00:09:08Z
| 2020-02-20T04:51:36Z
| 2020-02-20T04:51:08Z
|
MEMBER
| null |
@jorisvandenbossche
I think we should do this. Simply xfailed issues up for discussion on how to resolve
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31799/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31799/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31799.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31799",
"merged_at": "2020-02-20T04:51:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31799.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31799"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31800
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31800/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31800/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31800/events
|
https://github.com/pandas-dev/pandas/pull/31800
| 561,937,228
|
MDExOlB1bGxSZXF1ZXN0MzcyNjU0NTM3
| 31,800
|
CI Fix w/o tm helper
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[] |
closed
| false
| null |
[] | null | 8
| 2020-02-08T00:24:11Z
| 2020-02-14T16:55:07Z
| 2020-02-14T16:55:07Z
|
MEMBER
| null |
Alternate to #31791
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31800/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31800/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31800.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31800",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31800.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31800"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31801
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31801/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31801/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31801/events
|
https://github.com/pandas-dev/pandas/issues/31801
| 561,939,938
|
MDU6SXNzdWU1NjE5Mzk5Mzg=
| 31,801
|
to_json index with Null Value Broken in 1.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] |
open
| false
| null |
[] | null | 5
| 2020-02-08T00:36:42Z
| 2020-05-08T21:24:26Z
| null |
MEMBER
| null |
Discovered by @ArtificialQualia in #31748
Previous behavior on 0.25.3:
```python
>>> pd.Series([1], index=[np.nan]).to_json()
'{"null":1}'
>>> pd.Series([1], index=[pd.NaT]).to_json()
'{"null":1}'
>>> pd.Series([1], index=[None]).to_json()
'{"null":1}'
```
And now on master:
```python
>>> pd.Series([1], index=[np.nan]).to_json()
'{"nan":1}'
>>> pd.Series([1], index=[pd.NaT]).to_json()
'{"null":1}'
>>> pd.Series([1], index=[None]).to_json()
'{"None":1}'
```
Note that pd.NA also just has its str representation written out:
```python
>>> pd.Series([1], index=[pd.NA]).to_json()
'{"<NA>":1}'
```
pd.NaT still works because of this logic:
https://github.com/pandas-dev/pandas/blob/6d3cc14fc52685511329cedf1e11d15651ac6a8e/pandas/_libs/src/ujson/python/objToJSON.c#L1455
So probably need to generalize for other "null" values
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31801/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31801/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31802
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31802/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31802/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31802/events
|
https://github.com/pandas-dev/pandas/issues/31802
| 561,949,344
|
MDU6SXNzdWU1NjE5NDkzNDQ=
| 31,802
|
REGR: cumsum regression with groupby call to agg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/119405?v=4",
"events_url": "https://api.github.com/users/mattharrison/events{/privacy}",
"followers_url": "https://api.github.com/users/mattharrison/followers",
"following_url": "https://api.github.com/users/mattharrison/following{/other_user}",
"gists_url": "https://api.github.com/users/mattharrison/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mattharrison",
"id": 119405,
"login": "mattharrison",
"node_id": "MDQ6VXNlcjExOTQwNQ==",
"organizations_url": "https://api.github.com/users/mattharrison/orgs",
"received_events_url": "https://api.github.com/users/mattharrison/received_events",
"repos_url": "https://api.github.com/users/mattharrison/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mattharrison/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mattharrison/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mattharrison"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 26
| 2020-02-08T01:30:16Z
| 2020-03-11T18:34:48Z
| 2020-03-11T18:34:48Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
I want to define a custom function that I can pass to the `agg` method. It uses the `cumsum` method, which appears to be problematic recently.
```python
# Your code here
import pandas as pd
def max_test(s):
return s.cumsum().max()
#return s.max()
dummy_data = pd.DataFrame(
{'AIRLINE': {0: 'WN', 1: 'UA', 2: 'MQ', 3: 'AA', 4: 'WN'},
'ORG_AIR': {0: 'LAX', 1: 'DEN', 2: 'DFW', 3: 'DFW', 4: 'LAX'},
'DIST': {0: 590, 1: 1452, 2: 641, 3: 1192, 4: 1363}})
gb = dummy_data.groupby(['AIRLINE', 'ORG_AIR'])
result = gb.agg(
#'max'
max_test
)
print(result)
```
#### Problem description
Prior to Pandas 1.0rc this worked. It now raises an exception:
```
$ python /tmp/regpandas.py
Traceback (most recent call last):
File "/tmp/regpandas.py", line 16, in <module>
max_test
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 948, in aggregate
return self._python_agg_general(func, *args, **kwargs)
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 936, in _python_agg_general
result, counts = self.grouper.agg_series(obj, f)
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/groupby/ops.py", line 641, in agg_series
return self._aggregate_series_fast(obj, func)
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/groupby/ops.py", line 666, in _aggregate_series_fast
result, counts = grouper.get_result()
File "pandas/_libs/reduction.pyx", line 376, in pandas._libs.reduction.SeriesGrouper.get_result
File "pandas/_libs/reduction.pyx", line 193, in pandas._libs.reduction._BaseGrouper._apply_to_group
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/groupby/groupby.py", line 913, in <lambda>
f = lambda x: func(x, *args, **kwargs)
File "/tmp/regpandas.py", line 4, in max_test
return s.cumsum().max()
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/generic.py", line 11331, in cum_func
result = self._data.apply(na_accum_func)
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 440, in apply
applied = b.apply(f, **kwargs)
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 403, in apply
result = self.make_block(values=_block_shape(result, ndim=self.ndim))
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 273, in make_block
return make_block(values, placement=placement, ndim=self.ndim)
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 3041, in make_block
return klass(values, ndim=ndim, placement=placement)
File "/Users/matt/.env/pandas1/lib/python3.7/site-packages/pandas/core/internals/blocks.py", line 125, in __init__
f"Wrong number of items passed {len(self.values)}, "
ValueError: Wrong number of items passed 2, placement implies 1
```
#### Expected Output
```
$ python /tmp/regpandas.py
DIST
AIRLINE ORG_AIR
AA DFW 1192
MQ DFW 641
UA DEN 1452
WN LAX 1953
```
#### Output of ``pd.show_versions()``
```
>>> pd.show_versions()
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 : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 19.0.3
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31802/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31802/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31803
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31803/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31803/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31803/events
|
https://github.com/pandas-dev/pandas/issues/31803
| 561,965,676
|
MDU6SXNzdWU1NjE5NjU2NzY=
| 31,803
|
DEPR: df.loc(axis)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-02-08T03:56:53Z
| 2020-02-11T15:45:23Z
| 2020-02-11T15:45:23Z
|
MEMBER
| null |
Internally we only use this in a couple of places, so it would be easy to remove. It shows up in user_guide/advanced and in the 0.14.0 release notes.
Without it we could reduce some complexity in the indexing code.
|
{
"+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/31803/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31803/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31804
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31804/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31804/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31804/events
|
https://github.com/pandas-dev/pandas/pull/31804
| 561,988,099
|
MDExOlB1bGxSZXF1ZXN0MzcyNjkzMDc3
| 31,804
|
Backport PR #31748: BUG: Fixed encoding of pd.NA with to_json
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-03-16T02:29:08Z",
"closed_issues": 155,
"created_at": "2020-02-03T09:13:39Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-03-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/70",
"id": 5065490,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70/labels",
"node_id": "MDk6TWlsZXN0b25lNTA2NTQ5MA==",
"number": 70,
"open_issues": 0,
"state": "closed",
"title": "1.0.2",
"updated_at": "2021-07-28T05:52:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/70"
}
| 0
| 2020-02-08T08:15:36Z
| 2020-02-08T10:31:41Z
| 2020-02-08T10:31:37Z
|
MEMBER
| null |
Backport PR #31748
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31804/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31804/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31804.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31804",
"merged_at": "2020-02-08T10:31:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31804.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31804"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31805
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31805/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31805/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31805/events
|
https://github.com/pandas-dev/pandas/issues/31805
| 561,995,095
|
MDU6SXNzdWU1NjE5OTUwOTU=
| 31,805
|
df.loc[0] = row, datatype changes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/28979032?v=4",
"events_url": "https://api.github.com/users/kashiwachen/events{/privacy}",
"followers_url": "https://api.github.com/users/kashiwachen/followers",
"following_url": "https://api.github.com/users/kashiwachen/following{/other_user}",
"gists_url": "https://api.github.com/users/kashiwachen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kashiwachen",
"id": 28979032,
"login": "kashiwachen",
"node_id": "MDQ6VXNlcjI4OTc5MDMy",
"organizations_url": "https://api.github.com/users/kashiwachen/orgs",
"received_events_url": "https://api.github.com/users/kashiwachen/received_events",
"repos_url": "https://api.github.com/users/kashiwachen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kashiwachen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kashiwachen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kashiwachen"
}
|
[
{
"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 series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] |
open
| false
| null |
[] | null | 5
| 2020-02-08T09:28:34Z
| 2021-07-28T05:10:42Z
| null |
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
from numpy import NaN
row = [2015, 1, 7.0, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, 0.4, NaN, NaN, NaN]
print([type(i) for i in row])
columns = ['year', 'month', 'day', '平均風速', '最大風速', '最大風向', '最大風速時間', '最大瞬間風速',
'最大瞬間風向','最大瞬間時間', '最多風向', '日照時間', '降雪', '最深積雪値', '最深積雪時間']
# Sorry some of the columns are in Japanese, but I believe it doesn't matter.
row_df = pd.DataFrame(columns=columns)
row_df.loc[0] = row
print(row_df.dtypes)
```
My problem is, after running
```python
row_df.loc[0] = row
```
,the datatypes change
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: 3.8.0
pip: 19.1.1
setuptools: 41.0.1
Cython: 0.28.5
numpy: 1.15.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: 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
</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/31805/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31805/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31806
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31806/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31806/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31806/events
|
https://github.com/pandas-dev/pandas/issues/31806
| 562,003,701
|
MDU6SXNzdWU1NjIwMDM3MDE=
| 31,806
|
Series.str.contains Question
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14284198?v=4",
"events_url": "https://api.github.com/users/Ayvytr/events{/privacy}",
"followers_url": "https://api.github.com/users/Ayvytr/followers",
"following_url": "https://api.github.com/users/Ayvytr/following{/other_user}",
"gists_url": "https://api.github.com/users/Ayvytr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Ayvytr",
"id": 14284198,
"login": "Ayvytr",
"node_id": "MDQ6VXNlcjE0Mjg0MTk4",
"organizations_url": "https://api.github.com/users/Ayvytr/orgs",
"received_events_url": "https://api.github.com/users/Ayvytr/received_events",
"repos_url": "https://api.github.com/users/Ayvytr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Ayvytr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ayvytr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Ayvytr"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-02-08T10:57:34Z
| 2020-02-08T13:16:08Z
| 2020-02-08T13:09:20Z
|
NONE
| null |
#### Not contains Question
```python
# df is a DataFrame contains column "title", then I filter df by column "title" below, it works.
useless = df[df["title"].str.contains(r"[\d]+[册|本]", regex=True)]
# but I want a not contains value below, it raise error: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
useless = df[not df["title"].str.contains(r"[\d]+[册|本]", regex=True)]
```
#### Problem description
How can I get a not contains value?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31806/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31806/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31807
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31807/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31807/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31807/events
|
https://github.com/pandas-dev/pandas/issues/31807
| 562,003,808
|
MDU6SXNzdWU1NjIwMDM4MDg=
| 31,807
|
Not contains Question
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14284198?v=4",
"events_url": "https://api.github.com/users/Ayvytr/events{/privacy}",
"followers_url": "https://api.github.com/users/Ayvytr/followers",
"following_url": "https://api.github.com/users/Ayvytr/following{/other_user}",
"gists_url": "https://api.github.com/users/Ayvytr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Ayvytr",
"id": 14284198,
"login": "Ayvytr",
"node_id": "MDQ6VXNlcjE0Mjg0MTk4",
"organizations_url": "https://api.github.com/users/Ayvytr/orgs",
"received_events_url": "https://api.github.com/users/Ayvytr/received_events",
"repos_url": "https://api.github.com/users/Ayvytr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Ayvytr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Ayvytr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Ayvytr"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-08T10:58:47Z
| 2020-02-08T13:07:49Z
| 2020-02-08T13:07:49Z
|
NONE
| null |
#### Not contains Question
```python
# df is a DataFrame contains column "title", then I filter df by column "title" below, it works.
useless = df[df["title"].str.contains(r"[\d]+[册|本]", regex=True)]
# but I want a not contains value below, it raise error: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
useless = df[not df["title"].str.contains(r"[\d]+[册|本]", regex=True)]
```
#### Problem description
How can I get a not contains value?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31807/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31807/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31808
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31808/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31808/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31808/events
|
https://github.com/pandas-dev/pandas/pull/31808
| 562,020,426
|
MDExOlB1bGxSZXF1ZXN0MzcyNzE1ODU4
| 31,808
|
CLN: some code cleanups in pandas/_libs/
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-02-08T13:40:45Z
| 2020-02-29T10:27:10Z
| 2020-02-22T15:45:31Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31808/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31808/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31808.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31808",
"merged_at": "2020-02-22T15:45:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31808.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31808"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31809
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31809/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31809/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31809/events
|
https://github.com/pandas-dev/pandas/pull/31809
| 562,064,369
|
MDExOlB1bGxSZXF1ZXN0MzcyNzQ4NTc2
| 31,809
|
ENH: add 'origin' and 'offset' arguments to 'resample' and 'pd.Grouper'
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3902859?v=4",
"events_url": "https://api.github.com/users/hasB4K/events{/privacy}",
"followers_url": "https://api.github.com/users/hasB4K/followers",
"following_url": "https://api.github.com/users/hasB4K/following{/other_user}",
"gists_url": "https://api.github.com/users/hasB4K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hasB4K",
"id": 3902859,
"login": "hasB4K",
"node_id": "MDQ6VXNlcjM5MDI4NTk=",
"organizations_url": "https://api.github.com/users/hasB4K/orgs",
"received_events_url": "https://api.github.com/users/hasB4K/received_events",
"repos_url": "https://api.github.com/users/hasB4K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hasB4K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasB4K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hasB4K"
}
|
[
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
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"
}
| 36
| 2020-02-08T19:11:11Z
| 2020-05-10T16:45:31Z
| 2020-05-10T15:52:55Z
|
MEMBER
| null |
**EDIT:** this PR has changed, now instead of adding `adjust_timestamp` we are adding `origin` and `offset` arguments to `resample` and `pd.Grouper` (see https://github.com/pandas-dev/pandas/pull/31809#issuecomment-583884772)
----
Hello,
This enhancement is an alternative to the `base` argument present in `pd.Grouper` or in the method `resample`. It adds the `adjust_timestamp` argument to change the current behavior of: https://github.com/pandas-dev/pandas/blob/master/pandas/core/resample.py#L1728
- `adjust_timestamp` is the timestamp on which to adjust the grouping. If None is passed, the first day of the time series at midnight is used.
Currently the bins of the grouping are adjusted based on the beginning of the day of the time series starting point. This works well with frequencies that are multiples of a day (like `30D`) or that divides a day (like `90s` or `1min`). But it can create inconsistencies with some frequencies that do not meet this criteria.
Here is a simple snippet from a test that I added that proves that the current behavior can lead to some inconsistencies. Inconsistencies that can be fixed if we use `adjust_timestamp`:
```python
import pandas as pd
import numpy as np
import pandas._testing as tm
import pytest
freq = "1399min" # prime number that is smaller than 24h
start, end = "1/1/2000 00:00:00", "1/31/2000 00:00"
middle = "1/15/2000 00:00:00"
rng = pd.date_range(start, end, freq="1231min") # prime number
ts = pd.Series(np.random.randn(len(rng)), index=rng)
ts2 = ts[middle:end]
# proves that grouper without a fixed adjust_timestamp does not work
# when dealing with unusual frequencies
simple_grouper = pd.Grouper(freq=freq)
count_ts = ts.groupby(simple_grouper).agg("count")
count_ts = count_ts[middle:end]
count_ts2 = ts2.groupby(simple_grouper).agg("count")
with pytest.raises(AssertionError):
tm.assert_index_equal(count_ts.index, count_ts2.index)
# test adjusted_timestamp on 1970-01-01 00:00:00
adjust_timestamp = pd.Timestamp(0)
adjusted_grouper = pd.Grouper(freq=freq, adjust_timestamp=adjust_timestamp)
adjusted_count_ts = ts.groupby(adjusted_grouper).agg("count")
adjusted_count_ts = adjusted_count_ts[middle:end]
adjusted_count_ts2 = ts2.groupby(adjusted_grouper).agg("count")
tm.assert_series_equal(adjusted_count_ts, adjusted_count_ts2)
```
I think this PR is ready to be merged, but I am of course open to any suggestions or criticism. :wink:
For instance, I am not sure if the naming of `adjust_timestamp` is correct. An alternative could be `base_timestamp` or `ref_timestamp` :thinking:?
Cheers,
----
- [X] closes #25226
closes #28302
closes #28675
closes #4197
closes #8521
- [X] Add 'origin' and 'offset' arguments to 'resample' and 'pd.Grouper'
- [X] tests added / passed
- [X] Add deprecation warning for `loffset` and `base` in the code
- [X] Add deprecation warning for `loffset` and `base` in the doc
- [x] Add examples in the doc for `origin` and `offset`
- [x] whatsnew entry (add deprecation notice with `offset` example)
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31809/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31809/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31809.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31809",
"merged_at": "2020-05-10T15:52:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31809.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31809"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31810
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31810/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31810/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31810/events
|
https://github.com/pandas-dev/pandas/issues/31810
| 562,069,995
|
MDU6SXNzdWU1NjIwNjk5OTU=
| 31,810
|
BUG/API: df.loc[a, b] = c allows positional slice for a
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-02-08T19:59:33Z
| 2020-02-10T01:54:02Z
| 2020-02-10T01:54:02Z
|
MEMBER
| null |
```
dti = pd.date_range("2016-01-01", periods=5)
df = pd.DataFrame(np.random.randn(5, 2), index=dti, columns=["A", "B"])
>>> df.loc[4:6, "A"]
TypeError: cannot do slice indexing on DatetimeIndex with these indexers [4] of type int
>>> df.loc[4:6, "A"] = 0
# works as if we did df.iloc[4:6, 0] = 0
```
In this case there are plenty of alternatives that amount to doing `df["A"].iloc[4:6] = 0`, but this isnt robust to mixed-dtype frames, so I'm not sure if we have a supported way of doing this correctly.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31810/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31810/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31811
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31811/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31811/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31811/events
|
https://github.com/pandas-dev/pandas/issues/31811
| 562,088,983
|
MDU6SXNzdWU1NjIwODg5ODM=
| 31,811
|
groupby returns non-pertinent combinations in result
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/58710879?v=4",
"events_url": "https://api.github.com/users/RS574/events{/privacy}",
"followers_url": "https://api.github.com/users/RS574/followers",
"following_url": "https://api.github.com/users/RS574/following{/other_user}",
"gists_url": "https://api.github.com/users/RS574/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RS574",
"id": 58710879,
"login": "RS574",
"node_id": "MDQ6VXNlcjU4NzEwODc5",
"organizations_url": "https://api.github.com/users/RS574/orgs",
"received_events_url": "https://api.github.com/users/RS574/received_events",
"repos_url": "https://api.github.com/users/RS574/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RS574/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RS574/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RS574"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-02-08T22:43:04Z
| 2020-02-09T17:29:06Z
| 2020-02-09T17:29:06Z
|
NONE
| null |
#### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
d1 = ['foo', 'bar'] * 50
d2 = list('ABCD' * 25)
d3 = pd.date_range('2019-01-01', periods=100, freq='D')
d4 = list(range(1, 101, 1))
d5 = list(range(1000, 100001, 1000))
df = pd.DataFrame(dict(col1=d1, col2=d2, col3=d3, col4=d4, col5=d5))
bins = [0, 30, float('inf')]
grouped = df.groupby(['col1', 'col2', pd.Grouper(key='col3', freq='MS'),
pd.cut(df.col4, bins)])
summary = grouped['col5'].sum()
```
#### Problem description
The groupby() function returns a result that has every possible combination of the grouping criteria, and shows 'NaN' for non-significant combinations (see screenshot of the results below). This behavior was not observed in pandas version 0.24.2. Earlier version only returned combinations with values (ie, combinations with NaN values were not included in the result.)
#### Expected Output

#### Output of ``pd.show_versions()``
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 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en
LOCALE : None.None
pandas : 1.0.0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200127
Cython : 0.29.14
pytest : 5.3.5
hypothesis : 5.4.1
sphinx : 2.3.1
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.1
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.48.0
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31811/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31811/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/31812
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31812/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31812/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31812/events
|
https://github.com/pandas-dev/pandas/pull/31812
| 562,094,967
|
MDExOlB1bGxSZXF1ZXN0MzcyNzcwNzIw
| 31,812
|
CLN: tests.indexing.common
|
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-08T23:43:54Z
| 2020-02-09T15:41:21Z
| 2020-02-09T15:00:05Z
|
MEMBER
| null |
A lot of code in there not doing anything, AFAICT leftover from ix cross-comparisons.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31812/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31812/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31812.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31812",
"merged_at": "2020-02-09T15:00:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31812.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31812"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31813
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31813/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31813/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31813/events
|
https://github.com/pandas-dev/pandas/pull/31813
| 562,100,985
|
MDExOlB1bGxSZXF1ZXN0MzcyNzc0OTA4
| 31,813
|
BUG: iloc setitem with 3d indexer not raising
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-02-09T00:44:16Z
| 2020-02-09T17:24:29Z
| 2020-02-09T16:44:18Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
also get the exceptions/messages in test_setitem_ndarray_3d to be maximally-specific
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31813/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31813/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31813.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31813",
"merged_at": "2020-02-09T16:44:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31813.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31813"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31814
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31814/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31814/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31814/events
|
https://github.com/pandas-dev/pandas/pull/31814
| 562,112,496
|
MDExOlB1bGxSZXF1ZXN0MzcyNzgzMTQw
| 31,814
|
REF: use public indexers in groupby.ops
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-02-09T02:53:12Z
| 2020-02-09T17:48:33Z
| 2020-02-09T17:43:31Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31814/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31814/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31814.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31814",
"merged_at": "2020-02-09T17:43:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/31814.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31814"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/31815
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/31815/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31815/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/31815/events
|
https://github.com/pandas-dev/pandas/pull/31815
| 562,112,648
|
MDExOlB1bGxSZXF1ZXN0MzcyNzgzMjUz
| 31,815
|
check parser_dates names in columns
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/21811?v=4",
"events_url": "https://api.github.com/users/sathyz/events{/privacy}",
"followers_url": "https://api.github.com/users/sathyz/followers",
"following_url": "https://api.github.com/users/sathyz/following{/other_user}",
"gists_url": "https://api.github.com/users/sathyz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sathyz",
"id": 21811,
"login": "sathyz",
"node_id": "MDQ6VXNlcjIxODEx",
"organizations_url": "https://api.github.com/users/sathyz/orgs",
"received_events_url": "https://api.github.com/users/sathyz/received_events",
"repos_url": "https://api.github.com/users/sathyz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sathyz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sathyz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sathyz"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-02-09T02:54:54Z
| 2020-03-03T04:04:54Z
| 2020-03-03T03:25:36Z
|
CONTRIBUTOR
| null |
if column names are passed in parser_dates, make sure those
columns exist in dataframe.
- [x] closes #31251
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/31815/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/31815/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/31815.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/31815",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/31815.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/31815"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.