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/34617
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34617/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34617/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34617/events
|
https://github.com/pandas-dev/pandas/issues/34617
| 632,396,026
|
MDU6SXNzdWU2MzIzOTYwMjY=
| 34,617
|
BUG: rolling aggregations not checking monotonic index when grouping by
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/56838676?v=4",
"events_url": "https://api.github.com/users/frd-glovo/events{/privacy}",
"followers_url": "https://api.github.com/users/frd-glovo/followers",
"following_url": "https://api.github.com/users/frd-glovo/following{/other_user}",
"gists_url": "https://api.github.com/users/frd-glovo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/frd-glovo",
"id": 56838676,
"login": "frd-glovo",
"node_id": "MDQ6VXNlcjU2ODM4Njc2",
"organizations_url": "https://api.github.com/users/frd-glovo/orgs",
"received_events_url": "https://api.github.com/users/frd-glovo/received_events",
"repos_url": "https://api.github.com/users/frd-glovo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/frd-glovo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/frd-glovo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/frd-glovo"
}
|
[
{
"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": "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": "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"
}
| 5
| 2020-06-06T11:30:05Z
| 2020-10-15T00:28:32Z
| 2020-10-15T00:28:32Z
|
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
import numpy as np
df = pd.DataFrame({'a':['2020-06-01 12:00',
'2020-06-01 12:30',
'2020-06-01 13:00',
'2020-06-01 14:00',
np.nan],
'b':[1,2,3,4,5],
'c':[1,1,1,1,1]})
df.a = pd.to_datetime(df.a)
df.set_index('a',inplace=True)
df.groupby('c').b.rolling('60min').sum()
'''
Note that if there's no group by, ie:
df.b.rolling('60min').sum()
index monotonicity is checked and an error is reported due to the NaT.
''''
```
#### Problem description
When using a rolling window on a timestamp index + a group by, there is no validation about the monotonicity of the index. This can lead to unexpected behaviours, as the value of the calculation can change if the index is not monotonic.
#### Expected Output
Output:
c a
1 2020-06-01 12:00:00 1.0
2020-06-01 12:30:00 3.0
2020-06-01 13:00:00 6.0
2020-06-01 14:00:00 10.0
NaT 15.0
Expected (correct) output:
c a
1 2020-06-01 12:00:00 1.0
2020-06-01 12:30:00 3.0
2020-06-01 13:00:00 5.0
2020-06-01 14:00:00 4.0
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Linux
OS-release : 4.9.184-linuxkit
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.0
pytz : 2019.1
dateutil : 2.7.5
pip : 19.3.1
setuptools : 41.4.0
Cython : None
pytest : 4.1.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : 0.9.3
psycopg2 : 2.8.2 (dt dec pq3 ext lo64)
jinja2 : 2.10.1
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 4.1.1
pyxlsb : None
s3fs : None
scipy : 1.2.0
sqlalchemy : 1.2.16
tables : None
tabulate : 0.8.3
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34617/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34617/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34618
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34618/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34618/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34618/events
|
https://github.com/pandas-dev/pandas/issues/34618
| 632,472,319
|
MDU6SXNzdWU2MzI0NzIzMTk=
| 34,618
|
BUG: Float values get corrupted with df.astype(), for values with no overflow error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8198215?v=4",
"events_url": "https://api.github.com/users/ketanhdoshi/events{/privacy}",
"followers_url": "https://api.github.com/users/ketanhdoshi/followers",
"following_url": "https://api.github.com/users/ketanhdoshi/following{/other_user}",
"gists_url": "https://api.github.com/users/ketanhdoshi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ketanhdoshi",
"id": 8198215,
"login": "ketanhdoshi",
"node_id": "MDQ6VXNlcjgxOTgyMTU=",
"organizations_url": "https://api.github.com/users/ketanhdoshi/orgs",
"received_events_url": "https://api.github.com/users/ketanhdoshi/received_events",
"repos_url": "https://api.github.com/users/ketanhdoshi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ketanhdoshi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ketanhdoshi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ketanhdoshi"
}
|
[
{
"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": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false
| null |
[] |
{
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
}
| 5
| 2020-06-06T13:44:32Z
| 2020-06-08T00:09:35Z
| 2020-06-08T00:09:34Z
|
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
# Your code here
df = pd.DataFrame({'a': [1, 2, 3, 4, 5], 'b': [1270., 570., 14130., 620., 29910.]})
df['b'] = df['b'].astype('float16')
df
```
#### Problem description
Converting a 'float64' to 'float16' should return the original values, as long as they don't cause any overflow. In the example above, two values (14130. and 29910.) get corrupted to (14128. and 29904.) respectively. Both those values can fit into a 'float16' without overflow, which can be confirmed via np.finfo(np.float16).min < 29910. < np.finfo(np.float16).max
#### Expected Output
The values (14130. and 29910.) should be preserved.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.104+
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.4
pytz : 2018.9
dateutil : 2.8.1
pip : 19.3.1
setuptools : 47.1.1
Cython : 0.29.19
pytest : 3.6.4
hypothesis : None
sphinx : 1.8.5
blosc : None
feather : 0.4.1
xlsxwriter : None
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.1
numexpr : 2.7.1
odfpy : None
openpyxl : 2.5.9
pandas_gbq : 0.11.0
pyarrow : 0.14.1
pytables : None
pytest : 3.6.4
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.17
tables : 3.4.4
tabulate : 0.8.7
xarray : 0.15.1
xlrd : 1.1.0
xlwt : 1.3.0
xlsxwriter : None
numba : 0.48.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34618/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34618/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34619
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34619/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34619/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34619/events
|
https://github.com/pandas-dev/pandas/pull/34619
| 632,564,541
|
MDExOlB1bGxSZXF1ZXN0NDI5MjkyODUx
| 34,619
|
DOC: docstring, closes #23475
|
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-06T16:18:29Z
| 2020-06-07T20:34:38Z
| 2020-06-07T20:11:13Z
|
MEMBER
| null |
- [x] closes #23475
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34619/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34619/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34619.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34619",
"merged_at": "2020-06-07T20:11:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34619.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34619"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34620
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34620/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34620/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34620/events
|
https://github.com/pandas-dev/pandas/issues/34620
| 632,579,990
|
MDU6SXNzdWU2MzI1Nzk5OTA=
| 34,620
|
BUG: blosc:snappy doesn't seem to be supported with blosc=1.19.0
|
{
"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": "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 | 1
| 2020-06-06T16:42:56Z
| 2020-08-21T17:05:14Z
| 2020-06-06T17:45:00Z
|
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
The following example works with blosc=1.18.1 but fails with the latest blosc (1.19.0)
conda install pandas pytables blosc=1.18.1 # works
conda install pandas pytables blosc=1.19.0 # leads to failure
```python
import numpy as np
import pandas as pd
pd.DataFrame(np.random.rand(10, 3)).to_hdf("test.hdf", "df", complib="blosc:snappy")
```
#### Problem description
The error message is
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/twoertwe/miniforge3/envs/test/lib/python3.8/site-packages/pandas/core/generic.py", line 2490, in to_hdf
pytables.to_hdf(
File "/home/twoertwe/miniforge3/envs/test/lib/python3.8/site-packages/pandas/io/pytables.py", line 279, in to_hdf
with HDFStore(
File "/home/twoertwe/miniforge3/envs/test/lib/python3.8/site-packages/pandas/io/pytables.py", line 521, in __init__
raise ValueError(
ValueError: complib only supports ['zlib', 'lzo', 'bzip2', 'blosc', 'blosc:blosclz', 'blosc:lz4', 'blosc:lz4hc', 'blosc:zlib', 'blosc:zstd'] compression.
```
The change log of blosc doesn't mentioned snappy: https://github.com/Blosc/c-blosc/releases
#### Expected Output
The compression should either work or `to_hdf` should mention that `blosc:snappy` doesn't work with `blosc=1.19.0`.
#### Output of ``pd.show_versions()``
<details>
I installed the latest blosc as above but for some reason ``pd.show_versions()`` doesn't find it.
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.3.final.0
python-bits : 64
OS : Linux
OS-release : 3.10.0-693.5.2.el7.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 47.1.1.post20200529
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34620/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34620/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34621
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34621/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34621/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34621/events
|
https://github.com/pandas-dev/pandas/issues/34621
| 632,583,420
|
MDU6SXNzdWU2MzI1ODM0MjA=
| 34,621
|
BUG: Period constructor does not take into account nanonseconds
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59281854?v=4",
"events_url": "https://api.github.com/users/OlivierLuG/events{/privacy}",
"followers_url": "https://api.github.com/users/OlivierLuG/followers",
"following_url": "https://api.github.com/users/OlivierLuG/following{/other_user}",
"gists_url": "https://api.github.com/users/OlivierLuG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlivierLuG",
"id": 59281854,
"login": "OlivierLuG",
"node_id": "MDQ6VXNlcjU5MjgxODU0",
"organizations_url": "https://api.github.com/users/OlivierLuG/orgs",
"received_events_url": "https://api.github.com/users/OlivierLuG/received_events",
"repos_url": "https://api.github.com/users/OlivierLuG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlivierLuG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlivierLuG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlivierLuG"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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-06-06T16:48:21Z
| 2020-12-02T12:12:18Z
| 2020-12-02T12:12:18Z
|
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.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example:
```python
print(pd.Period("2000-12-31 23:59:59.000000999").to_timestamp().nanosecond)
print(pd.Period("2000-12-31 23:59:59.000000500").to_timestamp().nanosecond)
print(pd.Period("2000-12-31 23:59:59.000000001").to_timestamp().nanosecond)
print(pd.Period("2000-12-31 23:59:59.000000001").to_timestamp(freq='ns').nanosecond)
```
output:
```python
0
0
0
0
```
#### Problem description
Nanoseconds are set to `0` when using `to_timestamp` function.
#### Expected Output
```python
999
500
1
1
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : c71bfc36211b5e2d860a06d8fbef902b757bd6e4
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-33-generic
Version : #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : fr_FR.UTF-8
LOCALE : fr_FR.UTF-8
pandas : 1.1.0.dev0+1767.gc71bfc362
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.7.3
pip : 20.0.2
setuptools : 45.2.0
Cython : None
pytest : 5.4.2
hypothesis : 5.16.0
sphinx : 3.0.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : 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 : 1.3.17
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/34621/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34621/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34622
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34622/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34622/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34622/events
|
https://github.com/pandas-dev/pandas/pull/34622
| 632,648,773
|
MDExOlB1bGxSZXF1ZXN0NDI5MzY5Mjk0
| 34,622
|
TST: boolean indexing using .iloc #20627
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59281854?v=4",
"events_url": "https://api.github.com/users/OlivierLuG/events{/privacy}",
"followers_url": "https://api.github.com/users/OlivierLuG/followers",
"following_url": "https://api.github.com/users/OlivierLuG/following{/other_user}",
"gists_url": "https://api.github.com/users/OlivierLuG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlivierLuG",
"id": 59281854,
"login": "OlivierLuG",
"node_id": "MDQ6VXNlcjU5MjgxODU0",
"organizations_url": "https://api.github.com/users/OlivierLuG/orgs",
"received_events_url": "https://api.github.com/users/OlivierLuG/received_events",
"repos_url": "https://api.github.com/users/OlivierLuG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlivierLuG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlivierLuG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlivierLuG"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-06-06T18:24:00Z
| 2021-01-02T08:31:59Z
| 2020-06-13T19:58:21Z
|
CONTRIBUTOR
| null |
- [x] closes #20627
- [1] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
A simple test was added to close this issue.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34622/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34622/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34622.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34622",
"merged_at": "2020-06-13T19:58:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34622.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34622"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34623
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34623/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34623/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34623/events
|
https://github.com/pandas-dev/pandas/pull/34623
| 632,654,487
|
MDExOlB1bGxSZXF1ZXN0NDI5Mzc0NTAx
| 34,623
|
TST/REF: arithmetic tests for BooleanArray + consolidate with integer masked tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-06-06T18:32:47Z
| 2020-06-14T15:18:13Z
| 2020-06-14T15:18:10Z
|
MEMBER
| null |
Follow-up on https://github.com/pandas-dev/pandas/pull/34454
- Move a bunch of tests from `integer/test_arithmetic.py` to `masked/test_arithmetic.py` so those can be shared with boolean (and once merged I can add float as well in the FloatingArray PR)
- Added some more arithmetic tests to `boolean/test_arithmetic.py` to follow the same pattern as we have in `integer/test_arithmetic.py`.
- The commong integer/boolean tests uncovered a bug in the BooleanArray implementation when dealing with a `pd.NA` scalar as other operand.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34623/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34623/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34623.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34623",
"merged_at": "2020-06-14T15:18:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34623.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34623"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34624
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34624/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34624/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34624/events
|
https://github.com/pandas-dev/pandas/pull/34624
| 632,658,828
|
MDExOlB1bGxSZXF1ZXN0NDI5Mzc4MjY0
| 34,624
|
DOC: updated core/arrays/base.py for PR08 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-06T18:42:01Z
| 2020-06-06T22:23:59Z
| 2020-06-06T22:23:52Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34624/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34624/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34624.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34624",
"merged_at": "2020-06-06T22:23:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34624.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34624"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34625
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34625/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34625/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34625/events
|
https://github.com/pandas-dev/pandas/pull/34625
| 632,777,572
|
MDExOlB1bGxSZXF1ZXN0NDI5NDgzNTc5
| 34,625
|
REF: re-use existing conversion functions
|
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-06T22:38:16Z
| 2020-06-08T16:11:14Z
| 2020-06-08T16:09:38Z
|
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/34625/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34625/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34625.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34625",
"merged_at": "2020-06-08T16:09:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34625.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34625"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34626
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34626/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34626/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34626/events
|
https://github.com/pandas-dev/pandas/issues/34626
| 633,142,870
|
MDU6SXNzdWU2MzMxNDI4NzA=
| 34,626
|
BUG: s3 reads from public buckets not working
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19949207?v=4",
"events_url": "https://api.github.com/users/ayushdg/events{/privacy}",
"followers_url": "https://api.github.com/users/ayushdg/followers",
"following_url": "https://api.github.com/users/ayushdg/following{/other_user}",
"gists_url": "https://api.github.com/users/ayushdg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ayushdg",
"id": 19949207,
"login": "ayushdg",
"node_id": "MDQ6VXNlcjE5OTQ5MjA3",
"organizations_url": "https://api.github.com/users/ayushdg/orgs",
"received_events_url": "https://api.github.com/users/ayushdg/received_events",
"repos_url": "https://api.github.com/users/ayushdg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ayushdg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ayushdg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ayushdg"
}
|
[
{
"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": "Blocking issue or pull request for an upcoming release",
"id": 77550281,
"name": "Blocker",
"node_id": "MDU6TGFiZWw3NzU1MDI4MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker"
},
{
"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
|
{
"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"
}
|
[
{
"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"
}
] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 9
| 2020-06-07T07:22:00Z
| 2020-07-15T19:07:52Z
| 2020-07-15T19:07:52Z
|
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
```python
# Your code here
import pandas as pd
df = pd.read_csv("s3://nyc-tlc/trip data/yellow_tripdata_2019-01.csv")
```
<details>
<summary> Error stack trace </summary>
<pre>
Traceback (most recent call last):
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/pandas/io/s3.py", line 33, in get_file_and_filesystem
file = fs.open(_strip_schema(filepath_or_buffer), mode)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/fsspec/spec.py", line 775, in open
**kwargs
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 378, in _open
autocommit=autocommit, requester_pays=requester_pays)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 1097, in __init__
cache_type=cache_type)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/fsspec/spec.py", line 1065, in __init__
self.details = fs.info(path)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 530, in info
Key=key, **version_id_kw(version_id), **self.req_kw)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 200, in _call_s3
return method(**additional_kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/client.py", line 316, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/client.py", line 622, in _make_api_call
operation_model, request_dict, request_context)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/client.py", line 641, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/endpoint.py", line 132, in _send_request
request = self.create_request(request_dict, operation_model)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/endpoint.py", line 116, in create_request
operation_name=operation_model.name)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/signers.py", line 90, in handler
return self.sign(operation_name, request)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/signers.py", line 160, in sign
auth.add_auth(request)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/auth.py", line 357, in add_auth
raise NoCredentialsError
botocore.exceptions.NoCredentialsError: Unable to locate credentials
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/pandas/io/parsers.py", line 676, in parser_f
return _read(filepath_or_buffer, kwds)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/pandas/io/parsers.py", line 431, in _read
filepath_or_buffer, encoding, compression
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/pandas/io/common.py", line 212, in get_filepath_or_buffer
filepath_or_buffer, encoding=encoding, compression=compression, mode=mode
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/pandas/io/s3.py", line 52, in get_filepath_or_buffer
file, _fs = get_file_and_filesystem(filepath_or_buffer, mode=mode)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/pandas/io/s3.py", line 42, in get_file_and_filesystem
file = fs.open(_strip_schema(filepath_or_buffer), mode)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/fsspec/spec.py", line 775, in open
**kwargs
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 378, in _open
autocommit=autocommit, requester_pays=requester_pays)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 1097, in __init__
cache_type=cache_type)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/fsspec/spec.py", line 1065, in __init__
self.details = fs.info(path)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 530, in info
Key=key, **version_id_kw(version_id), **self.req_kw)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/s3fs/core.py", line 200, in _call_s3
return method(**additional_kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/client.py", line 316, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/client.py", line 622, in _make_api_call
operation_model, request_dict, request_context)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/client.py", line 641, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/endpoint.py", line 132, in _send_request
request = self.create_request(request_dict, operation_model)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/endpoint.py", line 116, in create_request
operation_name=operation_model.name)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/signers.py", line 90, in handler
return self.sign(operation_name, request)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/signers.py", line 160, in sign
auth.add_auth(request)
File "/home/conda/envs/pandas-test/lib/python3.7/site-packages/botocore/auth.py", line 357, in add_auth
raise NoCredentialsError
</pre>
</details>
#### Problem description
Reading directly from s3 public buckets (without manually configuring the `anon` parameter via s3fs) is broken with pandas 1.0.4 (worked with 1.0.3).
Looks like reading from public buckets requires `anon=True` while creating the filesystem. This 22cf0f5dfcfbddd5506fdaf260e485bff1b88ef1 seems to have introduced the issue, where `anon=False` is passed when the `noCredentialsError` is encountered.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-55-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 47.1.1.post20200604
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.15.1
pytables : None
pytest : None
pyxlsb : None
s3fs : 0.4.2
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34626/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34626/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34627
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34627/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34627/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34627/events
|
https://github.com/pandas-dev/pandas/pull/34627
| 633,209,119
|
MDExOlB1bGxSZXF1ZXN0NDI5ODgwNDMz
| 34,627
|
TST #24444 added tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59281854?v=4",
"events_url": "https://api.github.com/users/OlivierLuG/events{/privacy}",
"followers_url": "https://api.github.com/users/OlivierLuG/followers",
"following_url": "https://api.github.com/users/OlivierLuG/following{/other_user}",
"gists_url": "https://api.github.com/users/OlivierLuG/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OlivierLuG",
"id": 59281854,
"login": "OlivierLuG",
"node_id": "MDQ6VXNlcjU5MjgxODU0",
"organizations_url": "https://api.github.com/users/OlivierLuG/orgs",
"received_events_url": "https://api.github.com/users/OlivierLuG/received_events",
"repos_url": "https://api.github.com/users/OlivierLuG/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OlivierLuG/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OlivierLuG/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OlivierLuG"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-07T08:53:04Z
| 2020-06-07T18:53:01Z
| 2020-06-07T17:19:57Z
|
CONTRIBUTOR
| null |
At last, there are no issues at all. I've made a new PR.
- [x] closes #24444
- [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/34627/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34627/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34627.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34627",
"merged_at": "2020-06-07T17:19:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34627.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34627"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34628
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34628/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34628/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34628/events
|
https://github.com/pandas-dev/pandas/pull/34628
| 633,229,899
|
MDExOlB1bGxSZXF1ZXN0NDI5ODk5MDkw
| 34,628
|
WIP: avoid internals for Series.interpolate
|
{
"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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "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 |
[] | null | 1
| 2020-06-07T09:20:44Z
| 2020-06-10T09:30:00Z
| 2020-06-10T09:30:00Z
|
MEMBER
| null |
This may be premature while discussion about removing the block manager is ongoing
most of the diff is type annotations and collecting the method validation. will break off into pre-cursor PRs
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34628/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34628/timeline
| null | 1
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34628.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34628",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/34628.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34628"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34629
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34629/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34629/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34629/events
|
https://github.com/pandas-dev/pandas/issues/34629
| 633,340,946
|
MDU6SXNzdWU2MzMzNDA5NDY=
| 34,629
|
QST: How to plot hist not in stacked style for different columns by df.plot.hist()?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6230304?v=4",
"events_url": "https://api.github.com/users/futurehome/events{/privacy}",
"followers_url": "https://api.github.com/users/futurehome/followers",
"following_url": "https://api.github.com/users/futurehome/following{/other_user}",
"gists_url": "https://api.github.com/users/futurehome/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/futurehome",
"id": 6230304,
"login": "futurehome",
"node_id": "MDQ6VXNlcjYyMzAzMDQ=",
"organizations_url": "https://api.github.com/users/futurehome/orgs",
"received_events_url": "https://api.github.com/users/futurehome/received_events",
"repos_url": "https://api.github.com/users/futurehome/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/futurehome/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/futurehome/subscriptions",
"type": "User",
"url": "https://api.github.com/users/futurehome"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-06-07T11:50:02Z
| 2020-06-09T20:29:26Z
| 2020-06-09T20:29:26Z
|
NONE
| null |
- I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
When using pd.plot.hist(), how to plot different columns in the parallel style(1st pic below), rather than in the stacked style(2nd pic below)?
Thanks,
Alex


---
#### Question about pandas
**Note**: If you'd still like to submit a question, 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 question.
```python
# Your code here, if applicable
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34629/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34629/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34630
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34630/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34630/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34630/events
|
https://github.com/pandas-dev/pandas/pull/34630
| 633,452,892
|
MDExOlB1bGxSZXF1ZXN0NDMwMTAwOTI4
| 34,630
|
TYP: some type annotations in core\tools\datetimes.py
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-07T14:17:17Z
| 2020-06-10T09:25:02Z
| 2020-06-10T09:23:17Z
|
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/34630/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34630/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34630.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34630",
"merged_at": "2020-06-10T09:23:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34630.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34630"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34631
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34631/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34631/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34631/events
|
https://github.com/pandas-dev/pandas/pull/34631
| 633,492,813
|
MDExOlB1bGxSZXF1ZXN0NDMwMTM2OTY2
| 34,631
|
TYP: some type annotations for interpolate
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-07T15:08:39Z
| 2020-06-08T08:32:06Z
| 2020-06-07T20:07:21Z
|
MEMBER
| null |
pre-cursor to #34628
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34631/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34631/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34631.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34631",
"merged_at": "2020-06-07T20:07:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34631.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34631"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34632
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34632/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34632/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34632/events
|
https://github.com/pandas-dev/pandas/pull/34632
| 633,519,706
|
MDExOlB1bGxSZXF1ZXN0NDMwMTYxMTk5
| 34,632
|
Revert backport of #33632: Parquet & s3 I/O changes
|
{
"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": "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-06-18T13:09:32Z",
"closed_issues": 28,
"created_at": "2020-05-30T13:59:46Z",
"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.0.x",
"due_on": "2020-06-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/74",
"id": 5480671,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ4MDY3MQ==",
"number": 74,
"open_issues": 0,
"state": "closed",
"title": "1.0.5",
"updated_at": "2020-06-18T13:09:32Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74"
}
| 1
| 2020-06-07T15:43:26Z
| 2020-06-09T07:36:51Z
| 2020-06-09T07:36:51Z
|
CONTRIBUTOR
| null |
Ref: https://github.com/pandas-dev/pandas/issues/34626#issuecomment-640225867
Revert backport of https://github.com/pandas-dev/pandas/pull/33632
Backport: https://github.com/pandas-dev/pandas/pull/34173
cc @jorisvandenbossche @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/34632/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34632/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34632.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34632",
"merged_at": "2020-06-09T07:36:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34632.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34632"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34633
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34633/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34633/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34633/events
|
https://github.com/pandas-dev/pandas/issues/34633
| 633,596,265
|
MDU6SXNzdWU2MzM1OTYyNjU=
| 34,633
|
BUG: to_timedelta() works differently depending on type of arg for the same unit
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/15925198?v=4",
"events_url": "https://api.github.com/users/deepster5150/events{/privacy}",
"followers_url": "https://api.github.com/users/deepster5150/followers",
"following_url": "https://api.github.com/users/deepster5150/following{/other_user}",
"gists_url": "https://api.github.com/users/deepster5150/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/deepster5150",
"id": 15925198,
"login": "deepster5150",
"node_id": "MDQ6VXNlcjE1OTI1MTk4",
"organizations_url": "https://api.github.com/users/deepster5150/orgs",
"received_events_url": "https://api.github.com/users/deepster5150/received_events",
"repos_url": "https://api.github.com/users/deepster5150/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/deepster5150/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deepster5150/subscriptions",
"type": "User",
"url": "https://api.github.com/users/deepster5150"
}
|
[
{
"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": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11210290?v=4",
"events_url": "https://api.github.com/users/TAJD/events{/privacy}",
"followers_url": "https://api.github.com/users/TAJD/followers",
"following_url": "https://api.github.com/users/TAJD/following{/other_user}",
"gists_url": "https://api.github.com/users/TAJD/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TAJD",
"id": 11210290,
"login": "TAJD",
"node_id": "MDQ6VXNlcjExMjEwMjkw",
"organizations_url": "https://api.github.com/users/TAJD/orgs",
"received_events_url": "https://api.github.com/users/TAJD/received_events",
"repos_url": "https://api.github.com/users/TAJD/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TAJD/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TAJD/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TAJD"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/11210290?v=4",
"events_url": "https://api.github.com/users/TAJD/events{/privacy}",
"followers_url": "https://api.github.com/users/TAJD/followers",
"following_url": "https://api.github.com/users/TAJD/following{/other_user}",
"gists_url": "https://api.github.com/users/TAJD/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TAJD",
"id": 11210290,
"login": "TAJD",
"node_id": "MDQ6VXNlcjExMjEwMjkw",
"organizations_url": "https://api.github.com/users/TAJD/orgs",
"received_events_url": "https://api.github.com/users/TAJD/received_events",
"repos_url": "https://api.github.com/users/TAJD/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TAJD/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TAJD/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TAJD"
}
] |
{
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
}
| 3
| 2020-06-07T17:24:18Z
| 2021-07-11T20:15:45Z
| 2021-07-11T20:15:33Z
|
NONE
| null |
- [X ] 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
# Your code here
<Timestamp object> += pd.to_timedelta(16, unit='hours') , OR
<Timestamp object> += pd.to_timedelta("16", unit='hours')
```
#### Problem description
<Timestamp object> += pd.to_timedelta(16, unit='hours') will add correctly to hours
<Timestamp object> += pd.to_timedelta("16", unit='hours') will add to milliseconds
As per documentation, arg=string should work for the specified unit.
#### Expected Output
opt_expiry_dt += pd.to_timedelta("16", unit='hours'), gives:
2020-06-12 00:00:00.000000016
opt_expiry_dt += pd.to_timedelta(16, unit='hours'), gives:
2020-06-19 16:00:00
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.1
numpy : 1.16.5
pytz : 2019.3
dateutil : 2.8.0
pip : 19.2.3
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.2.1
hypothesis : None
sphinx : 2.2.0
blosc : None
feather : 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
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.9
tables : 3.5.2
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.1
</details>
|
{
"+1": 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/34633/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34633/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34634
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34634/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34634/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34634/events
|
https://github.com/pandas-dev/pandas/pull/34634
| 633,599,746
|
MDExOlB1bGxSZXF1ZXN0NDMwMjMzODMy
| 34,634
|
BUG/API: Disallow unit if input to Timedelta and to_timedelta is/contains str
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12197385?v=4",
"events_url": "https://api.github.com/users/pdnm/events{/privacy}",
"followers_url": "https://api.github.com/users/pdnm/followers",
"following_url": "https://api.github.com/users/pdnm/following{/other_user}",
"gists_url": "https://api.github.com/users/pdnm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pdnm",
"id": 12197385,
"login": "pdnm",
"node_id": "MDQ6VXNlcjEyMTk3Mzg1",
"organizations_url": "https://api.github.com/users/pdnm/orgs",
"received_events_url": "https://api.github.com/users/pdnm/received_events",
"repos_url": "https://api.github.com/users/pdnm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pdnm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pdnm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pdnm"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-06-07T17:28:50Z
| 2020-06-08T22:10:15Z
| 2020-06-08T22:10:04Z
|
CONTRIBUTOR
| null |
- [x] closes #12136
- [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/34634/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34634/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34634.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34634",
"merged_at": "2020-06-08T22:10:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34634.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34634"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34635
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34635/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34635/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34635/events
|
https://github.com/pandas-dev/pandas/issues/34635
| 633,971,639
|
MDU6SXNzdWU2MzM5NzE2Mzk=
| 34,635
|
BUG: test_eval.TestMathNumExprPandas.test_result_complex128 failing on OSX
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "Unit tests that occasionally fail",
"id": 76939933,
"name": "Unreliable Test",
"node_id": "MDU6TGFiZWw3NjkzOTkzMw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unreliable%20Test"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-06-08T01:41:58Z
| 2020-08-06T17:55:42Z
| 2020-08-06T17:55:42Z
|
MEMBER
| null |
intermittently
OSX 10.15.5
python 3.7.6
numpy 1.18.5
numexpr 2.7.1
```
________________________________________________________________________________ TestMathNumExprPandas.test_result_complex128 _________________________________________________________________________________
self = <pandas.tests.computation.test_eval.TestMathNumExprPandas object at 0x7fc0ec87de50>
@td.skip_if_windows
def test_result_complex128(self):
# xref https://github.com/pandas-dev/pandas/issues/12293
# this fails on Windows, apparently a floating point precision issue
# Did not test complex64 because DataFrame is converting it to
# complex128. Due to https://github.com/pandas-dev/pandas/issues/10952
> self.check_result_type(np.complex128, np.complex128)
pandas/tests/computation/test_eval.py:1832:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas/tests/computation/test_eval.py:1817: in check_result_type
tm.assert_series_equal(got, expect, check_names=False)
pandas/_libs/testing.pyx:68: in pandas._libs.testing.assert_almost_equal
cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> raise_assert_detail(obj, msg, lobj, robj, index_values=index_values)
E AssertionError: Series are different
E
E Series values are different (20.0 %)
E [index]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
E [left]: [(0.771519184640353+0j), (-0.7269031850139311-0j), (0.995153744613331+0j), (-0.08814548225306257+0j), (0.9413908236833275+0j), (0.9482003101223208+0j), (-0.9535450271705115+0j), (-0.27032459595133673+0j), (0.011064344419221385+0j), (-0.8916020886333388+0j)]
E [right]: [(0.771519184640353+0j), (-0.7269031850139313+0j), (0.995153744613331+0j), (-0.08814548225306257+0j), (0.9413908236833275+0j), (0.9482003101223209+0j), (-0.9535450271705115+0j), (-0.27032459595133673+0j), (0.011064344419221385+0j), (-0.8916020886333388+0j)]
pandas/_libs/testing.pyx:183: AssertionError
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34635/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34635/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34636
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34636/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34636/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34636/events
|
https://github.com/pandas-dev/pandas/pull/34636
| 634,262,103
|
MDExOlB1bGxSZXF1ZXN0NDMwODM1MzQ1
| 34,636
|
CLN: EWMA cython code and function dispatch
|
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"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-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-08T07:02:17Z
| 2020-06-08T15:28:52Z
| 2020-06-08T14:25:32Z
|
MEMBER
| null |
- [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/34636/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34636/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34636.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34636",
"merged_at": "2020-06-08T14:25:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34636.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34636"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34637
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34637/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34637/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34637/events
|
https://github.com/pandas-dev/pandas/issues/34637
| 634,273,630
|
MDU6SXNzdWU2MzQyNzM2MzA=
| 34,637
|
ENH: specify function to determine NaN when using fillna()
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/66305263?v=4",
"events_url": "https://api.github.com/users/JakobHenning/events{/privacy}",
"followers_url": "https://api.github.com/users/JakobHenning/followers",
"following_url": "https://api.github.com/users/JakobHenning/following{/other_user}",
"gists_url": "https://api.github.com/users/JakobHenning/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JakobHenning",
"id": 66305263,
"login": "JakobHenning",
"node_id": "MDQ6VXNlcjY2MzA1MjYz",
"organizations_url": "https://api.github.com/users/JakobHenning/orgs",
"received_events_url": "https://api.github.com/users/JakobHenning/received_events",
"repos_url": "https://api.github.com/users/JakobHenning/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JakobHenning/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JakobHenning/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JakobHenning"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "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 | 6
| 2020-06-08T07:13:07Z
| 2020-09-04T13:47:45Z
| 2020-09-04T13:47:45Z
|
NONE
| null |
#### Is your feature request related to a problem?
When using `pd.fillna(df)` it does not fill all of the values that `pd.isna(df)` returns as `True`. Furthermore you might have some `NaN` values you want to fill, and some you don't
#### Describe the solution you'd like
include a `nan_function` to be parsed to `fillna()`. The `nan_function` should take a value (or row, or Series) as input and return True/False. Based on that `fillna` determines which values to replace.
```python
#examples
df = df.fillna(nan_function = pd.isnull, values = np.nan) #What pd.isnull returns as True is set to np.nan
df = df.fillna(nan_function = lambda x: x<0, values = np.nan) #Makes all negative numbers np.nan
df = df.fillna(nan_function = np.nan, values = 0) #Only fills np.nan with zeroes
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34637/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34637/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34638
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34638/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34638/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34638/events
|
https://github.com/pandas-dev/pandas/pull/34638
| 634,389,469
|
MDExOlB1bGxSZXF1ZXN0NDMwOTQ4NDI5
| 34,638
|
CLN: deduplicate in core.internals.blocks.interpolate
|
{
"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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-08T08:52:32Z
| 2020-06-09T12:44:41Z
| 2020-06-09T12:36:21Z
|
MEMBER
| null |
broken off #34628
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34638/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34638/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34638.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34638",
"merged_at": "2020-06-09T12:36:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34638.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34638"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34639
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34639/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34639/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34639/events
|
https://github.com/pandas-dev/pandas/issues/34639
| 634,404,405
|
MDU6SXNzdWU2MzQ0MDQ0MDU=
| 34,639
|
ENH: Add max_results to `read_gbq`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
},
{
"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-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-08T09:03:57Z
| 2020-06-09T22:17:20Z
| 2020-06-09T22:17:20Z
|
MEMBER
| null |
For queries for which the purpose is to create/replace tables: `CREATE OR REPLACE TABLE`, if the table is huge, it will eat up a lot of memory currently using `read_gbq`.
And it turns out that since `pandas-gbq==0.12.0`, a new argument `max_results` was implemented to limit the number of rows in result dataframe for e.g. setting it to `0` for DDL queries, which will help save memory.
So it will be nice for pandas to add it for `read_gbq` as `pandas-gbq` does.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34639/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34639/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34640
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34640/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34640/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34640/events
|
https://github.com/pandas-dev/pandas/issues/34640
| 634,430,100
|
MDU6SXNzdWU2MzQ0MzAxMDA=
| 34,640
|
CLN: remove `private_key` and `verbose` from gbq
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9269816?v=4",
"events_url": "https://api.github.com/users/charlesdong1991/events{/privacy}",
"followers_url": "https://api.github.com/users/charlesdong1991/followers",
"following_url": "https://api.github.com/users/charlesdong1991/following{/other_user}",
"gists_url": "https://api.github.com/users/charlesdong1991/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/charlesdong1991",
"id": 9269816,
"login": "charlesdong1991",
"node_id": "MDQ6VXNlcjkyNjk4MTY=",
"organizations_url": "https://api.github.com/users/charlesdong1991/orgs",
"received_events_url": "https://api.github.com/users/charlesdong1991/received_events",
"repos_url": "https://api.github.com/users/charlesdong1991/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/charlesdong1991/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/charlesdong1991/subscriptions",
"type": "User",
"url": "https://api.github.com/users/charlesdong1991"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
},
{
"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": "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
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/51802673?v=4",
"events_url": "https://api.github.com/users/lathamri/events{/privacy}",
"followers_url": "https://api.github.com/users/lathamri/followers",
"following_url": "https://api.github.com/users/lathamri/following{/other_user}",
"gists_url": "https://api.github.com/users/lathamri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lathamri",
"id": 51802673,
"login": "lathamri",
"node_id": "MDQ6VXNlcjUxODAyNjcz",
"organizations_url": "https://api.github.com/users/lathamri/orgs",
"received_events_url": "https://api.github.com/users/lathamri/received_events",
"repos_url": "https://api.github.com/users/lathamri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lathamri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lathamri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lathamri"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/51802673?v=4",
"events_url": "https://api.github.com/users/lathamri/events{/privacy}",
"followers_url": "https://api.github.com/users/lathamri/followers",
"following_url": "https://api.github.com/users/lathamri/following{/other_user}",
"gists_url": "https://api.github.com/users/lathamri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lathamri",
"id": 51802673,
"login": "lathamri",
"node_id": "MDQ6VXNlcjUxODAyNjcz",
"organizations_url": "https://api.github.com/users/lathamri/orgs",
"received_events_url": "https://api.github.com/users/lathamri/received_events",
"repos_url": "https://api.github.com/users/lathamri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lathamri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lathamri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lathamri"
}
] |
{
"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-06-08T09:23:21Z
| 2020-09-24T01:34:43Z
| 2020-09-24T01:34:43Z
|
MEMBER
| null |
Since `verbose` and `private_key` have been deprecated since https://github.com/pandas-dev/pandas/pull/30200, we should also remove both from function since they are not used at all? see them in `read_gbq` and `to_gbq`, e.g.
https://github.com/pandas-dev/pandas/blob/24857a2844be9ee6f604d93ea18301f587751f0a/pandas/io/gbq.py#L33
https://github.com/pandas-dev/pandas/blob/24857a2844be9ee6f604d93ea18301f587751f0a/pandas/io/gbq.py#L34
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34640/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34640/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34641
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34641/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34641/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34641/events
|
https://github.com/pandas-dev/pandas/pull/34641
| 634,543,059
|
MDExOlB1bGxSZXF1ZXN0NDMxMDc4NTcx
| 34,641
|
ENH: Add max_results kwarg to read_gbq
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/18459252?v=4",
"events_url": "https://api.github.com/users/JohnPaton/events{/privacy}",
"followers_url": "https://api.github.com/users/JohnPaton/followers",
"following_url": "https://api.github.com/users/JohnPaton/following{/other_user}",
"gists_url": "https://api.github.com/users/JohnPaton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JohnPaton",
"id": 18459252,
"login": "JohnPaton",
"node_id": "MDQ6VXNlcjE4NDU5MjUy",
"organizations_url": "https://api.github.com/users/JohnPaton/orgs",
"received_events_url": "https://api.github.com/users/JohnPaton/received_events",
"repos_url": "https://api.github.com/users/JohnPaton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JohnPaton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JohnPaton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JohnPaton"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-08T11:53:34Z
| 2020-06-09T22:17:24Z
| 2020-06-09T22:17:20Z
|
CONTRIBUTOR
| null |
Adds support for the new `max_results` kwarg from pandas-gbq (added in [0.12.0](https://github.com/pydata/pandas-gbq/releases/tag/0.12.0)). Since `max_results` is a new kwarg, it is handled and tested in the same way as the `use_bqstorage_api` kwarg to maintain backwards compatibility.
❓ **Open question:** Setting `max_results=0` causes `pandas_gbq.read_gbq` to return `None` instead of a DataFrame. I've kept this behaviour the same in this PR, but maintainers may prefer to always return a (empty) DataFrame instead of `None`.
- [x] closes #34639
- [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/34641/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34641/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34641.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34641",
"merged_at": "2020-06-09T22:17:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34641.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34641"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34642
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34642/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34642/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34642/events
|
https://github.com/pandas-dev/pandas/issues/34642
| 634,561,357
|
MDU6SXNzdWU2MzQ1NjEzNTc=
| 34,642
|
ENH: Support rolling over one level of a MultiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6403904?v=4",
"events_url": "https://api.github.com/users/miccoli/events{/privacy}",
"followers_url": "https://api.github.com/users/miccoli/followers",
"following_url": "https://api.github.com/users/miccoli/following{/other_user}",
"gists_url": "https://api.github.com/users/miccoli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/miccoli",
"id": 6403904,
"login": "miccoli",
"node_id": "MDQ6VXNlcjY0MDM5MDQ=",
"organizations_url": "https://api.github.com/users/miccoli/orgs",
"received_events_url": "https://api.github.com/users/miccoli/received_events",
"repos_url": "https://api.github.com/users/miccoli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/miccoli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/miccoli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/miccoli"
}
|
[
{
"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"
}
] |
open
| false
| null |
[] | null | 4
| 2020-06-08T12:23:27Z
| 2020-10-05T01:24:18Z
| null |
CONTRIBUTOR
| null |
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.
- [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).
---
I had a hard time understanding how [`df.rolling`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rolling.html) works when `df` is indexed by a [MultiIndex](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.MultiIndex.html)
This is an example data frame:
```python
import pandas as pd
idx = pd.MultiIndex.from_product(
[pd.date_range("2020-01-01", "2020-1-10"), ["a", "b"]], names=["date", "obs"],
)
df = pd.DataFrame(index=idx)
df['c1'] = range(len(df))
print(df)
```
which outputs
```
c1
date obs
2020-01-01 a 0
b 1
2020-01-02 a 2
b 3
2020-01-03 a 4
b 5
2020-01-04 a 6
b 7
2020-01-05 a 8
b 9
2020-01-06 a 10
b 11
2020-01-07 a 12
b 13
2020-01-08 a 14
b 15
2020-01-09 a 16
b 17
2020-01-10 a 18
b 19
```
Now I want to apply a rolling window on the `date` level, keeping the `obs` level separate.
I tried with no success obvious and simple (least surprise) commands like
- `df.rolling("7d", index="date")` or
- `df.rolling("7d", on="date")`
but finally the desired result is obtained by
```
df_r = df.groupby(by="obs", group_keys=False).rolling(
"7d", on=df.index.levels[0]
).mean().sort_index()
print(df_r)
```
which gives me the correct result:
```
c1
date obs
2020-01-01 a 0.0
b 1.0
2020-01-02 a 1.0
b 2.0
2020-01-03 a 2.0
b 3.0
2020-01-04 a 3.0
b 4.0
2020-01-05 a 4.0
b 5.0
2020-01-06 a 5.0
b 6.0
2020-01-07 a 6.0
b 7.0
2020-01-08 a 8.0
b 9.0
2020-01-09 a 10.0
b 11.0
2020-01-10 a 12.0
b 13.0
```
It seams to me that this should be a quite common situation, so I was wondering if there is a simpler way to obtain the same results. By the way my solution is not very robust, because there are hidden assumptions on how the objects returned by `groupby` are indexed, which do not necessarily hold for a generic data frame.
Moreover the doc of the `on` parameter in `rolling` was almost incomprehensible to me: I'm still wondering if my usage `rolling( "7d", on=df.index.levels[0])` is the intended one or not.
|
{
"+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/34642/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34642/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34643
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34643/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34643/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34643/events
|
https://github.com/pandas-dev/pandas/issues/34643
| 634,641,842
|
MDU6SXNzdWU2MzQ2NDE4NDI=
| 34,643
|
BUG: Writing Interval columns to Parquet fails
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1200058?v=4",
"events_url": "https://api.github.com/users/Hoeze/events{/privacy}",
"followers_url": "https://api.github.com/users/Hoeze/followers",
"following_url": "https://api.github.com/users/Hoeze/following{/other_user}",
"gists_url": "https://api.github.com/users/Hoeze/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Hoeze",
"id": 1200058,
"login": "Hoeze",
"node_id": "MDQ6VXNlcjEyMDAwNTg=",
"organizations_url": "https://api.github.com/users/Hoeze/orgs",
"received_events_url": "https://api.github.com/users/Hoeze/received_events",
"repos_url": "https://api.github.com/users/Hoeze/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Hoeze/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Hoeze/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Hoeze"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Interval data type",
"id": 150096370,
"name": "Interval",
"node_id": "MDU6TGFiZWwxNTAwOTYzNzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Interval"
},
{
"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": 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-06-08T13:57:53Z
| 2020-12-16T08:22:28Z
| 2020-12-16T08:22:20Z
|
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.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame({"x": [pd.Interval(0, 1), ]})
df.to_parquet("test.parquet")
```
#### Problem description
Saving fails with:
```
---------------------------------------------------------------------------
ArrowException Traceback (most recent call last)
<ipython-input-2-f61461018f44> in <module>
1 import pandas as pd
2 df = pd.DataFrame({"x": [pd.Interval(0, 1), ]})
----> 3 df.to_parquet("~/test2.parquet")
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pandas/util/_decorators.py in wrapper(*args, **kwargs)
212 else:
213 kwargs[new_arg_name] = new_arg_value
--> 214 return func(*args, **kwargs)
215
216 return cast(F, wrapper)
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pandas/core/frame.py in to_parquet(self, path, engine, compression, index, partition_cols, **kwargs)
2114 index=index,
2115 partition_cols=partition_cols,
-> 2116 **kwargs,
2117 )
2118
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pandas/io/parquet.py in to_parquet(df, path, engine, compression, index, partition_cols, **kwargs)
267 index=index,
268 partition_cols=partition_cols,
--> 269 **kwargs,
270 )
271
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pandas/io/parquet.py in write(self, df, path, compression, coerce_timestamps, index, partition_cols, **kwargs)
122 compression=compression,
123 coerce_timestamps=coerce_timestamps,
--> 124 **kwargs,
125 )
126 if should_close:
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pyarrow/parquet.py in write_table(table, where, row_group_size, version, use_dictionary, compression, write_statistics, use_deprecated_int96_timestamps, coerce_timestamps, allow_truncated_timestamps, data_page_size, flavor, filesystem, compression_level, use_byte_stream_split, data_page_version, **kwargs)
1620 data_page_version=data_page_version,
1621 **kwargs) as writer:
-> 1622 writer.write_table(table, row_group_size=row_group_size)
1623 except Exception:
1624 if _is_path_like(where):
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pyarrow/parquet.py in write_table(self, table, row_group_size)
590 raise ValueError(msg)
591
--> 592 self.writer.write_table(table, row_group_size=row_group_size)
593
594 def close(self):
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pyarrow/_parquet.pyx in pyarrow._parquet.ParquetWriter.write_table()
/opt/modules/anaconda/envs/env3/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowException: Unknown error: data type leaf_count != builder_leaf_count1 2
```
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.11-1.el7.elrepo.x86_64
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.17.5
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0.post20200119
Cython : 0.29.14
pytest : 5.3.5
hypothesis : None
sphinx : 2.0.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.17.1
pytables : None
pytest : 5.3.5
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : 0.8.6
xarray : 0.15.0
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : 0.48.0
```
</details>
|
{
"+1": 3,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 3,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34643/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34643/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34644
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34644/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34644/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34644/events
|
https://github.com/pandas-dev/pandas/issues/34644
| 634,648,751
|
MDU6SXNzdWU2MzQ2NDg3NTE=
| 34,644
|
ENH: Support for list of intervals / IntervalArray in to_parquet
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1200058?v=4",
"events_url": "https://api.github.com/users/Hoeze/events{/privacy}",
"followers_url": "https://api.github.com/users/Hoeze/followers",
"following_url": "https://api.github.com/users/Hoeze/following{/other_user}",
"gists_url": "https://api.github.com/users/Hoeze/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Hoeze",
"id": 1200058,
"login": "Hoeze",
"node_id": "MDQ6VXNlcjEyMDAwNTg=",
"organizations_url": "https://api.github.com/users/Hoeze/orgs",
"received_events_url": "https://api.github.com/users/Hoeze/received_events",
"repos_url": "https://api.github.com/users/Hoeze/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Hoeze/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Hoeze/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Hoeze"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] |
open
| false
| null |
[] | null | 0
| 2020-06-08T14:07:09Z
| 2020-06-08T23:03:03Z
| null |
NONE
| null |
#### Is your feature request related to a problem?
I would like to be able to save the following dataframes:
- list of intervals:
```python
import pandas as pd
df = pd.DataFrame({"x": [[pd.Interval(0, 1), pd.Interval(3, 4)]]})
df.to_parquet("test.parquet")
```
- IntervalArray
```python
import pandas as pd
df = pd.DataFrame({"x": [pd.arrays.IntervalArray.from_tuples([(0, 1), (2, 3)]), ]})
df.to_parquet("test.parquet")
```
However, currently both cases fail with:
```
pyarrow.lib.ArrowInvalid: ('Could not convert (0, 1] with type pandas._libs.interval.Interval: did not recognize Python value type when inferring an Arrow data type', 'Conversion failed for column x with type object')
pyarrow.lib.ArrowInvalid: ('Could not convert <IntervalArray>\n[(0, 1], (2, 3]]\nLength: 2, closed: right, dtype: interval[int64] with type IntervalArray: did not recognize Python value type when inferring an Arrow data type', 'Conversion failed for column x with type object')
```
#### Describe the solution you'd like
[this should provide a description of the feature request, e.g. "`DataFrame.foo` should get a new parameter `bar` that [...]", try to write a docstring for the desired feature]
#### API breaking implications
None
#### pd.show_versions()
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Linux
OS-release : 5.6.14-arch1-1
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 1.0.4
numpy : 1.17.2
pytz : 2019.2
dateutil : 2.8.0
pip : 19.2.2
setuptools : 41.0.1
Cython : 0.29.13
pytest : 5.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.15.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.17.1
pytables : None
pytest : 5.0.1
pyxlsb : None
s3fs : None
scipy : 1.3.1
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 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/34644/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34644/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34645
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34645/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34645/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34645/events
|
https://github.com/pandas-dev/pandas/issues/34645
| 634,711,394
|
MDU6SXNzdWU2MzQ3MTEzOTQ=
| 34,645
|
BUG: TypeError: object of type 'int' has no len() when saving DataFrame with object dtype column
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/9163018?v=4",
"events_url": "https://api.github.com/users/Honzys/events{/privacy}",
"followers_url": "https://api.github.com/users/Honzys/followers",
"following_url": "https://api.github.com/users/Honzys/following{/other_user}",
"gists_url": "https://api.github.com/users/Honzys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Honzys",
"id": 9163018,
"login": "Honzys",
"node_id": "MDQ6VXNlcjkxNjMwMTg=",
"organizations_url": "https://api.github.com/users/Honzys/orgs",
"received_events_url": "https://api.github.com/users/Honzys/received_events",
"repos_url": "https://api.github.com/users/Honzys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Honzys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Honzys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Honzys"
}
|
[
{
"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": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-06-08T15:17:17Z
| 2020-06-19T15:05:51Z
| 2020-06-17T18:09:21Z
|
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
df = pd.DataFrame({"a": [None, None]})
df.loc[0, "a"] = float(1)
df.loc[1, "a"] = float(2)
hdf = pd.HDFStore("test.h5", write_mode="w")
hdf.put("table", df, format="table")
```
This causes following error:
```
...
File "/opt/venv/lib64/python3.6/site-packages/pandas/io/pytables.py", line 1042, in put
errors=errors,
File "/opt/venv/lib64/python3.6/site-packages/pandas/io/pytables.py", line 1709, in _write_to_group
data_columns=data_columns,
File "/opt/venv/lib64/python3.6/site-packages/pandas/io/pytables.py", line 4143, in write
data_columns=data_columns,
File "/opt/venv/lib64/python3.6/site-packages/pandas/io/pytables.py", line 3813, in _create_axes
errors=self.errors,
File "/opt/venv/lib64/python3.6/site-packages/pandas/io/pytables.py", line 4800, in _maybe_convert_for_string_atom
for i in range(len(block.shape[0])):
TypeError: object of type 'int' has no len()
```
#### Problem description
After initial creation of DataFrame the dtype is of `object` dtype. After putting float in the `a` column I would expect that the dtype of the `a` column will change to `float64` dtype, but it remains `object` dtype. The problem is that the type of `df.loc[0, "a"]` is `float` during saving the DataFrame, which causes the problem pasted above.
#### Expected Output
I would expect one of the following:
- Implicit conversion of the column to `float` dtype
- Conversion during `hdf.put()`
- Proper exception saying that I am saving mixed typed column
There's a pretty big chance that I am wrong and this is expected behaviour. If that's the case, please, can you explain me why, or point me to somewhere, so that I can read something about it?
Maybe it's linked with this issue #34274
#### Output of ``pd.show_versions()``
<details>
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 4.18.0-147.5.1.el8_1.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.16.4
pytz : 2018.7
dateutil : 2.8.1
pip : 19.3.1
setuptools : 46.4.0
Cython : 0.29.2
pytest : 5.1.2
hypothesis : None
sphinx : 1.8.4
blosc : None
feather : None
xlsxwriter : 1.1.2
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.9.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 2.0.0
numexpr : 2.6.8
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.1.2
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.1.2
numba : None
</details>
|
{
"+1": 5,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 5,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34645/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34645/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34646
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34646/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34646/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34646/events
|
https://github.com/pandas-dev/pandas/pull/34646
| 634,715,867
|
MDExOlB1bGxSZXF1ZXN0NDMxMjIwNzUz
| 34,646
|
DOC: updated io/sql.py for PR08 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-08T15:23:27Z
| 2020-06-08T22:58:15Z
| 2020-06-08T22:58:12Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34646/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34646/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34646.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34646",
"merged_at": "2020-06-08T22:58:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34646.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34646"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34647
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34647/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34647/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34647/events
|
https://github.com/pandas-dev/pandas/pull/34647
| 634,732,767
|
MDExOlB1bGxSZXF1ZXN0NDMxMjM0MjQ5
| 34,647
|
TST: groupby apply with indexing and column aggregation returns the column #7002
|
{
"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": "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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 6
| 2020-06-08T15:46:45Z
| 2020-06-15T03:11:17Z
| 2020-06-14T22:20:51Z
|
MEMBER
| null |
Adds test for #7002
- [x] closes #7002
- [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/34647/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34647/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34647.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34647",
"merged_at": "2020-06-14T22:20:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34647.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34647"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34648
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34648/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34648/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34648/events
|
https://github.com/pandas-dev/pandas/pull/34648
| 634,752,278
|
MDExOlB1bGxSZXF1ZXN0NDMxMjQ5NzY4
| 34,648
|
REF: de-duplicate month/year rolling in libperiod
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-08T16:14:05Z
| 2020-06-09T00:55:19Z
| 2020-06-09T00:53:55Z
|
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/34648/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34648/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34648.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34648",
"merged_at": "2020-06-09T00:53:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34648.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34648"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34649
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34649/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34649/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34649/events
|
https://github.com/pandas-dev/pandas/pull/34649
| 634,753,669
|
MDExOlB1bGxSZXF1ZXN0NDMxMjUwODkz
| 34,649
|
REF: simplify libperiod.get_yq
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-08T16:16:09Z
| 2020-06-08T23:10:47Z
| 2020-06-08T22:55:10Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34649/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34649/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34649.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34649",
"merged_at": "2020-06-08T22:55:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34649.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34649"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34650
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34650/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34650/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34650/events
|
https://github.com/pandas-dev/pandas/issues/34650
| 634,759,676
|
MDU6SXNzdWU2MzQ3NTk2NzY=
| 34,650
|
June 2020 Meeting
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-06-08T16:25:19Z
| 2020-06-12T20:18:24Z
| 2020-06-12T20:18:24Z
|
CONTRIBUTOR
| null |
The monthly dev meeting is Wednesday June 10th, at 18:00 UTC. Our calendar is at https://pandas.pydata.org/docs/development/meeting.html#calendar to check your local time.
Video Call: https://zoom.us/j/942410248
Minutes: https://docs.google.com/document/u/1/d/1tGbTiYORHiSPgVMXawiweGJlBw5dOkVJLY-licoBmBU/edit?ouid=102771015311436394588&usp=docs_home&ths=true
Please add items you'd like to see discussed to the agenda.
All are welcome to attend.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34650/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34650/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34651
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34651/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34651/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34651/events
|
https://github.com/pandas-dev/pandas/issues/34651
| 634,784,548
|
MDU6SXNzdWU2MzQ3ODQ1NDg=
| 34,651
|
BUG: df.groupby().apply() returns an empty df instead of a None-only Series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10146804?v=4",
"events_url": "https://api.github.com/users/orenmn/events{/privacy}",
"followers_url": "https://api.github.com/users/orenmn/followers",
"following_url": "https://api.github.com/users/orenmn/following{/other_user}",
"gists_url": "https://api.github.com/users/orenmn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/orenmn",
"id": 10146804,
"login": "orenmn",
"node_id": "MDQ6VXNlcjEwMTQ2ODA0",
"organizations_url": "https://api.github.com/users/orenmn/orgs",
"received_events_url": "https://api.github.com/users/orenmn/received_events",
"repos_url": "https://api.github.com/users/orenmn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/orenmn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/orenmn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/orenmn"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-06-08T16:59:02Z
| 2021-08-07T22:51:56Z
| 2021-08-07T22:51:56Z
|
NONE
| null |
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df = pd.DataFrame({'a': (1, 2, 2)})
# The problem
df.groupby('a').apply(lambda x: None)
# The problem with a bit more context
df.groupby('a').apply(lambda group_df: 'foo' if len(group_df) > 0 else None)
df.groupby('a').apply(lambda group_df: 'foo' if len(group_df) > 1 else None)
df.groupby('a').apply(lambda group_df: 'foo' if len(group_df) > 2 else None)
```
#### Problem description
The first and last calls to apply in the above code each return an empty DataFrame.
Instead, they should behave like the other two calls to apply, i.e., return a Series that contains the values returned by the call to the lambda function on each group.
It seems to me that the trigger to the bug is that the applied function returns None for all groups.
#### Expected Output
```python
>>> df.groupby('a').apply(lambda x: None) # The output is actually an empty df
a
1 None
2 None
>>> # The problem with a bit more context
>>> df.groupby('a').apply(lambda group_df: 'foo' if len(group_df) > 0 else None)
a
1 foo
2 foo
dtype: object
>>> df.groupby('a').apply(lambda group_df: 'foo' if len(group_df) > 1 else None)
a
1 None
2 foo
dtype: object
>>> df.groupby('a').apply(lambda group_df: 'foo' if len(group_df) > 2 else None) # The output is actually an empty df
a
1 None
2 None
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-101-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.4.0.post20200518
Cython : 0.29.17
pytest : 5.4.2
hypothesis : 5.11.0
sphinx : 3.0.3
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.2
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.17
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.8
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/34651/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34651/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34652
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34652/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34652/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34652/events
|
https://github.com/pandas-dev/pandas/pull/34652
| 634,806,188
|
MDExOlB1bGxSZXF1ZXN0NDMxMjkyMzEw
| 34,652
|
DOC: updated plotting/_misc.py for PR08 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 4
| 2020-06-08T17:34:57Z
| 2020-06-09T17:36:00Z
| 2020-06-09T17:35:41Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34652/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34652/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34652.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34652",
"merged_at": "2020-06-09T17:35:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34652.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34652"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34653
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34653/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34653/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34653/events
|
https://github.com/pandas-dev/pandas/pull/34653
| 634,832,957
|
MDExOlB1bGxSZXF1ZXN0NDMxMzEzNTAx
| 34,653
|
DOC: updated _testing.py for PR08 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-08T18:21:23Z
| 2020-06-08T22:57:02Z
| 2020-06-08T22:56:50Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34653/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34653/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34653.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34653",
"merged_at": "2020-06-08T22:56:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34653.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34653"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34654
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34654/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34654/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34654/events
|
https://github.com/pandas-dev/pandas/pull/34654
| 634,883,776
|
MDExOlB1bGxSZXF1ZXN0NDMxMzU1NTQx
| 34,654
|
#34640: CLN: remove 'private_key' and 'verbose' from gbq
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/59840783?v=4",
"events_url": "https://api.github.com/users/parkdj1/events{/privacy}",
"followers_url": "https://api.github.com/users/parkdj1/followers",
"following_url": "https://api.github.com/users/parkdj1/following{/other_user}",
"gists_url": "https://api.github.com/users/parkdj1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/parkdj1",
"id": 59840783,
"login": "parkdj1",
"node_id": "MDQ6VXNlcjU5ODQwNzgz",
"organizations_url": "https://api.github.com/users/parkdj1/orgs",
"received_events_url": "https://api.github.com/users/parkdj1/received_events",
"repos_url": "https://api.github.com/users/parkdj1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/parkdj1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/parkdj1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/parkdj1"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
},
{
"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"
}
| 8
| 2020-06-08T19:39:16Z
| 2020-09-24T01:34:48Z
| 2020-09-24T01:34:44Z
|
CONTRIBUTOR
| null |
- [x ] closes #34640
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Hello, I am new to contributing to open source, so thank you in advance for any corrections and suggestions. Please let me know if I need to do anything else for this ticket!
I removed the code containing both 'private_key' and 'verbose' from the gbq.py file.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34654/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34654/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34654.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34654",
"merged_at": "2020-09-24T01:34:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34654.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34654"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34655
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34655/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34655/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34655/events
|
https://github.com/pandas-dev/pandas/issues/34655
| 634,895,809
|
MDU6SXNzdWU2MzQ4OTU4MDk=
| 34,655
|
read_csv cannot use dtype and true_values/false_values
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14912885?v=4",
"events_url": "https://api.github.com/users/JonnyWaffles/events{/privacy}",
"followers_url": "https://api.github.com/users/JonnyWaffles/followers",
"following_url": "https://api.github.com/users/JonnyWaffles/following{/other_user}",
"gists_url": "https://api.github.com/users/JonnyWaffles/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JonnyWaffles",
"id": 14912885,
"login": "JonnyWaffles",
"node_id": "MDQ6VXNlcjE0OTEyODg1",
"organizations_url": "https://api.github.com/users/JonnyWaffles/orgs",
"received_events_url": "https://api.github.com/users/JonnyWaffles/received_events",
"repos_url": "https://api.github.com/users/JonnyWaffles/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JonnyWaffles/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JonnyWaffles/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JonnyWaffles"
}
|
[
{
"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"
},
{
"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": "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"
}
| 2
| 2020-06-08T20:00:40Z
| 2021-01-09T22:18:23Z
| 2021-01-09T22:18:22Z
|
NONE
| null |
Hi friends,
Not sure if this is working as intended, but it appears you cannot use both dtype and true_values or false_values kwargs when reading csv.
```python
from io import StringIO
from csv import writer
import pandas as pd
import pytest
def test_pandas_read_write():
df = pd.DataFrame({'A': ['yes', 'no'], 'B': ['yes', 'no']})
out_io = StringIO(newline='')
df.to_csv(out_io, index=False)
out_io.seek(0)
pd.read_csv(out_io)
out_io.seek(0)
kwargs = dict(dtype={'A': 'boolean', 'B': 'boolean'})
with pytest.raises(ValueError):
pd.read_csv(out_io, **kwargs)
kwargs.update({'true_values': ['yes'], 'false_values': ['no']})
out_io.seek(0)
with pytest.raises(ValueError):
pd.read_csv(out_io, **kwargs)
out_io.seek(0)
# pop dtype so true/false values work
kwargs.pop('dtype')
pd.read_csv(out_io, **kwargs)
```
Using converters kwarg to get the data how I like will fix my problem, but we may want to update the docs to let users know true/false user defined values will not work in conjugation with providing the boolean type.
|
{
"+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/34655/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34655/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34656
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34656/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34656/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34656/events
|
https://github.com/pandas-dev/pandas/issues/34656
| 634,971,276
|
MDU6SXNzdWU2MzQ5NzEyNzY=
| 34,656
|
BUG: groupby.min has a side effect on groupby.apply
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/11276794?v=4",
"events_url": "https://api.github.com/users/gshimansky/events{/privacy}",
"followers_url": "https://api.github.com/users/gshimansky/followers",
"following_url": "https://api.github.com/users/gshimansky/following{/other_user}",
"gists_url": "https://api.github.com/users/gshimansky/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gshimansky",
"id": 11276794,
"login": "gshimansky",
"node_id": "MDQ6VXNlcjExMjc2Nzk0",
"organizations_url": "https://api.github.com/users/gshimansky/orgs",
"received_events_url": "https://api.github.com/users/gshimansky/received_events",
"repos_url": "https://api.github.com/users/gshimansky/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gshimansky/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gshimansky/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gshimansky"
}
|
[
{
"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"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3813175?v=4",
"events_url": "https://api.github.com/users/smithto1/events{/privacy}",
"followers_url": "https://api.github.com/users/smithto1/followers",
"following_url": "https://api.github.com/users/smithto1/following{/other_user}",
"gists_url": "https://api.github.com/users/smithto1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/smithto1",
"id": 3813175,
"login": "smithto1",
"node_id": "MDQ6VXNlcjM4MTMxNzU=",
"organizations_url": "https://api.github.com/users/smithto1/orgs",
"received_events_url": "https://api.github.com/users/smithto1/received_events",
"repos_url": "https://api.github.com/users/smithto1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/smithto1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/smithto1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/smithto1"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/3813175?v=4",
"events_url": "https://api.github.com/users/smithto1/events{/privacy}",
"followers_url": "https://api.github.com/users/smithto1/followers",
"following_url": "https://api.github.com/users/smithto1/following{/other_user}",
"gists_url": "https://api.github.com/users/smithto1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/smithto1",
"id": 3813175,
"login": "smithto1",
"node_id": "MDQ6VXNlcjM4MTMxNzU=",
"organizations_url": "https://api.github.com/users/smithto1/orgs",
"received_events_url": "https://api.github.com/users/smithto1/received_events",
"repos_url": "https://api.github.com/users/smithto1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/smithto1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/smithto1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/smithto1"
}
] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 7
| 2020-06-08T22:18:35Z
| 2020-08-07T16:56:13Z
| 2020-08-07T16:56:13Z
|
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
df = pd.DataFrame(
{
"col1": [0, 1, 2, 3],
"col4": [17, 13, 16, 15],
"col5": [-4, -5, -6, -7],
}
)
by=["col4", "col5"]
apply_function = min
gb = df.groupby(by, as_index=True)
df1 = gb.apply(apply_function)
print(df1)
df2 = gb.min()
print(df2)
df3 = gb.apply(apply_function)
print(df3)
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
In the code above two calls to `gb.apply(apply_function)` produce different output. The reason for this is that `groupby.min` is called before 2nd `apply` and makes its output different and incorrect.
#### Expected Output
Expected that both calls to `gb.apply(apply_function)` produce the same output.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-26-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.4
pytz : 2019.2
dateutil : 2.7.3
pip : 20.1.1
setuptools : 47.1.0
Cython : 0.29.17
pytest : 5.4.2
hypothesis : None
sphinx : None
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : 4.5.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.1
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : 0.13.2
pyarrow : 0.16.0
pytables : None
pytest : 5.4.2
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.17
tables : 3.6.1
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : 0.46.0
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34656/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34656/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34657
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34657/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34657/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34657/events
|
https://github.com/pandas-dev/pandas/issues/34657
| 634,978,213
|
MDU6SXNzdWU2MzQ5NzgyMTM=
| 34,657
|
PERF: don't consolidate at __init__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-06-08T22:34:53Z
| 2020-09-05T19:03:39Z
| 2020-09-05T19:03:39Z
|
MEMBER
| null |
xref mailing list [discussion](https://mail.python.org/pipermail/pandas-dev/2020-June/001246.html)
ATM most calls to `DataFrame(foo)` will end up going through either `core.internals.managers.create_manager_from_blocks` or `core.internals.managers.create_block_manager_from_arrays`, both of which call `mgr._consolidate_inplace()` before returning a `BlockManager` object. I think we should consider disabling this consolidation. (There is also consolidation-by-another-name within form_blocks that im still tracking down)
Behavior-wise, consider:
```
arr = np.random.randn(10)
ser = pd.Series(arr)
df = pd.DataFrame({"A": arr, "B": ser})
```
ATM we get a new 2x10 array backing `df`. The proposed change would mean that we keep 2 separate arrays, and `df["B"]` shares data with `ser`. I find the proposed behavior more intuitive.
Performance-wise, we expect faster construction but slower subsequent operations. [note to self: get some estimates/measurements here]. For long-lived DataFrames where the subsequent slowdowns add up, we can suggest users call `_consolidate()` (which i guess we would have to de-privatize)
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34657/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34657/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34658
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34658/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34658/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34658/events
|
https://github.com/pandas-dev/pandas/pull/34658
| 634,978,502
|
MDExOlB1bGxSZXF1ZXN0NDMxNDMyNDk5
| 34,658
|
CLN: disallow passing tuples for Period freq
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-08T22:35:33Z
| 2020-06-09T01:57:10Z
| 2020-06-09T01:47:00Z
|
MEMBER
| null |
Really looking forward to killing off `get_freq_code`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34658/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34658/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34658.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34658",
"merged_at": "2020-06-09T01:47:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34658.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34658"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34659
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34659/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34659/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34659/events
|
https://github.com/pandas-dev/pandas/pull/34659
| 634,981,239
|
MDExOlB1bGxSZXF1ZXN0NDMxNDM0Njgz
| 34,659
|
REF: avoid get_freq_code
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-08T22:42:17Z
| 2020-06-09T17:49:43Z
| 2020-06-09T17:14:52Z
|
MEMBER
| null |
We'll be able to rip it out entirely after this, #34658, and #34587.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34659/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34659/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34659.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34659",
"merged_at": "2020-06-09T17:14:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34659.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34659"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34660
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34660/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34660/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34660/events
|
https://github.com/pandas-dev/pandas/issues/34660
| 635,263,194
|
MDU6SXNzdWU2MzUyNjMxOTQ=
| 34,660
|
BUG: ExtensionArray.equals expects ExtensionArray.all to return a numpy.bool_
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/70274?v=4",
"events_url": "https://api.github.com/users/xhochy/events{/privacy}",
"followers_url": "https://api.github.com/users/xhochy/followers",
"following_url": "https://api.github.com/users/xhochy/following{/other_user}",
"gists_url": "https://api.github.com/users/xhochy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xhochy",
"id": 70274,
"login": "xhochy",
"node_id": "MDQ6VXNlcjcwMjc0",
"organizations_url": "https://api.github.com/users/xhochy/orgs",
"received_events_url": "https://api.github.com/users/xhochy/received_events",
"repos_url": "https://api.github.com/users/xhochy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xhochy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xhochy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xhochy"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-09T09:20:44Z
| 2020-06-09T15:37:45Z
| 2020-06-09T15:37:45Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [ ] 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.
---
#### Problem description
The current implementation of `ExtensionArray.equals` expects that the implementation of `ExtensionArray.all` always returns a numpy scalar, see https://github.com/pandas-dev/pandas/blob/942beba1e8f49c931b7c501bb1eec0e383313ac7/pandas/core/arrays/base.py#L741. If you don't use `numpy` as the backing memory store, I don't it is reasonable to stick to NumPy scalars here.
Instead, the method should unpack `numpy` scalars if necessary but passthrough otherwise.
Context: This appeared while running the unit tests with `fletcher` and `pandas`' master.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34660/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34660/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34661
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34661/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34661/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34661/events
|
https://github.com/pandas-dev/pandas/pull/34661
| 635,268,810
|
MDExOlB1bGxSZXF1ZXN0NDMxNjYxMjA2
| 34,661
|
BUG: Allow plain bools in ExtensionArray.equals
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/70274?v=4",
"events_url": "https://api.github.com/users/xhochy/events{/privacy}",
"followers_url": "https://api.github.com/users/xhochy/followers",
"following_url": "https://api.github.com/users/xhochy/following{/other_user}",
"gists_url": "https://api.github.com/users/xhochy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/xhochy",
"id": 70274,
"login": "xhochy",
"node_id": "MDQ6VXNlcjcwMjc0",
"organizations_url": "https://api.github.com/users/xhochy/orgs",
"received_events_url": "https://api.github.com/users/xhochy/received_events",
"repos_url": "https://api.github.com/users/xhochy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/xhochy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xhochy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/xhochy"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-09T09:28:51Z
| 2020-06-09T16:50:12Z
| 2020-06-09T15:37:45Z
|
CONTRIBUTOR
| null |
- [x] closes #34660
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34661/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34661/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34661.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34661",
"merged_at": "2020-06-09T15:37:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34661.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34661"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34662
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34662/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34662/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34662/events
|
https://github.com/pandas-dev/pandas/issues/34662
| 635,308,853
|
MDU6SXNzdWU2MzUzMDg4NTM=
| 34,662
|
BUG: read_excel with dtype=np.int32 can't handle empty or nan cells
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12545754?v=4",
"events_url": "https://api.github.com/users/joha1/events{/privacy}",
"followers_url": "https://api.github.com/users/joha1/followers",
"following_url": "https://api.github.com/users/joha1/following{/other_user}",
"gists_url": "https://api.github.com/users/joha1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joha1",
"id": 12545754,
"login": "joha1",
"node_id": "MDQ6VXNlcjEyNTQ1NzU0",
"organizations_url": "https://api.github.com/users/joha1/orgs",
"received_events_url": "https://api.github.com/users/joha1/received_events",
"repos_url": "https://api.github.com/users/joha1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joha1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joha1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joha1"
}
|
[
{
"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": "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 | 1
| 2020-06-09T10:27:06Z
| 2020-09-04T13:49:05Z
| 2020-09-04T13:49:05Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
Though there's some similar issues, like https://github.com/pandas-dev/pandas/issues/20377
- [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
**EDIT:**
(won't let me comment)
Apparently, it's possible with `dtype='Int64'` (capital `I` and in ticks).
https://pandas.pydata.org/pandas-docs/version/0.24/whatsnew/v0.24.0.html#optional-integer-na-support
Unfortunately, that's not very well documented. https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html makes it sound like you're supposed to give it a numpy type.
So it's more of a documentation issue, instead of a bug
**/EDIT**
```python
# save the lines below as test.xls:
ID string
1 a
2 b
3 c
d
4 e
nan f
6 g
# code:
test = pd.read_excel('test.xls')
test
ID string
0 1.0 a
1 2.0 b
2 3.0 c
3 NaN d
4 4.0 e
5 NaN f
6 6.0 g
# note that the IDs gained a decimal! They're needed as an ID to retrive some files, to that 0 is breaking things. So let's import `ID` as integer:
test = pd.read_excel('test.xls', dtype={'ID':np.int32})
ValueError Traceback (most recent call last)
...
ValueError: Cannot convert non-finite values (NA or inf) to integer
...
ValueError: Unable to convert column ID to type <class 'numpy.int32'>
# similar things happen with the nan cell.
```
#### Problem description
Importing an excel file with `nan` or ` ` in a column of integers fails, when specifying this column as `dtype=np.int32`
#### Expected Output
setting `nan` or ` ` as `np.nan` or similar or having a documented workaround in the documentation. `na_filter=False` seems promising, but doesn't do anything.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 4.18.0-147.8.1.el8_1.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 47.1.1.post20200604
Cython : 0.29.17
pytest : 5.4.2
hypothesis : 5.5.4
sphinx : 3.0.4
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.2
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.17
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.8
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/34662/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34662/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34663
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34663/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34663/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34663/events
|
https://github.com/pandas-dev/pandas/issues/34663
| 635,319,003
|
MDU6SXNzdWU2MzUzMTkwMDM=
| 34,663
|
DEPR: behavior of `copy` argument in `df.reindex` is confusing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5236149?v=4",
"events_url": "https://api.github.com/users/fujiaxiang/events{/privacy}",
"followers_url": "https://api.github.com/users/fujiaxiang/followers",
"following_url": "https://api.github.com/users/fujiaxiang/following{/other_user}",
"gists_url": "https://api.github.com/users/fujiaxiang/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fujiaxiang",
"id": 5236149,
"login": "fujiaxiang",
"node_id": "MDQ6VXNlcjUyMzYxNDk=",
"organizations_url": "https://api.github.com/users/fujiaxiang/orgs",
"received_events_url": "https://api.github.com/users/fujiaxiang/received_events",
"repos_url": "https://api.github.com/users/fujiaxiang/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fujiaxiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fujiaxiang/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fujiaxiang"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] |
open
| false
| null |
[] | null | 4
| 2020-06-09T10:42:16Z
| 2021-11-10T09:41:00Z
| null |
MEMBER
| null |
This was inspired by #33888 and #34584
#### Problem description
The behavior of `copy` argument in `df.reindex` is confusing. Current docstring does it explain it sufficiently clear. It also seems to me `copy` is unnecessary.
Currently the docstring says
```
...
A new object is produced unless the new index is equivalent to the current one and ``copy=False``.
...
copy : bool, default True
Return a new object, even if the passed indexes are the same.
```
It is hard to clarify what is considered an "equivalent" index. See below for more details.
Further, I believe users rarely purposefully tries to `reindex` with an "equivalent" index. It happens only if the user does not yet know the current index or the index to conform to, in which case a consistent behavior (e.g. always return new object) is probably preferred.
```python
# On current master
>>> pd.__version__
'1.1.0.dev0+1802.g942beba1e'
>>> df = pd.DataFrame(range(3))
>>> df
0
0 0
1 1
2 2
>>> df.index
RangeIndex(start=0, stop=3, step=1)
# not equivalent
>>> df is df.reindex(range(3), copy=False)
False
# not equivalent
>>> df is df.reindex(list(range(3)), copy=False)
False
# equivalent
>>> df is df.reindex(pd.RangeIndex(start=0, stop=3, step=1), copy=False)
True
>>> df = pd.DataFrame(range(3), index=list(range(3)))
>>> df
0
0 0
1 1
2 2
>>> df.index
Int64Index([0, 1, 2], dtype='int64')
# not equivalent
>>> df is df.reindex(range(3), copy=False)
False
# even this is considered not equivalent
>>> df is df.reindex(list(range(3)), copy=False)
False
>>> df is df.reindex(pd.Int64Index([0, 1, 2]), copy=False)
True
```
You can see it is actually pretty strict to be "equivalent". I feel it does really make sense to have this `copy` parameter because `reindex` will return a new object in most cases anyway even when `copy=False`.
So the question is, can we deprecate `copy`?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34663/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34663/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34664
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34664/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34664/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34664/events
|
https://github.com/pandas-dev/pandas/pull/34664
| 635,361,137
|
MDExOlB1bGxSZXF1ZXN0NDMxNzM1NzU5
| 34,664
|
Backport PR #34458 on branch 1.0.x (CLN: Clean csv files in test data GH34427)
|
{
"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 |
[] |
{
"closed_at": "2020-06-18T13:09:32Z",
"closed_issues": 28,
"created_at": "2020-05-30T13:59:46Z",
"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.0.x",
"due_on": "2020-06-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/74",
"id": 5480671,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ4MDY3MQ==",
"number": 74,
"open_issues": 0,
"state": "closed",
"title": "1.0.5",
"updated_at": "2020-06-18T13:09:32Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74"
}
| 4
| 2020-06-09T11:50:34Z
| 2020-06-10T10:49:18Z
| 2020-06-09T12:41:51Z
|
MEMBER
| null |
xref #34458
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34664/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34664/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34664.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34664",
"merged_at": "2020-06-09T12:41:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34664.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34664"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34665
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34665/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34665/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34665/events
|
https://github.com/pandas-dev/pandas/issues/34665
| 635,456,169
|
MDU6SXNzdWU2MzU0NTYxNjk=
| 34,665
|
BUG: DataFrame.to_dict() converts Nullable Int types to numpy.int
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/858439?v=4",
"events_url": "https://api.github.com/users/dmlogv/events{/privacy}",
"followers_url": "https://api.github.com/users/dmlogv/followers",
"following_url": "https://api.github.com/users/dmlogv/following{/other_user}",
"gists_url": "https://api.github.com/users/dmlogv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dmlogv",
"id": 858439,
"login": "dmlogv",
"node_id": "MDQ6VXNlcjg1ODQzOQ==",
"organizations_url": "https://api.github.com/users/dmlogv/orgs",
"received_events_url": "https://api.github.com/users/dmlogv/received_events",
"repos_url": "https://api.github.com/users/dmlogv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dmlogv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dmlogv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dmlogv"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
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"
}
| 4
| 2020-06-09T13:58:50Z
| 2021-08-13T10:36:10Z
| null |
NONE
| null |
#### Problem description
`DataFrame.to_dict()` method do not cast Nullable Int types (`Int*Dtype`) into Python `int` type. Instead, it unwrapping into `numpy.int*` types.
Possibly related to: #27616, #25969, #21256
#### Expected Output
Native Python `int` type.
#### Reproduction
Make some data:
```python
import pandas as pd
df = pd.DataFrame({'id': range(5),
'coeff': [i * 0.1 for i in range(5)],
'is_hot': [True] * 2 + [False] * 3,
'value': [1, None, 2, 3, None]})
df
```
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>id</th>
<th>coeff</th>
<th>is_hot</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>0</td>
<td>0.0</td>
<td>True</td>
<td>1.0</td>
</tr>
<tr>
<th>1</th>
<td>1</td>
<td>0.1</td>
<td>True</td>
<td>NaN</td>
</tr>
<tr>
<th>2</th>
<td>2</td>
<td>0.2</td>
<td>False</td>
<td>2.0</td>
</tr>
<tr>
<th>3</th>
<td>3</td>
<td>0.3</td>
<td>False</td>
<td>3.0</td>
</tr>
<tr>
<th>4</th>
<td>4</td>
<td>0.4</td>
<td>False</td>
<td>NaN</td>
</tr>
</tbody>
</table>
```python
df.dtypes
id int64
coeff float64
is_hot bool
value float64
dtype: object
```
`value` have to be a nullable `int`:
```python
df['value'] = df['value'].astype(pd.Int64Dtype())
df.dtypes
id int64
coeff float64
is_hot bool
value Int64
dtype: object
```
Looks great. But convert a dataframe to `dict`:
```python
dicts = df.to_dict(orient='records')
dicts
[{'id': 0, 'coeff': 0.0, 'is_hot': True, 'value': 1},
{'id': 1, 'coeff': 0.1, 'is_hot': True, 'value': nan},
{'id': 2, 'coeff': 0.2, 'is_hot': False, 'value': 2},
{'id': 3, 'coeff': 0.30000000000000004, 'is_hot': False, 'value': 3},
{'id': 4, 'coeff': 0.4, 'is_hot': False, 'value': nan}]
```
```python
pd.DataFrame(
[[type(v) for k, v in row.items()] for row in dicts],
columns=dicts[0].keys())
```
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>id</th>
<th>coeff</th>
<th>is_hot</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td><class 'int'></td>
<td><class 'float'></td>
<td><class 'bool'></td>
<td><class 'numpy.int64'></td>
</tr>
<tr>
<th>1</th>
<td><class 'int'></td>
<td><class 'float'></td>
<td><class 'bool'></td>
<td><class 'float'></td>
</tr>
<tr>
<th>2</th>
<td><class 'int'></td>
<td><class 'float'></td>
<td><class 'bool'></td>
<td><class 'numpy.int64'></td>
</tr>
<tr>
<th>3</th>
<td><class 'int'></td>
<td><class 'float'></td>
<td><class 'bool'></td>
<td><class 'numpy.int64'></td>
</tr>
<tr>
<th>4</th>
<td><class 'int'></td>
<td><class 'float'></td>
<td><class 'bool'></td>
<td><class 'float'></td>
</tr>
</tbody>
</table>
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Darwin
OS-release : 19.4.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.8.1
pip : 19.2.3
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.15.0
pandas_datareader: None
bs4 : 4.8.1
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
```
</details>
|
{
"+1": 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/34665/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34665/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34666
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34666/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34666/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34666/events
|
https://github.com/pandas-dev/pandas/issues/34666
| 635,479,190
|
MDU6SXNzdWU2MzU0NzkxOTA=
| 34,666
|
BUG: Source build issue with with py38
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-06-18T13:09:32Z",
"closed_issues": 28,
"created_at": "2020-05-30T13:59:46Z",
"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.0.x",
"due_on": "2020-06-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/74",
"id": 5480671,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ4MDY3MQ==",
"number": 74,
"open_issues": 0,
"state": "closed",
"title": "1.0.5",
"updated_at": "2020-06-18T13:09:32Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74"
}
| 0
| 2020-06-09T14:28:06Z
| 2020-06-11T15:29:02Z
| 2020-06-11T15:29:02Z
|
CONTRIBUTOR
| null |
We don't have a py38 entry in our `pyproject.toml`, so when building from source for 3.8 we fetch NumPy 1.15.4, which isn't compatible with py38. Fix incoming.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34666/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34666/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34667
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34667/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34667/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34667/events
|
https://github.com/pandas-dev/pandas/pull/34667
| 635,480,722
|
MDExOlB1bGxSZXF1ZXN0NDMxODM3MDIz
| 34,667
|
BLD: pyproject.toml for Py38
|
{
"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": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-06-18T13:09:32Z",
"closed_issues": 28,
"created_at": "2020-05-30T13:59:46Z",
"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.0.x",
"due_on": "2020-06-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/74",
"id": 5480671,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ4MDY3MQ==",
"number": 74,
"open_issues": 0,
"state": "closed",
"title": "1.0.5",
"updated_at": "2020-06-18T13:09:32Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74"
}
| 4
| 2020-06-09T14:29:53Z
| 2020-06-15T09:17:23Z
| 2020-06-11T15:29:02Z
|
CONTRIBUTOR
| null |
Closes https://github.com/pandas-dev/pandas/issues/34666
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34667/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34667/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34667.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34667",
"merged_at": "2020-06-11T15:29:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34667.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34667"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34668
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34668/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34668/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34668/events
|
https://github.com/pandas-dev/pandas/pull/34668
| 635,537,586
|
MDExOlB1bGxSZXF1ZXN0NDMxODg1ODYy
| 34,668
|
BUG: GH29461 Strftime
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13473688?v=4",
"events_url": "https://api.github.com/users/matteosantama/events{/privacy}",
"followers_url": "https://api.github.com/users/matteosantama/followers",
"following_url": "https://api.github.com/users/matteosantama/following{/other_user}",
"gists_url": "https://api.github.com/users/matteosantama/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matteosantama",
"id": 13473688,
"login": "matteosantama",
"node_id": "MDQ6VXNlcjEzNDczNjg4",
"organizations_url": "https://api.github.com/users/matteosantama/orgs",
"received_events_url": "https://api.github.com/users/matteosantama/received_events",
"repos_url": "https://api.github.com/users/matteosantama/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matteosantama/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matteosantama/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matteosantama"
}
|
[
{
"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": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-06-09T15:29:49Z
| 2020-09-25T15:06:59Z
| 2020-09-25T15:06:59Z
|
CONTRIBUTOR
| null |
- [x] closes #29461
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Closed the other PR while I sorted some things out.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34668/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34668/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34668.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34668",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/34668.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34668"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34669
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34669/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34669/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34669/events
|
https://github.com/pandas-dev/pandas/issues/34669
| 635,542,639
|
MDU6SXNzdWU2MzU1NDI2Mzk=
| 34,669
|
Practical steps towards a simplified BlockManager
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "207de5",
"default": false,
"description": "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 | 7
| 2020-06-09T15:36:41Z
| 2021-08-07T22:53:18Z
| null |
MEMBER
| null |
In the mailing list discussion on a simplified (non-consolidating) BlockManager, @jbrockmendel brought up the relevant question of how we could get there (incrementally?): https://mail.python.org/pipermail/pandas-dev/2020-May/001223.html
Since that is a more practical discussion, moving that to an issue here.
**Longer term**, there are multiple options of how such a blockmanager could be enabled by the user (listing 2 here, but there are probably other options as well):
- Go "all in" on extension arrays. We briefly discussed before the idea of using (nullable) extension dtypes for all dtypes by default in pandas 2.0. If we strive towards that, and assuming we keep the current 1D-restriction on ExtensionBlock, then we would "automatically" get a BlockManager with 1D blocks. And we could then focus on optimizing code paths specifically for the case of having all 1D ExtensionBlocks.
- A "consolidation policy" option similarly as in the branch discussed in https://github.com/pandas-dev/pandas/issues/10556. Right now, that branch still uses 2D blocks (but separate 2D blocks of shape (1, n) per column) and not actually 1D blocks. So that might not be fully ideal. We could add 1D versions of our numeric blocks as well, but that would probably add a lot of complexity, although
temporary, to the Blocks, so maybe not an ideal path forward.
For the "all extension arrays" option, we could also use light-weight EAs to store numpy arrays (like the "PandasArrays" we have now, only then actually using it), as long as we don't yet have actual extension arrays for all dtypes.
For both, we could have a constructor keyword to enabled it, and/or a global config option to enable it.
Now, **on the shorter term**, there are probably some work items we could tackle to **reduce the API surface / usage of blocks outside of the internals**, to make things like the above more realistic to implement (and make it easier to experiment with alternative BlockManager implementations):
- Continue removing cases where pandas code outside of the internals work directly on blocks (@jbrockmendel you already did a lot of work on this recently, do you have an idea / overview of which are still remaining and the potential stumble blocks to further remove those cases?)
- Remove any "index label" related code in the internals, as the BlockManager in principle only needs to concern about integer locations. Although, @jbrockmendel, with your work in https://github.com/pandas-dev/pandas/pull/33052, https://github.com/pandas-dev/pandas/pull/33347,
https://github.com/pandas-dev/pandas/pull/33332 (removal of BlockManager.get/set/delete) this might actually already be done?
- Limit the API surface of the BlockManager. It might be good to get an idea of which methods on the BlockManager are used outside of the internals, clearly list those (and make others private), and see whether we can reduce this list.
(Maybe actually reducing might not be possible, but the exercise can still be useful to get an explicit overview of what is needed to implement a BlockManager).
It might be that there are already more concrete open issues about some of those aspects.
cc @pandas-dev/pandas-core
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34669/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34669/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34670
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34670/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34670/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34670/events
|
https://github.com/pandas-dev/pandas/issues/34670
| 635,550,258
|
MDU6SXNzdWU2MzU1NTAyNTg=
| 34,670
|
BUG: DataFrame.to_feather() does not work
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31767307?v=4",
"events_url": "https://api.github.com/users/yannikschaelte/events{/privacy}",
"followers_url": "https://api.github.com/users/yannikschaelte/followers",
"following_url": "https://api.github.com/users/yannikschaelte/following{/other_user}",
"gists_url": "https://api.github.com/users/yannikschaelte/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yannikschaelte",
"id": 31767307,
"login": "yannikschaelte",
"node_id": "MDQ6VXNlcjMxNzY3MzA3",
"organizations_url": "https://api.github.com/users/yannikschaelte/orgs",
"received_events_url": "https://api.github.com/users/yannikschaelte/received_events",
"repos_url": "https://api.github.com/users/yannikschaelte/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yannikschaelte/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yannikschaelte/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yannikschaelte"
}
|
[
{
"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"
}
] |
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"
}
| 8
| 2020-06-09T15:45:17Z
| 2020-06-15T14:53:56Z
| 2020-06-15T11:22:06Z
|
NONE
| null |
The function `DataFrame.to_feather()` creates a file that cannot be read in in R.
- [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
df = pd.DataFrame({'a': [42, 43]})
df.to_feather("out.feather")
```
#### Problem description
When exporting a dataframe as above to feather format and reading it in from R, I get
```R
> library(feather)
> read_feather("out.feather")
Error in openFeather(path) : Invalid: Not a feather file
```
This error seems to have been introduced recently, it used to work on older environments. R version: 3.6.3.
#### Expected Output
It should be read in correctly.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.3.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-33-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 47.1.1.post20200604
Cython : 0.29.19
pytest : 5.4.3
hypothesis : None
sphinx : None
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.15.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.17.1
pytables : None
pytest : 5.4.3
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.17
tables : None
tabulate : None
xarray : 0.15.1
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
>>>
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34670/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34670/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34671
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34671/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34671/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34671/events
|
https://github.com/pandas-dev/pandas/issues/34671
| 635,573,538
|
MDU6SXNzdWU2MzU1NzM1Mzg=
| 34,671
|
BUG: Series / DataFrame reductions convert string data to numeric
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] |
open
| false
| null |
[] | null | 6
| 2020-06-09T16:17:44Z
| 2021-08-07T22:53:37Z
| 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.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
In [34]: pd.Series(['1', '2', '3']).median()
Out[34]: 2.0
In [36]: pd.DataFrame({"A": ['1', '2', '3']}).median()
Out[36]:
A 2.0
dtype: float64
```
#### Problem description
`median` should not convert the input types. We seem to explicitly convert all non-float dtypes in `nanmedian`. Do we want to do that?
#### Expected Output
TypeError or ValueError. Not sure
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34671/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34671/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34672
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34672/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34672/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34672/events
|
https://github.com/pandas-dev/pandas/pull/34672
| 635,602,875
|
MDExOlB1bGxSZXF1ZXN0NDMxOTM1ODQ1
| 34,672
|
PERF: normalize_i8_timestamps
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-09T16:47:38Z
| 2020-06-09T18:03:23Z
| 2020-06-09T17:59:27Z
|
MEMBER
| null |
xref #34507
Based on the asv mentioned in that thread:
```
In [3]: N = 10**5
In [4]: tz = "UTC"
In [5]: series = Series(date_range(start="1/1/2000", periods=N, freq="T", tz=tz))
In [6]: %timeit series.dt.normalize()
947 µs ± 4.33 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <-- PR
3.26 ms ± 43.8 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <-- master
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34672/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34672/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34672.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34672",
"merged_at": "2020-06-09T17:59:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34672.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34672"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34673
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34673/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34673/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34673/events
|
https://github.com/pandas-dev/pandas/issues/34673
| 635,654,526
|
MDU6SXNzdWU2MzU2NTQ1MjY=
| 34,673
|
BUG: read_excel: incorrect multi-index values - 2
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1063219?v=4",
"events_url": "https://api.github.com/users/kuraga/events{/privacy}",
"followers_url": "https://api.github.com/users/kuraga/followers",
"following_url": "https://api.github.com/users/kuraga/following{/other_user}",
"gists_url": "https://api.github.com/users/kuraga/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kuraga",
"id": 1063219,
"login": "kuraga",
"node_id": "MDQ6VXNlcjEwNjMyMTk=",
"organizations_url": "https://api.github.com/users/kuraga/orgs",
"received_events_url": "https://api.github.com/users/kuraga/received_events",
"repos_url": "https://api.github.com/users/kuraga/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kuraga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kuraga/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kuraga"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
}
| 0
| 2020-06-09T18:11:00Z
| 2021-01-01T19:45:27Z
| 2021-01-01T19:45:27Z
|
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
df = pd.read_excel('test.xlsx', header=[0, 1], index_col=[0, 1])
print(df.index)
```
(`engine` could be `xlrd` or `openpyxl`, doesn't matter.)
[test.xlsx](https://github.com/pandas-dev/pandas/files/4753954/test.xlsx)

#### Problem description
```
MultiIndex([('x', 'B')],
names=['A', 'B'])
```
#### Expected Output
```
MultiIndex([('x', None)],
names=['A', 'B'])
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.42-calculate
machine : x86_64
processor : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
byteorder : little
LC_ALL : None
LANG : ru_RU.utf8
LOCALE : ru_RU.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.4.0.post20200518
Cython : 0.29.17
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.2.8
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/34673/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34673/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34674
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34674/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34674/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34674/events
|
https://github.com/pandas-dev/pandas/pull/34674
| 635,662,379
|
MDExOlB1bGxSZXF1ZXN0NDMxOTg1ODgz
| 34,674
|
CLN: remove get_freq_code
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-06-09T18:24:02Z
| 2020-06-10T01:39:11Z
| 2020-06-10T01:05:06Z
|
MEMBER
| null |
Sits on top of #34587
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34674/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34674/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34674.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34674",
"merged_at": "2020-06-10T01:05:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34674.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34674"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34675
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34675/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34675/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34675/events
|
https://github.com/pandas-dev/pandas/issues/34675
| 635,683,508
|
MDU6SXNzdWU2MzU2ODM1MDg=
| 34,675
|
BUG: pandas.groupby.apply does not work with floating point indexed dataframe since 1.0.0
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3460073?v=4",
"events_url": "https://api.github.com/users/r-luo/events{/privacy}",
"followers_url": "https://api.github.com/users/r-luo/followers",
"following_url": "https://api.github.com/users/r-luo/following{/other_user}",
"gists_url": "https://api.github.com/users/r-luo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/r-luo",
"id": 3460073,
"login": "r-luo",
"node_id": "MDQ6VXNlcjM0NjAwNzM=",
"organizations_url": "https://api.github.com/users/r-luo/orgs",
"received_events_url": "https://api.github.com/users/r-luo/received_events",
"repos_url": "https://api.github.com/users/r-luo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/r-luo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/r-luo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/r-luo"
}
|
[
{
"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": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-06-09T18:56:46Z
| 2020-06-19T15:06:35Z
| 2020-06-19T15:06:23Z
|
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 # pandas==1.0.4, but this issue exists since 1.0.0
import numpy as np # numpy==1.16.3
toy_df = pd.DataFrame(
{
'group': np.random.randint(0, 5, 10),
'value': np.random.random(10)
},
index=np.random.random(10),
)
# fails with floating point index
toy_df.groupby('group').apply(sum)
toy_df.groupby('group').apply(lambda x: x['value'].sum())
# with integer index then it works:
toy_df.index = np.random.randint(0, 5, 10)
toy_df.groupby('group').apply(lambda x: x['value'].sum())
toy_df.groupby('group').apply(sum)
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
I found this peculiar issue with the new version of pandas. When I have floating point index in a pandas DataFrame, then I cannot perform any `groupby.apply` operation on it. It will always give the below error:
```python
ValueError: index must be monotonic increasing or decreasing
During handling of the above exception, another exception occurred:
...
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Float64HashTable.get_item()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Float64HashTable.get_item()
KeyError: 0.0
```
When I used `ipdb` to trace inside the error, I found that the following line caused the problem:
```python
> pandas/core/groupby/ops.py(930)fast_apply()
929
--> 930 sdata = self._get_sorted_data()
931 return libreduction.apply_frame_axis0(sdata, f, names, starts, ends)
```
after this line, `sdata` still does not have a sorted index, and then the next line raises the `ValueError: index must be monotonic increasing or decreasing`.
I tested that this error exists in `pandas==1.0.4` and `pandas==1.0.0` but does not exist in `pandas==0.25.1`.
#### Expected Output
Expected output from groupby apply should be the same in the example with either floating point index or integer index.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.0.final.0
python-bits : 64
OS : Linux
OS-release : 4.14.173-137.229.amzn2.x86_64
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.16.3
pytz : 2020.1
dateutil : 2.8.0
pip : 20.0.2
setuptools : 47.1.1.post20200604
Cython : 0.29.2
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.15.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.17.1
pytables : None
pytest : None
pyxlsb : None
s3fs : 0.4.0
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34675/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34675/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34676
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34676/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34676/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34676/events
|
https://github.com/pandas-dev/pandas/issues/34676
| 635,687,748
|
MDU6SXNzdWU2MzU2ODc3NDg=
| 34,676
|
BUG: read_excel: incorrect multi-index values - 3
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1063219?v=4",
"events_url": "https://api.github.com/users/kuraga/events{/privacy}",
"followers_url": "https://api.github.com/users/kuraga/followers",
"following_url": "https://api.github.com/users/kuraga/following{/other_user}",
"gists_url": "https://api.github.com/users/kuraga/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kuraga",
"id": 1063219,
"login": "kuraga",
"node_id": "MDQ6VXNlcjEwNjMyMTk=",
"organizations_url": "https://api.github.com/users/kuraga/orgs",
"received_events_url": "https://api.github.com/users/kuraga/received_events",
"repos_url": "https://api.github.com/users/kuraga/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kuraga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kuraga/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kuraga"
}
|
[
{
"color": "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": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-06-09T19:03:58Z
| 2021-03-28T01:09:15Z
| 2021-03-27T01:21:58Z
|
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
df = pd.read_excel('test.xlsx', header=[0, 1], index_col=[0, 1])
print(df.index)
print(df.index)
```
(`engine` could be `xlrd` or `openpyxl`, doesn't matter.)
[test.xlsx](https://github.com/pandas-dev/pandas/files/4754140/test.xlsx)

#### Problem description
```
MultiIndex([(nan, nan),
('x', 'y')],
names=['A', 'B'])
Index(['C', 'Unnamed: 3'], dtype='object')
```
#### Expected Output
I'm not sure exactly.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.42-calculate
machine : x86_64
processor : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
byteorder : little
LC_ALL : None
LANG : ru_RU.utf8
LOCALE : ru_RU.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.4.0.post20200518
Cython : 0.29.17
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.2.8
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/34676/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34676/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34677
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34677/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34677/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34677/events
|
https://github.com/pandas-dev/pandas/issues/34677
| 635,693,308
|
MDU6SXNzdWU2MzU2OTMzMDg=
| 34,677
|
BUG: ASV Benchmarks failing to build
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13473688?v=4",
"events_url": "https://api.github.com/users/matteosantama/events{/privacy}",
"followers_url": "https://api.github.com/users/matteosantama/followers",
"following_url": "https://api.github.com/users/matteosantama/following{/other_user}",
"gists_url": "https://api.github.com/users/matteosantama/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matteosantama",
"id": 13473688,
"login": "matteosantama",
"node_id": "MDQ6VXNlcjEzNDczNjg4",
"organizations_url": "https://api.github.com/users/matteosantama/orgs",
"received_events_url": "https://api.github.com/users/matteosantama/received_events",
"repos_url": "https://api.github.com/users/matteosantama/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matteosantama/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matteosantama/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matteosantama"
}
|
[
{
"color": "ae68cc",
"default": false,
"description": "Performance (ASV) benchmarks",
"id": 732775912,
"name": "Benchmark",
"node_id": "MDU6TGFiZWw3MzI3NzU5MTI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark"
}
] |
closed
| false
| null |
[] | null | 10
| 2020-06-09T19:13:53Z
| 2020-08-26T13:57:41Z
| 2020-08-26T13:57:41Z
|
CONTRIBUTOR
| null |
ASV benchmarks fail to build on master. Could this be related to #34666?
`error: command 'gcc' failed with exit status 1`
Anyone else having this issue?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34677/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34677/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34678
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34678/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34678/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34678/events
|
https://github.com/pandas-dev/pandas/pull/34678
| 635,760,829
|
MDExOlB1bGxSZXF1ZXN0NDMyMDY3NDY3
| 34,678
|
CLN: dont consolidate in NDFrame._is_numeric_mixed_type
|
{
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-06-09T21:09:45Z
| 2020-06-15T18:12:24Z
| 2020-06-15T17:28:17Z
|
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/34678/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34678/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34678.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34678",
"merged_at": "2020-06-15T17:28:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34678.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34678"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34679
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34679/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34679/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34679/events
|
https://github.com/pandas-dev/pandas/pull/34679
| 635,763,172
|
MDExOlB1bGxSZXF1ZXN0NDMyMDY5Mzc4
| 34,679
|
CLN: dont consolidate in indexing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-06-09T21:14:10Z
| 2020-06-27T00:21:15Z
| 2020-06-26T23:59:12Z
|
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/34679/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34679/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34679.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34679",
"merged_at": "2020-06-26T23:59:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34679.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34679"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34680
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34680/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34680/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34680/events
|
https://github.com/pandas-dev/pandas/pull/34680
| 635,765,188
|
MDExOlB1bGxSZXF1ZXN0NDMyMDcxMDc3
| 34,680
|
CLN: dont consolidate in groupby
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-09T21:17:54Z
| 2020-06-10T07:47:26Z
| 2020-06-09T22:21:37Z
|
MEMBER
| null |
full asv run looks like pure noise
```
before after ratio
[03f5066c] [f2cae354]
<master~3> <cln-consolidate-less-3>
+ 38.4±0.1μs 45.7±6μs 1.19 algorithms.SortIntegerArray.time_argsort(1000)
+ 11.5±0.2ms 13.3±0.4ms 1.16 groupby.Nth.time_series_nth('float64')
+ 7.09±0.02ms 8.02±0.04ms 1.13 io.hdf.HDFStoreDataFrame.time_query_store_table
+ 12.3±0.1μs 13.7±0.3μs 1.11 tslibs.timestamp.TimestampOps.time_replace_None('US/Eastern')
+ 3.96±0.03μs 4.36±0.04μs 1.10 period.Indexing.time_get_loc
- 1.25±0ms 1.13±0ms 0.91 arithmetic.OffsetArrayArithmetic.time_add_series_offset(<DateOffset: days=2, months=2>)
- 1.22±0ms 1.10±0ms 0.90 arithmetic.OffsetArrayArithmetic.time_add_dti_offset(<DateOffset: days=2, months=2>)
- 1.54±0.1μs 1.39±0.06μs 0.90 index_cached_properties.IndexCache.time_is_all_dates('MultiIndex')
- 12.9±0.5μs 11.6±0.5μs 0.90 tslibs.timedelta.TimedeltaConstructor.time_from_components
- 3.75±0.06ms 3.35±0ms 0.89 rolling.ForwardWindowMethods.time_rolling('Series', 1000, 'float', 'min')
- 1.22±0.01ms 1.08±0ms 0.89 arithmetic.ApplyIndex.time_apply_index(<DateOffset: days=2, months=2>)
- 4.47±0.2μs 3.95±0.08μs 0.88 tslibs.timedelta.TimedeltaConstructor.time_from_datetime_timedelta
- 12.2±0.06ms 10.7±0.04ms 0.88 groupby.MultiColumn.time_col_select_numpy_sum
- 3.98±0.5μs 3.45±0.07μs 0.87 index_cached_properties.IndexCache.time_shape('DatetimeIndex')
- 30.2±0.2ms 26.1±0.08ms 0.86 frame_methods.Dropna.time_dropna_axis_mixed_dtypes('any', 0)
- 2.25±1μs 1.78±0.06μs 0.79 index_cached_properties.IndexCache.time_shape('UInt64Index')
- 5.76±0.9μs 4.51±0.3μs 0.78 index_cached_properties.IndexCache.time_shape('IntervalIndex')
- 2.56±0.5μs 1.99±0.2μs 0.77 index_cached_properties.IndexCache.time_values('IntervalIndex')
- 3.67±0.02ms 2.66±0.1ms 0.73 rolling.ForwardWindowMethods.time_rolling('Series', 1000, 'int', 'min')
- 4.34±1μs 2.95±0.2μs 0.68 index_cached_properties.IndexCache.time_shape('CategoricalIndex')
- 2.48±2μs 1.65±0.09μs 0.66 index_cached_properties.IndexCache.time_shape('Float64Index')
- 3.04±1μs 1.96±0.1μs 0.64 index_cached_properties.IndexCache.time_values('CategoricalIndex')
- 1.88±0.6μs 1.09±0.06μs 0.58 index_cached_properties.IndexCache.time_values('Float64Index')
- 3.14±1μs 1.16±0.05μs 0.37 index_cached_properties.IndexCache.time_values('UInt64Index')
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34680/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34680/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34680.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34680",
"merged_at": "2020-06-09T22:21:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34680.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34680"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34681
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34681/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34681/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34681/events
|
https://github.com/pandas-dev/pandas/issues/34681
| 635,766,406
|
MDU6SXNzdWU2MzU3NjY0MDY=
| 34,681
|
BUG: groupby.sum() is inconsistent with df.sum() for large integers
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5285645?v=4",
"events_url": "https://api.github.com/users/tom-weiss/events{/privacy}",
"followers_url": "https://api.github.com/users/tom-weiss/followers",
"following_url": "https://api.github.com/users/tom-weiss/following{/other_user}",
"gists_url": "https://api.github.com/users/tom-weiss/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tom-weiss",
"id": 5285645,
"login": "tom-weiss",
"node_id": "MDQ6VXNlcjUyODU2NDU=",
"organizations_url": "https://api.github.com/users/tom-weiss/orgs",
"received_events_url": "https://api.github.com/users/tom-weiss/received_events",
"repos_url": "https://api.github.com/users/tom-weiss/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tom-weiss/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tom-weiss/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tom-weiss"
}
|
[
{
"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": "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": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] |
open
| false
| null |
[] | null | 16
| 2020-06-09T21:20:06Z
| 2020-09-21T22:46:54Z
| 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
import pandas as pd
for i in range(100):
n = 2 ** i
print(f"Trying n = 2 ** {i} '{n}'...")
df = pd.DataFrame([['A', 14], ['A', n]], columns=['gb', 'val'])
gb_sum = df.groupby('gb').sum().values[0][0]
df_sum = df.sum().values[1]
if gb_sum != df_sum:
print(f"df.sum().values[1] '{df_sum}' != df.groupby('gb').sum().values[0][0] '{gb_sum}")
break
del df
print(f"Runing pandas {pd.__version__}")
```
#### Problem description
groupby.sum() results currently provide different results for df.sum() results for large integers.
It is expected that they should provide the same results.
#### Expected Output
When grouping by a colum with a single value, the groupby().sum() result should always equal the df.sum() result()
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Darwin
OS-release : 19.5.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.0.4
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 19.0.3
setuptools : 40.8.0
Cython : 0.29.16
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.3 (dt dec pq3 ext lo64)
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 2.6.2
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : 0.4.2
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
Runing pandas None
Process finished with exit code 0
</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/34681/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34681/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34682
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34682/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34682/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34682/events
|
https://github.com/pandas-dev/pandas/issues/34682
| 635,847,728
|
MDU6SXNzdWU2MzU4NDc3Mjg=
| 34,682
|
ENH: Make metadata from read_spss available
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/6591418?v=4",
"events_url": "https://api.github.com/users/mario-bermonti/events{/privacy}",
"followers_url": "https://api.github.com/users/mario-bermonti/followers",
"following_url": "https://api.github.com/users/mario-bermonti/following{/other_user}",
"gists_url": "https://api.github.com/users/mario-bermonti/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mario-bermonti",
"id": 6591418,
"login": "mario-bermonti",
"node_id": "MDQ6VXNlcjY1OTE0MTg=",
"organizations_url": "https://api.github.com/users/mario-bermonti/orgs",
"received_events_url": "https://api.github.com/users/mario-bermonti/received_events",
"repos_url": "https://api.github.com/users/mario-bermonti/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mario-bermonti/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mario-bermonti/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mario-bermonti"
}
|
[
{
"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": "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": "56efc9",
"default": false,
"description": "_metadata, .attrs",
"id": 1539579994,
"name": "metadata",
"node_id": "MDU6TGFiZWwxNTM5NTc5OTk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/metadata"
}
] |
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"
}
| 4
| 2020-06-10T00:50:27Z
| 2021-08-07T22:55:12Z
| null |
NONE
| null |
#### Is your feature request related to a problem?
I would like to have the [metadata that pyreadstats provides](https://ofajardo.github.io/pyreadstat_documentation/_build/html/index.html) available when reading files from SPSS.
This would be really helpful because it would provide an easy way to have variable labels (descriptions), value labels, and other important metadata available to format results/reports (by replacing the variable names manually with `.replace` function).
Those kinds of metadata are widely used in social sciences because it makes understanding results really easy. For example, SPSS changes the variable names to the variable labels in the output of analyses. Users could manually do this if the metadata was available.
#### Describe the solution you'd like
The metadata read by pyreadstats could be stored in the df's `_metadata` attribute and that would make it readily available
#### API breaking implications
I don't think there would be any implications if it's stored in the `_metadata` attribute because it was developed for this kind of use-case. I'm I right?
#### Describe alternatives you've considered
I could use the pyreadstats directly without using the `df.read_spss`. I can't think of any other options.
#### Additional context
This is related to issues [#11179](https://github.com/pandas-dev/pandas/issues/11179) and [#39](https://github.com/pandas-dev/pandas/issues/39).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34682/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34682/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34683
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34683/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34683/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34683/events
|
https://github.com/pandas-dev/pandas/pull/34683
| 635,866,975
|
MDExOlB1bGxSZXF1ZXN0NDMyMTUyNTU5
| 34,683
|
CLN: dont consolidate in reshape.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": "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": "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 |
[] |
{
"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"
}
| 25
| 2020-06-10T01:52:28Z
| 2020-12-17T21:48:07Z
| 2020-12-17T21:05:28Z
|
MEMBER
| null |
Looks like this consolidation was added here https://github.com/pandas-dev/pandas/commit/3b1c5b74e0ca5a782d4c070aac002b3e6d7e5290 in 2012, no clear reason why it is needed. About to start an asv 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/34683/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34683/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34683.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34683",
"merged_at": "2020-12-17T21:05:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34683.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34683"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34684
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34684/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34684/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34684/events
|
https://github.com/pandas-dev/pandas/issues/34684
| 636,038,728
|
MDU6SXNzdWU2MzYwMzg3Mjg=
| 34,684
|
RLS: 1.0.5
|
{
"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": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-06-18T13:09:32Z",
"closed_issues": 28,
"created_at": "2020-05-30T13:59:46Z",
"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.0.x",
"due_on": "2020-06-21T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/74",
"id": 5480671,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ4MDY3MQ==",
"number": 74,
"open_issues": 0,
"state": "closed",
"title": "1.0.5",
"updated_at": "2020-06-18T13:09:32Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/74"
}
| 31
| 2020-06-10T08:20:04Z
| 2020-06-18T13:09:20Z
| 2020-06-18T13:09:20Z
|
MEMBER
| null |
xref https://github.com/pandas-dev/pandas/pull/34664#issuecomment-641355926
>>> @simonjayhawkins do you have time one of those days to do a 1.0.5 release?
>> can do. do we want to include anything else, wait a few weeks before doing the release and see if anything else surfaces or just get a patch release done with the S3 changes?
> I would personally just do a patch release with the S3 changes, and not wait a few weeks with that. But maybe open a RLS issue for it to get some feedback from others?
cc @pandas-dev/pandas-core
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34684/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34684/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34685
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34685/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34685/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34685/events
|
https://github.com/pandas-dev/pandas/issues/34685
| 636,053,820
|
MDU6SXNzdWU2MzYwNTM4MjA=
| 34,685
|
ENH: NamedAgg support for time windows/Expanding
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5120387?v=4",
"events_url": "https://api.github.com/users/ddofer/events{/privacy}",
"followers_url": "https://api.github.com/users/ddofer/followers",
"following_url": "https://api.github.com/users/ddofer/following{/other_user}",
"gists_url": "https://api.github.com/users/ddofer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ddofer",
"id": 5120387,
"login": "ddofer",
"node_id": "MDQ6VXNlcjUxMjAzODc=",
"organizations_url": "https://api.github.com/users/ddofer/orgs",
"received_events_url": "https://api.github.com/users/ddofer/received_events",
"repos_url": "https://api.github.com/users/ddofer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ddofer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ddofer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ddofer"
}
|
[
{
"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-06-10T08:41:07Z
| 2020-10-05T01:21:47Z
| 2020-10-05T01:21:47Z
|
NONE
| null |
#### Is your feature request related to a problem?
I am using aggregations over data with groups over time, to create features. I had hoped to use the "new" namedAgg functionality to efficiently calculate and rename the many feature columns.
I find that named Aggregations only works with the "default"groupby.agg, when used with a rolling window or expanding, it's not supported.
(I note that the functions documentation doesn't mention this,[ the named agg is mainly in the general documentation](https://pandas-docs.github.io/pandas-docs-travis/user_guide/groupby.html#groupby-aggregate-named), not method-level. i.e the [groupby.agg method's documentatio](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.aggregate.html)n doesn't mention or demonstrate this functionality at all).
By "named aggregations" I refer to the functionality:
`animals.groupby("kind").agg(**min_height=('height', 'min')**)`
#### Describe the solution you'd like
Expand named aggregation support (NamedAgg) to the groupby aggregation used in [expanding.aggregate](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.window.expanding.Expanding.aggregate.html) and [rolling.aggregate](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.window.rolling.Rolling.aggregate.html)
#### API breaking implications
Should not affect it. Seems 1:1.
#### Additional context
Example usage/errors:
```
df_actions.set_index("age").groupby('uuid').rolling(30).agg(unique_actions=('action', 'nunique'),
total_actions=('counter', 'sum'))
TypeError: aggregate() missing 1 required positional argument: 'func'
```
When used without the window, we get the benefit of namedAggs. (The real code has many more columns and transformations and the columns the features are calculated in are dynamic, so setting a list of column names to use is not desirable. Additionally, data is time-sorted):
```
df_actions.set_index("age").groupby('uuid').agg(unique_actions=('action', 'nunique'),
total_actions=('counter', 'sum'))
>>>
| unique_actions | total_actions
0 | 0.0
0 | 0.0
...
```
|
{
"+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/34685/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34685/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34686
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34686/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34686/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34686/events
|
https://github.com/pandas-dev/pandas/issues/34686
| 636,068,154
|
MDU6SXNzdWU2MzYwNjgxNTQ=
| 34,686
|
API/BUG: Behaviour of NA in BooleanArray pow operation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
},
{
"color": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] |
open
| false
| null |
[] | null | 0
| 2020-06-10T08:58:16Z
| 2021-08-08T00:28:58Z
| null |
MEMBER
| null |
For IntegerArray, we have some special-case behaviour for NAs in `pow` operation. For example, `1 ** NA == 1` and not NA as normal NA-propagation would be.
For BooleanArray, we don't have that, but maybe we should do the same? So that the boolean power of boolean-cast-to-int8 power operations for the same?
Right now this is different:
```python
>>> a = pd.array([True] * 3 + [False] * 3 + [None] * 3, dtype="boolean")
>>> b = pd.array([True, False, None] * 3, dtype="boolean")
>>> a
<BooleanArray>
[True, True, True, False, False, False, <NA>, <NA>, <NA>]
Length: 9, dtype: boolean
>>> b
<BooleanArray>
[True, False, <NA>, True, False, <NA>, True, False, <NA>]
Length: 9, dtype: boolean
>>> a ** b
<IntegerArray>
[1, 1, <NA>, 0, 1, <NA>, <NA>, <NA>, <NA>]
Length: 9, dtype: Int8
>>> a.astype("Int8") ** b.astype("Int8")
<IntegerArray>
[1, 1, 1, 0, 1, <NA>, <NA>, 1, <NA>]
Length: 9, dtype: Int8
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34686/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34686/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34687
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34687/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34687/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34687/events
|
https://github.com/pandas-dev/pandas/issues/34687
| 636,194,548
|
MDU6SXNzdWU2MzYxOTQ1NDg=
| 34,687
|
BUG: multiple application of .loc on sparse DataFrame results in NaN and filling the DataFrame
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10907198?v=4",
"events_url": "https://api.github.com/users/deusebio/events{/privacy}",
"followers_url": "https://api.github.com/users/deusebio/followers",
"following_url": "https://api.github.com/users/deusebio/following{/other_user}",
"gists_url": "https://api.github.com/users/deusebio/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/deusebio",
"id": 10907198,
"login": "deusebio",
"node_id": "MDQ6VXNlcjEwOTA3MTk4",
"organizations_url": "https://api.github.com/users/deusebio/orgs",
"received_events_url": "https://api.github.com/users/deusebio/received_events",
"repos_url": "https://api.github.com/users/deusebio/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/deusebio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/deusebio/subscriptions",
"type": "User",
"url": "https://api.github.com/users/deusebio"
}
|
[
{
"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": "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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
| 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"
}
| 5
| 2020-06-10T12:11:19Z
| 2021-04-02T17:15:22Z
| 2021-04-02T17:15:22Z
|
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.
---
#### Code Sample, a copy-pastable example
```python
# Your code here
from scipy.sparse import coo_matrix, eye
import pandas as pd
df = pd.DataFrame.sparse.from_spmatrix(eye(10))
df.sparse.density
# Should output 0.1
df.loc[range(5)]
# 0 1 2 3 4 5 6 7 8 9
# 0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
# 1 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
# 2 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
# 3 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
# 4 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0
df.loc[range(5)].sparse.density
# outputs 0.1
df.loc[range(5)].loc[range(3)]
# 0 1 2 3 4 5 6 7 8 9
# 0 1.0 0.0 0.0 0.0 0.0 NaN NaN NaN NaN NaN
# 1 0.0 1.0 0.0 0.0 0.0 NaN NaN NaN NaN NaN
# 2 0.0 0.0 1.0 0.0 0.0 NaN NaN NaN NaN NaN
df.loc[range(5)].loc[range(3)].sparse.density
# outputs 0.6
```
#### Problem description
It seems that sparse DataFrame extracted using loc does not behave as the original ones. This creates inconsistencies in our processing pipelines, depending on filtering and selection that has been applied, sometimes producing "Nans", severely impacting memory consumption and computational time.
#### Expected Output
The output of loc should not depend on multiple slicing, i.e.
df.loc[range(5)].loc[range(3)] = df.loc[range(3)]
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
pandas : 1.0.4
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 9.0.3
setuptools : 39.0.1
Cython : 0.29.19
pytest : 5.4.3
hypothesis : 5.16.1
sphinx : 3.1.0
blosc : 1.9.1
feather : None
xlsxwriter : 1.2.9
lxml.etree : 4.5.1
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.15.0
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fastparquet : 0.4.0
gcsfs : None
lxml.etree : 4.5.1
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.17.1
pytables : None
pytest : 5.4.3
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.17
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.15.1
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.9
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/34687/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34687/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34688
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34688/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34688/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34688/events
|
https://github.com/pandas-dev/pandas/pull/34688
| 636,197,940
|
MDExOlB1bGxSZXF1ZXN0NDMyNDE1NTYy
| 34,688
|
TYP: update setup.cfg
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-06-10T12:16:47Z
| 2020-06-13T17:57:49Z
| 2020-06-13T17:57:28Z
|
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/34688/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34688/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34688.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34688",
"merged_at": "2020-06-13T17:57:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34688.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34688"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34689
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34689/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34689/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34689/events
|
https://github.com/pandas-dev/pandas/pull/34689
| 636,226,397
|
MDExOlB1bGxSZXF1ZXN0NDMyNDM4NzIz
| 34,689
|
TYP: check_untyped_defs pandas.core.nanops
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-06-10T13:00:05Z
| 2020-06-14T15:51:36Z
| 2020-06-14T14:56:37Z
|
MEMBER
| null |
pandas\core\nanops.py:565: error: Item "bool" of "Union[bool, Any]" has no attribute "any"
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34689/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34689/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34689.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34689",
"merged_at": "2020-06-14T14:56:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34689.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34689"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34690
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34690/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34690/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34690/events
|
https://github.com/pandas-dev/pandas/pull/34690
| 636,264,277
|
MDExOlB1bGxSZXF1ZXN0NDMyNDcwMDU4
| 34,690
|
DOC: Add note about shallow clones in contributing guide
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/630284?v=4",
"events_url": "https://api.github.com/users/gglanzani/events{/privacy}",
"followers_url": "https://api.github.com/users/gglanzani/followers",
"following_url": "https://api.github.com/users/gglanzani/following{/other_user}",
"gists_url": "https://api.github.com/users/gglanzani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gglanzani",
"id": 630284,
"login": "gglanzani",
"node_id": "MDQ6VXNlcjYzMDI4NA==",
"organizations_url": "https://api.github.com/users/gglanzani/orgs",
"received_events_url": "https://api.github.com/users/gglanzani/received_events",
"repos_url": "https://api.github.com/users/gglanzani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gglanzani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gglanzani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gglanzani"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-10T13:48:43Z
| 2020-06-10T14:54:15Z
| 2020-06-10T14:54:15Z
|
CONTRIBUTOR
| null |
- [ ] closes #xxxx
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I didn't open a new issue for this, let me know if I should, I'll gladly do it (I got the impression that that's not mandatory by reading the contributing guidelines).
Feel also free to close without merging if I'm the only person who got confused by this.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34690/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34690/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34690.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34690",
"merged_at": "2020-06-10T14:54:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34690.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34690"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34691
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34691/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34691/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34691/events
|
https://github.com/pandas-dev/pandas/issues/34691
| 636,275,212
|
MDU6SXNzdWU2MzYyNzUyMTI=
| 34,691
|
BUG: Unpredictable behaviour of `Series.replace` when filling with `None` values.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/51440666?v=4",
"events_url": "https://api.github.com/users/complexsum/events{/privacy}",
"followers_url": "https://api.github.com/users/complexsum/followers",
"following_url": "https://api.github.com/users/complexsum/following{/other_user}",
"gists_url": "https://api.github.com/users/complexsum/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/complexsum",
"id": 51440666,
"login": "complexsum",
"node_id": "MDQ6VXNlcjUxNDQwNjY2",
"organizations_url": "https://api.github.com/users/complexsum/orgs",
"received_events_url": "https://api.github.com/users/complexsum/received_events",
"repos_url": "https://api.github.com/users/complexsum/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/complexsum/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/complexsum/subscriptions",
"type": "User",
"url": "https://api.github.com/users/complexsum"
}
|
[
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-06-10T14:03:17Z
| 2020-06-10T16:18:13Z
| 2020-06-10T16:18: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.
---
#### Code Sample, a copy-pastable example
```python
df = pd.DataFrame({'A': [1, 2, 3, 4, 5], 'B': [1.0, 2.0, 'a', 45.0, 0.0]})
df['B'] = df['B'].replace('a', None)
print(df)
```
#### Problem description
While replacing the values in dataframe with `None` using `.replace` method the values to be replaced get forward filled from the previous values which is *unpredictable behaviour here*.
#### Expected Output
```
A B
0 1 1
1 2 2
2 3 None
3 4 45
4 5 0
```
#### Actual Output
```
A B
0 1 1
1 2 2
2 3 2
3 4 45
4 5 0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-33-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.0.3
numpy : 1.18.3
pytz : 2019.3
dateutil : 2.7.3
pip : 20.0.2
setuptools : 45.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.2.8
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/34691/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34691/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34692
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34692/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34692/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34692/events
|
https://github.com/pandas-dev/pandas/pull/34692
| 636,278,016
|
MDExOlB1bGxSZXF1ZXN0NDMyNDgxNDg5
| 34,692
|
TYP: check_untyped_defs pandas.core.resample
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-10T14:07:09Z
| 2020-06-13T18:49:41Z
| 2020-06-13T18:25:54Z
|
MEMBER
| null |
pandas\core\resample.py:969: error: Too many arguments for "__init__" of "object"
pandas\core\resample.py:1572: error: "DatetimeIndex" has no attribute "tzinfo"
pandas\core\resample.py:1573: error: "DatetimeIndex" has no attribute "tzinfo"
pandas\core\resample.py:1585: error: "PeriodIndex" has no attribute "asfreq"; maybe "freq"?
pandas\core\resample.py:1867: error: "PeriodIndex" has no attribute "asfreq"; maybe "freq"?
pandas\core\resample.py:1902: error: "PeriodIndex" has no attribute "asfreq"; maybe "freq"?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34692/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34692/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34692.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34692",
"merged_at": "2020-06-13T18:25:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34692.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34692"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34693
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34693/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34693/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34693/events
|
https://github.com/pandas-dev/pandas/issues/34693
| 636,302,286
|
MDU6SXNzdWU2MzYzMDIyODY=
| 34,693
|
DOC: combine with None at same position in both dataframes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19879328?v=4",
"events_url": "https://api.github.com/users/StefRe/events{/privacy}",
"followers_url": "https://api.github.com/users/StefRe/followers",
"following_url": "https://api.github.com/users/StefRe/following{/other_user}",
"gists_url": "https://api.github.com/users/StefRe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/StefRe",
"id": 19879328,
"login": "StefRe",
"node_id": "MDQ6VXNlcjE5ODc5MzI4",
"organizations_url": "https://api.github.com/users/StefRe/orgs",
"received_events_url": "https://api.github.com/users/StefRe/received_events",
"repos_url": "https://api.github.com/users/StefRe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/StefRe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StefRe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/StefRe"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
open
| false
| null |
[] |
{
"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-06-10T14:37:09Z
| 2020-07-03T07:00:46Z
| null |
CONTRIBUTOR
| null |
#### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.combine.html
#### Documentation problem
The fourth example states:
> However, if the same element in both dataframes is None, that None is preserved
In the code sample to illustrate this, however, `None` is **not** preserved:
```
df1 = pd.DataFrame({'A': [0, 0], 'B': [None, 4]})
df2 = pd.DataFrame({'A': [1, 1], 'B': [None, 3]})
df1.combine(df2, take_smaller, fill_value=-5)
A B
0 0 -5.0
1 0 3.0
```
#### Suggested fix for documentation
If the actual result is the intended behavior, this code sample should be removed. If `None` should indeed be preserved (but why should it?) then this should be filed as a bug.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34693/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34693/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34694
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34694/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34694/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34694/events
|
https://github.com/pandas-dev/pandas/pull/34694
| 636,302,785
|
MDExOlB1bGxSZXF1ZXN0NDMyNTAxNzU5
| 34,694
|
DOC: updated doctorings for SS06 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-10T14:37:45Z
| 2020-06-11T16:50:02Z
| 2020-06-11T16:50:02Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34694/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34694/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34694.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34694",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/34694.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34694"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34695
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34695/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34695/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34695/events
|
https://github.com/pandas-dev/pandas/pull/34695
| 636,304,216
|
MDExOlB1bGxSZXF1ZXN0NDMyNTAyNzk0
| 34,695
|
TYP: check_untyped_defs pandas.io.json._table_schema
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-10T14:39:23Z
| 2020-06-14T09:51:51Z
| 2020-06-14T09:51:40Z
|
MEMBER
| null |
pandas\io\json\_table_schema.py:112: error: Incompatible types in assignment (expression has type "Dict[str, List[Any]]", target has type "str")
pandas\io\json\_table_schema.py:264: error: Incompatible types in assignment (expression has type "str", target has type "List[Any]")
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34695/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34695/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34695.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34695",
"merged_at": "2020-06-14T09:51:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34695.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34695"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34696
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34696/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34696/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34696/events
|
https://github.com/pandas-dev/pandas/issues/34696
| 636,308,727
|
MDU6SXNzdWU2MzYzMDg3Mjc=
| 34,696
|
ENH: DataFrame or Series to code
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/27816336?v=4",
"events_url": "https://api.github.com/users/ELToulemonde/events{/privacy}",
"followers_url": "https://api.github.com/users/ELToulemonde/followers",
"following_url": "https://api.github.com/users/ELToulemonde/following{/other_user}",
"gists_url": "https://api.github.com/users/ELToulemonde/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ELToulemonde",
"id": 27816336,
"login": "ELToulemonde",
"node_id": "MDQ6VXNlcjI3ODE2MzM2",
"organizations_url": "https://api.github.com/users/ELToulemonde/orgs",
"received_events_url": "https://api.github.com/users/ELToulemonde/received_events",
"repos_url": "https://api.github.com/users/ELToulemonde/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ELToulemonde/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ELToulemonde/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ELToulemonde"
}
|
[
{
"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 | 3
| 2020-06-10T14:44:33Z
| 2020-06-12T01:16:02Z
| 2020-06-12T01:16:02Z
|
NONE
| null |
**Request**
Have a method to transform a pandas object to code.
**Example**
The given situation
`given_df = pd.DataFrame({"a": [1, 2],
"b": pd.to_datetime(["2019-01-01", "2019-12-31"]),
"c": ["a", "b"]})`
Call to the method :
`code_string = given_df.to_code()`
Expected output :
`pd.DataFrame({'a': [1, 2], 'b': pd.to_datetime(['2019-01-01', '2019-12-31'], format='%Y-%m-%d'), 'c': ['a', 'b']})`
**Is your feature request related to a problem?**
The usage I would have of such a method would be when I'm writing integration tests.
GIven `my_function`, I want to write a integration test to make sure that result doesn't changes.
The output of my function is a DataFrame which is a bit long a few lines, and a few columns.
class test(unitest.testcase):
def test_integration(self):
# Given
given_some_args
# When
result_df: pd.DataFrame = my_function(given_some_args)
# Then
pd.testing.assert_frame_equals(expected_df, result_df)
Writing the `expected_df` manually is time consuming. I would like to be able to get it by executed `result_df.to_code() `once and then copy past the generated code in my integration test.
**API breaking implications**
I don't think it will have impact on existing API.
**Describe alternatives you've considered**
A proposition of implementation would be `"df = pd.DataFrame( %s )" % (str(df.to_dict()))`
Although it is a simple implementation,
- it doesn't work for every types of series (for example datetimes),
- it doesn't provide executable code in case of `nan`,
- it doesn't include needed imports
**Additional context**
This need has already been raised in[ this question](https://stackoverflow.com/questions/41769882/pandas-dataframe-to-code) on stackoverflow.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34696/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34696/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34697
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34697/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34697/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34697/events
|
https://github.com/pandas-dev/pandas/pull/34697
| 636,322,215
|
MDExOlB1bGxSZXF1ZXN0NDMyNTE2MTc5
| 34,697
|
TYP: type annotations for read_sas
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-10T15:00:17Z
| 2020-06-13T18:01:59Z
| 2020-06-13T18:01:47Z
|
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/34697/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34697/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34697.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34697",
"merged_at": "2020-06-13T18:01:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34697.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34697"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34698
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34698/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34698/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34698/events
|
https://github.com/pandas-dev/pandas/issues/34698
| 636,336,813
|
MDU6SXNzdWU2MzYzMzY4MTM=
| 34,698
|
QST: should pandas series isin raise an exception with a nested sequence?
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/38807481?v=4",
"events_url": "https://api.github.com/users/giordafrancis/events{/privacy}",
"followers_url": "https://api.github.com/users/giordafrancis/followers",
"following_url": "https://api.github.com/users/giordafrancis/following{/other_user}",
"gists_url": "https://api.github.com/users/giordafrancis/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/giordafrancis",
"id": 38807481,
"login": "giordafrancis",
"node_id": "MDQ6VXNlcjM4ODA3NDgx",
"organizations_url": "https://api.github.com/users/giordafrancis/orgs",
"received_events_url": "https://api.github.com/users/giordafrancis/received_events",
"repos_url": "https://api.github.com/users/giordafrancis/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/giordafrancis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/giordafrancis/subscriptions",
"type": "User",
"url": "https://api.github.com/users/giordafrancis"
}
|
[
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-06-10T15:18:06Z
| 2020-06-10T16:34:24Z
| 2020-06-10T16:12:26Z
|
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
Using a nested structure in series isin() does not rasie an exception, instead no match is found? Should this pass silently?
```python
# Your code here, if applicable
test = pd.DataFrame({'a': [1,2,3]})
test['a'].isin([1])
0 True
1 False
2 False
test['a'].isin([[1]])
0 False
1 False
2 False
pd.__version__
'0.25.0'
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34698/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34698/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34699
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34699/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34699/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34699/events
|
https://github.com/pandas-dev/pandas/pull/34699
| 636,382,134
|
MDExOlB1bGxSZXF1ZXN0NDMyNTY0ODA4
| 34,699
|
BUG: GH34677 Roll forward asv benchmark environment to py3.8
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13473688?v=4",
"events_url": "https://api.github.com/users/matteosantama/events{/privacy}",
"followers_url": "https://api.github.com/users/matteosantama/followers",
"following_url": "https://api.github.com/users/matteosantama/following{/other_user}",
"gists_url": "https://api.github.com/users/matteosantama/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matteosantama",
"id": 13473688,
"login": "matteosantama",
"node_id": "MDQ6VXNlcjEzNDczNjg4",
"organizations_url": "https://api.github.com/users/matteosantama/orgs",
"received_events_url": "https://api.github.com/users/matteosantama/received_events",
"repos_url": "https://api.github.com/users/matteosantama/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matteosantama/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matteosantama/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matteosantama"
}
|
[
{
"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"
}
| 10
| 2020-06-10T16:18:40Z
| 2020-07-17T20:14:27Z
| 2020-07-17T20:14:19Z
|
CONTRIBUTOR
| null |
Partially closes #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/34699/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34699/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34699.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34699",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/34699.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34699"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34700
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34700/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34700/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34700/events
|
https://github.com/pandas-dev/pandas/pull/34700
| 636,382,977
|
MDExOlB1bGxSZXF1ZXN0NDMyNTY1NTE0
| 34,700
|
CLN: remove usages of base_and_stride
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-10T16:19:53Z
| 2020-06-14T15:12:19Z
| 2020-06-14T14:15:12Z
|
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/34700/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34700/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34700.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34700",
"merged_at": "2020-06-14T14:15:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34700.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34700"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34701
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34701/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34701/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34701/events
|
https://github.com/pandas-dev/pandas/pull/34701
| 636,400,433
|
MDExOlB1bGxSZXF1ZXN0NDMyNTc5Nzk3
| 34,701
|
CLN: remove libfrequencies.get_freq_group
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-10T16:47:53Z
| 2020-06-14T15:11:04Z
| 2020-06-14T14:20:26Z
|
MEMBER
| null |
The next (hopefully last) step after this is to move Resolution to dtypes.pyx and de-duplicate it with FreqGroup.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34701/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34701/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34701.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34701",
"merged_at": "2020-06-14T14:20:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34701.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34701"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34702
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34702/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34702/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34702/events
|
https://github.com/pandas-dev/pandas/issues/34702
| 636,415,917
|
MDU6SXNzdWU2MzY0MTU5MTc=
| 34,702
|
BUG: DataFrame.loc[] returns a Series instead of a value
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1063219?v=4",
"events_url": "https://api.github.com/users/kuraga/events{/privacy}",
"followers_url": "https://api.github.com/users/kuraga/followers",
"following_url": "https://api.github.com/users/kuraga/following{/other_user}",
"gists_url": "https://api.github.com/users/kuraga/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kuraga",
"id": 1063219,
"login": "kuraga",
"node_id": "MDQ6VXNlcjEwNjMyMTk=",
"organizations_url": "https://api.github.com/users/kuraga/orgs",
"received_events_url": "https://api.github.com/users/kuraga/received_events",
"repos_url": "https://api.github.com/users/kuraga/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kuraga/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kuraga/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kuraga"
}
|
[
{
"color": "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 | 5
| 2020-06-10T17:13:56Z
| 2020-08-21T17:05:15Z
| 2020-06-10T18:59:01Z
|
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
df = pd.DataFrame([ [ 17 ] ], index=pd.MultiIndex.from_tuples([('x', pd.Timestamp('2020-06-10')) ]), columns=[ 'A' ])
print(type(df.loc[ ('x', '2020-06-10'), 'A' ]))
print(type(df.loc[ ('x', pd.Timestamp('2020-06-10')), 'A' ]))
```
#### Problem description
```
<class 'pandas.core.series.Series'>
<class 'numpy.int64'>
```
#### Expected Output
```
<class 'numpy.int64'>
<class 'numpy.int64'>
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.32-calculate
machine : x86_64
processor : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
byteorder : little
LC_ALL : None
LANG : ru_RU.utf8
LOCALE : ru_RU.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : 0.29.15
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : 1.2.8
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/34702/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34702/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34703
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34703/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34703/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34703/events
|
https://github.com/pandas-dev/pandas/pull/34703
| 636,436,151
|
MDExOlB1bGxSZXF1ZXN0NDMyNjA4OTQ3
| 34,703
|
CLN: disallow tuple in to_offset
|
{
"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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-10T17:48:15Z
| 2020-06-15T01:14:28Z
| 2020-06-15T00:57:17Z
|
MEMBER
| null |
This is technically an API change, but AFAICT this isnt documented behavior anywhere.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34703/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34703/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34703.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34703",
"merged_at": "2020-06-15T00:57:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34703.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34703"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34704
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34704/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34704/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34704/events
|
https://github.com/pandas-dev/pandas/issues/34704
| 636,441,939
|
MDU6SXNzdWU2MzY0NDE5Mzk=
| 34,704
|
BUG: CI builds failing at compilation of _sas
|
{
"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": "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": "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 | 3
| 2020-06-10T17:58:18Z
| 2020-06-14T15:57:50Z
| 2020-06-14T15:57:50Z
|
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
See, for example, the build line https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=37068&view=logs&j=a3a13ea8-7cf0-5bdb-71bb-6ac8830ae35c&t=2296ffae-5e67-52bf-66a8-6160145a0f80&l=660
(and this appears to be failing other PRs too)
#### Problem description
CI builds are failing, see link above
#### 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/34704/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34704/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34705
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34705/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34705/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34705/events
|
https://github.com/pandas-dev/pandas/pull/34705
| 636,480,657
|
MDExOlB1bGxSZXF1ZXN0NDMyNjQ0NzMx
| 34,705
|
TST: Add test for rolling window, see GH 34605
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/630284?v=4",
"events_url": "https://api.github.com/users/gglanzani/events{/privacy}",
"followers_url": "https://api.github.com/users/gglanzani/followers",
"following_url": "https://api.github.com/users/gglanzani/following{/other_user}",
"gists_url": "https://api.github.com/users/gglanzani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gglanzani",
"id": 630284,
"login": "gglanzani",
"node_id": "MDQ6VXNlcjYzMDI4NA==",
"organizations_url": "https://api.github.com/users/gglanzani/orgs",
"received_events_url": "https://api.github.com/users/gglanzani/received_events",
"repos_url": "https://api.github.com/users/gglanzani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gglanzani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gglanzani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gglanzani"
}
|
[
{
"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": "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-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-06-10T19:07:27Z
| 2020-06-15T12:53:22Z
| 2020-06-15T12:53:18Z
|
CONTRIBUTOR
| null |
- [X] closes #34605
- [X] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Dear maintainers,
I'm opening this PR to address issue #34605.
~I've made the test conditional to Python 3.8 as I'm using the positional only syntax as strong check. If this is not desired, let me know and I will change the function to explicitly check for the length of `*args`.~
Edit: maybe the usage of `parametrize` is a bit exaggerated here.
Edit2: Using Python 3.8 only features does not pleases the tests. Updating.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34705/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34705/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34705.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34705",
"merged_at": "2020-06-15T12:53:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34705.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34705"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34706
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34706/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34706/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34706/events
|
https://github.com/pandas-dev/pandas/issues/34706
| 636,555,912
|
MDU6SXNzdWU2MzY1NTU5MTI=
| 34,706
|
ENH: implement pd.Series.corr(method="polychoric")
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/65236189?v=4",
"events_url": "https://api.github.com/users/dev-pawel/events{/privacy}",
"followers_url": "https://api.github.com/users/dev-pawel/followers",
"following_url": "https://api.github.com/users/dev-pawel/following{/other_user}",
"gists_url": "https://api.github.com/users/dev-pawel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dev-pawel",
"id": 65236189,
"login": "dev-pawel",
"node_id": "MDQ6VXNlcjY1MjM2MTg5",
"organizations_url": "https://api.github.com/users/dev-pawel/orgs",
"received_events_url": "https://api.github.com/users/dev-pawel/received_events",
"repos_url": "https://api.github.com/users/dev-pawel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dev-pawel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dev-pawel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dev-pawel"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-06-10T21:17:15Z
| 2021-08-08T00:31:46Z
| 2021-08-08T00:31:46Z
|
NONE
| null |
I wish I could use pandas to calculate the polychoric correlation for ordinal variables. According to the literature, the polychronic correlation presents really good results. Compare to Spearman correlation it performs better on n > 1000 number of samples.
I couldn't find an easy way to use it in python.
In R there are at least two implementations of this correlation e.g.
https://r-forge.r-project.org/projects/polycor/
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34706/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34706/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34707
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34707/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34707/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34707/events
|
https://github.com/pandas-dev/pandas/pull/34707
| 636,575,150
|
MDExOlB1bGxSZXF1ZXN0NDMyNzIzNzMz
| 34,707
|
PERF: is_date_array_normalized
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-10T21:57:37Z
| 2020-06-14T15:09:14Z
| 2020-06-14T14:13:47Z
|
MEMBER
| null |
Same optimization we made in normalize_i8_timestamps the other day.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34707/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34707/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34707.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34707",
"merged_at": "2020-06-14T14:13:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34707.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34707"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34708
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34708/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34708/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34708/events
|
https://github.com/pandas-dev/pandas/issues/34708
| 636,583,212
|
MDU6SXNzdWU2MzY1ODMyMTI=
| 34,708
|
BUG: DataFrame.unstack on non-consolidated frame
|
{
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-06-10T22:15:53Z
| 2020-06-14T14:13:01Z
| 2020-06-14T14:13:01Z
|
MEMBER
| null |
```
df = pd.DataFrame({"x": [1, 2, np.NaN], "y": [3.0, 4, np.NaN]})
df2 = df[["x"]]
df2["y"] = df["y"]
assert len(df2._mgr.blocks) == 2
>>> df2.unstack()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/core/frame.py", line 7031, in unstack
return unstack(self, level, fill_value)
File "pandas/core/reshape/reshape.py", line 419, in unstack
return _unstack_frame(obj, level, fill_value=fill_value)
File "pandas/core/reshape/reshape.py", line 435, in _unstack_frame
unstacker = _Unstacker(obj.index, level=level)
File "pandas/core/reshape/reshape.py", line 93, in __init__
self.index = index.remove_unused_levels()
AttributeError: 'RangeIndex' object has no attribute 'remove_unused_levels'
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34708/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34708/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34709
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34709/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34709/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34709/events
|
https://github.com/pandas-dev/pandas/pull/34709
| 636,634,414
|
MDExOlB1bGxSZXF1ZXN0NDMyNzczMDg4
| 34,709
|
BUG: DataFrame.unstack with non-consolidated
|
{
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-11T00:32:04Z
| 2020-06-14T15:10:18Z
| 2020-06-14T14:13:01Z
|
MEMBER
| null |
- [x] closes #34708
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34709/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34709/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34709.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34709",
"merged_at": "2020-06-14T14:13:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34709.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34709"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34710
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34710/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34710/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34710/events
|
https://github.com/pandas-dev/pandas/issues/34710
| 636,881,999
|
MDU6SXNzdWU2MzY4ODE5OTk=
| 34,710
|
ENH: Writing a DataFrame to Excel with `XlsxWriter` in constant_memory mode requires row-by-row writes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12184618?v=4",
"events_url": "https://api.github.com/users/idantene/events{/privacy}",
"followers_url": "https://api.github.com/users/idantene/followers",
"following_url": "https://api.github.com/users/idantene/following{/other_user}",
"gists_url": "https://api.github.com/users/idantene/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/idantene",
"id": 12184618,
"login": "idantene",
"node_id": "MDQ6VXNlcjEyMTg0NjE4",
"organizations_url": "https://api.github.com/users/idantene/orgs",
"received_events_url": "https://api.github.com/users/idantene/received_events",
"repos_url": "https://api.github.com/users/idantene/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/idantene/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/idantene/subscriptions",
"type": "User",
"url": "https://api.github.com/users/idantene"
}
|
[
{
"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": "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": "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-06-11T09:54:33Z
| 2021-02-18T19:23:11Z
| null |
NONE
| null |
#### Is your feature request related to a problem?
When writing large DataFrames to an Excel file using `XlsxWriter`, one can use the `options={'constant_memory': True}` keyword arguments.
However, [per the documentation](https://xlsxwriter.readthedocs.io/workbook.html#constructor): **once this mode is active, data should be written in sequential row order.**
The way pandas works at the moment, is that cells are written [per series](https://github.com/pandas-dev/pandas/blob/v1.0.4/pandas/io/formats/excel.py#L675) first, so column-by-column. This effectively writes the DataFrame so that only the first column and last row are fully written (along with the column names, which are written as a single row).
#### Describe the solution you'd like
It would be great to add an axis-like argument in the `to_excel` method, controlling how the data is written to the file (by columns (series) or by rows).
#### API breaking implications
There should be no breaking implications. This new argument can have a default value that matches the current implementation.
#### Describe alternatives you've considered
Monkeypatching the ExcelFormatter as such works fine:
```python
from pandas.io.formats.excel import ExcelFormatter, ExcelCell
def write_excel_by_rows(self, coloffset: int):
if self.styler is None:
styles = None
else:
styles = self.styler._compute().ctx
if not styles:
styles = None
xlstyle = None
for rowidx in range(self.df.shape[0]):
for colidx in range(len(self.columns)):
if styles is not None:
xlstyle = self.style_converter(";".join(styles[rowidx, colidx]))
yield ExcelCell(self.rowcounter + rowidx, colidx + coloffset, self.df.iloc[rowidx, colidx], xlstyle)
ExcelFormatter._generate_body = write_excel_by_rows
```
#### Additional context
Reproducible minimal example:
```python
import pandas as pd
df = pd.DataFrame({'a': [0, 1, 2], 'b': [3, 4, 5], 'c': [6, 7, 8]})
with pd.ExcelWriter('foo.xlsx', engine='xlsxwriter', options={'constant_memory': True}) as xl:
df.to_excel(xl, index=False)
pd.read_excel('foo.xlsx')
>>> a b c
>>> 0 0 NaN NaN
>>> 1 1 NaN NaN
>>> 2 2 5.0 8.0
```
|
{
"+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/34710/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34710/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34711
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34711/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34711/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34711/events
|
https://github.com/pandas-dev/pandas/pull/34711
| 637,031,928
|
MDExOlB1bGxSZXF1ZXN0NDMzMDkyNjM3
| 34,711
|
BLD: Pin cython for 37-locale build
|
{
"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": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 7
| 2020-06-11T13:47:58Z
| 2020-06-15T16:17:38Z
| 2020-06-11T15:26:58Z
|
CONTRIBUTOR
| null |
Seeing if this resolves the build failure.
xref https://github.com/pandas-dev/pandas/issues/34704
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34711/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34711/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34711.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34711",
"merged_at": "2020-06-11T15:26:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34711.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34711"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34712
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34712/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34712/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34712/events
|
https://github.com/pandas-dev/pandas/pull/34712
| 637,128,227
|
MDExOlB1bGxSZXF1ZXN0NDMzMTcyNjA0
| 34,712
|
Make Cython in numpydev config Consistent
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[] |
closed
| false
| null |
[] | null | 5
| 2020-06-11T15:42:14Z
| 2020-06-11T21:41:45Z
| 2020-06-11T21:41:45Z
|
MEMBER
| null |
Follow up to #34711 and just matching the other config files. Not sure generally if we should be specifying here and in higher level configs as may be ambiguous as to what Cython version gets installed, but going with the quick patch 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/34712/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34712/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34712.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34712",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/34712.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34712"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34713
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34713/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34713/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34713/events
|
https://github.com/pandas-dev/pandas/pull/34713
| 637,176,477
|
MDExOlB1bGxSZXF1ZXN0NDMzMjExOTg4
| 34,713
|
DOC: updated core/indexes/base.py for SS06 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 3
| 2020-06-11T16:54:01Z
| 2020-06-12T21:51:07Z
| 2020-06-12T21:00:56Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34713/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34713/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34713.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34713",
"merged_at": "2020-06-12T21:00:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34713.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34713"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34714
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34714/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34714/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34714/events
|
https://github.com/pandas-dev/pandas/issues/34714
| 637,209,785
|
MDU6SXNzdWU2MzcyMDk3ODU=
| 34,714
|
REF: BlockManager.apply_allow_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"
}
|
[
{
"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"
}
| 2
| 2020-06-11T17:43:39Z
| 2020-09-03T02:56:33Z
| 2020-09-03T02:56:33Z
|
MEMBER
| null |
cc @mroeschke w/r/t rolling `._apply`, @WillAyd w/r/t `_cython_agg_blocks`, and anyone else w/r/t `DataFrame._reduce`with `numeric_only=None`, `apply.FrameApply` with `ignore_failures=True`.
All of these do something along the lines of:
```
results = []
exclude = []
for i, block in enumerate(mgr.blocks):
try:
res = func(block.values)
results.append(res)
except:
exclude.append(i)
out = reconstruct(results, exclude)
```
Two things should be done with this pattern:
1) Deprecate it, since it is a disproportionate maintainence burden
2) implement something like `BlockManager.apply_with_ignore_failures` that would resemble BlockManager.apply but with the try/except logic\*
\* We _could_ add that logic into BlockManager.apply, but BM.apply assumes the output has the same shape as the original frame, which I don't think holds for the cases mentioned above, so that would be a little more invasive than just adding a try/except.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34714/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34714/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/34715
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34715/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34715/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34715/events
|
https://github.com/pandas-dev/pandas/pull/34715
| 637,243,019
|
MDExOlB1bGxSZXF1ZXN0NDMzMjY3NTc0
| 34,715
|
DOC: updated core/groupby/generic.py for SS06 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-06-11T18:46:50Z
| 2020-06-12T20:59:56Z
| 2020-06-12T20:59:56Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34715/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34715/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34715.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34715",
"merged_at": "2020-06-12T20:59:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34715.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34715"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/34716
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/34716/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34716/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/34716/events
|
https://github.com/pandas-dev/pandas/pull/34716
| 637,262,172
|
MDExOlB1bGxSZXF1ZXN0NDMzMjgzNTI5
| 34,716
|
DOC: updated pandas/core/series.py for SS06 errors
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26743548?v=4",
"events_url": "https://api.github.com/users/willpeppo/events{/privacy}",
"followers_url": "https://api.github.com/users/willpeppo/followers",
"following_url": "https://api.github.com/users/willpeppo/following{/other_user}",
"gists_url": "https://api.github.com/users/willpeppo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/willpeppo",
"id": 26743548,
"login": "willpeppo",
"node_id": "MDQ6VXNlcjI2NzQzNTQ4",
"organizations_url": "https://api.github.com/users/willpeppo/orgs",
"received_events_url": "https://api.github.com/users/willpeppo/received_events",
"repos_url": "https://api.github.com/users/willpeppo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/willpeppo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/willpeppo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/willpeppo"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-06-11T19:23:29Z
| 2020-06-12T20:58:35Z
| 2020-06-12T20:58:28Z
|
CONTRIBUTOR
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/34716/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/34716/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/34716.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/34716",
"merged_at": "2020-06-12T20:58:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/34716.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/34716"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.