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/35717
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35717/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35717/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35717/events
|
https://github.com/pandas-dev/pandas/pull/35717
| 679,080,684
|
MDExOlB1bGxSZXF1ZXN0NDY3OTIwMTgy
| 35,717
|
CLN: remove extant uses of built-in filter function
|
{
"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": "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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-08-14T11:01:42Z
| 2020-09-03T12:15:58Z
| 2020-08-14T12:32:01Z
|
MEMBER
| null |
No internet for a good part of yesterday so some time to experiment with code cleanups.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35717/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35717/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35717.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35717",
"merged_at": "2020-08-14T12:32:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35717.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35717"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35718
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35718/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35718/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35718/events
|
https://github.com/pandas-dev/pandas/pull/35718
| 679,092,575
|
MDExOlB1bGxSZXF1ZXN0NDY3OTMwMTkx
| 35,718
|
CI: doctest failure for read_hdf on 1.1.x
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "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"
},
{
"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-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-14T11:24:39Z
| 2020-08-14T12:12:48Z
| 2020-08-14T12:12:39Z
|
MEMBER
| null |
NOTE: PR against 1.1.x branch
(fixed in #35214 on master)
xref https://github.com/pandas-dev/pandas/pull/35699#issuecomment-673392019
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35718/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35718/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35718.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35718",
"merged_at": "2020-08-14T12:12:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35718.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35718"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35719
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35719/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35719/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35719/events
|
https://github.com/pandas-dev/pandas/issues/35719
| 679,172,099
|
MDU6SXNzdWU2NzkxNzIwOTk=
| 35,719
|
REGR: pd.to_hdf(dropna=True) not dropping all nan rows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47663450?v=4",
"events_url": "https://api.github.com/users/XiaozhanYang/events{/privacy}",
"followers_url": "https://api.github.com/users/XiaozhanYang/followers",
"following_url": "https://api.github.com/users/XiaozhanYang/following{/other_user}",
"gists_url": "https://api.github.com/users/XiaozhanYang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/XiaozhanYang",
"id": 47663450,
"login": "XiaozhanYang",
"node_id": "MDQ6VXNlcjQ3NjYzNDUw",
"organizations_url": "https://api.github.com/users/XiaozhanYang/orgs",
"received_events_url": "https://api.github.com/users/XiaozhanYang/received_events",
"repos_url": "https://api.github.com/users/XiaozhanYang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/XiaozhanYang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/XiaozhanYang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/XiaozhanYang"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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-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"
}
| 1
| 2020-08-14T13:52:25Z
| 2020-11-04T01:59:22Z
| 2020-11-04T01:59:22Z
|
NONE
| null |
#### Location of the documentation
[this should provide the location of the documentation, e.g. "pandas.read_csv" or the URL of the documentation, e.g. "https://dev.pandas.io/docs/reference/api/pandas.read_csv.html"]
**Note**: You can check the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/).
https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html
#### Documentation problem
[this should provide a description of what documentation you believe needs to be fixed/improved]
On the section:
"HDFStore will by default not drop rows that are all missing. This behavior can be changed by setting dropna=True."
The last example:
In [370]: pd.read_hdf('file.h5', 'df_with_missing')
Out[370]:
col1 col2
0 0.0 1.0
1 NaN NaN
2 2.0 NaN
should output:
col1 col2
0 0.0 1.0
1 2.0 NaN
which does not have rows that are all missing.
#### Suggested fix for documentation
[this should explain the suggested fix and **why** it's better than the existing documentation]
This has been provided above.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35719/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35719/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35720
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35720/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35720/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35720/events
|
https://github.com/pandas-dev/pandas/pull/35720
| 679,198,797
|
MDExOlB1bGxSZXF1ZXN0NDY4MDE4MjYz
| 35,720
|
update io documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18105757?v=4",
"events_url": "https://api.github.com/users/grrlic/events{/privacy}",
"followers_url": "https://api.github.com/users/grrlic/followers",
"following_url": "https://api.github.com/users/grrlic/following{/other_user}",
"gists_url": "https://api.github.com/users/grrlic/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/grrlic",
"id": 18105757,
"login": "grrlic",
"node_id": "MDQ6VXNlcjE4MTA1NzU3",
"organizations_url": "https://api.github.com/users/grrlic/orgs",
"received_events_url": "https://api.github.com/users/grrlic/received_events",
"repos_url": "https://api.github.com/users/grrlic/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/grrlic/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/grrlic/subscriptions",
"type": "User",
"url": "https://api.github.com/users/grrlic"
}
|
[] |
closed
| false
| null |
[] | null | 4
| 2020-08-14T14:34:07Z
| 2020-08-15T11:13:23Z
| 2020-08-15T02:31:54Z
|
NONE
| null |
The HDFS dropna=True parameter does not drop the NaN values. Perhaps this is a bug to the core Pandas, or really a typo in the documentation
- [X] closes #35719
- [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/35720/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35720/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35720.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35720",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/35720.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35720"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35721
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35721/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35721/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35721/events
|
https://github.com/pandas-dev/pandas/pull/35721
| 679,200,971
|
MDExOlB1bGxSZXF1ZXN0NDY4MDIwMDI0
| 35,721
|
Backport PR #35707 on branch 1.1.x (REGR: fix DataFrame.diff with read-only data)
|
{
"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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-14T14:37:31Z
| 2020-08-14T15:38:21Z
| 2020-08-14T15:38:21Z
|
NONE
| null |
Backport PR #35707: REGR: fix DataFrame.diff with read-only data
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35721/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35721/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35721.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35721",
"merged_at": "2020-08-14T15:38:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35721.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35721"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35722
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35722/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35722/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35722/events
|
https://github.com/pandas-dev/pandas/pull/35722
| 679,201,252
|
MDExOlB1bGxSZXF1ZXN0NDY4MDIwMjQy
| 35,722
|
Backport PR #35664 on branch 1.1.x (BUG: Styler cell_ids fails on multiple renders)
|
{
"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": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-14T14:37:59Z
| 2020-08-14T15:39:01Z
| 2020-08-14T15:39:01Z
|
NONE
| null |
Backport PR #35664: BUG: Styler cell_ids fails on multiple renders
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35722/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35722/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35722.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35722",
"merged_at": "2020-08-14T15:39:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35722.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35722"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35723
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35723/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35723/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35723/events
|
https://github.com/pandas-dev/pandas/pull/35723
| 679,252,247
|
MDExOlB1bGxSZXF1ZXN0NDY4MDYxODc1
| 35,723
|
agg with list of non-aggregating functions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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 |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 3
| 2020-08-14T15:59:40Z
| 2021-04-23T01:26:59Z
| 2020-08-14T20:59:10Z
|
MEMBER
| null |
- [x] closes #35490
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Reverts to 1.0.5 behavior while maintaining the bugfix that introduced the "regression". Ideally `agg` would instead raise in these scenarios ([ref](https://github.com/pandas-dev/pandas/issues/35490#issuecomment-672981745)), but that would be an API change. Much of this PR should be reverted once this is done, I've marked such places with TODOs.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35723/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35723/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35723.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35723",
"merged_at": "2020-08-14T20:59:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35723.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35723"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35724
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35724/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35724/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35724/events
|
https://github.com/pandas-dev/pandas/issues/35724
| 679,253,409
|
MDU6SXNzdWU2NzkyNTM0MDk=
| 35,724
|
QST: "Dummy" is rooted in ableist language
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4810902?v=4",
"events_url": "https://api.github.com/users/RollingStar/events{/privacy}",
"followers_url": "https://api.github.com/users/RollingStar/followers",
"following_url": "https://api.github.com/users/RollingStar/following{/other_user}",
"gists_url": "https://api.github.com/users/RollingStar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RollingStar",
"id": 4810902,
"login": "RollingStar",
"node_id": "MDQ6VXNlcjQ4MTA5MDI=",
"organizations_url": "https://api.github.com/users/RollingStar/orgs",
"received_events_url": "https://api.github.com/users/RollingStar/received_events",
"repos_url": "https://api.github.com/users/RollingStar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RollingStar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RollingStar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RollingStar"
}
|
[
{
"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": "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 | 3
| 2020-08-14T16:01:46Z
| 2021-08-10T04:23:56Z
| null |
NONE
| null |
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [x] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
---
#### Question about pandas
Although extremely common in the industry, "dummy" has some unfortunate history. One current use is for substitutes - mannequins, stand-ins, etc. This use grew from its original definition, "mute person". Mute people are not substitutes or stand-ins and I would prefer Pandas to not contribute to this view. There are other words, like "indicator", for statistics.
[Pandas currently uses "get_dummies" as a function name, with the documentation referencing "indicator" as a synonym.](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.get_dummies.html)
Citations:
1. https://www.etymonline.com/word/dummy
2. https://www.etymonline.com/word/dumb
3. https://www.etymonline.com/word/indicator
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35724/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35724/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35725
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35725/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35725/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35725/events
|
https://github.com/pandas-dev/pandas/issues/35725
| 679,260,398
|
MDU6SXNzdWU2NzkyNjAzOTg=
| 35,725
|
ENH: groupby(...).agg should only accept reducers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"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"
},
{
"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": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "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"
}
] |
open
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
] | null | 5
| 2020-08-14T16:13:58Z
| 2021-02-28T17:17:28Z
| null |
MEMBER
| null |
Issues where `agg` is used with non-reducing functions:
* #18103
* #14741
* #35490
I think `agg` should raise if the function(s) provided are not reducers. This can be tested by if the resulting index is equal to `self.grouper.result_index`.
|
{
"+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/35725/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35725/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35726
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35726/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35726/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35726/events
|
https://github.com/pandas-dev/pandas/pull/35726
| 679,267,409
|
MDExOlB1bGxSZXF1ZXN0NDY4MDczNjc3
| 35,726
|
CLN: remove unused variable
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 1
| 2020-08-14T16:26:34Z
| 2020-08-14T21:38:46Z
| 2020-08-14T19:50:21Z
|
MEMBER
| null |
Tiny step towards #34714.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35726/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35726/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35726.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35726",
"merged_at": "2020-08-14T19:50:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35726.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35726"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35727
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35727/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35727/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35727/events
|
https://github.com/pandas-dev/pandas/issues/35727
| 679,277,944
|
MDU6SXNzdWU2NzkyNzc5NDQ=
| 35,727
|
QST: Any support for df["x"] = y where y.columns are MultiIndexed?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50276689?v=4",
"events_url": "https://api.github.com/users/henrifroese/events{/privacy}",
"followers_url": "https://api.github.com/users/henrifroese/followers",
"following_url": "https://api.github.com/users/henrifroese/following{/other_user}",
"gists_url": "https://api.github.com/users/henrifroese/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/henrifroese",
"id": 50276689,
"login": "henrifroese",
"node_id": "MDQ6VXNlcjUwMjc2Njg5",
"organizations_url": "https://api.github.com/users/henrifroese/orgs",
"received_events_url": "https://api.github.com/users/henrifroese/received_events",
"repos_url": "https://api.github.com/users/henrifroese/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/henrifroese/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/henrifroese/subscriptions",
"type": "User",
"url": "https://api.github.com/users/henrifroese"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"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": 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"
}
| 9
| 2020-08-14T16:47:21Z
| 2020-08-23T13:57:47Z
| 2020-08-23T13:57:47Z
|
NONE
| null |
We're working with DataFrames where the columns are MultiIndexed, so e.g. ones that look like this:
```
pca
pca1 pca2
0 0.754675 1.868685
1 -1.861651 -0.048236
2 -0.797750 0.388400
```
which one can get through `pd.DataFrame(np.random.normal(size=(6,)).reshape((3,2)), columns=pd.MultiIndex.from_product([['pca'], ["pca1", "pca2"]]))`.
We now want to combine several of those to e.g. get this:
```
pca nmf
pca1 pca2 nmf1 nmf2
0 1.671707 0.452155 1.671707 0.452155
1 0.861315 -0.100849 0.861315 -0.100849
2 1.056616 -0.852532 1.056616 -0.852532
```
We know that we can do this through e.g. `pd.concat([df_pca, df_nmf], axis=1)`. Is there any support for doing the same like this: `df["pca"] = df_pca` for some df? We get `ValueError: Wrong number of items passed 4, placement implies 1`.
It's really important for us to allow usage like this: `df["pca"] = df_pca` and not just through concat.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35727/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35727/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35728
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35728/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35728/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35728/events
|
https://github.com/pandas-dev/pandas/pull/35728
| 679,281,025
|
MDExOlB1bGxSZXF1ZXN0NDY4MDg0MzMx
| 35,728
|
BLD: bump xlrd min version to 1.2.0
|
{
"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": "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-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"
}
| 2
| 2020-08-14T16:53:02Z
| 2020-08-15T16:02:08Z
| 2020-08-14T21:01:03Z
|
MEMBER
| null |
Warnings about time.clock are filling up the py37 min_version build. xlrd 1.2.0 was released Dec 15, 2018, so I think we're safe to bump 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/35728/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35728/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35728.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35728",
"merged_at": "2020-08-14T21:01:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35728.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35728"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35729
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35729/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35729/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35729/events
|
https://github.com/pandas-dev/pandas/pull/35729
| 679,332,203
|
MDExOlB1bGxSZXF1ZXN0NDY4MTI2Njc2
| 35,729
|
DOC: Fix broken link in cookbook.rst
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16440579?v=4",
"events_url": "https://api.github.com/users/estasney/events{/privacy}",
"followers_url": "https://api.github.com/users/estasney/followers",
"following_url": "https://api.github.com/users/estasney/following{/other_user}",
"gists_url": "https://api.github.com/users/estasney/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/estasney",
"id": 16440579,
"login": "estasney",
"node_id": "MDQ6VXNlcjE2NDQwNTc5",
"organizations_url": "https://api.github.com/users/estasney/orgs",
"received_events_url": "https://api.github.com/users/estasney/received_events",
"repos_url": "https://api.github.com/users/estasney/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/estasney/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/estasney/subscriptions",
"type": "User",
"url": "https://api.github.com/users/estasney"
}
|
[
{
"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-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"
}
| 1
| 2020-08-14T18:29:27Z
| 2020-08-14T22:06:03Z
| 2020-08-14T21:01:49Z
|
CONTRIBUTOR
| null |
The original link [Aggregation and plotting time series](http://nipunbatra.github.io/2015/06/timeseries/) found in the [Pandas Cookbook](https://pandas.pydata.org/pandas-docs/stable/user_guide/cookbook.html?highlight=get_group#timeseries) is broken.
This appears to have been moved to the authors [Blog](https://nipunbatra.github.io/blog/visualisation/2013/05/01/aggregation-timeseries.html)
While the date does not match ( 2013/05 vs 2015/06 ) the contents appear identical. I was able to determine this after viewing the archive at [WayBack Machine](https://web.archive.org/web/20161202094122/http://nipunbatra.github.io/2015/06/timeseries/)
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35729/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35729/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35729.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35729",
"merged_at": "2020-08-14T21:01:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35729.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35729"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35730
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35730/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35730/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35730/events
|
https://github.com/pandas-dev/pandas/pull/35730
| 679,416,640
|
MDExOlB1bGxSZXF1ZXN0NDY4MTk1Mjk2
| 35,730
|
REF: move towards making _apply_blockwise actually block-wise
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] |
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"
}
| 5
| 2020-08-14T21:42:51Z
| 2020-08-23T01:26:18Z
| 2020-08-23T00:06:17Z
|
MEMBER
| null |
A step towards #34714, orthogonal to the other outstanding PR in this vein #35696.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35730/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35730/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35730.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35730",
"merged_at": "2020-08-23T00:06:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35730.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35730"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35731
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35731/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35731/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35731/events
|
https://github.com/pandas-dev/pandas/issues/35731
| 679,421,423
|
MDU6SXNzdWU2Nzk0MjE0MjM=
| 35,731
|
BUG: Series has no attribute "reshape" after adding a new category in df
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18410378?v=4",
"events_url": "https://api.github.com/users/chen-bowen/events{/privacy}",
"followers_url": "https://api.github.com/users/chen-bowen/followers",
"following_url": "https://api.github.com/users/chen-bowen/following{/other_user}",
"gists_url": "https://api.github.com/users/chen-bowen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chen-bowen",
"id": 18410378,
"login": "chen-bowen",
"node_id": "MDQ6VXNlcjE4NDEwMzc4",
"organizations_url": "https://api.github.com/users/chen-bowen/orgs",
"received_events_url": "https://api.github.com/users/chen-bowen/received_events",
"repos_url": "https://api.github.com/users/chen-bowen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chen-bowen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chen-bowen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chen-bowen"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 8
| 2020-08-14T21:55:57Z
| 2020-08-31T12:36:12Z
| 2020-08-31T12:36:12Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import pandas as pd
from pandas.api.types import CategoricalDtype
# create dataframe (note: every single column is a category)
df = pd.DataFrame(
{
"a": pd.Series([np.nan, 2.0, 3.0, 1.0]).astype("category"),
"b": pd.Series(["A", "A", "B", "C"]).astype("category"),
"c": pd.Series(["D", "E", "E", np.nan]).astype("category"),
}
)
# get all categories from column "a"
cats =df["a"].cat.categories.tolist()
# append new category
cats.append(0.0)
df["a"] = df["a"].astype(CategoricalDtype(categories=cats, ordered=False))
# fillna with that new category
df["a"].fillna(0, inplace=True)
# run df.isnull()
df.isnull().sum()
```
#### Problem description
We are trying to add the new fillna as a new category in the dataframe, but it fails when we are trying to use `df.isnull()` In this case we are pretty much blocked from using df.isull().sum() functionality. Running the above snippet will get us the attribute error
`AttributeError: 'Series' object has no attribute 'reshape'`
Full stack trace is shown below.
```
AttributeError Traceback (most recent call last)
<ipython-input-29-cc81fd27034f> in <module>
----> 1 df.isnull()
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/frame.py in isnull(self)
4865 @doc(NDFrame.isna, klass=_shared_doc_kwargs["klass"])
4866 def isnull(self) -> "DataFrame":
-> 4867 return self.isna()
4868
4869 @doc(NDFrame.notna, klass=_shared_doc_kwargs["klass"])
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/frame.py in isna(self)
4860 @doc(NDFrame.isna, klass=_shared_doc_kwargs["klass"])
4861 def isna(self) -> "DataFrame":
-> 4862 result = self._constructor(self._data.isna(func=isna))
4863 return result.__finalize__(self, method="isna")
4864
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/internals/managers.py in isna(self, func)
500
501 def isna(self, func) -> "BlockManager":
--> 502 return self.apply("apply", func=func)
503
504 def where(
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/internals/managers.py in apply(self, f, align_keys, **kwargs)
394 applied = b.apply(f, **kwargs)
395 else:
--> 396 applied = getattr(b, f)(**kwargs)
397 result_blocks = _extend_blocks(applied, result_blocks)
398
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/internals/blocks.py in apply(self, func, **kwargs)
346 result = func(self.values, **kwargs)
347
--> 348 return self._split_op_result(result)
349
350 def _split_op_result(self, result) -> List["Block"]:
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/internals/blocks.py in _split_op_result(self, result)
361
362 if not isinstance(result, Block):
--> 363 result = self.make_block(result)
364
365 return [result]
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/internals/blocks.py in make_block(self, values, placement)
250 placement = self.mgr_locs
251 if self.is_extension:
--> 252 values = _block_shape(values, ndim=self.ndim)
253
254 return make_block(values, placement=placement, ndim=self.ndim)
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/internals/blocks.py in _block_shape(values, ndim)
2745 # block.shape is incorrect for "2D" ExtensionArrays
2746 # We can't, and don't need to, reshape.
-> 2747 values = values.reshape(tuple((1,) + shape)) # type: ignore
2748 return values
2749
~/.pyenv/versions/3.7.0/envs/fair_ml/lib/python3.7/site-packages/pandas/core/generic.py in __getattr__(self, name)
5128 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5129 return self[name]
-> 5130 return object.__getattribute__(self, name)
5131
5132 def __setattr__(self, name: str, value) -> None:
AttributeError: 'Series' object has no attribute 'reshape'
```
#### Expected Output
a 0
b 0
c 1
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.0.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 18.1
setuptools : 47.3.1
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.17.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.0
sqlalchemy : 1.3.13
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
|
{
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35731/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35731/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35732
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35732/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35732/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35732/events
|
https://github.com/pandas-dev/pandas/issues/35732
| 679,434,758
|
MDU6SXNzdWU2Nzk0MzQ3NTg=
| 35,732
|
BLD: minimum versions need update in `pandas/compat/_optional.py`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-08-14T22:34:13Z
| 2020-08-17T13:11:54Z
| 2020-08-17T13:11:54Z
|
MEMBER
| null |
The minimum versions in `pandas/compat/_optional.py` were not updated in #35214.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35732/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35732/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35733
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35733/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35733/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35733/events
|
https://github.com/pandas-dev/pandas/pull/35733
| 679,437,691
|
MDExOlB1bGxSZXF1ZXN0NDY4MjEyNTEz
| 35,733
|
BLD: update min versions #35732
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-08-14T22:45:03Z
| 2020-08-17T15:39:20Z
| 2020-08-17T13:11:54Z
|
MEMBER
| null |
- [x] closes #35732
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35733/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35733/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35733.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35733",
"merged_at": "2020-08-17T13:11:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35733.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35733"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35734
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35734/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35734/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35734/events
|
https://github.com/pandas-dev/pandas/pull/35734
| 679,461,098
|
MDExOlB1bGxSZXF1ZXN0NDY4MjMwNTM5
| 35,734
|
CI: See if socket check is responsible for CI failures
|
{
"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 | 0
| 2020-08-15T00:14:18Z
| 2020-08-15T01:28:39Z
| 2020-08-15T01:28:27Z
|
MEMBER
| null |
Reverts part of #35693
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35734/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35734/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35734.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35734",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/35734.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35734"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35735
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35735/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35735/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35735/events
|
https://github.com/pandas-dev/pandas/issues/35735
| 679,530,089
|
MDU6SXNzdWU2Nzk1MzAwODk=
| 35,735
|
BUG: DataFrame.merge() fails with program termination, consumed entire available memory(Memory Leak)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60599856?v=4",
"events_url": "https://api.github.com/users/HimanshuS24/events{/privacy}",
"followers_url": "https://api.github.com/users/HimanshuS24/followers",
"following_url": "https://api.github.com/users/HimanshuS24/following{/other_user}",
"gists_url": "https://api.github.com/users/HimanshuS24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HimanshuS24",
"id": 60599856,
"login": "HimanshuS24",
"node_id": "MDQ6VXNlcjYwNTk5ODU2",
"organizations_url": "https://api.github.com/users/HimanshuS24/orgs",
"received_events_url": "https://api.github.com/users/HimanshuS24/received_events",
"repos_url": "https://api.github.com/users/HimanshuS24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HimanshuS24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HimanshuS24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HimanshuS24"
}
|
[
{
"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": "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"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-08-15T09:02:11Z
| 2020-09-04T18:01:47Z
| 2020-09-04T18:01:47Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df1 = pd.read_csv(path_of_csv1)
df2 = pd.read_csv(path_of_csv2)
resultant_df = df1.merge(df2, left_on='left_csv_column_name', right_on='right_csv_column_name', how='inner') <= Exception thrown here.
```
```
[1] 31330 killed python
```
#### Problem description
Memory Leak occurs while trying to merge two Dataframes read from two different CSV's of bigger size (>=10Mb in my case)
For smaller CSV files (let's say of <=10Mb) each merging process is working fine.
My system is having 8Gb of RAM and before starting the Merging process, Enough Memory is available(>3Gb) and after starting the merging process, the system consumes the entire available memory and killed the merging process in between with the below exception:-
```
[1] 31330 killed python
```
#### Expected Output
`resultant_df` contains the two DataFrame `df1` and `df2` based on the join type we have given as a parameter `how='inner'` in pandas merge function
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 19.4.0
Version : Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.1
setuptools : 49.2.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None]
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 1,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35735/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35735/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35736
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35736/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35736/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35736/events
|
https://github.com/pandas-dev/pandas/pull/35736
| 679,592,746
|
MDExOlB1bGxSZXF1ZXN0NDY4MzI5ODYz
| 35,736
|
BUG/ENH: to_pickle/read_pickle support compression for file ojects
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"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": "6c1cdb",
"default": false,
"description": "read_pickle, to_pickle",
"id": 1625435109,
"name": "IO Pickle",
"node_id": "MDU6TGFiZWwxNjI1NDM1MTA5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Pickle"
}
] |
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"
}
| 2
| 2020-08-15T15:24:31Z
| 2020-09-05T17:47:58Z
| 2020-09-05T14:50:04Z
|
CONTRIBUTOR
| null |
- [x] closes #26237, closes #29054, and closes #29570
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This was basically already supported but `to/read_pickle` set `compression` to `None` for file objects.
Some functions called `get_filepath_or_buffer` (might convert a string to a file object) before calling `infer_compression` (doesn't work with file objects). I moved `infer_compression` and `get_compression_method` inside `get_filepath_or_buffer`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35736/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35736/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35736.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35736",
"merged_at": "2020-09-05T14:50:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35736.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35736"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35737
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35737/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35737/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35737/events
|
https://github.com/pandas-dev/pandas/issues/35737
| 679,599,400
|
MDU6SXNzdWU2Nzk1OTk0MDA=
| 35,737
|
CI: Travis failing with INTERNALERROR
|
{
"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 |
[] | null | 4
| 2020-08-15T15:54:42Z
| 2020-08-17T08:50:01Z
| 2020-08-17T08:50:01Z
|
MEMBER
| null |
I'm seeing this on every recent Travis 37-coverage build:
```
============================= test session starts ==============================
platform linux -- Python 3.7.7, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/travis/build/pandas-dev/pandas, configfile: setup.cfg, testpaths: pandas
plugins: xdist-2.0.0, cov-2.10.0, forked-1.2.0, hypothesis-5.24.0
gw0 I
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/_pytest/main.py", line 238, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/xdist/dsession.py", line 78, in pytest_sessionstart
INTERNALERROR> nodes = self.nodemanager.setup_nodes(putevent=self.queue.put)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/xdist/workermanage.py", line 65, in setup_nodes
INTERNALERROR> return [self.setup_node(spec, putevent) for spec in self.specs]
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/xdist/workermanage.py", line 65, in <listcomp>
INTERNALERROR> return [self.setup_node(spec, putevent) for spec in self.specs]
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/xdist/workermanage.py", line 73, in setup_node
INTERNALERROR> node.setup()
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/xdist/workermanage.py", line 260, in setup
INTERNALERROR> self.config.hook.pytest_configure_node(node=self)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pytest_cov/plugin.py", line 239, in pytest_configure_node
INTERNALERROR> self.cov_controller.configure_node(node)
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pytest_cov/engine.py", line 274, in configure_node
INTERNALERROR> workerinput(node).update({
INTERNALERROR> File "/home/travis/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pytest_cov/compat.py", line 42, in fn
INTERNALERROR> return getattr(obj, attr, *args)
INTERNALERROR> AttributeError: 'WorkerController' object has no attribute 'slaveinput'
The command "ci/run_tests.sh" exited with 3.
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35737/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35737/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35738
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35738/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35738/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35738/events
|
https://github.com/pandas-dev/pandas/pull/35738
| 679,599,544
|
MDExOlB1bGxSZXF1ZXN0NDY4MzM1MzYz
| 35,738
|
Backport PR #35723 on branch 1.1.x (agg with list of non-aggregating functions)
|
{
"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": "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 |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 1
| 2020-08-15T15:55:41Z
| 2020-08-15T16:59:37Z
| 2020-08-15T16:59:36Z
|
NONE
| null |
Backport PR #35723: agg with list of non-aggregating functions
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35738/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35738/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35738.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35738",
"merged_at": "2020-08-15T16:59:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35738.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35738"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35739
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35739/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35739/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35739/events
|
https://github.com/pandas-dev/pandas/issues/35739
| 679,603,837
|
MDU6SXNzdWU2Nzk2MDM4Mzc=
| 35,739
|
BUG: Invalid cache invalidation leading to assertion errors later
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18377550?v=4",
"events_url": "https://api.github.com/users/veselyvojtech/events{/privacy}",
"followers_url": "https://api.github.com/users/veselyvojtech/followers",
"following_url": "https://api.github.com/users/veselyvojtech/following{/other_user}",
"gists_url": "https://api.github.com/users/veselyvojtech/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/veselyvojtech",
"id": 18377550,
"login": "veselyvojtech",
"node_id": "MDQ6VXNlcjE4Mzc3NTUw",
"organizations_url": "https://api.github.com/users/veselyvojtech/orgs",
"received_events_url": "https://api.github.com/users/veselyvojtech/received_events",
"repos_url": "https://api.github.com/users/veselyvojtech/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/veselyvojtech/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/veselyvojtech/subscriptions",
"type": "User",
"url": "https://api.github.com/users/veselyvojtech"
}
|
[
{
"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 |
[] | null | 6
| 2020-08-15T16:24:25Z
| 2020-09-05T07:27:53Z
| 2020-09-04T23:33:08Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
In [44]: df = pd.DataFrame({"a": [3, 4]})
In [45]: df
Out[45]:
a
0 3
1 4
In [46]: mask = df["a"] > 0
In [47]: mask
Out[47]:
0 True
1 True
Name: a, dtype: bool
In [48]: df_a = df.loc[:, "a"]
In [49]: df_a["a"] = 1
In [50]: df_a
Out[50]:
0 3
1 4
a 1
Name: a, dtype: int64
In [51]: df.__dict__
Out[51]:
{'_is_copy': None,
'_mgr': BlockManager
Items: Index(['a'], dtype='object')
Axis 1: RangeIndex(start=0, stop=2, step=1)
IntBlock: slice(0, 1, 1), 1 x 2, dtype: int64,
'_item_cache': {'a': 0 3
1 4
a 1
Name: a, dtype: int64},
'_attrs': {}}
In [52]: mask
Out[52]:
0 True
1 True
Name: a, dtype: bool
In [53]: df
Out[53]:
a
0 3
1 4
In [54]: df.loc[mask, "a"]
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-54-e9cf788ed9f4> in <module>
----> 1 df.loc[mask, "a"]
~/miniconda3/envs/conduit-poetry/lib/python3.8/site-packages/pandas/core/indexing.py in __getitem__(self, key)
871 # AttributeError for IntervalTree get_value
872 pass
--> 873 return self._getitem_tuple(key)
874 else:
875 # we by definition only have the 0th axis
~/miniconda3/envs/conduit-poetry/lib/python3.8/site-packages/pandas/core/indexing.py in _getitem_tuple(self, tup)
1053 return self._multi_take(tup)
1054
-> 1055 return self._getitem_tuple_same_dim(tup)
1056
1057 def _get_label(self, label, axis: int):
~/miniconda3/envs/conduit-poetry/lib/python3.8/site-packages/pandas/core/indexing.py in _getitem_tuple_same_dim(self, tup)
751 # We should never have retval.ndim < self.ndim, as that should
752 # be handled by the _getitem_lowerdim call above.
--> 753 assert retval.ndim == self.ndim
754
755 return retval
AssertionError:
```
#### Problem description
By manipulating one column that was created by copying a part of the DataFrame, the cache for this one column is updated in the DataFrame. However, the cached data are not compatible with the DataFrame index and causes problems later, e.g. the AssertionError from the example.
#### Expected Output
Manipulating separate object would not influence the original object in a way that leads to AssertionError.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.3.final.0
python-bits : 64
OS : Linux
OS-release : 5.7.14-200.fc32.x86_64
Version : #1 SMP Fri Aug 7 23:16:37 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.2.0.post20200714
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : None
blosc : 1.9.1
feather : None
xlsxwriter : None
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.17.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.0
fastparquet : None
gcsfs : 0.6.2
matplotlib : None
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : 0.11.0
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : 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/35739/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35739/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35740
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35740/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35740/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35740/events
|
https://github.com/pandas-dev/pandas/pull/35740
| 679,628,270
|
MDExOlB1bGxSZXF1ZXN0NDY4MzU1NDE2
| 35,740
|
REF: _apply_blockwise define exclude in terms of skipped
|
{
"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": "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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-08-15T19:16:36Z
| 2020-08-21T22:06:35Z
| 2020-08-21T21:56:51Z
|
MEMBER
| null |
orthogonal to #35730
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35740/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35740/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35740.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35740",
"merged_at": "2020-08-21T21:56:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35740.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35740"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35741
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35741/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35741/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35741/events
|
https://github.com/pandas-dev/pandas/pull/35741
| 679,629,529
|
MDExOlB1bGxSZXF1ZXN0NDY4MzU2MjU3
| 35,741
|
DEPR: Deprecate pandas/io/date_converters.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4",
"events_url": "https://api.github.com/users/avinashpancham/events{/privacy}",
"followers_url": "https://api.github.com/users/avinashpancham/followers",
"following_url": "https://api.github.com/users/avinashpancham/following{/other_user}",
"gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avinashpancham",
"id": 44933366,
"login": "avinashpancham",
"node_id": "MDQ6VXNlcjQ0OTMzMzY2",
"organizations_url": "https://api.github.com/users/avinashpancham/orgs",
"received_events_url": "https://api.github.com/users/avinashpancham/received_events",
"repos_url": "https://api.github.com/users/avinashpancham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avinashpancham"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 6
| 2020-08-15T19:26:47Z
| 2020-09-12T21:38:03Z
| 2020-09-12T21:37:58Z
|
CONTRIBUTOR
| null |
- [x] closes #24518
- [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/35741/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35741/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35741.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35741",
"merged_at": "2020-09-12T21:37:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35741.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35741"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35742
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35742/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35742/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35742/events
|
https://github.com/pandas-dev/pandas/pull/35742
| 679,634,685
|
MDExOlB1bGxSZXF1ZXN0NDY4MzU5OTEx
| 35,742
|
TST: encoding for URLs in read_csv
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"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-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"
}
| 1
| 2020-08-15T20:08:03Z
| 2020-08-17T19:53:42Z
| 2020-08-17T18:59:43Z
|
CONTRIBUTOR
| null |
- [x] closes #10424
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Reading CSVs from URLs with a non UTF-8 encoding should already work.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35742/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35742/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35742.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35742",
"merged_at": "2020-08-17T18:59:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35742.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35742"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35743
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35743/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35743/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35743/events
|
https://github.com/pandas-dev/pandas/issues/35743
| 679,637,128
|
MDU6SXNzdWU2Nzk2MzcxMjg=
| 35,743
|
BUG: Assign with "df.loc[index_value][column_name] = value" fails to assign properly
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/42842838?v=4",
"events_url": "https://api.github.com/users/Boris-Molina/events{/privacy}",
"followers_url": "https://api.github.com/users/Boris-Molina/followers",
"following_url": "https://api.github.com/users/Boris-Molina/following{/other_user}",
"gists_url": "https://api.github.com/users/Boris-Molina/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Boris-Molina",
"id": 42842838,
"login": "Boris-Molina",
"node_id": "MDQ6VXNlcjQyODQyODM4",
"organizations_url": "https://api.github.com/users/Boris-Molina/orgs",
"received_events_url": "https://api.github.com/users/Boris-Molina/received_events",
"repos_url": "https://api.github.com/users/Boris-Molina/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Boris-Molina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Boris-Molina/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Boris-Molina"
}
|
[
{
"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": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 4
| 2020-08-15T20:27:35Z
| 2020-08-16T04:18:13Z
| 2020-08-15T20:51:25Z
|
NONE
| null |
- [Y] I have checked that this issue has not already been reported.
- [Y] I have confirmed this bug exists on the latest version of pandas.
- [N] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
This line of code:
```python
self.strategy.loc[bar]['FundingRate'] = np.log(F1/F0)
```
Fails to assign the proper value . I think it either does nothing (leaves the original NaN from when the df "strategy" was created) or assigns a NaN. In any case, I added a set of flags to get the values input with this code:
```python
print('Inputs for np.log F0={} F1={}'.format(F0,F1))
print('Index label bar={}, type={}'.format(bar, type(bar)))
value = np.log(F1/F0)
print('This should be the assigned value={}'.format(value))
self.strategy.loc[bar]['FundingRate'] = value
assert self.strategy.loc[bar]['FundingRate'] == value, 'Error PANDAS fails to assign {}, instead we find {}'.format(value, self.strategy.loc[bar]['FundingRate'])
```
#### Problem description
Assignment operations have started to fail to properly assign values after upgrading from v 1.0.4 to v1.0.5. While I need to run my code in Python 3.7/Pandas 1.0.5 due to other package dependencies, I recreated the problem with Python 3.8 and Pandas v1.1.0
The assignments work if I change to:
```python
df.loc[bar, 'FundingRate'] = value
```
Or with:
```python
df['FundingRate'].loc[bar] = value
```
I can't reproduce this problem in a simple setting. It only occurs in runtime on a system of +6k lines of code which has been working seamlessly with pervasive use of these types of assignments (df.loc[indexvalue][column_name] = value). Also, I can't do a ```dill.dump``` because there are ```tensorflow``` objects that are not serializable.
#### Runtime Output:
The assert fails. This is the printout of the code output:
```
Inputs for np.log F0=180.4753051802489 F1=180.4753051802489
Index label bar=2000-01-03 00:00:00, type=<class 'pandas._libs.tslibs.timestamps.Timestamp'>
This should be the assigned value=0.0
Traceback (most recent call last):
File "/media/WORK/Boris/LEM_Strategy/Software/LEM_Classes/main_nn_seq.py", line 150, in <module>
run_stats = AA.run_strategy(consensus_type=consensus_type)
File "/media/WORK/Boris/LEM_Strategy/Software/LEM_Classes/lib/nn_seqstrat.py", line 642, in run_strategy
date, _ = self.get_date_price(bar, when='_CLOSE')
File "/media/WORK/Boris/LEM_Strategy/Software/LEM_Classes/lib/backtester_sequential.py", line 152, in get_date_price
assert self.strategy.loc[bar]['FundingRate'] == value, 'Error PANDAS fails to assign {}, instead we find {}'.format(value, self.strategy.loc[bar]['FundingRate'])
AssertionError: Error PANDAS fails to assign 0.0, instead we find nan
```
#### Output of ``pd.show_versions()``
<details>
pd.show_versions()
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.1.15-surface-linux-surface
Version : #8 SMP Thu Jun 27 12:03:55 EDT 2019
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.6.0.post20200814
Cython : 0.29.21
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.9
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.0
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.50.1
</details>
#### This is the file used to create the environment where the error occurs.
<details>
```
########################################
#
# LEM_Strategy Conda Environment
#
# run: conda env create -f quant_conda_env.yml
#
########################################
name: quant # COMMENT OUT TO CREATE TEST ENVIRONMENTS (conda env create -n test -f quant_conda_env.yml)
########################################
channels:
- plotly
- defaults
- conda-forge
#- bjrn # Channel for google, V20 package (RAY)
########################################
dependencies:
- python=3.8 #
- numpy
- scipy
- pandas #==1.0.4
- numba
- cython
- numexpr
- statsmodels
- scikit-learn
- xlrd
- xlsxwriter
- ipywidgets
- pathos
- tensorflow-gpu #==2.1.*
- keras-gpu
- tsfresh
- pytables
- pyzmq # ZeroMQ: sockets
# Graphics and Plotting
- plotly
- plotly-orca
- requests
- matplotlib
- seaborn
- cufflinks-py
# Utilities
- nb_conda_kernels # For Jupyter
- spyder-kernels # Spyder
- git # Github support: custom packages and bug forks
# PIP Dependencies (otherwise installed via PIP: Use Conda to install to improve environment integrity over time)
- yaml # For TPQOA (OANDA Wrapper)
- ujson # For TPQOA (OANDA Wrapper)
# - v20 # OANDA API V2.0 (from brjn conda channel) (TPQOA installs from PIP))
# - modin # Ray Tutorial INSTALL MANUALLY
# - opencv # Ray Tutorial INSTALL MANUALLY
# - gym # Ray Tutorial INSTALL MANUALLY
- aiohttp # Ray
- colorama # Ray
- filelock # Ray
- redis # Ray
- multidict # Ray
- yarl # Ray
- async_timeout # Ray
- beautifulsoup4 # Ray
- soupsieve # Ray
# - redis # Ray (get from "$pip_deps ray" shell script. Output '<3.5.0,>=3.3.2') (Ray installs from PIP))
# - py-spy>=0.2.0 # Ray (get from "$pip_deps ray" shell script) (Ray installs from PIP))
# - google # Ray (from brjn conda channel) (Ray installs from PIP))
# Non-Conda Packages via PIP
- pip # First install PIP PACKAGE MANAGER
- pip:
- "git+git://github.com/yhilpisch/tpqoa.git" # TPQ OANDA Wrapper
- "git+git://github.com/yhilpisch/tstables.git" # Time Series Tables with pandas=1.0 bug fix
#- "git+git://github.com/tensorflow/model-optimization.git" # TensorFlow Model Optimization "import tensorflow_model_optimization as tfmot"
- cardinality
- ray # Ray: fast and simple framework for building and running distributed applications.
```
</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/35743/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35743/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35744
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35744/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35744/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35744/events
|
https://github.com/pandas-dev/pandas/issues/35744
| 679,646,959
|
MDU6SXNzdWU2Nzk2NDY5NTk=
| 35,744
|
BUG: pd.Series() constructor with 2d NumPy array raises bare Exception
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5473606?v=4",
"events_url": "https://api.github.com/users/micahjsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/micahjsmith/followers",
"following_url": "https://api.github.com/users/micahjsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/micahjsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/micahjsmith",
"id": 5473606,
"login": "micahjsmith",
"node_id": "MDQ6VXNlcjU0NzM2MDY=",
"organizations_url": "https://api.github.com/users/micahjsmith/orgs",
"received_events_url": "https://api.github.com/users/micahjsmith/received_events",
"repos_url": "https://api.github.com/users/micahjsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/micahjsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/micahjsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/micahjsmith"
}
|
[
{
"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": "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"
},
{
"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
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5473606?v=4",
"events_url": "https://api.github.com/users/micahjsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/micahjsmith/followers",
"following_url": "https://api.github.com/users/micahjsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/micahjsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/micahjsmith",
"id": 5473606,
"login": "micahjsmith",
"node_id": "MDQ6VXNlcjU0NzM2MDY=",
"organizations_url": "https://api.github.com/users/micahjsmith/orgs",
"received_events_url": "https://api.github.com/users/micahjsmith/received_events",
"repos_url": "https://api.github.com/users/micahjsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/micahjsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/micahjsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/micahjsmith"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/5473606?v=4",
"events_url": "https://api.github.com/users/micahjsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/micahjsmith/followers",
"following_url": "https://api.github.com/users/micahjsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/micahjsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/micahjsmith",
"id": 5473606,
"login": "micahjsmith",
"node_id": "MDQ6VXNlcjU0NzM2MDY=",
"organizations_url": "https://api.github.com/users/micahjsmith/orgs",
"received_events_url": "https://api.github.com/users/micahjsmith/received_events",
"repos_url": "https://api.github.com/users/micahjsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/micahjsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/micahjsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/micahjsmith"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-08-15T21:51:29Z
| 2020-10-10T16:46:24Z
| 2020-10-10T16:46:24Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
arr = np.random.rand(10, 4)
pd.Series(arr)
```
I get this output
```
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-4-974eca309da1> in <module>
2 import numpy as np
3 arr = np.random.rand(10, 4)
----> 4 pd.Series(arr)
~/.pyenv/versions/3.8.3/envs/census/lib/python3.8/site-packages/pandas/core/series.py in __init__(self, data, index, dtype, name, copy, fastpath)
325 data = data.copy()
326 else:
--> 327 data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True)
328
329 data = SingleBlockManager.from_array(data, index)
~/.pyenv/versions/3.8.3/envs/census/lib/python3.8/site-packages/pandas/core/construction.py in sanitize_array(data, index, dtype, copy, raise_cast_failure)
490 elif subarr.ndim > 1:
491 if isinstance(data, np.ndarray):
--> 492 raise Exception("Data must be 1-dimensional")
493 else:
494 subarr = com.asarray_tuplesafe(data, dtype=dtype)
Exception: Data must be 1-dimensional
```
#### Problem description
Yes, creating a series from an array is invalid. But the problem is that a bare `Exception` is raised for this. A different exception type like `ValueError` is expected. User code should [mostly] never be catching bare Exceptions, but may reasonable catch `ValueError`s or `TypeError`s from pandas routines.
I'm not entirely sure of the rationale for raising a bare Exception in the `sanitize_array` method, I started looking through the git blame but didn't go back that far.
I think a PR that just raises a `ValueError` in `sanitize_array` would be an appropriate fix and I can create that if given the thumbs up.
#### Expected Output
A `ValueError` is raised, that can be caught be user code.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.0
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : 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/35744/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35744/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35745
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35745/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35745/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35745/events
|
https://github.com/pandas-dev/pandas/issues/35745
| 679,650,219
|
MDU6SXNzdWU2Nzk2NTAyMTk=
| 35,745
|
BUG: slicing DataFrameGroupBy to SeriesGroupBy doesn't propagate dropna
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"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 |
[] | null | 4
| 2020-08-15T22:16:52Z
| 2020-08-17T14:52:57Z
| 2020-08-16T04:12:02Z
|
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
xref #9959, #35444
Slicing a `DataFrameGroupBy` object to `SeriesGroupBy` doesn't correctly propagate `dropna`.
The `DataFrameGroupBy` → `DataFrameGroupBy` case is being handled in #35444. Opening this because as far as I can tell the `DataFrameGroupBy` → `SeriesGroupBy` variant is an independent bug.
#### Code Sample, a copy-pastable example
```
In [11]: df = pd.DataFrame({"a": [1], "b": [2], "c": [3]})
...: gb = df.groupby('a', dropna=False)
In [12]: gb.dropna
Out[12]: False
In [13]: gb['b'].dropna
Out[13]: True
```
#### Expected Output
I'd like to see:
```
In [22]: gb.dropna == gb['b'].dropna
Out[22]: True
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : a3f5c6a5a3f05edc1c56ab8051f28c4cf322c45c
python : 3.8.3.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-42-generic
Version : #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
machine : x86_64
processor :
byteorder : little
LC_ALL : C.UTF-8
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0.dev0+99.ga3f5c6a5a.dirty
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.1.0.post20200704
Cython : 0.29.21
pytest : 5.4.3
hypothesis : 5.19.0
sphinx : 3.1.1
blosc : None
feather : None
xlsxwriter : 1.2.9
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : 2.8.5 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fsspec : 0.7.4
fastparquet : 0.4.0
gcsfs : 0.6.2
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.4
pandas_gbq : None
pyarrow : 0.17.1
pytables : None
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.0
sqlalchemy : 1.3.18
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.15.1
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.50.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/35745/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35745/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35746
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35746/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35746/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35746/events
|
https://github.com/pandas-dev/pandas/pull/35746
| 679,650,280
|
MDExOlB1bGxSZXF1ZXN0NDY4MzcwNDYy
| 35,746
|
REF: insert self.on column _after_ concat
|
{
"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": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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"
}
| 1
| 2020-08-15T22:17:21Z
| 2020-08-20T17:53:01Z
| 2020-08-20T16:59:24Z
|
MEMBER
| null |
The idea here is to push towards #34714 by making _wrap_results do things in the same order as other other similar methods do. cc @mroeschke LMK if there is a simpler way to accomplish this.
Orthogonal to #35470, #35730, #35696.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35746/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35746/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35746.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35746",
"merged_at": "2020-08-20T16:59:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35746.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35746"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35747
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35747/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35747/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35747/events
|
https://github.com/pandas-dev/pandas/issues/35747
| 679,650,479
|
MDU6SXNzdWU2Nzk2NTA0Nzk=
| 35,747
|
BUG: Cannot index `frozenset` elements from a pd.Series or pd.DataFrame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9061708?v=4",
"events_url": "https://api.github.com/users/jolespin/events{/privacy}",
"followers_url": "https://api.github.com/users/jolespin/followers",
"following_url": "https://api.github.com/users/jolespin/following{/other_user}",
"gists_url": "https://api.github.com/users/jolespin/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jolespin",
"id": 9061708,
"login": "jolespin",
"node_id": "MDQ6VXNlcjkwNjE3MDg=",
"organizations_url": "https://api.github.com/users/jolespin/orgs",
"received_events_url": "https://api.github.com/users/jolespin/received_events",
"repos_url": "https://api.github.com/users/jolespin/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jolespin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jolespin/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jolespin"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 6
| 2020-08-15T22:18:57Z
| 2020-09-12T21:39:40Z
| 2020-09-12T21:39:40Z
|
NONE
| null |
- [ ] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
print(pd.__version__)
# 1.1.0
# Create DataFrame
data = {0: {frozenset({'Otu000010', 'Otu000505'}): 'white',
frozenset({'Otu000067', 'Otu000073'}): 'white',
frozenset({'Otu000151', 'molar'}): 'white',
frozenset({'Otu000380', 'etec_stp'}): 'white',
frozenset({'Otu000281', 'ghrp'}): 'white'},
14: {frozenset({'Otu000010', 'Otu000505'}): 'white',
frozenset({'Otu000067', 'Otu000073'}): 'white',
frozenset({'Otu000151', 'molar'}): 'white',
frozenset({'Otu000380', 'etec_stp'}): 'white',
frozenset({'Otu000281', 'ghrp'}): 'white'},
28: {frozenset({'Otu000010', 'Otu000505'}): 'red',
frozenset({'Otu000067', 'Otu000073'}): 'white',
frozenset({'Otu000151', 'molar'}): 'blue',
frozenset({'Otu000380', 'etec_stp'}): 'white',
frozenset({'Otu000281', 'ghrp'}): 'white'}}
df = pd.DataFrame(data)
# Get first item in index
id_query = df.index[0]
# Grab a column
vector = df[14]
# Index the vector using query
vector[id_query]
# ---------------------------------------------------------------------------
# KeyError Traceback (most recent call last)
# <ipython-input-145-493fc06aeb40> in <module>
# 24
# 25 # Index the vector using query
# ---> 26 vector[id_query]
# ~/anaconda3/envs/soothsayer5_env/lib/python3.8/site-packages/pandas/core/series.py in __getitem__(self, key)
# 906 return self._get_values(key)
# 907
# --> 908 return self._get_with(key)
# 909
# 910 def _get_with(self, key):
# ~/anaconda3/envs/soothsayer5_env/lib/python3.8/site-packages/pandas/core/series.py in _get_with(self, key)
# 946
# 947 # handle the dup indexing case GH#4246
# --> 948 return self.loc[key]
# 949
# 950 def _get_values_tuple(self, key):
# ~/anaconda3/envs/soothsayer5_env/lib/python3.8/site-packages/pandas/core/indexing.py in __getitem__(self, key)
# 877
# 878 maybe_callable = com.apply_if_callable(key, self.obj)
# --> 879 return self._getitem_axis(maybe_callable, axis=axis)
# 880
# 881 def _is_scalar_access(self, key: Tuple):
# ~/anaconda3/envs/soothsayer5_env/lib/python3.8/site-packages/pandas/core/indexing.py in _getitem_axis(self, key, axis)
# 1097 raise ValueError("Cannot index with multidimensional key")
# 1098
# -> 1099 return self._getitem_iterable(key, axis=axis)
# 1100
# 1101 # nested tuple slicing
# ~/anaconda3/envs/soothsayer5_env/lib/python3.8/site-packages/pandas/core/indexing.py in _getitem_iterable(self, key, axis)
# 1035
# 1036 # A collection of keys
# -> 1037 keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False)
# 1038 return self.obj._reindex_with_indexers(
# 1039 {axis: [keyarr, indexer]}, copy=True, allow_dups=True
# ~/anaconda3/envs/soothsayer5_env/lib/python3.8/site-packages/pandas/core/indexing.py in _get_listlike_indexer(self, key, axis, raise_missing)
# 1252 keyarr, indexer, new_indexer = ax._reindex_non_unique(keyarr)
# 1253
# -> 1254 self._validate_read_indexer(keyarr, indexer, axis, raise_missing=raise_missing)
# 1255 return keyarr, indexer
# 1256
# ~/anaconda3/envs/soothsayer5_env/lib/python3.8/site-packages/pandas/core/indexing.py in _validate_read_indexer(self, key, indexer, axis, raise_missing)
# 1296 if missing == len(indexer):
# 1297 axis_name = self.obj._get_axis_name(axis)
# -> 1298 raise KeyError(f"None of [{key}] are in the [{axis_name}]")
# 1299
# 1300 # We (temporarily) allow for some missing keys with .loc, except in
# KeyError: "None of [Index(['Otu000010', 'Otu000505'], dtype='object')] are in the [index]"
```
#### Problem description
In previous versions, I was able to use `frozenset` objects as the elements of the index. These are great objects to have for network analysis where I use as edges in my pd.Series and pd.DataFrame
#### Expected Output
I should be able to index using these objects.
#### Output of ``pd.show_versions()``
<details>
pandas v1.1.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/35747/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35747/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35748
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35748/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35748/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35748/events
|
https://github.com/pandas-dev/pandas/pull/35748
| 679,656,238
|
MDExOlB1bGxSZXF1ZXN0NDY4MzczOTk1
| 35,748
|
BUG: close file handles in mmap
|
{
"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": "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-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"
}
| 1
| 2020-08-15T23:04:48Z
| 2020-08-17T19:44:57Z
| 2020-08-17T18:58:32Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Broken off from #35711
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35748/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35748/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35748.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35748",
"merged_at": "2020-08-17T18:58:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35748.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35748"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35749
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35749/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35749/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35749/events
|
https://github.com/pandas-dev/pandas/issues/35749
| 679,659,070
|
MDU6SXNzdWU2Nzk2NTkwNzA=
| 35,749
|
BUG: AttributeError: 'Cell' object has no attribute 'font' when using to_excel() with openpyxl engine
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31420389?v=4",
"events_url": "https://api.github.com/users/mcs2017/events{/privacy}",
"followers_url": "https://api.github.com/users/mcs2017/followers",
"following_url": "https://api.github.com/users/mcs2017/following{/other_user}",
"gists_url": "https://api.github.com/users/mcs2017/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mcs2017",
"id": 31420389,
"login": "mcs2017",
"node_id": "MDQ6VXNlcjMxNDIwMzg5",
"organizations_url": "https://api.github.com/users/mcs2017/orgs",
"received_events_url": "https://api.github.com/users/mcs2017/received_events",
"repos_url": "https://api.github.com/users/mcs2017/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mcs2017/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mcs2017/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mcs2017"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-08-15T23:35:42Z
| 2020-08-16T00:01:00Z
| 2020-08-16T00:01:00Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] I have confirmed this bug exists on the latest version of openpyxl.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
I am using to_excel() with openpyxl engine to export a pandas dataframe to a sheet of an .xlsx file. My code works just fine two days ago, but it does not work now with Error:
```
with pd.ExcelWriter(PATH+ '/' + FILENAME, engine='openpyxl', mode='a') as writer:
df.head().to_excel(writer, sheet_name='test')
writer.save()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-69-1e1ecfd20f72> in <module>
1 with pd.ExcelWriter(PATH+ '/' + FILENAME, engine='openpyxl', mode='a') as writer:
----> 2 df.head().to_excel(writer, sheet_name='test')
3 writer.save()
4
5 writer.close()
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/generic.py in to_excel(self, excel_writer, sheet_name, na_rep, float_format, columns, header, index, index_label, startrow, startcol, engine, merge_cells, encoding, inf_rep, verbose, freeze_panes)
2027 startcol=startcol,
2028 freeze_panes=freeze_panes,
-> 2029 engine=engine,
2030 )
2031
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/io/formats/excel.py in write(self, writer, sheet_name, startrow, startcol, freeze_panes, engine)
737 startrow=startrow,
738 startcol=startcol,
--> 739 freeze_panes=freeze_panes,
740 )
741 if need_save:
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/io/excel/_openpyxl.py in write_cells(self, cells, sheet_name, startrow, startcol, freeze_panes)
437 if style_kwargs:
438 for k, v in style_kwargs.items():
--> 439 setattr(xcell, k, v)
440
441 if cell.mergestart is not None and cell.mergeend is not None:
AttributeError: 'Cell' object has no attribute 'font'
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35749/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35749/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35750
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35750/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35750/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35750/events
|
https://github.com/pandas-dev/pandas/pull/35750
| 679,684,712
|
MDExOlB1bGxSZXF1ZXN0NDY4Mzk0MzMw
| 35,750
|
Pass check_dtype to assert_extension_array_equal
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 4
| 2020-08-16T04:14:10Z
| 2020-08-17T18:31:25Z
| 2020-08-17T18:20:20Z
|
MEMBER
| null |
- [x] closes #35715
- [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/35750/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35750/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35750.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35750",
"merged_at": "2020-08-17T18:20:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35750.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35750"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35751
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35751/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35751/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35751/events
|
https://github.com/pandas-dev/pandas/pull/35751
| 679,689,966
|
MDExOlB1bGxSZXF1ZXN0NDY4Mzk4MTIy
| 35,751
|
BUG: DataFrame.groupby(., dropna=True, axis=0) incorrectly throws ShapeError
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
}
|
[
{
"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": "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": "78bced",
"default": false,
"description": "Waiting for review/response from a maintainer.",
"id": 2324533627,
"name": "Needs Review",
"node_id": "MDU6TGFiZWwyMzI0NTMzNjI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Review"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 28
| 2020-08-16T05:04:18Z
| 2020-12-19T02:34:50Z
| 2020-12-19T02:34:45Z
|
MEMBER
| null |
- [x] closes #35612
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR makes a few more changes to propagate `dropna` correctly for sliced groupby objects.
It depends on #35444 for the changes to `pandas/core/groupby/generic.py`. I put them in by hand for now so that the tests pass but there should be no diff once #35444 is merged.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35751/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35751/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35751.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35751",
"merged_at": "2020-12-19T02:34:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35751.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35751"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35752
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35752/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35752/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35752/events
|
https://github.com/pandas-dev/pandas/issues/35752
| 679,770,852
|
MDU6SXNzdWU2Nzk3NzA4NTI=
| 35,752
|
BUG: rolling count on string Series and TimeIndex raises an error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10409077?v=4",
"events_url": "https://api.github.com/users/ezerkar/events{/privacy}",
"followers_url": "https://api.github.com/users/ezerkar/followers",
"following_url": "https://api.github.com/users/ezerkar/following{/other_user}",
"gists_url": "https://api.github.com/users/ezerkar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ezerkar",
"id": 10409077,
"login": "ezerkar",
"node_id": "MDQ6VXNlcjEwNDA5MDc3",
"organizations_url": "https://api.github.com/users/ezerkar/orgs",
"received_events_url": "https://api.github.com/users/ezerkar/received_events",
"repos_url": "https://api.github.com/users/ezerkar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ezerkar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ezerkar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ezerkar"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-08-16T15:08:48Z
| 2020-08-16T15:44:38Z
| 2020-08-16T15:40:03Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
#### Code Sample, a copy-pastable example
```python
d = {'vv': {pd.Timestamp('2020-01-13 08:22:00', freq='T'): 'aa',
pd.Timestamp('2020-01-13 08:23:00', freq='T'): 'bb',
pd.Timestamp('2020-01-13 08:24:00', freq='T'): 'cc',
pd.Timestamp('2020-01-13 08:25:00', freq='T'): np.nan,
pd.Timestamp('2020-01-13 08:26:00', freq='T'): 'dd'}}
df = pd.DataFrame(d)
print(df['vv'].rolling('72s').count())
```
#### Problem description
this raises DataError: No numeric types to aggregate insted if the expected output:
2020-01-13 08:22:00 1.0
2020-01-13 08:23:00 2.0
2020-01-13 08:24:00 2.0
2020-01-13 08:25:00 1.0
2020-01-13 08:26:00 1.0
Name: vv, dtype: float64
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.16299
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.1
setuptools : 49.2.1.post20200807
Cython : 0.29.21
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.0
blosc : None
feather : None
xlsxwriter : 1.2.9
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.4
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.0
sqlalchemy : 1.3.18
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.50.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/35752/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35752/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35753
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35753/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35753/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35753/events
|
https://github.com/pandas-dev/pandas/issues/35753
| 679,791,709
|
MDU6SXNzdWU2Nzk3OTE3MDk=
| 35,753
|
BUG: read_excel not accepting encoding on 1.1.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1446633?v=4",
"events_url": "https://api.github.com/users/staticdev/events{/privacy}",
"followers_url": "https://api.github.com/users/staticdev/followers",
"following_url": "https://api.github.com/users/staticdev/following{/other_user}",
"gists_url": "https://api.github.com/users/staticdev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/staticdev",
"id": 1446633,
"login": "staticdev",
"node_id": "MDQ6VXNlcjE0NDY2MzM=",
"organizations_url": "https://api.github.com/users/staticdev/orgs",
"received_events_url": "https://api.github.com/users/staticdev/received_events",
"repos_url": "https://api.github.com/users/staticdev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/staticdev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/staticdev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/staticdev"
}
|
[
{
"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": 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"
}
| 42
| 2020-08-16T17:22:10Z
| 2021-07-11T04:45:11Z
| 2020-10-29T15:49:36Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
def date_parse(value: str) -> datetime.datetime:
return datetime.datetime.strptime(value.strip(), "%d/%m/%y")
df = pd.read_excel(
filepath,
encoding="iso-8859-1",
usecols="B",
date_parser=date_parse,
skiprows=4,
)
```
#### Problem description
TypeError: read_excel() got an unexpected keyword argument 'encoding'.
#### Expected Output
No error, as in previous versions.
#### Output of ``pd.show_versions()``
```INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-42-generic
Version : #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : pt_BR.UTF-8
pandas : 1.1.0
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1
setuptools : 41.2.0
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.0
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 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/35753/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35753/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35754
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35754/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35754/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35754/events
|
https://github.com/pandas-dev/pandas/pull/35754
| 679,810,450
|
MDExOlB1bGxSZXF1ZXN0NDY4NDg0OTAy
| 35,754
|
CI: Min Pytest Cov Version/Restrict xdist version
|
{
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "a2bca7",
"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-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 4
| 2020-08-16T19:21:29Z
| 2020-08-17T08:51:47Z
| 2020-08-17T08:50:01Z
|
CONTRIBUTOR
| null |
- [x] closes #35737
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35754/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35754/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35754.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35754",
"merged_at": "2020-08-17T08:50:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35754.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35754"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35755
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35755/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35755/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35755/events
|
https://github.com/pandas-dev/pandas/issues/35755
| 679,834,915
|
MDU6SXNzdWU2Nzk4MzQ5MTU=
| 35,755
|
BUG: custom window not working in groupby
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8095957?v=4",
"events_url": "https://api.github.com/users/MaxHalford/events{/privacy}",
"followers_url": "https://api.github.com/users/MaxHalford/followers",
"following_url": "https://api.github.com/users/MaxHalford/following{/other_user}",
"gists_url": "https://api.github.com/users/MaxHalford/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MaxHalford",
"id": 8095957,
"login": "MaxHalford",
"node_id": "MDQ6VXNlcjgwOTU5NTc=",
"organizations_url": "https://api.github.com/users/MaxHalford/orgs",
"received_events_url": "https://api.github.com/users/MaxHalford/received_events",
"repos_url": "https://api.github.com/users/MaxHalford/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MaxHalford/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MaxHalford/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MaxHalford"
}
|
[
{
"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 |
[] | null | 3
| 2020-08-16T22:03:08Z
| 2020-08-17T14:51:27Z
| 2020-08-17T06:48:32Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
readings = pd.DataFrame(
[
('A', 'Saturday', 101),
('A', 'Sunday', 88),
('A', 'Saturday', 103),
('A', 'Sunday', 82),
('A', 'Saturday', 100),
('B', 'Saturday', 27),
('B', 'Sunday', 13),
('B', 'Saturday', 21),
('B', 'Sunday', 17),
('B', 'Saturday', 25)
],
columns=['building', 'day', 'reading']
)
class ShiftedWindow(pd.api.indexers.BaseIndexer):
def __init__(self, window_size):
self.window_size = window_size
def get_window_bounds(self, num_values=0, min_periods=None, center=None, closed=None):
starts = np.arange(-self.window_size, num_values - self.window_size)
ends = starts + self.window_size
starts[:self.window_size] = 0
return starts, ends
readings.groupby('building')['reading'].rolling(window=ShiftedWindow(2), min_periods=1).mean()
```
#### Problem description
I've defined a custom window that uses the previous values, and therefore ignores the current value. It's very useful for, say, target encoding on time series.
#### Expected Output
I would be expecting the following output:
```py
>>> readings.groupby('building')['reading'].apply(lambda x: x.shift(1).rolling(2, min_periods=1).mean())
0 NaN
1 101.0
2 94.5
3 95.5
4 92.5
5 NaN
6 27.0
7 20.0
8 17.0
9 19.0
Name: reading, dtype: float64
```
Instead, I'm getting:
```py
>>> readings.groupby('building')['reading'].rolling(window=ShiftedWindow(2), min_periods=1).mean()
building
A 0 101.0
1 88.0
2 103.0
3 82.0
4 100.0
B 5 27.0
6 13.0
7 21.0
8 17.0
9 25.0
Name: reading, dtype: float64
```
I've checked and my custom window works as expected without using `groupby`. I've checked to see if `get_window_bounds` gets called when a `groupby` is used, and the answer is no. Basically, it seems that my custom window is being ignored entirely.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 19.5.0
Version : Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.18.2
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 : None
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fsspec : 0.5.2
fastparquet : None
gcsfs : None
matplotlib : 3.1.2
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.9
tables : 3.5.2
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
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/35755/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35755/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35756
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35756/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35756/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35756/events
|
https://github.com/pandas-dev/pandas/issues/35756
| 679,848,073
|
MDU6SXNzdWU2Nzk4NDgwNzM=
| 35,756
|
CI: Unpin pytest-xdist
|
{
"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-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-08-16T23:26:26Z
| 2020-08-27T16:06:48Z
| 2020-08-27T16:06:26Z
|
CONTRIBUTOR
| null |
Ref: https://github.com/pandas-dev/pandas/issues/35737
Ref: https://github.com/scipy/scipy/pull/12730
Restricting version for now.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35756/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35756/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35757
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35757/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35757/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35757/events
|
https://github.com/pandas-dev/pandas/pull/35757
| 679,855,713
|
MDExOlB1bGxSZXF1ZXN0NDY4NTE3OTc2
| 35,757
|
CI: Unpin Pytest + Pytest Asyncio Min Version
|
{
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "a2bca7",
"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-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"
}
| 6
| 2020-08-17T00:09:59Z
| 2020-12-22T19:03:19Z
| 2020-08-19T17:42:48Z
|
CONTRIBUTOR
| null |
- [x] closes #35620
Pytest 6.0.0+ will require pytest-asyncio>=0.12.0 for these async tests to run.
Also worth noting `pytest-asyncio 0.12.0 requires pytest>=5.4.0`. (So maybe we should think about bumping min pytest version)
```
____________________________________________________________________________________ ERROR collecting pandas/tests/indexes/test_base.py _____________________________________________________________________________________
../../.conda/envs/pandas-dev/lib/python3.8/site-packages/pluggy/hooks.py:286: in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
../../.conda/envs/pandas-dev/lib/python3.8/site-packages/pluggy/manager.py:93: in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
../../.conda/envs/pandas-dev/lib/python3.8/site-packages/pluggy/manager.py:84: in <lambda>
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
../../.conda/envs/pandas-dev/lib/python3.8/site-packages/pytest_asyncio/plugin.py:39: in pytest_pycollect_makeitem
item = pytest.Function(name, parent=collector)
../../.conda/envs/pandas-dev/lib/python3.8/site-packages/_pytest/nodes.py:95: in __call__
warnings.warn(NODE_USE_FROM_PARENT.format(name=self.__name__), stacklevel=2)
E pytest.PytestDeprecationWarning: Direct construction of Function has been deprecated, please use Function.from_parent.
E See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
```
cc @simonjayhawkins
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35757/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35757/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35757.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35757",
"merged_at": "2020-08-19T17:42:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35757.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35757"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35758
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35758/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35758/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35758/events
|
https://github.com/pandas-dev/pandas/pull/35758
| 679,906,718
|
MDExOlB1bGxSZXF1ZXN0NDY4NTU4MDU4
| 35,758
|
REGR: re-add encoding for read_excel
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
}
|
[
{
"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-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 3
| 2020-08-17T03:29:47Z
| 2020-10-29T18:09:49Z
| 2020-08-18T18:02:42Z
|
CONTRIBUTOR
| null |
- [ ] closes #35753
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Needs tests!
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35758/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35758/timeline
| null | 1
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35758.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35758",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/35758.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35758"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35759
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35759/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35759/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35759/events
|
https://github.com/pandas-dev/pandas/pull/35759
| 679,960,787
|
MDExOlB1bGxSZXF1ZXN0NDY4NjAzNTAw
| 35,759
|
PERF: Allow jitting of groupby agg loop
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "fbca04",
"default": 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 |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-08-17T06:01:31Z
| 2020-08-22T03:31:34Z
| 2020-08-22T03:30:05Z
|
MEMBER
| null |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
New performance comparison for 10,000 groups
```
In [1]: In [1]: df_g = pd.DataFrame({'a': range(10**4), 'b': range(10**4), 'c': range(10**4)})
In [2]: In [2]: def f(x):
...: ...: return np.sum(x) + 1
...:
In [3]: df_g.groupby('a').agg(f)
Out[3]:
b c
a
0 1 1
1 2 2
2 3 3
3 4 4
4 5 5
... ... ...
9995 9996 9996
9996 9997 9997
9997 9998 9998
9998 9999 9999
9999 10000 10000
[10000 rows x 2 columns]
In [4]: %timeit df_g.groupby('a').agg(f)
1.2 s ± 70.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
In [5]: def f(values, index):
...: return np.sum(values) + 1
...:
In [6]: df_g.groupby('a').agg(f, engine='numba', engine_kwargs={'parallel': True})
Out[6]:
b c
a
0 1.0 1.0
1 2.0 2.0
2 3.0 3.0
3 4.0 4.0
4 5.0 5.0
... ... ...
9995 9996.0 9996.0
9996 9997.0 9997.0
9997 9998.0 9998.0
9998 9999.0 9999.0
9999 10000.0 10000.0
In [8]: %timeit df_g.groupby('a').agg(f, engine='numba', engine_kwargs={'parallel': True})
2.07 ms ± 64.3 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35759/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35759/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35759.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35759",
"merged_at": "2020-08-22T03:30:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35759.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35759"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35760
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35760/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35760/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35760/events
|
https://github.com/pandas-dev/pandas/issues/35760
| 680,009,701
|
MDU6SXNzdWU2ODAwMDk3MDE=
| 35,760
|
DOC: downcast argument for pd.to_numeric should be integer, not int
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1336287?v=4",
"events_url": "https://api.github.com/users/languitar/events{/privacy}",
"followers_url": "https://api.github.com/users/languitar/followers",
"following_url": "https://api.github.com/users/languitar/following{/other_user}",
"gists_url": "https://api.github.com/users/languitar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/languitar",
"id": 1336287,
"login": "languitar",
"node_id": "MDQ6VXNlcjEzMzYyODc=",
"organizations_url": "https://api.github.com/users/languitar/orgs",
"received_events_url": "https://api.github.com/users/languitar/received_events",
"repos_url": "https://api.github.com/users/languitar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/languitar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/languitar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/languitar"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 3
| 2020-08-17T07:21:08Z
| 2020-08-19T13:16:42Z
| 2020-08-19T13:16:42Z
|
NONE
| null |
#### Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.to_numeric.html?highlight=to_numeric#pandas.to_numeric
#### Documentation problem
The documentation declares that the `downcast` argument of `pd.to_numeric` can use the value `int`. However, only `integer` is working in the real code:
```
In [8]: pd.to_numeric(["42"], downcast="int", errors="coerce")
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-8-3b178e77dcd5> in <module>
----> 1 pd.to_numeric(["42"], downcast="int", errors="coerce")
/usr/lib/python3.8/site-packages/pandas/core/tools/numeric.py in to_numeric(arg, errors, downcast)
110 """
111 if downcast not in (None, "integer", "signed", "unsigned", "float"):
--> 112 raise ValueError("invalid downcasting method provided")
113
114 if errors not in ("ignore", "raise", "coerce"):
ValueError: invalid downcasting method provided
In [9]: pd.to_numeric(["42"], downcast="integer", errors="coerce")
Out[9]: array([42], dtype=int8)
```
#### Suggested fix for documentation
Replace `int` with `integer`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35760/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35760/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35761
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35761/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35761/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35761/events
|
https://github.com/pandas-dev/pandas/pull/35761
| 680,062,759
|
MDExOlB1bGxSZXF1ZXN0NDY4Njg5MzYx
| 35,761
|
Backport PR #35754 on branch 1.1.x (CI: Min Pytest Cov Version/Restrict xdist version)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"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-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-17T08:52:00Z
| 2020-08-17T09:39:03Z
| 2020-08-17T09:39:03Z
|
NONE
| null |
Backport PR #35754: CI: Min Pytest Cov Version/Restrict xdist version
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35761/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35761/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35761.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35761",
"merged_at": "2020-08-17T09:39:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35761.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35761"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35762
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35762/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35762/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35762/events
|
https://github.com/pandas-dev/pandas/issues/35762
| 680,074,629
|
MDU6SXNzdWU2ODAwNzQ2Mjk=
| 35,762
|
BUG: Sparse[datetime64[ns]] TypeError: data type not understood
|
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 5
| 2020-08-17T09:09:57Z
| 2020-08-27T02:22:02Z
| 2020-08-27T02:22:02Z
|
NONE
| null |
- [X] I have checked that this issue has not already been reported ([related, but different](https://github.com/pandas-dev/pandas/issues/26407)).
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import numpy as np
import pandas as pd
# Taken from the example here: https://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#sparsedtype
dtype = pd.SparseDtype(np.dtype('datetime64[ns]'))
# Some value
values = [np.datetime64('2012-05-01T01:00:00.000000'), np.datetime64('2016-05-01T01:00:00.000000')]
# Create the series
series = pd.Series(values, dtype=dtype)
```
Alternatively:
```
series = pd.Series(values, dtype="Sparse[datetime64[ns]]")
```
#### Problem description
As a user I would expect that `datetime64[ns]` is supported as SparseDtype for the SparseArray based on the [_Sparse data structures_ page](https://pandas.pydata.org/pandas-docs/stable/user_guide/sparse.html#sparsedtype) in the documentation. This is desireable for the same rationale as supporting other sparse types, since date(time)s can also contain mostly NaT values that the users wants to store efficiently.
Running the code above yields the following TypeError:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-52-9fc6a02721e3> in <module>
----> 1 series = pd.Series(values, dtype=dtype)
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\series.py in __init__(self, data, index, dtype, name, copy, fastpath)
325 data = data.copy()
326 else:
--> 327 data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True)
328
329 data = SingleBlockManager.from_array(data, index)
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\construction.py in sanitize_array(data, index, dtype, copy, raise_cast_failure)
439 elif isinstance(data, (list, tuple)) and len(data) > 0:
440 if dtype is not None:
--> 441 subarr = _try_cast(data, dtype, copy, raise_cast_failure)
442 else:
443 subarr = maybe_convert_platform(data)
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\construction.py in _try_cast(arr, dtype, copy, raise_cast_failure)
551 subarr = arr
552 else:
--> 553 subarr = maybe_cast_to_datetime(arr, dtype)
554
555 # Take care in creating object arrays (but iterators are not
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\dtypes\cast.py in maybe_cast_to_datetime(value, dtype, errors)
1327 # pandas supports dtype whose granularity is less than [ns]
1328 # e.g., [ps], [fs], [as]
-> 1329 if dtype <= np.dtype("M8[ns]"):
1330 if dtype.name == "datetime64":
1331 raise ValueError(msg)
TypeError: data type not understood
```
#### Expected Output
The expected output is for `Sparse[datetime[ns]]` similar to what one would expect from other dtypes:
```
>>> series.values
[2012-05-01 01:00:00, 2018-05-01 01:00:00]
Fill: NaT
IntIndex
Indices: array([0, 1])
>>> series.dtype
Sparse[datetime64[ns], NaT]
```
#### Workaround
Note that the following workaround partially gives the expected results:
```python
series = pd.Series(pd.arrays.SparseArray(values))
```
For which these operations work as expected:
```
>>> series.values
[2012-05-01 01:00:00, 2018-05-01 01:00:00]
Fill: NaT
IntIndex
Indices: array([0, 1])
>>> series.dtype
Sparse[datetime64[ns], NaT]
```
However `series.head()` will throw an error:
```
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\formatters.py in __call__(self, obj)
700 type_pprinters=self.type_printers,
701 deferred_pprinters=self.deferred_printers)
--> 702 printer.pretty(obj)
703 printer.flush()
704 return stream.getvalue()
C:\ProgramData\Anaconda3\lib\site-packages\IPython\lib\pretty.py in pretty(self, obj)
400 if cls is not object \
401 and callable(cls.__dict__.get('__repr__')):
--> 402 return _repr_pprint(obj, self, cycle)
403
404 return _default_pprint(obj, self, cycle)
C:\ProgramData\Anaconda3\lib\site-packages\IPython\lib\pretty.py in _repr_pprint(obj, p, cycle)
695 """A pprint that just redirects to the normal repr function."""
696 # Find newlines and replace them with p.break_()
--> 697 output = repr(obj)
698 for idx,output_line in enumerate(output.splitlines()):
699 if idx:
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\series.py in __repr__(self)
1319 min_rows=min_rows,
1320 max_rows=max_rows,
-> 1321 length=show_dimensions,
1322 )
1323 result = buf.getvalue()
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\series.py in to_string(self, buf, na_rep, float_format, header, index, length, dtype, name, max_rows, min_rows)
1384 max_rows=max_rows,
1385 )
-> 1386 result = formatter.to_string()
1387
1388 # catch contract violations
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\formats\format.py in to_string(self)
356
357 fmt_index, have_header = self._get_formatted_index()
--> 358 fmt_values = self._get_formatted_values()
359
360 if self.truncate_v:
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\formats\format.py in _get_formatted_values(self)
345 None,
346 float_format=self.float_format,
--> 347 na_rep=self.na_rep,
348 )
349
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\formats\format.py in format_array(values, formatter, float_format, na_rep, digits, space, justify, decimal, leading_space, quoting)
1177 )
1178
-> 1179 return fmt_obj.get_result()
1180
1181
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\formats\format.py in get_result(self)
1208
1209 def get_result(self) -> List[str]:
-> 1210 fmt_values = self._format_strings()
1211 return _make_fixed_width(fmt_values, self.justify)
1212
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\formats\format.py in _format_strings(self)
1465
1466 if not isinstance(values, DatetimeIndex):
-> 1467 values = DatetimeIndex(values)
1468
1469 if self.formatter is not None and callable(self.formatter):
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\datetimes.py in __new__(cls, data, freq, tz, normalize, closed, ambiguous, dayfirst, yearfirst, dtype, copy, name)
277 dayfirst=dayfirst,
278 yearfirst=yearfirst,
--> 279 ambiguous=ambiguous,
280 )
281
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\arrays\datetimes.py in _from_sequence(cls, data, dtype, copy, tz, freq, dayfirst, yearfirst, ambiguous)
321 dayfirst=dayfirst,
322 yearfirst=yearfirst,
--> 323 ambiguous=ambiguous,
324 )
325
C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\arrays\datetimes.py in sequence_to_dt64ns(data, dtype, copy, tz, dayfirst, yearfirst, ambiguous)
1957 if is_datetime64tz_dtype(data_dtype):
1958 # DatetimeArray -> ndarray
-> 1959 tz = _maybe_infer_tz(tz, data.tz)
1960 result = data._data
1961
AttributeError: 'SparseArray' object has no attribute 'tz'
```
Expected:
```
0 2012-05-01 01:00:00
1 2018-05-01 01:00:00
dtype: Sparse[datetime64[ns]]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.0
numpy : 1.19.1
pytz : 2019.3
dateutil : 2.8.0
pip : 19.3.1
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.4.1
hypothesis : None
sphinx : 2.2.0
blosc : None
feather : None
xlsxwriter : 1.2.2
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.1
bottleneck : 1.2.1
fsspec : 0.5.2
fastparquet : None
gcsfs : None
matplotlib : 3.2.1
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : 0.14.0
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.10
tables : 3.6.0
tabulate : 0.8.6
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
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/35762/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35762/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35763
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35763/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35763/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35763/events
|
https://github.com/pandas-dev/pandas/pull/35763
| 680,099,857
|
MDExOlB1bGxSZXF1ZXN0NDY4NzIwNDg4
| 35,763
|
MAINT: Initialize year to silence warning
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4",
"events_url": "https://api.github.com/users/bashtage/events{/privacy}",
"followers_url": "https://api.github.com/users/bashtage/followers",
"following_url": "https://api.github.com/users/bashtage/following{/other_user}",
"gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bashtage",
"id": 5585221,
"login": "bashtage",
"node_id": "MDQ6VXNlcjU1ODUyMjE=",
"organizations_url": "https://api.github.com/users/bashtage/orgs",
"received_events_url": "https://api.github.com/users/bashtage/received_events",
"repos_url": "https://api.github.com/users/bashtage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bashtage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bashtage"
}
|
[
{
"color": "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-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"
}
| 2
| 2020-08-17T09:47:13Z
| 2020-08-17T18:27:49Z
| 2020-08-17T18:27:45Z
|
CONTRIBUTOR
| null |
Initialize year to silence warning due to subtracting from
value that compiler cannot reason must be either initialized
or never reached
closes #35622
- [X] closes #35622
- [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/35763/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35763/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35763.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35763",
"merged_at": "2020-08-17T18:27:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35763.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35763"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35764
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35764/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35764/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35764/events
|
https://github.com/pandas-dev/pandas/pull/35764
| 680,123,853
|
MDExOlB1bGxSZXF1ZXN0NDY4NzQwMzM1
| 35,764
|
Backport PR #35543 on branch 1.1.x (REGR: Fix interpolation on empty dataframe)
|
{
"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": "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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 1
| 2020-08-17T10:24:15Z
| 2020-08-17T20:37:25Z
| 2020-08-17T20:37:25Z
|
NONE
| null |
Backport PR #35543: REGR: Fix interpolation on empty 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/35764/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35764/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35764.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35764",
"merged_at": "2020-08-17T20:37:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35764.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35764"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35765
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35765/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35765/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35765/events
|
https://github.com/pandas-dev/pandas/pull/35765
| 680,145,801
|
MDExOlB1bGxSZXF1ZXN0NDY4NzU4NTg5
| 35,765
|
Backport PR #35697 on branch 1.1.x (REGR: Don't ignore compiled patterns in replace)
|
{
"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": "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": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-17T11:00:57Z
| 2020-08-17T12:21:40Z
| 2020-08-17T12:21:40Z
|
NONE
| null |
Backport PR #35697: REGR: Don't ignore compiled patterns in replace
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35765/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35765/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35765.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35765",
"merged_at": "2020-08-17T12:21:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35765.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35765"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35766
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35766/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35766/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35766/events
|
https://github.com/pandas-dev/pandas/pull/35766
| 680,158,314
|
MDExOlB1bGxSZXF1ZXN0NDY4NzY3OTQ4
| 35,766
|
Revert "REGR: Fix interpolation on empty dataframe"
|
{
"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"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-08-17T11:21:11Z
| 2020-12-02T15:33:15Z
| 2020-08-17T19:15:46Z
|
MEMBER
| null |
Reverts pandas-dev/pandas#35543
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35766/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35766/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35766.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35766",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/35766.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35766"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35767
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35767/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35767/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35767/events
|
https://github.com/pandas-dev/pandas/issues/35767
| 680,175,748
|
MDU6SXNzdWU2ODAxNzU3NDg=
| 35,767
|
BUG: datetime ExtensionDtype do not work with DataFrame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/57095103?v=4",
"events_url": "https://api.github.com/users/marco-neumann-by/events{/privacy}",
"followers_url": "https://api.github.com/users/marco-neumann-by/followers",
"following_url": "https://api.github.com/users/marco-neumann-by/following{/other_user}",
"gists_url": "https://api.github.com/users/marco-neumann-by/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/marco-neumann-by",
"id": 57095103,
"login": "marco-neumann-by",
"node_id": "MDQ6VXNlcjU3MDk1MTAz",
"organizations_url": "https://api.github.com/users/marco-neumann-by/orgs",
"received_events_url": "https://api.github.com/users/marco-neumann-by/received_events",
"repos_url": "https://api.github.com/users/marco-neumann-by/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/marco-neumann-by/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/marco-neumann-by/subscriptions",
"type": "User",
"url": "https://api.github.com/users/marco-neumann-by"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 4,
"created_at": "2016-08-16T13:21:24Z",
"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": "2022-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/42",
"id": 1945020,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/42/labels",
"node_id": "MDk6TWlsZXN0b25lMTk0NTAyMA==",
"number": 42,
"open_issues": 11,
"state": "open",
"title": "2.0",
"updated_at": "2021-10-07T22:01:52Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/42"
}
| 6
| 2020-08-17T11:52:37Z
| 2020-08-19T11:11:30Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported. (at least I couldn't find one)
- [X] I have confirmed this bug exists on the latest version of pandas. (1.1.0)
- [X] (optional) I have confirmed this bug exists on the master branch of pandas. (`934e9f840ebd2e8b5a5181b19a23e033bd3985a5`)
---
#### Code Sample, a copy-pastable example
This is some high-level example that lead to the investion. It relies on [`rle-array`](https://github.com/JDASoftwareGroup/rle-array/) (commit `dfa79295a580d533ee9d2ea901e8808496dbcdc9` was used), because the pandas-provided [`DatetimeArray`](https://github.com/pandas-dev/pandas/blob/934e9f840ebd2e8b5a5181b19a23e033bd3985a5/pandas/core/arrays/datetimes.py#L116) uses a NumPy dtype or `DatetimeTZDtype`. Both cases somewhat work (see "Problem description").
```python
import pandas as pd
from rle_array import RLEArray
array = RLEArray._from_sequence([], dtype="datetime64[ns]")
df = pd.DataFrame({"x": array})
```
```text
Traceback (most recent call last):
File "bug.py", line 5, in <module>
pd.DataFrame({"x": array})
File ".../lib/python3.8/site-packages/pandas/core/frame.py", line 467, in __init__
mgr = init_dict(data, index, columns, dtype=dtype)
File ".../lib/python3.8/site-packages/pandas/core/internals/construction.py", line 283, in init_dict
return arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
File ".../lib/python3.8/site-packages/pandas/core/internals/construction.py", line 93, in arrays_to_mgr
return create_block_manager_from_arrays(arrays, arr_names, axes)
File ".../lib/python3.8/site-packages/pandas/core/internals/managers.py", line 1650, in create_block_manager_from_arrays
blocks = form_blocks(arrays, names, axes)
File ".../lib/python3.8/site-packages/pandas/core/internals/managers.py", line 1703, in form_blocks
block_type = get_block_type(v)
File ".../lib/python3.8/site-packages/pandas/core/internals/blocks.py", line 2672, in get_block_type
assert not is_datetime64tz_dtype(values.dtype)
AssertionError
```
#### Problem description
See here:
https://github.com/pandas-dev/pandas/blob/934e9f840ebd2e8b5a5181b19a23e033bd3985a5/pandas/core/internals/blocks.py#L2647-L2690
datetime (and also interval) types are checked BEFORE extension types which means that extension datetime types never end up in `ExtensionBlock`s. The latter one would be useful if:
- the datetime objects is not compatible with NumPy
- the data should not be converted to to NumPy (e.g. due to compression, like in the `rle-array` case)
Furthermore the invariant `issubclass(vtype, np.datetime64) => not is_datetime64tz_dtype(values.dtype)` does NOT hold for all extension dtypes, at least not under the current implementation of `is_datetime64tz_dtype`:
https://github.com/pandas-dev/pandas/blob/934e9f840ebd2e8b5a5181b19a23e033bd3985a5/pandas/core/dtypes/common.py#L415-L421
#### Expected Output
The code example works and `df._data` shows that the data ends up in an `ExtensionBlock`.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 47.1.0
Cython : None
pytest : 6.0.1
hypothesis : None
sphinx : 3.2.0
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.50.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/35767/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35767/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35768
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35768/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35768/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35768/events
|
https://github.com/pandas-dev/pandas/issues/35768
| 680,178,696
|
MDU6SXNzdWU2ODAxNzg2OTY=
| 35,768
|
ExtensionBlock.take_nd crashes in 1.1.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2793551?v=4",
"events_url": "https://api.github.com/users/vmarkovtsev/events{/privacy}",
"followers_url": "https://api.github.com/users/vmarkovtsev/followers",
"following_url": "https://api.github.com/users/vmarkovtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/vmarkovtsev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vmarkovtsev",
"id": 2793551,
"login": "vmarkovtsev",
"node_id": "MDQ6VXNlcjI3OTM1NTE=",
"organizations_url": "https://api.github.com/users/vmarkovtsev/orgs",
"received_events_url": "https://api.github.com/users/vmarkovtsev/received_events",
"repos_url": "https://api.github.com/users/vmarkovtsev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vmarkovtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vmarkovtsev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vmarkovtsev"
}
|
[
{
"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 | 7
| 2020-08-17T11:57:26Z
| 2021-01-11T13:24:25Z
| 2020-08-17T17:09:53Z
|
NONE
| null |
https://github.com/pandas-dev/pandas/blob/934e9f840ebd2e8b5a5181b19a23e033bd3985a5/pandas/core/internals/blocks.py#L1718
I've got `self.values` of type `pd.Series` with `pd.Timestamp`-s, and that does not have `fill_value` and `allow_fill`, so the kwargs check fails.
```
athenian/api/controllers/miners/github/branches.py:34: in extract_branches
for repo, repo_branches in branches.groupby(Branch.repository_full_name.key, sort=False):
/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/ops.py:133: in get_iterator
for key, (i, group) in zip(keys, splitter):
/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/ops.py:935: in __iter__
sdata = self._get_sorted_data()
/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/ops.py:948: in _get_sorted_data
return self.data.take(self.sort_idx, axis=self.axis)
/usr/local/lib/python3.8/dist-packages/pandas/core/generic.py:3341: in take
new_data = self._mgr.take(
/usr/local/lib/python3.8/dist-packages/pandas/core/internals/managers.py:1414: in take
return self.reindex_indexer(
/usr/local/lib/python3.8/dist-packages/pandas/core/internals/managers.py:1251: in reindex_indexer
new_blocks = [
/usr/local/lib/python3.8/dist-packages/pandas/core/internals/managers.py:1252: in <listcomp>
blk.take_nd(
/usr/local/lib/python3.8/dist-packages/pandas/core/internals/blocks.py:1720: in take_nd
new_values = self.values.take(indexer, fill_value=fill_value, allow_fill=True)
/usr/local/lib/python3.8/dist-packages/pandas/core/series.py:829: in take
nv.validate_take(tuple(), kwargs)
/usr/local/lib/python3.8/dist-packages/pandas/compat/numpy/function.py:68: in __call__
validate_kwargs(fname, kwargs, self.defaults)
/usr/local/lib/python3.8/dist-packages/pandas/util/_validators.py:148: in validate_kwargs
_check_for_invalid_keys(fname, kwargs, compat_args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
fname = 'take', kwargs = {'allow_fill': True, 'fill_value': numpy.datetime64('NaT')}, compat_args = OrderedDict([('out', None), ('mode', 'raise')])
def _check_for_invalid_keys(fname, kwargs, compat_args):
"""
Checks whether 'kwargs' contains any keys that are not
in 'compat_args' and raises a TypeError if there is one.
"""
# set(dict) --> set of the dictionary's keys
diff = set(kwargs) - set(compat_args)
if diff:
bad_arg = list(diff)[0]
> raise TypeError(f"{fname}() got an unexpected keyword argument '{bad_arg}'")
E TypeError: take() got an unexpected keyword argument 'allow_fill'
/usr/local/lib/python3.8/dist-packages/pandas/util/_validators.py:122: TypeError
```
```
(Pdb++) self.values
0 2019-11-01 09:08:16+00:00
1 2017-01-30 18:04:00+00:00
2 2016-12-05 10:59:00+00:00
3 2019-05-16 11:16:00+00:00
Name: commit_date, dtype: datetime64[ns, UTC]
```
It appeared due to
```
-> fc.replace(0, pd.NaT, inplace=True)
[50] /usr/local/lib/python3.8/dist-packages/pandas/core/series.py(4563)replace()
-> return super().replace(
[51] /usr/local/lib/python3.8/dist-packages/pandas/core/generic.py(6583)replace()
-> return self._update_inplace(result)
[52] /usr/local/lib/python3.8/dist-packages/pandas/core/generic.py(3955)_update_inplace()
-> self._maybe_update_cacher(verify_is_copy=verify_is_copy)
[53] /usr/local/lib/python3.8/dist-packages/pandas/core/generic.py(3235)_maybe_update_cacher()
-> ref._maybe_cache_changed(cacher[0], self)
[54] /usr/local/lib/python3.8/dist-packages/pandas/core/generic.py(3196)_maybe_cache_changed()
-> self._mgr.iset(loc, value)
[55] /usr/local/lib/python3.8/dist-packages/pandas/core/internals/managers.py(1066)iset()
-> blk.set(blk_locs, value_getitem(val_locs))
[56] > /usr/local/lib/python3.8/dist-packages/pandas/core/internals/blocks.py(1593)set()
-> self.values = 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/35768/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35768/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35769
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35769/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35769/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35769/events
|
https://github.com/pandas-dev/pandas/pull/35769
| 680,227,798
|
MDExOlB1bGxSZXF1ZXN0NDY4ODI1NDEx
| 35,769
|
BUG: Raise ValueError instead of bare Exception in sanitize_array
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5473606?v=4",
"events_url": "https://api.github.com/users/micahjsmith/events{/privacy}",
"followers_url": "https://api.github.com/users/micahjsmith/followers",
"following_url": "https://api.github.com/users/micahjsmith/following{/other_user}",
"gists_url": "https://api.github.com/users/micahjsmith/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/micahjsmith",
"id": 5473606,
"login": "micahjsmith",
"node_id": "MDQ6VXNlcjU0NzM2MDY=",
"organizations_url": "https://api.github.com/users/micahjsmith/orgs",
"received_events_url": "https://api.github.com/users/micahjsmith/received_events",
"repos_url": "https://api.github.com/users/micahjsmith/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/micahjsmith/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/micahjsmith/subscriptions",
"type": "User",
"url": "https://api.github.com/users/micahjsmith"
}
|
[
{
"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": "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"
},
{
"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-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"
}
| 8
| 2020-08-17T13:16:03Z
| 2021-01-25T21:15:38Z
| 2020-10-10T16:46:25Z
|
CONTRIBUTOR
| null |
- [x] closes #35744
- [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/35769/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35769/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35769.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35769",
"merged_at": "2020-10-10T16:46:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35769.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35769"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35770
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35770/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35770/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35770/events
|
https://github.com/pandas-dev/pandas/pull/35770
| 680,286,951
|
MDExOlB1bGxSZXF1ZXN0NDY4ODc0NTU1
| 35,770
|
Backport PR #35519 on branch 1.1.x (REF: StringArray._from_sequence, use less memory)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-17T14:38:44Z
| 2020-08-17T15:32:36Z
| 2020-08-17T15:32:36Z
|
NONE
| null |
Backport PR #35519: REF: StringArray._from_sequence, use less memory
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35770/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35770/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35770.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35770",
"merged_at": "2020-08-17T15:32:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35770.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35770"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35771
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35771/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35771/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35771/events
|
https://github.com/pandas-dev/pandas/issues/35771
| 680,325,158
|
MDU6SXNzdWU2ODAzMjUxNTg=
| 35,771
|
BUG: df.replace()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/29553646?v=4",
"events_url": "https://api.github.com/users/wjziv/events{/privacy}",
"followers_url": "https://api.github.com/users/wjziv/followers",
"following_url": "https://api.github.com/users/wjziv/following{/other_user}",
"gists_url": "https://api.github.com/users/wjziv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wjziv",
"id": 29553646,
"login": "wjziv",
"node_id": "MDQ6VXNlcjI5NTUzNjQ2",
"organizations_url": "https://api.github.com/users/wjziv/orgs",
"received_events_url": "https://api.github.com/users/wjziv/received_events",
"repos_url": "https://api.github.com/users/wjziv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wjziv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wjziv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wjziv"
}
|
[
{
"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 |
[] | null | 2
| 2020-08-17T15:31:36Z
| 2020-08-21T17:04:45Z
| 2020-08-17T18:48:03Z
|
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame.from_dict(
{
'a_original': ['w', 'x', 'y', 'z', 'w', 'x', 'y', 'z'],
'a_expected': ['w', 'x', 'y', 'z', 'w', 'x', 'y', 'z'],
'a_result': ['w', 'x', 'y', 'z', 'w', 'x', 'y', 'z'],
'b_original': ['w', 'x', 'y', 'z', 'z', 'y', 'x', 'w'],
'b_expected': ['w', 'x', 'y', 'z', 'z', 'y', 'x', 'w'],
'b_result': ['w', 'x', 'y', 'z', 'z', 'y', 'x', 'w']
}
)
# Produces expectation.
df.replace(
{column: {replace: None for replace in ['x', 'z']} for column in ['a_expected', 'b_expected']},
inplace=True
)
# Does not produce expectation.
df.replace(
{column: ['x', 'z'] for column in ['a_result', 'b_result']},
{column: None for column in ['a_result', 'b_result']},
inplace=True
)
>>
a_original a_expected a_result b_original b_expected b_result
0 w w w w w w
1 x None w x None w
2 y y y y y y
3 z None y z None y
4 w w w z None y
5 x None w y y y
6 y y y x None y
7 z None y w w w
```
#### Problem description
`df.replace()` has multiple ways to define which values in which columns ought to be replaced. I expected the two uses of `df.replace()` above to be equivalent, but the second does not replace the values "x" and "z" in the declared columns with `None`. Instead, some form of filling/padding is used.
#### Expected Output
The second instance of `df.replace()` should be the same as the first; all instances of "x" and "z" should be replaced with `None`, but there seems to be a default usage of `method` underneath; this result remains the case, no matter what is entered into `method`.
#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.112+
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.5
numpy : 1.18.5
pytz : 2018.9
dateutil : 2.8.1
pip : 19.3.1
setuptools : 49.2.0
Cython : 0.29.21
pytest : 3.6.4
hypothesis : None
sphinx : 1.8.5
blosc : None
feather : 0.4.1
xlsxwriter : 1.3.3
lxml.etree : 4.2.6
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.7.6.1 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 5.5.0
pandas_datareader: 0.8.1
bs4 : 4.6.3
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : 4.2.6
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 2.5.9
pandas_gbq : 0.11.0
pyarrow : 1.0.0
pytables : None
pytest : 3.6.4
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.18
tables : 3.4.4
tabulate : 0.8.7
xarray : 0.15.1
xlrd : 1.1.0
xlwt : 1.3.0
xlsxwriter : 1.3.3
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/35771/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35771/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35772
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35772/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35772/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35772/events
|
https://github.com/pandas-dev/pandas/pull/35772
| 680,432,555
|
MDExOlB1bGxSZXF1ZXN0NDY4OTkyOTI1
| 35,772
|
CI: close sockets in SQL 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": "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-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-08-17T18:12:28Z
| 2020-08-18T15:46:19Z
| 2020-08-17T20:50:14Z
|
MEMBER
| null |
closes #35660
closes #29514
Broken off from #35711
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35772/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35772/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35772.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35772",
"merged_at": "2020-08-17T20:50:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35772.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35772"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35773
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35773/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35773/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35773/events
|
https://github.com/pandas-dev/pandas/pull/35773
| 680,443,310
|
MDExOlB1bGxSZXF1ZXN0NDY5MDAxNDI2
| 35,773
|
Backport PR #35750 on branch 1.1.x (Pass check_dtype to assert_extension_array_equal)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"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-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-17T18:31:38Z
| 2020-08-17T20:37:01Z
| 2020-08-17T20:37:01Z
|
NONE
| null |
Backport PR #35750: Pass check_dtype to assert_extension_array_equal
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35773/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35773/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35773.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35773",
"merged_at": "2020-08-17T20:37:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35773.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35773"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35774
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35774/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35774/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35774/events
|
https://github.com/pandas-dev/pandas/pull/35774
| 680,473,938
|
MDExOlB1bGxSZXF1ZXN0NDY5MDI2MzE3
| 35,774
|
REGR: follow-up to return copy with df.interpolate on empty DataFrame
|
{
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 5
| 2020-08-17T19:27:18Z
| 2020-08-18T13:06:35Z
| 2020-08-18T12:54:56Z
|
MEMBER
| null |
follow-up to #35543
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35774/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35774/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35774.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35774",
"merged_at": "2020-08-18T12:54:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35774.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35774"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35775
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35775/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35775/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35775/events
|
https://github.com/pandas-dev/pandas/pull/35775
| 680,560,180
|
MDExOlB1bGxSZXF1ZXN0NDY5MDk2NDg3
| 35,775
|
TST: Verify whether read-only datetime64 array can be factorized (35650)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4",
"events_url": "https://api.github.com/users/avinashpancham/events{/privacy}",
"followers_url": "https://api.github.com/users/avinashpancham/followers",
"following_url": "https://api.github.com/users/avinashpancham/following{/other_user}",
"gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avinashpancham",
"id": 44933366,
"login": "avinashpancham",
"node_id": "MDQ6VXNlcjQ0OTMzMzY2",
"organizations_url": "https://api.github.com/users/avinashpancham/orgs",
"received_events_url": "https://api.github.com/users/avinashpancham/received_events",
"repos_url": "https://api.github.com/users/avinashpancham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avinashpancham"
}
|
[
{
"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-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"
}
| 1
| 2020-08-17T22:21:28Z
| 2020-08-26T12:44:51Z
| 2020-08-26T12:44:26Z
|
CONTRIBUTOR
| null |
- [x] closes #35650
- [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/35775/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35775/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35775.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35775",
"merged_at": "2020-08-26T12:44:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35775.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35775"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35776
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35776/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35776/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35776/events
|
https://github.com/pandas-dev/pandas/pull/35776
| 680,568,806
|
MDExOlB1bGxSZXF1ZXN0NDY5MTAzNzc3
| 35,776
|
Changed 'int' type to 'integer' in to_numeric docstring
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33737404?v=4",
"events_url": "https://api.github.com/users/edwardkong/events{/privacy}",
"followers_url": "https://api.github.com/users/edwardkong/followers",
"following_url": "https://api.github.com/users/edwardkong/following{/other_user}",
"gists_url": "https://api.github.com/users/edwardkong/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/edwardkong",
"id": 33737404,
"login": "edwardkong",
"node_id": "MDQ6VXNlcjMzNzM3NDA0",
"organizations_url": "https://api.github.com/users/edwardkong/orgs",
"received_events_url": "https://api.github.com/users/edwardkong/received_events",
"repos_url": "https://api.github.com/users/edwardkong/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/edwardkong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/edwardkong/subscriptions",
"type": "User",
"url": "https://api.github.com/users/edwardkong"
}
|
[
{
"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-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 5
| 2020-08-17T22:44:38Z
| 2020-08-19T13:16:56Z
| 2020-08-19T13:16:42Z
|
CONTRIBUTOR
| null |
- [x] closes #35760
- [ ] 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/35776/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35776/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35776.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35776",
"merged_at": "2020-08-19T13:16:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35776.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35776"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35777
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35777/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35777/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35777/events
|
https://github.com/pandas-dev/pandas/pull/35777
| 680,580,823
|
MDExOlB1bGxSZXF1ZXN0NDY5MTEzOTI1
| 35,777
|
BUG: DataFrame.apply with result_type=reduce incorrect index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 6
| 2020-08-17T23:18:40Z
| 2021-11-20T23:22:44Z
| 2020-08-22T02:04:21Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This may xref #35683 pending discussion there.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35777/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35777/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35777.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35777",
"merged_at": "2020-08-22T02:04:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35777.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35777"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35778
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35778/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35778/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35778/events
|
https://github.com/pandas-dev/pandas/pull/35778
| 680,585,059
|
MDExOlB1bGxSZXF1ZXN0NDY5MTE3NTU4
| 35,778
|
Added numba as an argument
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34067903?v=4",
"events_url": "https://api.github.com/users/erfannariman/events{/privacy}",
"followers_url": "https://api.github.com/users/erfannariman/followers",
"following_url": "https://api.github.com/users/erfannariman/following{/other_user}",
"gists_url": "https://api.github.com/users/erfannariman/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erfannariman",
"id": 34067903,
"login": "erfannariman",
"node_id": "MDQ6VXNlcjM0MDY3OTAz",
"organizations_url": "https://api.github.com/users/erfannariman/orgs",
"received_events_url": "https://api.github.com/users/erfannariman/received_events",
"repos_url": "https://api.github.com/users/erfannariman/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erfannariman/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erfannariman/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erfannariman"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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"
}
| 2
| 2020-08-17T23:30:02Z
| 2020-09-02T08:08:16Z
| 2020-09-01T23:52:09Z
|
CONTRIBUTOR
| null |
- [x] closes #35550
- [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/35778/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35778/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35778.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35778",
"merged_at": "2020-09-01T23:52:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35778.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35778"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35779
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35779/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35779/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35779/events
|
https://github.com/pandas-dev/pandas/issues/35779
| 680,615,545
|
MDU6SXNzdWU2ODA2MTU1NDU=
| 35,779
|
CI: unpin numpy and matplotlib
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] |
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"
}
| 2
| 2020-08-18T01:07:53Z
| 2020-08-19T20:40:05Z
| 2020-08-19T20:40:05Z
|
MEMBER
| null |
revert #35312 and #35358
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35779/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35779/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35780
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35780/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35780/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35780/events
|
https://github.com/pandas-dev/pandas/pull/35780
| 680,616,359
|
MDExOlB1bGxSZXF1ZXN0NDY5MTQyNjY1
| 35,780
|
CI: unpin numpy and matplotlib #35779
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 2
| 2020-08-18T01:10:26Z
| 2020-08-19T21:38:01Z
| 2020-08-19T20:40:05Z
|
MEMBER
| null |
- [x] closes #35779
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35780/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35780/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35780.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35780",
"merged_at": "2020-08-19T20:40:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35780.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35780"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35781
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35781/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35781/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35781/events
|
https://github.com/pandas-dev/pandas/issues/35781
| 680,616,394
|
MDU6SXNzdWU2ODA2MTYzOTQ=
| 35,781
|
BUG: Series.replace doesn't distinguish single and double quotes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2
| 2020-08-18T01:10:35Z
| 2020-08-18T11:18:53Z
| 2020-08-18T11:05:34Z
|
MEMBER
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
If we try to replace the single quotes in a string with double quotes or vice versa using Series.replace it doesn't work (Series.str.replace does):
```python
import pandas as pd
print(pd.__version__)
# 1.2.0.dev0+112.g0d0f53f3c
print(pd.Series([" ' ' "]).replace("'", '"'))
# 0 ' '
# dtype: object
print(pd.Series([" ' ' "]).str.replace("'", '"'))
# 0 " "
# dtype: object
pd.Series([' " " ']).replace('"', "'")
# 0 " "
# dtype: object
pd.Series([' " " ']).str.replace('"', "'")
# 0 ' '
# dtype: object
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35781/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35781/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35782
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35782/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35782/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35782/events
|
https://github.com/pandas-dev/pandas/issues/35782
| 680,629,863
|
MDU6SXNzdWU2ODA2Mjk4NjM=
| 35,782
|
BUG: groupby.apply() unexpectedly returns DataFrame when Series is explicitly specified
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/134209?v=4",
"events_url": "https://api.github.com/users/kartiksubbarao/events{/privacy}",
"followers_url": "https://api.github.com/users/kartiksubbarao/followers",
"following_url": "https://api.github.com/users/kartiksubbarao/following{/other_user}",
"gists_url": "https://api.github.com/users/kartiksubbarao/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kartiksubbarao",
"id": 134209,
"login": "kartiksubbarao",
"node_id": "MDQ6VXNlcjEzNDIwOQ==",
"organizations_url": "https://api.github.com/users/kartiksubbarao/orgs",
"received_events_url": "https://api.github.com/users/kartiksubbarao/received_events",
"repos_url": "https://api.github.com/users/kartiksubbarao/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kartiksubbarao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kartiksubbarao/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kartiksubbarao"
}
|
[
{
"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": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
open
| false
| null |
[] | null | 2
| 2020-08-18T01:55:34Z
| 2020-09-03T01:15:35Z
| null |
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
def calcscore(df):
return pd.Series([[','.join(df.item), df.score.sum()]], index=pd.Index([df.index[0]]))
df = pd.DataFrame(columns=['time', 'item', 'param', 'score'],
data=[[1, 'N1', 10, 100],
[1, 'N2', 20, 150],
[2, 'N3', 70, 300]])
for p in [5, 50]:
s = df[df.param > p].groupby('time', group_keys=False).apply(calcscore)
print(type(s))
print(s.to_list())
```
#### Problem description
I'm looping through a dataframe, selectively filtering by varying values for a `param` column and returning aggregated data based on that filtering (the actual code is more complex). I'm intentionally returning a Series object from the apply function since I've benchmarked it to be faster than returning a DataFrame. The problem is that sometimes, a DataFrame is unexpectedly returned by the apply function instead of the Series object that I explicitly returned. This seems to happen when the Series object has only one row. Here is the unexpected output that I'm seeing:
```
<class 'pandas.core.series.Series'>
[['N1,N2', 250], ['N3', 300]]
<class 'pandas.core.frame.DataFrame'>
Traceback (most recent call last):
File "/tmp/applytest.py", line 22, in <module>
print(s.to_list())
File "/usr/lib64/python3.8/site-packages/pandas/core/generic.py", line 5130, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'to_list'
```
#### Expected Output
```
<class 'pandas.core.series.Series'>
[['N1,N2', 250], ['N3', 300]]
<class 'pandas.core.series.Series'>
[['N3', 300]]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.7.11-200.fc32.x86_64
Version : #1 SMP Wed Jul 29 17:15:52 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.0
pip : 19.3.1
setuptools : 41.6.0
Cython : 0.29.14
pytest : None
hypothesis : None
sphinx : 3.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.12.0
pandas_datareader: 0.9.0
bs4 : 4.9.1
bottleneck : None
fsspec : None
fastparquet : 0.4.1
gcsfs : None
matplotlib : 3.3.0
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
numba : 0.50.1
</details>
|
{
"+1": 4,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 4,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35782/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35782/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35783
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35783/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35783/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35783/events
|
https://github.com/pandas-dev/pandas/pull/35783
| 680,673,365
|
MDExOlB1bGxSZXF1ZXN0NDY5MTg3MjE3
| 35,783
|
CLN: remove unused variable
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 1
| 2020-08-18T04:08:03Z
| 2020-08-18T15:49:35Z
| 2020-08-18T13:05:30Z
|
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/35783/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35783/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35783.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35783",
"merged_at": "2020-08-18T13:05:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35783.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35783"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/35784
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35784/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35784/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35784/events
|
https://github.com/pandas-dev/pandas/pull/35784
| 680,719,921
|
MDExOlB1bGxSZXF1ZXN0NDY5MjI2MTYw
| 35,784
|
DOC: Updated docstring for Series.str.cat (pandas-dev#35556)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5001953?v=4",
"events_url": "https://api.github.com/users/souris-dev/events{/privacy}",
"followers_url": "https://api.github.com/users/souris-dev/followers",
"following_url": "https://api.github.com/users/souris-dev/following{/other_user}",
"gists_url": "https://api.github.com/users/souris-dev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/souris-dev",
"id": 5001953,
"login": "souris-dev",
"node_id": "MDQ6VXNlcjUwMDE5NTM=",
"organizations_url": "https://api.github.com/users/souris-dev/orgs",
"received_events_url": "https://api.github.com/users/souris-dev/received_events",
"repos_url": "https://api.github.com/users/souris-dev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/souris-dev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/souris-dev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/souris-dev"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] |
closed
| false
| null |
[] | null | 6
| 2020-08-18T06:01:25Z
| 2020-12-11T05:01:54Z
| 2020-12-11T05:01:54Z
|
CONTRIBUTOR
| null |
- [X] closes #35556
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I have updated the docstring for `Series.str.cat` to make the issue in #35556 more explicit to the user.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35784/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35784/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35784.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35784",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/35784.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35784"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35785
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35785/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35785/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35785/events
|
https://github.com/pandas-dev/pandas/issues/35785
| 680,763,961
|
MDU6SXNzdWU2ODA3NjM5NjE=
| 35,785
|
BUG: pivot broken on the latest version 1.1.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22256154?v=4",
"events_url": "https://api.github.com/users/WindSoilder/events{/privacy}",
"followers_url": "https://api.github.com/users/WindSoilder/followers",
"following_url": "https://api.github.com/users/WindSoilder/following{/other_user}",
"gists_url": "https://api.github.com/users/WindSoilder/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WindSoilder",
"id": 22256154,
"login": "WindSoilder",
"node_id": "MDQ6VXNlcjIyMjU2MTU0",
"organizations_url": "https://api.github.com/users/WindSoilder/orgs",
"received_events_url": "https://api.github.com/users/WindSoilder/received_events",
"repos_url": "https://api.github.com/users/WindSoilder/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WindSoilder/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WindSoilder/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WindSoilder"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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"
}
] |
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"
}
| 8
| 2020-08-18T07:28:16Z
| 2021-08-17T07:58:26Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
import pandas as pd
from datetime import datetime
df = pd.DataFrame.from_records([{"date": datetime(2016, 3, 2), "col1": 1, "col2": 2}], index=["date"])
df.pivot(index=df.index, columns="col1")
```
#### Problem description
The exmple code raise a `KeyError`:
```python
KeyError: "None of [Timestamp('2016-03-02 00:00:00')] are in the columns"
```
It works on version `1.0.5`
#### Expected Output
The output is something like this in version `1.0.5`

#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.7.final.0
python-bits : 64
OS : Darwin
OS-release : 19.4.0
Version : Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : zh_CN.UTF-8
LOCALE : zh_CN.UTF-8
pandas : 1.1.0
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 47.3.0.post20200616
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : 0.10.0
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 1.3.18
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : 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/35785/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35785/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35786
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35786/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35786/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35786/events
|
https://github.com/pandas-dev/pandas/issues/35786
| 680,981,283
|
MDU6SXNzdWU2ODA5ODEyODM=
| 35,786
|
ENH: round(inplace=True)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/55878267?v=4",
"events_url": "https://api.github.com/users/Peters-D/events{/privacy}",
"followers_url": "https://api.github.com/users/Peters-D/followers",
"following_url": "https://api.github.com/users/Peters-D/following{/other_user}",
"gists_url": "https://api.github.com/users/Peters-D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Peters-D",
"id": 55878267,
"login": "Peters-D",
"node_id": "MDQ6VXNlcjU1ODc4MjY3",
"organizations_url": "https://api.github.com/users/Peters-D/orgs",
"received_events_url": "https://api.github.com/users/Peters-D/received_events",
"repos_url": "https://api.github.com/users/Peters-D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Peters-D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Peters-D/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Peters-D"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 2
| 2020-08-18T11:55:05Z
| 2020-08-18T13:26:51Z
| 2020-08-18T13:26:42Z
|
NONE
| null |
#### Is your feature request related to a problem?
I frequently round numerical columns in my dataframe to two decimals using `pandas.DataFrame.round`. I would like to do this inplace, since it will make code simpler and presumable less prone to errors.
#### Describe the solution you'd like
`DataFrame.round` should get a new argument `inplace` such that if `True` the operation is done inplace. I think `DataFrame.apply` could also improve from this enhancement.
#### Example code
```python
import pandas as pd
import numpy as np
df = pd.DataFrame({"foo": [1.11, 2.22, 3.33, 4.44, 5.55],
"bar": [6.66, 7.77, 8.88, 9.99, np.nan]})
# e.g. dropna() works with inplace
df.dropna(inplace=True)
# but round() does not
df["foo"] = df["foo"].round(1)
# I would like a feature like:
df["foo"].round(1, inplace=True) # does not run
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35786/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35786/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35787
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35787/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35787/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35787/events
|
https://github.com/pandas-dev/pandas/pull/35787
| 680,992,287
|
MDExOlB1bGxSZXF1ZXN0NDY5NDU3NTE4
| 35,787
|
DOC: clean v1.1.1 release notes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 3
| 2020-08-18T12:12:49Z
| 2020-08-19T09:52:45Z
| 2020-08-19T09:48:42Z
|
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/35787/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35787/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35787.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35787",
"merged_at": "2020-08-19T09:48:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35787.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35787"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/35788
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35788/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35788/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35788/events
|
https://github.com/pandas-dev/pandas/issues/35788
| 681,018,225
|
MDU6SXNzdWU2ODEwMTgyMjU=
| 35,788
|
BUG: Series.groupby returns an error if index is float and size is >= 1000000
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14150204?v=4",
"events_url": "https://api.github.com/users/MarcosCarreira/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcosCarreira/followers",
"following_url": "https://api.github.com/users/MarcosCarreira/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcosCarreira/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcosCarreira",
"id": 14150204,
"login": "MarcosCarreira",
"node_id": "MDQ6VXNlcjE0MTUwMjA0",
"organizations_url": "https://api.github.com/users/MarcosCarreira/orgs",
"received_events_url": "https://api.github.com/users/MarcosCarreira/received_events",
"repos_url": "https://api.github.com/users/MarcosCarreira/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcosCarreira/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcosCarreira/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcosCarreira"
}
|
[
{
"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": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 1
| 2020-08-18T12:53:17Z
| 2020-09-01T01:20:41Z
| 2020-09-01T01:20:41Z
|
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```
# Imports
import numpy as np
import pandas as pd
# Values
nsteps = 5*10**6
sv = np.random.normal(loc=100.0, scale=1.0, size=nsteps+1)
# Series with int index
se = pd.Series(sv)
# Series with float index
flind = np.arange(nsteps+1)/nsteps
sef = pd.Series(sv, index=flind)
# Group with int index works
seg = se.groupby(level=0).last()
# Group with float index and size<1000000 works
sefg = sef.iloc[:999999].groupby(level=0).last()
# Group with float index and size>=1000000 doesn't work
sefg2 = sef.iloc[:1000000].groupby(level=0).last()
```
#### Problem description
Series.groupby returns an error if index is float and size is >= 1000000 (no problem with this size if index is int):
File "pandas/_libs/index.pyx", line 345, in pandas._libs.index._bin_search
TypeError: '<' not supported between instances of 'float' and 'NoneType'

#### Expected Output
sefg2 should be similar to sefg (with one additional row)


#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.7.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.1.0.post20200704
Cython : None
pytest : 5.4.3
hypothesis : None
sphinx : 3.1.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.17.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.0
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.2
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.50.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/35788/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35788/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35789
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35789/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35789/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35789/events
|
https://github.com/pandas-dev/pandas/pull/35789
| 681,027,141
|
MDExOlB1bGxSZXF1ZXN0NDY5NDg2MjI0
| 35,789
|
Backport PR #35774 on branch 1.1.x (REGR: follow-up to return copy with df.interpolate on empty DataFrame)
|
{
"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": "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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-18T13:06:29Z
| 2020-08-18T14:12:20Z
| 2020-08-18T14:12:19Z
|
NONE
| null |
Backport PR #35774: REGR: follow-up to return copy with df.interpolate on empty 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/35789/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35789/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35789.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35789",
"merged_at": "2020-08-18T14:12:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35789.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35789"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35790
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35790/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35790/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35790/events
|
https://github.com/pandas-dev/pandas/issues/35790
| 681,131,216
|
MDU6SXNzdWU2ODExMzEyMTY=
| 35,790
|
QST: need to refactor pandas/io/formats/latex.py?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/41443370?v=4",
"events_url": "https://api.github.com/users/ivanovmg/events{/privacy}",
"followers_url": "https://api.github.com/users/ivanovmg/followers",
"following_url": "https://api.github.com/users/ivanovmg/following{/other_user}",
"gists_url": "https://api.github.com/users/ivanovmg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ivanovmg",
"id": 41443370,
"login": "ivanovmg",
"node_id": "MDQ6VXNlcjQxNDQzMzcw",
"organizations_url": "https://api.github.com/users/ivanovmg/orgs",
"received_events_url": "https://api.github.com/users/ivanovmg/received_events",
"repos_url": "https://api.github.com/users/ivanovmg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ivanovmg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ivanovmg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ivanovmg"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
}
] |
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"
}
| 2
| 2020-08-18T15:25:44Z
| 2020-09-08T07:01:19Z
| 2020-09-08T07:01:19Z
|
MEMBER
| null |
#### Refactoring
Recently ``pandas/io/formats/latex.py`` undertook some updates and extension of it functionality.
Adding more into it led to some code smell.
Recently there was a refactoring done by @SylvainLan, PR https://github.com/pandas-dev/pandas/pull/35649.
Even after that I see some improvements that can be done.
1. Split the process of writing the table into the beginning of the environment, the body and end of the environment.
2. Implement polymorphism to smoothly handle transition from regular table to longtable (currently there are multiple ifs here and there).
I made some changes in the local branch (not in sync with master because of the recent refactoring).
See https://github.com/ivanovmg/pandas/tree/refactor/latex-formatting for the preliminary solution.
Would you be interested in following this direction?
If so, then I would make it in sync with master and continue improvements.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35790/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35790/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35791
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35791/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35791/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35791/events
|
https://github.com/pandas-dev/pandas/issues/35791
| 681,261,019
|
MDU6SXNzdWU2ODEyNjEwMTk=
| 35,791
|
BUG: failing test for pyarrow/s3fs on windows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6042212?v=4",
"events_url": "https://api.github.com/users/martindurant/events{/privacy}",
"followers_url": "https://api.github.com/users/martindurant/followers",
"following_url": "https://api.github.com/users/martindurant/following{/other_user}",
"gists_url": "https://api.github.com/users/martindurant/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/martindurant",
"id": 6042212,
"login": "martindurant",
"node_id": "MDQ6VXNlcjYwNDIyMTI=",
"organizations_url": "https://api.github.com/users/martindurant/orgs",
"received_events_url": "https://api.github.com/users/martindurant/received_events",
"repos_url": "https://api.github.com/users/martindurant/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/martindurant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/martindurant/subscriptions",
"type": "User",
"url": "https://api.github.com/users/martindurant"
}
|
[
{
"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 |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 2
| 2020-08-18T18:56:39Z
| 2020-08-25T09:47:48Z
| 2020-08-25T09:47:47Z
|
CONTRIBUTOR
| null |
- [ ] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```
FAILED pandas/tests/io/test_parquet.py::TestParquetPyArrow::test_s3_roundtrip_for_dir[partition_col0]
```
#### Problem description
See build https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=40576&view=logs&jobId=404760ec-14d3-5d48-e580-13034792878f&j=404760ec-14d3-5d48-e580-13034792878f&t=f81e4cc8-d61a-5fb8-36be-36768e5c561a
env:
```
pyarrow 1.0.0
botocore 1.17.44
fsspec 0.8.0
moto 1.3.14
s3fs 0.4.2
```
I do not know the cause of this problem, but it appears in https://github.com/pandas-dev/pandas/pull/35655 and also for the original code, so skipping it on win for now.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35791/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35791/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35792
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35792/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35792/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35792/events
|
https://github.com/pandas-dev/pandas/pull/35792
| 681,365,263
|
MDExOlB1bGxSZXF1ZXN0NDY5NzY2MzU3
| 35,792
|
CLN/BUG: Clean/Simplify _wrap_applied_output
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"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 |
[] |
{
"closed_at": "2020-10-31T15:14:04Z",
"closed_issues": 94,
"created_at": "2020-09-26T01:36:01Z",
"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.1.x",
"due_on": "2020-10-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/78",
"id": 5919858,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78/labels",
"node_id": "MDk6TWlsZXN0b25lNTkxOTg1OA==",
"number": 78,
"open_issues": 0,
"state": "closed",
"title": "1.1.4",
"updated_at": "2020-11-25T22:43:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/78"
}
| 13
| 2020-08-18T21:54:42Z
| 2020-10-26T15:42:17Z
| 2020-08-26T03:21:44Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
First part of #35412. I could not find a relevant issue for the test change/whatsnew update.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35792/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35792/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35792.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35792",
"merged_at": "2020-08-26T03:21:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35792.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35792"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35793
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35793/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35793/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35793/events
|
https://github.com/pandas-dev/pandas/issues/35793
| 681,384,046
|
MDU6SXNzdWU2ODEzODQwNDY=
| 35,793
|
BUG: is_categorical_dtype returns False for Sparse[category, nan]
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "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"
}
] |
open
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 3
| 2020-08-18T22:39:30Z
| 2021-08-10T04:44:46Z
| null |
NONE
| null |
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
from pandas.api.types import is_categorical_dtype
s = pd.Series(
["a", "b", "c", "a", "b", "c"],
dtype=pd.SparseDtype(pd.CategoricalDtype(['a', 'b', 'c']))
)
print(s.dtype)
# out: Sparse[category, nan]
print(is_categorical_dtype(s))
# out: False
```
#### Problem description
The `is_categorical_dtype` function returns `False` when sparse. This is inconsistent with other types (example for unsigned integer below).
```python
from pandas.api.types import is_unsigned_integer_dtype
s = pd.Series(
[0, 1, 2, 3],
name="pd_unsigned_integer",
dtype=pd.SparseDtype(pd.UInt8Dtype(), pd.NA)
)
print(s.dtype)
# out: Sparse[UInt8, <NA>]
print(is_unsigned_integer_dtype(s))
# out: True
```
```python
s = pd.Series(
["a", "b", "c", "a", "b", "c"],
dtype=pd.CategoricalDtype(['a', 'b', 'c'])
)
print(s.dtype)
# out: category
print(is_categorical_dtype(s))
# out: True
```
#### Expected Output
```python
print(is_categorical_dtype(s))
# out: True
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 19.3.1
setuptools : 45.0.0.post20200113
Cython : None
pytest : 5.3.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.1.2
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.47.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35793/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35793/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35794
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35794/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35794/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35794/events
|
https://github.com/pandas-dev/pandas/pull/35794
| 681,391,468
|
MDExOlB1bGxSZXF1ZXN0NDY5Nzg3Nzc2
| 35,794
|
BUG: issubclass check with dtype instead of type, closes GH#24883
|
{
"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": "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-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 6
| 2020-08-18T23:00:56Z
| 2020-08-27T09:18:49Z
| 2020-08-21T21:53:51Z
|
MEMBER
| null |
- [x] closes #24883
- [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/35794/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35794/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35794.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35794",
"merged_at": "2020-08-21T21:53:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35794.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35794"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35795
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35795/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35795/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35795/events
|
https://github.com/pandas-dev/pandas/issues/35795
| 681,399,732
|
MDU6SXNzdWU2ODEzOTk3MzI=
| 35,795
|
BUG: pd.DataFrame.astype for SparseDtype with different fill_value results in data loss
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14072154?v=4",
"events_url": "https://api.github.com/users/shengpu1126/events{/privacy}",
"followers_url": "https://api.github.com/users/shengpu1126/followers",
"following_url": "https://api.github.com/users/shengpu1126/following{/other_user}",
"gists_url": "https://api.github.com/users/shengpu1126/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shengpu1126",
"id": 14072154,
"login": "shengpu1126",
"node_id": "MDQ6VXNlcjE0MDcyMTU0",
"organizations_url": "https://api.github.com/users/shengpu1126/orgs",
"received_events_url": "https://api.github.com/users/shengpu1126/received_events",
"repos_url": "https://api.github.com/users/shengpu1126/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shengpu1126/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shengpu1126/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shengpu1126"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"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 | 3
| 2020-08-18T23:24:47Z
| 2020-08-25T12:11:28Z
| null |
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame([[1,1,1,1,0,1]]).T
sdf1 = df.astype(pd.SparseDtype(int, fill_value=1))
sdf2 = sdf1.astype(pd.SparseDtype(int, fill_value=0))
sdf3 = sdf1.astype('Sparse[int]')
print(sdf1)
print(sdf2)
print(sdf3)
```
Output:
```python
>>> print(sdf1)
0
0 1
1 1
2 1
3 1
4 0
5 1
>>> print(sdf2)
0
0 0
1 0
2 0
3 0
4 0
5 0
>>> print(sdf3)
0
0 0
1 0
2 0
3 0
4 0
5 0
```
#### Expected Output
```python
>>> print(sdf1)
0
0 1
1 1
2 1
3 1
4 0
5 1
>>> print(sdf2)
0
0 1
1 1
2 1
3 1
4 0
5 1
>>> print(sdf3)
0
0 1
1 1
2 1
3 1
4 0
5 1
```
#### Problem description
Performing `astype` operation should not change the data in the dataframe. Currently doing `astype` on a dataframe containing sparse columns to a `SparseDtype` with a different `fill_value` results in data loss, e.g. everything becomes 0 for sparse ints. I believe similar phenomenon might exist for other sparse dtypes but have not tested that.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-179-generic
Version : #209-Ubuntu SMP Fri Apr 24 17:48:44 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.2.2
setuptools : 46.1.3
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 : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.15
tables : 3.6.1
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.49.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/35795/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35795/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35796
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35796/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35796/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35796/events
|
https://github.com/pandas-dev/pandas/issues/35796
| 681,454,183
|
MDU6SXNzdWU2ODE0NTQxODM=
| 35,796
|
ENH:dataframe columns dropping with column names case-insensitive
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/28680638?v=4",
"events_url": "https://api.github.com/users/rmsmani/events{/privacy}",
"followers_url": "https://api.github.com/users/rmsmani/followers",
"following_url": "https://api.github.com/users/rmsmani/following{/other_user}",
"gists_url": "https://api.github.com/users/rmsmani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rmsmani",
"id": 28680638,
"login": "rmsmani",
"node_id": "MDQ6VXNlcjI4NjgwNjM4",
"organizations_url": "https://api.github.com/users/rmsmani/orgs",
"received_events_url": "https://api.github.com/users/rmsmani/received_events",
"repos_url": "https://api.github.com/users/rmsmani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rmsmani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rmsmani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rmsmani"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] |
closed
| false
| null |
[] | null | 7
| 2020-08-19T00:25:03Z
| 2020-08-23T13:50:19Z
| 2020-08-23T13:50:13Z
|
NONE
| null |
#### Is your feature request related to a problem?
NO
#### Describe the solution you'd like
Currently the data frame columns are case-sensitive, when we try to drop the column with different case, the error is thrown.
My suggestion is to have one more option like ignorecase as boolean, if the flag is true, then drop the column if the name satisifies
#### API breaking implications
[this should provide a description of how this feature will affect the API]
#### Describe alternatives you've considered
[this should provide a description of any alternative solutions or features you've considered]
Currently, changing the both the dataframe column and the drop column to lower case and delete it.
#### Additional context
Its good to have feature..
```python
# Your code here, if applicable
import io
import pandas as pd
source = io.StringIO("""col1, col2,col3
1,2,3
""")
df = pd.read_csv(source)
print (df)
df = df.drop("COL3", axis=1)
print(df)
col1 col2 col3
0 1 2 3
Error
File "test/test.py", line 16, in <module>
df = df.drop("COL3", axis=1)
KeyError: "['COL3'] not found in axis"
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35796/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35796/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35797
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35797/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35797/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35797/events
|
https://github.com/pandas-dev/pandas/pull/35797
| 681,468,537
|
MDExOlB1bGxSZXF1ZXN0NDY5ODU4ODcx
| 35,797
|
BUG: Fix is_categorical_dtype for Sparse[category]
|
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"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 |
[] | null | 11
| 2020-08-19T00:45:44Z
| 2020-09-19T16:39:42Z
| 2020-09-19T16:39:38Z
|
MEMBER
| null |
- [x] closes #35793
- [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/35797/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35797/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35797.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35797",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/35797.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35797"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35798
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35798/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35798/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35798/events
|
https://github.com/pandas-dev/pandas/pull/35798
| 681,504,203
|
MDExOlB1bGxSZXF1ZXN0NDY5ODg3MDAx
| 35,798
|
Bump asv Python version
|
{
"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": "ae68cc",
"default": false,
"description": "Performance (ASV) benchmarks",
"id": 732775912,
"name": "Benchmark",
"node_id": "MDU6TGFiZWw3MzI3NzU5MTI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark"
}
] |
closed
| false
| null |
[] |
{
"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"
}
| 5
| 2020-08-19T02:45:00Z
| 2020-08-26T17:06:12Z
| 2020-08-26T13:57:41Z
|
MEMBER
| null |
Got this error trying to run the asvs locally and bumping the Python version in asv.conf.json fixed it:
```
STDOUT -------->
Processing /Users/danielsaxton/pandas/asv_bench/env/a36d556a9d1611aba4092dc48036d261/project
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
STDERR -------->
ERROR: Package 'pandas' requires a different Python: 3.6.10 not in '>=3.7.1'
```
Let me know if this is needed / correct in general or if it was just a thing with my machine.
cc @TomAugspurger
Closes https://github.com/pandas-dev/pandas/issues/34677
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35798/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35798/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35798.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35798",
"merged_at": "2020-08-26T13:57:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35798.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35798"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35799
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35799/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35799/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35799/events
|
https://github.com/pandas-dev/pandas/pull/35799
| 681,644,333
|
MDExOlB1bGxSZXF1ZXN0NDcwMDAwOTAy
| 35,799
|
TST: resample does not yield empty groups (#10603)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/60312218?v=4",
"events_url": "https://api.github.com/users/tkmz-n/events{/privacy}",
"followers_url": "https://api.github.com/users/tkmz-n/followers",
"following_url": "https://api.github.com/users/tkmz-n/following{/other_user}",
"gists_url": "https://api.github.com/users/tkmz-n/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tkmz-n",
"id": 60312218,
"login": "tkmz-n",
"node_id": "MDQ6VXNlcjYwMzEyMjE4",
"organizations_url": "https://api.github.com/users/tkmz-n/orgs",
"received_events_url": "https://api.github.com/users/tkmz-n/received_events",
"repos_url": "https://api.github.com/users/tkmz-n/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tkmz-n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tkmz-n/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tkmz-n"
}
|
[
{
"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"
},
{
"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 |
[] |
{
"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"
}
| 2
| 2020-08-19T08:19:44Z
| 2020-08-21T22:42:56Z
| 2020-08-21T22:42:51Z
|
CONTRIBUTOR
| null |
- [x] closes #10603
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This adds a test to verify that resample does not yield empty groups.
I'm new to contributing to pandas, and I'm not sure where to add this test.
Let me know if this place is inappropriate.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35799/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35799/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35799.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35799",
"merged_at": "2020-08-21T22:42:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35799.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35799"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35800
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35800/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35800/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35800/events
|
https://github.com/pandas-dev/pandas/pull/35800
| 681,704,118
|
MDExOlB1bGxSZXF1ZXN0NDcwMDUwMjgz
| 35,800
|
Backport PR #35787 on branch 1.1.x (DOC: clean v1.1.1 release notes)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-19T09:49:44Z
| 2020-08-19T11:34:40Z
| 2020-08-19T11:34:40Z
|
NONE
| null |
Backport PR #35787: DOC: clean v1.1.1 release notes
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35800/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35800/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35800.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35800",
"merged_at": "2020-08-19T11:34:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35800.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35800"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35801
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35801/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35801/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35801/events
|
https://github.com/pandas-dev/pandas/pull/35801
| 681,800,035
|
MDExOlB1bGxSZXF1ZXN0NDcwMTMxMjY5
| 35,801
|
DOC: another pass of v1.1.1 release notes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 2
| 2020-08-19T12:27:32Z
| 2020-08-20T15:07:07Z
| 2020-08-20T15:05:47Z
|
MEMBER
| null |
https://pandas.pydata.org/docs/dev/whatsnew/v1.1.1.html
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35801/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35801/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35801.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35801",
"merged_at": "2020-08-20T15:05:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35801.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35801"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35802
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35802/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35802/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35802/events
|
https://github.com/pandas-dev/pandas/issues/35802
| 681,817,324
|
MDU6SXNzdWU2ODE4MTczMjQ=
| 35,802
|
BUG: Was trying to read an ods file and ran into UnboundLocalError in odfreader.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1618221?v=4",
"events_url": "https://api.github.com/users/taksuyu/events{/privacy}",
"followers_url": "https://api.github.com/users/taksuyu/followers",
"following_url": "https://api.github.com/users/taksuyu/following{/other_user}",
"gists_url": "https://api.github.com/users/taksuyu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/taksuyu",
"id": 1618221,
"login": "taksuyu",
"node_id": "MDQ6VXNlcjE2MTgyMjE=",
"organizations_url": "https://api.github.com/users/taksuyu/orgs",
"received_events_url": "https://api.github.com/users/taksuyu/received_events",
"repos_url": "https://api.github.com/users/taksuyu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/taksuyu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/taksuyu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/taksuyu"
}
|
[
{
"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"
},
{
"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 |
[] |
{
"closed_at": "2020-10-05T18:41:57Z",
"closed_issues": 106,
"created_at": "2020-09-07T09:13:14Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-29T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/77",
"id": 5850626,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77/labels",
"node_id": "MDk6TWlsZXN0b25lNTg1MDYyNg==",
"number": 77,
"open_issues": 0,
"state": "closed",
"title": "1.1.3",
"updated_at": "2020-10-29T13:15:36Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/77"
}
| 8
| 2020-08-19T12:54:55Z
| 2020-10-07T07:09:27Z
| 2020-09-13T22:57:45Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
for file in os.listdir('data'): pandas.read_excel(pathlib.Path('data', file), engine='odf')
```
Sorry I don't have a minimal data example at this time.
#### Problem description
Was trying to test pandas reading a collection of ods files and ran into this error.
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/michael/.local/share/virtualenvs/merge-csv-NFbvYFrS/lib/python3.8/site-packages/pandas/util/_decorators.py", line 296, in wrapper
return func(*args, **kwargs)
File "/home/michael/.local/share/virtualenvs/merge-csv-NFbvYFrS/lib/python3.8/site-packages/pandas/io/excel/_base.py", line 311, in read_excel
return io.parse(
File "/home/michael/.local/share/virtualenvs/merge-csv-NFbvYFrS/lib/python3.8/site-packages/pandas/io/excel/_base.py", line 906, in parse
return self._reader.parse(
File "/home/michael/.local/share/virtualenvs/merge-csv-NFbvYFrS/lib/python3.8/site-packages/pandas/io/excel/_base.py", line 443, in parse
data = self.get_sheet_data(sheet, convert_float)
File "/home/michael/.local/share/virtualenvs/merge-csv-NFbvYFrS/lib/python3.8/site-packages/pandas/io/excel/_odfreader.py", line 91, in get_sheet_data
value = self._get_cell_value(sheet_cell, convert_float)
File "/home/michael/.local/share/virtualenvs/merge-csv-NFbvYFrS/lib/python3.8/site-packages/pandas/io/excel/_odfreader.py", line 175, in _get_cell_value
return self._get_cell_string_value(cell)
File "/home/michael/.local/share/virtualenvs/merge-csv-NFbvYFrS/lib/python3.8/site-packages/pandas/io/excel/_odfreader.py", line 211, in _get_cell_string_value
value.append(" " * spaces)
UnboundLocalError: local variable 'spaces' referenced before assignment
```
I took a look at the [code in question](https://github.com/pandas-dev/pandas/blob/ddf4f2430dd0a6fd51d7409ad3f524aeb5cbace2/pandas/io/excel/_odfreader.py#L211) and it seems like the line may be on the wrong indent level?
#### Expected Output
The usual dataframes :+1:
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-42-generic
Version : #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 44.0.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 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : 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/35802/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35802/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35803
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35803/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35803/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35803/events
|
https://github.com/pandas-dev/pandas/issues/35803
| 681,826,774
|
MDU6SXNzdWU2ODE4MjY3NzQ=
| 35,803
|
Performance regression in tslibs.tz_convert.TimeTZConvert.time_tz_convert_from_utc
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "ae68cc",
"default": false,
"description": "Performance (ASV) benchmarks",
"id": 732775912,
"name": "Benchmark",
"node_id": "MDU6TGFiZWw3MzI3NzU5MTI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark"
}
] |
closed
| false
| null |
[] |
{
"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"
}
| 8
| 2020-08-19T13:09:01Z
| 2020-11-26T15:35:30Z
| 2020-11-26T15:35:30Z
|
CONTRIBUTOR
| null |
https://pandas.pydata.org/speed/pandas/index.html#tslibs.tz_convert.TimeTZConvert.time_tz_convert_from_utc?p-size=1000000&p-tz=datetime.timezone.utc&commits=3701a9b1bfc3ad3890c2fb1fe1974a4768f6d5f8-522f855a38d52763c4e2b07480786163b91dad38
Somewhere in https://github.com/pandas-dev/pandas/compare/3701a9b1bfc3ad3890c2fb1fe1974a4768f6d5f8...522f855a38d52763c4e2b07480786163b91dad38
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35803/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35803/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35804
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35804/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35804/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35804/events
|
https://github.com/pandas-dev/pandas/issues/35804
| 681,827,358
|
MDU6SXNzdWU2ODE4MjczNTg=
| 35,804
|
Performance regression in reindex.LevelAlign.time_reindex_level
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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/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"
}
|
[
{
"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"
}
] |
{
"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-08-19T13:09:49Z
| 2020-12-18T16:44:50Z
| 2020-12-18T16:44:50Z
|
CONTRIBUTOR
| null |
https://pandas.pydata.org/speed/pandas/index.html#reindex.LevelAlign.time_reindex_level?commits=a0c8425a5f2b74e8a716defd799c4a3716f66eff-2a319238e47d3d7362188f7da4eb911199c423b8
Somewhere in https://github.com/pandas-dev/pandas/compare/a0c8425a5f2b74e8a716defd799c4a3716f66eff...2a319238e47d3d7362188f7da4eb911199c423b8
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35804/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35804/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35805
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35805/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35805/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35805/events
|
https://github.com/pandas-dev/pandas/issues/35805
| 681,827,843
|
MDU6SXNzdWU2ODE4Mjc4NDM=
| 35,805
|
Performance regression in index_object.IndexEquals.time_non_object_equals_multiindex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "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/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"
}
|
[
{
"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"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-08-19T13:10:33Z
| 2020-12-18T16:44:51Z
| 2020-12-18T16:44:51Z
|
CONTRIBUTOR
| null |
https://pandas.pydata.org/speed/pandas/index.html#index_object.IndexEquals.time_non_object_equals_multiindex?commits=a0c8425a5f2b74e8a716defd799c4a3716f66eff-2a319238e47d3d7362188f7da4eb911199c423b8
Somewhere in https://github.com/pandas-dev/pandas/compare/a0c8425a5f2b74e8a716defd799c4a3716f66eff...2a319238e47d3d7362188f7da4eb911199c423b8
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35805/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35805/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35806
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35806/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35806/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35806/events
|
https://github.com/pandas-dev/pandas/pull/35806
| 681,832,440
|
MDExOlB1bGxSZXF1ZXN0NDcwMTU4MTQ0
| 35,806
|
Backport PR #35776 on branch 1.1.x (Changed 'int' type to 'integer' in to_numeric docstring)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-08-19T13:16:52Z
| 2020-08-19T14:25:28Z
| 2020-08-19T14:25:28Z
|
NONE
| null |
Backport PR #35776: Changed 'int' type to 'integer' in to_numeric docstring
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35806/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35806/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35806.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35806",
"merged_at": "2020-08-19T14:25:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35806.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35806"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35807
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35807/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35807/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35807/events
|
https://github.com/pandas-dev/pandas/issues/35807
| 681,866,142
|
MDU6SXNzdWU2ODE4NjYxNDI=
| 35,807
|
BUG: Issue with Pandas df.str.split with expand
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/53119206?v=4",
"events_url": "https://api.github.com/users/phizzuela/events{/privacy}",
"followers_url": "https://api.github.com/users/phizzuela/followers",
"following_url": "https://api.github.com/users/phizzuela/following{/other_user}",
"gists_url": "https://api.github.com/users/phizzuela/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phizzuela",
"id": 53119206,
"login": "phizzuela",
"node_id": "MDQ6VXNlcjUzMTE5MjA2",
"organizations_url": "https://api.github.com/users/phizzuela/orgs",
"received_events_url": "https://api.github.com/users/phizzuela/received_events",
"repos_url": "https://api.github.com/users/phizzuela/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phizzuela/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phizzuela/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phizzuela"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "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"
}
] |
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"
}
| 15
| 2020-08-19T14:02:05Z
| 2021-08-10T04:47:04Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
>>> df=pd.DataFrame({'a':['Kickoff_2'],'b':['bla'],'c':[1],'x':[None],'y':[None],'z':[None]})
>>> df[['x','y','z']] = df['a'].str.split('_',expand=True,n=2)
...
raise ValueError("Columns must be same length as key")
ValueError: Columns must be same length as key
>>> df_long=pd.DataFrame({'a':['Kickoff_2','Kickoff','Kickoff_pass_jump'],'b':['bla','bla','bla'],'c':[1,2,3],'x':[None,None,None],'y':[None,None,None],'z':[None,None,None]})
>>> df_long[['x','y','z']] = df_long['a'].str.split('_',expand=True,n=2)
>>> df_long
a b c x y z
0 Kickoff_2 bla 1 Kickoff 2 None
1 Kickoff bla 2 Kickoff None None
2 Kickoff_pass_jump bla 3 Kickoff pass jump
```
#### Problem description
String + split() with expand only works if there is a row in the df that will later contain the desired number of columns. It would be nice if the first example here would get filled up with NaNs.
#### Expected Output
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35807/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35807/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35808
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35808/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35808/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35808/events
|
https://github.com/pandas-dev/pandas/pull/35808
| 682,019,488
|
MDExOlB1bGxSZXF1ZXN0NDcwMzE1MzQy
| 35,808
|
Backport PR #35672 on branch 1.1.x CI: test_chunks_have_consistent_numerical_type periodically fails on 1.1.x
|
{
"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": "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-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 1
| 2020-08-19T17:37:14Z
| 2020-08-20T13:41:55Z
| 2020-08-20T13:41:49Z
|
MEMBER
| null |
PR directly against 1.1.x
effectively backport of #35672
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35808/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35808/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35808.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35808",
"merged_at": "2020-08-20T13:41:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35808.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35808"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35809
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35809/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35809/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35809/events
|
https://github.com/pandas-dev/pandas/pull/35809
| 682,033,875
|
MDExOlB1bGxSZXF1ZXN0NDcwMzI2OTI4
| 35,809
|
CI: more xfail failing 32-bit tests
|
{
"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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "0e8a16",
"default": false,
"description": "32-bit systems",
"id": 563047854,
"name": "32bit",
"node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"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.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 5
| 2020-08-19T18:03:26Z
| 2020-08-20T12:05:50Z
| 2020-08-20T12:03:31Z
|
MEMBER
| null |
xref #35294 and https://github.com/pandas-dev/pandas/issues/35489#issuecomment-676550757
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35809/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35809/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35809.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35809",
"merged_at": "2020-08-20T12:03:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35809.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35809"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35810
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35810/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35810/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35810/events
|
https://github.com/pandas-dev/pandas/issues/35810
| 682,157,908
|
MDU6SXNzdWU2ODIxNTc5MDg=
| 35,810
|
ENH: dataframe to markdown doesn't have option to hide index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37581842?v=4",
"events_url": "https://api.github.com/users/bgmello/events{/privacy}",
"followers_url": "https://api.github.com/users/bgmello/followers",
"following_url": "https://api.github.com/users/bgmello/following{/other_user}",
"gists_url": "https://api.github.com/users/bgmello/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bgmello",
"id": 37581842,
"login": "bgmello",
"node_id": "MDQ6VXNlcjM3NTgxODQy",
"organizations_url": "https://api.github.com/users/bgmello/orgs",
"received_events_url": "https://api.github.com/users/bgmello/received_events",
"repos_url": "https://api.github.com/users/bgmello/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bgmello/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bgmello/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bgmello"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-08-19T20:27:31Z
| 2020-08-21T17:04:46Z
| 2020-08-19T20:29:27Z
|
NONE
| null |
Suppose I have the following `pd.DataFrame`:
```
df = pd.DataFrame({'a': [1,2,3], 'b': [4,5,6]})
```
If I want to print it without the index, I could do:
To string:
```
df.to_string(index=False)
```
To html:
```
df.to_html(index=False)
```
To json:
```
df.to_json(index=False, orient='table')
```
But it fails in `to_markdown`:
```
df.to_markdown(index=False)
TypeError: tabulate() got an unexpected keyword argument 'index'
```
Shouldn't `to_markdown` method have the option to hide the index too?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35810/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35810/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35811
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35811/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35811/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35811/events
|
https://github.com/pandas-dev/pandas/issues/35811
| 682,206,742
|
MDU6SXNzdWU2ODIyMDY3NDI=
| 35,811
|
BUG/QST: Series.transform with a dictionary
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"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 |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 3
| 2020-08-19T21:55:53Z
| 2020-09-12T21:36:52Z
| 2020-09-12T21:36:52Z
|
MEMBER
| null |
What is the expected output of passing a dictionary to `Series.transform`? For example:
s = pd.Series([1, 2, 3])
result1 = s.transform({'a': lambda x: x + 1})
result2 = s.transform({'a': lambda x: x + 1, 'b': lambda x: x + 2})
The docs say that `dict of axis labels -> functions` is acceptable, but I can't find any example in the docs where the output is described/shown. Under the hood, `Series.transform` is just calling `Series.aggregate` which produces the following outputs for `result1` and `result2`.
````
# result1
a 0 2
1 3
2 4
dtype: int64
# result2
a 0 2
1 3
2 4
b 0 3
1 4
2 5
dtype: int64
````
`result1` is deemed acceptable (the length of the result equals the length of the input) and is returned, but `result2` raises; it is not a transformation.
I am wondering if a better return would be a DataFrame where the keys are the column names ('a' and 'b' in this example).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35811/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35811/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35812
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35812/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35812/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35812/events
|
https://github.com/pandas-dev/pandas/pull/35812
| 682,226,962
|
MDExOlB1bGxSZXF1ZXN0NDcwNDk2MzM3
| 35,812
|
WEB: Add new Maintainers to Team Page
|
{
"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-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"
}
| 1
| 2020-08-19T22:37:48Z
| 2020-08-20T16:26:36Z
| 2020-08-20T16:26:31Z
|
CONTRIBUTOR
| null |
Add new maintainers.
cc:
@bashtage
@charlesdong1991
@Dr-Irv
@dsaxton
@MarcoGorelli
@rhshadrach
In case anyone doesn't want to appear here: https://pandas.pydata.org/about/team.html
|
{
"+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/35812/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35812/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35812.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35812",
"merged_at": "2020-08-20T16:26:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35812.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35812"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35813
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35813/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35813/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35813/events
|
https://github.com/pandas-dev/pandas/issues/35813
| 682,247,454
|
MDU6SXNzdWU2ODIyNDc0NTQ=
| 35,813
|
CI: Failures due to pyarrow 0.11 in Travis 37 Locale Build
|
{
"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-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 2
| 2020-08-19T23:30:50Z
| 2020-08-20T21:26:05Z
| 2020-08-20T21:26:05Z
|
CONTRIBUTOR
| null |
Looks like recently the Travis 37 Locale Build has started picking up pyarrow 0.11.1
https://travis-ci.org/github/pandas-dev/pandas/jobs/719430999
pyarrow 0.11.1 py37he6710b0_0
This causes the pyarrow tests to run which seem to be failing.
Previously no pyarrow in env: https://travis-ci.org/github/pandas-dev/pandas/jobs/719138849 (passing build)
Feels like one of our deps has started to depend to pyarrow.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35813/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35813/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/35814
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35814/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35814/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35814/events
|
https://github.com/pandas-dev/pandas/pull/35814
| 682,283,449
|
MDExOlB1bGxSZXF1ZXN0NDcwNTQyNjY3
| 35,814
|
TST: Fix test_parquet failures for pyarrow 1.0
|
{
"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": "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": "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 |
[] |
{
"closed_at": "2020-09-09T09:07:44Z",
"closed_issues": 94,
"created_at": "2020-08-17T19:11:56Z",
"creator": {
"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"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-09-08T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/76",
"id": 5781056,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76/labels",
"node_id": "MDk6TWlsZXN0b25lNTc4MTA1Ng==",
"number": 76,
"open_issues": 0,
"state": "closed",
"title": "1.1.2",
"updated_at": "2020-10-02T11:57:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/76"
}
| 8
| 2020-08-20T01:31:11Z
| 2020-08-25T07:08:14Z
| 2020-08-25T06:41:49Z
|
CONTRIBUTOR
| null |
- [x] closes https://github.com/pandas-dev/pandas/issues/35791
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
cc @martindurant -> looks like this is a pyarrow 1.0.0 compat issue (read_table uses the new API) - https://arrow.apache.org/docs/python/generated/pyarrow.parquet.read_table.html
I noticed the partition cols are casted from int64 -> int32 is that expected pyarrow behaviour? From the write_table docs looking at version 1.0/2.0 it suggests it is https://arrow.apache.org/docs/python/generated/pyarrow.parquet.write_table.html#pyarrow.parquet.write_table
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35814/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35814/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35814.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35814",
"merged_at": "2020-08-25T06:41:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35814.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35814"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35815
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35815/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35815/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35815/events
|
https://github.com/pandas-dev/pandas/pull/35815
| 682,300,300
|
MDExOlB1bGxSZXF1ZXN0NDcwNTU2NTk4
| 35,815
|
CI/DOC: unpin sphinx, fix autodoc usage
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
}
|
[] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-08-20T02:14:50Z
| 2020-08-21T16:06:02Z
| 2020-08-20T07:24:26Z
|
MEMBER
| null |
- [x] closes #35138
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/35815/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35815/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/35815.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/35815",
"merged_at": "2020-08-20T07:24:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/35815.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/35815"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35816
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/35816/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35816/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/35816/events
|
https://github.com/pandas-dev/pandas/issues/35816
| 682,399,943
|
MDU6SXNzdWU2ODIzOTk5NDM=
| 35,816
|
BUG: read_excel doesn't honor dtype for index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13725?v=4",
"events_url": "https://api.github.com/users/akaihola/events{/privacy}",
"followers_url": "https://api.github.com/users/akaihola/followers",
"following_url": "https://api.github.com/users/akaihola/following{/other_user}",
"gists_url": "https://api.github.com/users/akaihola/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/akaihola",
"id": 13725,
"login": "akaihola",
"node_id": "MDQ6VXNlcjEzNzI1",
"organizations_url": "https://api.github.com/users/akaihola/orgs",
"received_events_url": "https://api.github.com/users/akaihola/received_events",
"repos_url": "https://api.github.com/users/akaihola/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/akaihola/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akaihola/subscriptions",
"type": "User",
"url": "https://api.github.com/users/akaihola"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "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"
}
] |
open
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7070280?v=4",
"events_url": "https://api.github.com/users/BhavyaGulati/events{/privacy}",
"followers_url": "https://api.github.com/users/BhavyaGulati/followers",
"following_url": "https://api.github.com/users/BhavyaGulati/following{/other_user}",
"gists_url": "https://api.github.com/users/BhavyaGulati/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BhavyaGulati",
"id": 7070280,
"login": "BhavyaGulati",
"node_id": "MDQ6VXNlcjcwNzAyODA=",
"organizations_url": "https://api.github.com/users/BhavyaGulati/orgs",
"received_events_url": "https://api.github.com/users/BhavyaGulati/received_events",
"repos_url": "https://api.github.com/users/BhavyaGulati/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BhavyaGulati/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BhavyaGulati/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BhavyaGulati"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/7070280?v=4",
"events_url": "https://api.github.com/users/BhavyaGulati/events{/privacy}",
"followers_url": "https://api.github.com/users/BhavyaGulati/followers",
"following_url": "https://api.github.com/users/BhavyaGulati/following{/other_user}",
"gists_url": "https://api.github.com/users/BhavyaGulati/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/BhavyaGulati",
"id": 7070280,
"login": "BhavyaGulati",
"node_id": "MDQ6VXNlcjcwNzAyODA=",
"organizations_url": "https://api.github.com/users/BhavyaGulati/orgs",
"received_events_url": "https://api.github.com/users/BhavyaGulati/received_events",
"repos_url": "https://api.github.com/users/BhavyaGulati/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/BhavyaGulati/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/BhavyaGulati/subscriptions",
"type": "User",
"url": "https://api.github.com/users/BhavyaGulati"
}
] |
{
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
}
| 5
| 2020-08-20T04:22:42Z
| 2020-08-25T12:42:52Z
| null |
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
Make sure you have Pandas and `xlrd` installed in a virtualenv, and launch the Python interpreter. You'll need `openpyxl` only if you decide to create the Excel file from Python (see below).
```bash
python3 -m venv /tmp/pandas-issue-35816
. /tmp/pandas-issue-35816/bin/activate
pip install pandas xlrd openpyxl
python
```
To get the Excel files for reproducing the bug, you can either
1. download [index_dtype.xls](https://github.com/pandas-dev/pandas/files/5100657/index_dtype.xls.gz) (note: attachment gzipped) or [index_dtype.xlsx](https://github.com/pandas-dev/pandas/files/5100653/index_dtype.xlsx), or
1. copy-paste the text inside `Details` below into a `index_dtype.csv` file, import that into Excel, and save it in Excel format as `index_dtype.xlsx`, or
<details>
<pre>string,value for string index
42,value for int index</pre>
</details>
1. create an Excel file from Python by copy-pasting from `Details` below:
<details>
<pre>df = pd.DataFrame(
{1: ["value for string index", "value for int index"]}, ["string", 42]
)
df.to_excel("index_dtype.xlsx", header=None)</pre>
</details>
Finally, copy-paste the following code into Python:
```python
import pandas as pd
pd.read_excel("index_dtype.xlsx", header=None, index_col=0, dtype=str).iloc[:, 0].to_dict()
```
Output:
```python
{'string': 'value for string index', 42: 'value for int index'}
```
#### Problem description
The integer value in the index column appears as an `int` instead of a `str` in the index of the `DataFrame` read from an Excel file, even though `dtype=str` was specified.
I verified this behavior with spreadsheets
- exported from LibreOffice 6.2.8.2 as `Excel 2007-2019 (.xlsx)`,
- exported from LibreOffice 6.2.8.2 as `Excel 97-2003 (.xls)`, and
- generated like shown in `3. create an Excel file from Python` above.
Unfortunately I don't have Excel to check if "genuine" Excel spreadsheets cause this as well.
The index dtype is correct if:
- `read_csv()` is used, or
- `index_col=0` is omitted (values in the first column all become `str`)
The index dtype is still wrong even if `dtype={0: str, 1: str}` is used to specify the dtype for each column separately.
#### Expected Output
```python
{'string': 'value for string index', '42': 'value for int index'}
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : d9fff2792bf16178d4e450fe7384244e50635733
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.11-100.fc29.x86_64
Version : #1 SMP Tue Nov 12 20:41:25 UTC 2019
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.1
setuptools : 49.2.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 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/35816/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/35816/timeline
| null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.