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/33417
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33417/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33417/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33417/events
|
https://github.com/pandas-dev/pandas/issues/33417
| 597,041,943
|
MDU6SXNzdWU1OTcwNDE5NDM=
| 33,417
|
DOC: lreshape and wide_to_long references
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19810086?v=4",
"events_url": "https://api.github.com/users/tpanza/events{/privacy}",
"followers_url": "https://api.github.com/users/tpanza/followers",
"following_url": "https://api.github.com/users/tpanza/following{/other_user}",
"gists_url": "https://api.github.com/users/tpanza/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tpanza",
"id": 19810086,
"login": "tpanza",
"node_id": "MDQ6VXNlcjE5ODEwMDg2",
"organizations_url": "https://api.github.com/users/tpanza/orgs",
"received_events_url": "https://api.github.com/users/tpanza/received_events",
"repos_url": "https://api.github.com/users/tpanza/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tpanza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tpanza/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tpanza"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-04-09T05:59:41Z
| 2020-08-19T13:05:41Z
| 2020-08-19T13:05:41Z
|
CONTRIBUTOR
| null |
#### Location of the documentation
* [General functions](https://pandas.pydata.org/pandas-docs/version/1.0.3/reference/general_functions.html): Does not list `lreshape`
* [DataFrame reshaping, sorting, transposing](https://pandas.pydata.org/pandas-docs/version/1.0.3/reference/frame.html#reshaping-sorting-transposing): Does not list `lreshape` or `wide_to_long`
* [pd.melt](https://pandas.pydata.org/pandas-docs/version/1.0.3/reference/api/pandas.melt.html#pandas.melt): Does not list `lreshape` or `wide_to_long` in the "See Also" section
* [pd.pivot](https://pandas.pydata.org/pandas-docs/version/1.0.3/reference/api/pandas.pivot.html): Include more related functions in the "See Also" section
* [pd.pivot_table](): Include more related functions in the "See Also" section
* [pd.wide_to_long](https://pandas.pydata.org/pandas-docs/version/1.0.3/reference/api/pandas.wide_to_long.html#pandas.wide_to_long): Does not have a "See Also" section
* [pd.lreshape](https://pandas.pydata.org/pandas-docs/version/1.0.3/reference/api/pandas.lreshape.html): _Does not exist_
#### Documentation problem
There remains an outstanding question as to whether `lreshape` and/or `wide_to_long` should be deprecated/removed (#15003). Until that question is resolved, the pandas documentation should include `lreshape` and `wide_to_long`.
More links to and between the related pivoting/melting functions should be included in their respective "See Also" sections of their docstrings.
#### Suggested fix for documentation
Fairly self-explanatory. PR will contain the suggested additions.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33417/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33417/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33418
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33418/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33418/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33418/events
|
https://github.com/pandas-dev/pandas/pull/33418
| 597,056,991
|
MDExOlB1bGxSZXF1ZXN0NDAxMjM3OTQ2
| 33,418
|
lreshape and wide_to_long documentation (Closes #33417)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/19810086?v=4",
"events_url": "https://api.github.com/users/tpanza/events{/privacy}",
"followers_url": "https://api.github.com/users/tpanza/followers",
"following_url": "https://api.github.com/users/tpanza/following{/other_user}",
"gists_url": "https://api.github.com/users/tpanza/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tpanza",
"id": 19810086,
"login": "tpanza",
"node_id": "MDQ6VXNlcjE5ODEwMDg2",
"organizations_url": "https://api.github.com/users/tpanza/orgs",
"received_events_url": "https://api.github.com/users/tpanza/received_events",
"repos_url": "https://api.github.com/users/tpanza/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tpanza/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tpanza/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tpanza"
}
|
[
{
"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": "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-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-04-09T06:39:07Z
| 2020-08-19T13:05:48Z
| 2020-08-19T13:05:41Z
|
CONTRIBUTOR
| null |
- [ ] closes #33417
- [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/33418/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33418/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33418.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33418",
"merged_at": "2020-08-19T13:05:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33418.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33418"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33419
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33419/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33419/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33419/events
|
https://github.com/pandas-dev/pandas/issues/33419
| 597,060,535
|
MDU6SXNzdWU1OTcwNjA1MzU=
| 33,419
|
pandas 1.0.0 conflict with Anaconda
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30949452?v=4",
"events_url": "https://api.github.com/users/ronyarmon/events{/privacy}",
"followers_url": "https://api.github.com/users/ronyarmon/followers",
"following_url": "https://api.github.com/users/ronyarmon/following{/other_user}",
"gists_url": "https://api.github.com/users/ronyarmon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ronyarmon",
"id": 30949452,
"login": "ronyarmon",
"node_id": "MDQ6VXNlcjMwOTQ5NDUy",
"organizations_url": "https://api.github.com/users/ronyarmon/orgs",
"received_events_url": "https://api.github.com/users/ronyarmon/received_events",
"repos_url": "https://api.github.com/users/ronyarmon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ronyarmon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ronyarmon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ronyarmon"
}
|
[
{
"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 | 1
| 2020-04-09T06:47:34Z
| 2020-08-21T17:05:58Z
| 2020-04-09T13:41:23Z
|
NONE
| null |
Trying to install or update from pandas 0.25.1 to 1.0.0 I'm getting into a long process of examining conflicts with existing packages:
```
conda install pandas=1.0.0
```
Installation log:
> Collecting package metadata (current_repodata.json): done
> Solving environment: failed with initial frozen solve. Retrying with flexible solve.
> Collecting package metadata (repodata.json): done
> Solving environment: failed with initial frozen solve. Retrying with flexible solve.
> Solving environment: |
> Found conflicts! Looking for incompatible packages.
> This can take several minutes. Press CTRL-C to abort
Followed by:
> Examining conflict for psutil parso spyder-kernels sphinxcontrib-websupport tblib urllib3 jupyter_core glob2 asn1crypto docutils sphinxcontrib boto sortedcollections matplotlib entrypoints markupsafe astropy...
And a conflict check against individual packages which takes a long time.
Working with pandas standalone or on virtual env is not an option as I need to run my function using a jupyter notebook. Do I need to write it with version 0.25.1 or is there a work around that I may be missing here?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33419/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33419/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33420
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33420/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33420/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33420/events
|
https://github.com/pandas-dev/pandas/issues/33420
| 597,087,695
|
MDU6SXNzdWU1OTcwODc2OTU=
| 33,420
|
BUG: set_levels set wrong order levels for MutiIndex
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/30388627?v=4",
"events_url": "https://api.github.com/users/zxdawn/events{/privacy}",
"followers_url": "https://api.github.com/users/zxdawn/followers",
"following_url": "https://api.github.com/users/zxdawn/following{/other_user}",
"gists_url": "https://api.github.com/users/zxdawn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zxdawn",
"id": 30388627,
"login": "zxdawn",
"node_id": "MDQ6VXNlcjMwMzg4NjI3",
"organizations_url": "https://api.github.com/users/zxdawn/orgs",
"received_events_url": "https://api.github.com/users/zxdawn/received_events",
"repos_url": "https://api.github.com/users/zxdawn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zxdawn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zxdawn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zxdawn"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32621777?v=4",
"events_url": "https://api.github.com/users/yixinxiao7/events{/privacy}",
"followers_url": "https://api.github.com/users/yixinxiao7/followers",
"following_url": "https://api.github.com/users/yixinxiao7/following{/other_user}",
"gists_url": "https://api.github.com/users/yixinxiao7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yixinxiao7",
"id": 32621777,
"login": "yixinxiao7",
"node_id": "MDQ6VXNlcjMyNjIxNzc3",
"organizations_url": "https://api.github.com/users/yixinxiao7/orgs",
"received_events_url": "https://api.github.com/users/yixinxiao7/received_events",
"repos_url": "https://api.github.com/users/yixinxiao7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yixinxiao7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yixinxiao7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yixinxiao7"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/32621777?v=4",
"events_url": "https://api.github.com/users/yixinxiao7/events{/privacy}",
"followers_url": "https://api.github.com/users/yixinxiao7/followers",
"following_url": "https://api.github.com/users/yixinxiao7/following{/other_user}",
"gists_url": "https://api.github.com/users/yixinxiao7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yixinxiao7",
"id": 32621777,
"login": "yixinxiao7",
"node_id": "MDQ6VXNlcjMyNjIxNzc3",
"organizations_url": "https://api.github.com/users/yixinxiao7/orgs",
"received_events_url": "https://api.github.com/users/yixinxiao7/received_events",
"repos_url": "https://api.github.com/users/yixinxiao7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yixinxiao7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yixinxiao7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yixinxiao7"
}
] |
{
"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-04-09T07:43:43Z
| 2020-05-25T22:43:39Z
| 2020-05-25T22:43:28Z
|
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
arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'],
['one', 'one', 'one', 'one', 'one', 'one', 'one', 'one'],
['three', 'four', 'three', 'four', 'three', 'four', 'three', 'four'],
]
df = pd.DataFrame(np.random.randn(8, 4), index=arrays)
df.index.set_levels([3, 4], level=2, inplace=True)
```
#### Problem description
The changed MutiIndex isn't the same order of assigned list.
```
0 1 2 3
bar one 4 -0.606998 -1.225794 0.284541 -0.395946
3 2.693403 0.803962 0.421412 -0.369766
baz one 4 0.182893 0.364850 0.499927 0.271245
3 -0.783458 -0.072504 -1.081301 -0.091093
foo one 4 2.630340 -0.442308 0.519715 -0.412296
3 -0.813574 0.323040 -0.356866 1.877196
qux one 4 -0.578158 0.511383 0.613484 -0.483777
3 -0.161618 -0.481930 0.012694 -1.001978
```
#### Expected Output
```
0 1 2 3
bar one 3 -0.606998 -1.225794 0.284541 -0.395946
4 2.693403 0.803962 0.421412 -0.369766
baz one 3 0.182893 0.364850 0.499927 0.271245
4 -0.783458 -0.072504 -1.081301 -0.091093
foo one 3 2.630340 -0.442308 0.519715 -0.412296
4 -0.813574 0.323040 -0.356866 1.877196
qux one 3 -0.578158 0.511383 0.613484 -0.483777
4 -0.161618 -0.481930 0.012694 -1.001978
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200325
Cython : None
pytest : None
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.2.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33420/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33420/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33421
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33421/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33421/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33421/events
|
https://github.com/pandas-dev/pandas/pull/33421
| 597,267,787
|
MDExOlB1bGxSZXF1ZXN0NDAxNDEyMDc3
| 33,421
|
API: More permissive conversion to StringDtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
}
|
[] |
closed
| false
| null |
[] | null | 2
| 2020-04-09T13:05:15Z
| 2020-05-25T11:50:11Z
| 2020-04-09T13:23:31Z
|
CONTRIBUTOR
| null |
- [x] closes #31204
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a proposal to make using ``StringDtype`` more permissive and be usable inplace of ``dtype=str``.
ATM converting to StringDtype will only accept arrays that are ``str`` already, meaning you will often have to use ``astype(str).astype("string")`` to be sure not to get errors, which can be tedious. For example these fail in master and work in this PR:
```python
>>> pd.Series([1,2, np.nan], dtype="string")
0 1
1 2
2 <NA>
dtype: string
>>> pd.array([1,2, np.nan], dtype="string")
<StringArray>
['1', '2', <NA>]
Length: 3, dtype: string
>>> pd.Series([1,2, np.nan]).astype("string")
0 1.0
1 2.0
2 <NA>
dtype: string
>>> pd.Series([1,2, np.nan], dtype="Int64").astype("string")
0 1
1 2
2 <NA>
dtype: string
```
etc. now work. Previously the above all gave errors.
Obviously tests and doc updates are still missing, but I would appreciate feedback if this solution looks ok.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33421/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33421/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33421.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33421",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33421.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33421"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33422
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33422/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33422/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33422/events
|
https://github.com/pandas-dev/pandas/pull/33422
| 597,316,581
|
MDExOlB1bGxSZXF1ZXN0NDAxNDUyMTk3
| 33,422
|
ENH: update feather IO for pyarrow 0.17 / Feather V2
|
{
"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": "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-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-04-09T14:19:31Z
| 2020-06-21T17:26:14Z
| 2020-04-10T08:37:48Z
|
MEMBER
| null |
Upcoming pyarrow 0.17 release will include an upgraded feather format.
This PRs updates pandas for that, more specifically ensures the new keywords can be passed through (the basics should keep working out of the box, since the public API did not change), and small update to the tests
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33422/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33422/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33422.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33422",
"merged_at": "2020-04-10T08:37:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33422.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33422"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33423
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33423/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33423/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33423/events
|
https://github.com/pandas-dev/pandas/pull/33423
| 597,336,844
|
MDExOlB1bGxSZXF1ZXN0NDAxNDY4NzM3
| 33,423
|
Unpin Python 37 in environment.yml
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false
| null |
[] |
{
"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-04-09T14:48:36Z
| 2020-04-09T15:38:09Z
| 2020-04-09T15:38:05Z
|
MEMBER
| null |
I believe this was supposed to be temporary, so quick follow up to #29431 @TomAugspurger
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33423/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33423/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33423.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33423",
"merged_at": "2020-04-09T15:38:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33423.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33423"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33424
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33424/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33424/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33424/events
|
https://github.com/pandas-dev/pandas/pull/33424
| 597,348,279
|
MDExOlB1bGxSZXF1ZXN0NDAxNDc4MTQ1
| 33,424
|
CLN: remove unnecessary branches in Series.__setitem__
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-09T15:04:59Z
| 2021-11-20T23:23:12Z
| 2020-04-09T18:28:32Z
|
MEMBER
| null |
Eventually I'd like to get the structure of `__setitem__` to parallel the structure of `__getitem__`. Some big improvements to both will be available following #33404.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33424/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33424/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33424.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33424",
"merged_at": "2020-04-09T18:28:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33424.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33424"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33425
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33425/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33425/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33425/events
|
https://github.com/pandas-dev/pandas/issues/33425
| 597,362,459
|
MDU6SXNzdWU1OTczNjI0NTk=
| 33,425
|
BUG: str.cat produces NaNs when others is an Index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/53796099?v=4",
"events_url": "https://api.github.com/users/brandon-b-miller/events{/privacy}",
"followers_url": "https://api.github.com/users/brandon-b-miller/followers",
"following_url": "https://api.github.com/users/brandon-b-miller/following{/other_user}",
"gists_url": "https://api.github.com/users/brandon-b-miller/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/brandon-b-miller",
"id": 53796099,
"login": "brandon-b-miller",
"node_id": "MDQ6VXNlcjUzNzk2MDk5",
"organizations_url": "https://api.github.com/users/brandon-b-miller/orgs",
"received_events_url": "https://api.github.com/users/brandon-b-miller/received_events",
"repos_url": "https://api.github.com/users/brandon-b-miller/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/brandon-b-miller/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/brandon-b-miller/subscriptions",
"type": "User",
"url": "https://api.github.com/users/brandon-b-miller"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
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-04-09T15:25:23Z
| 2020-04-10T17:47:25Z
| 2020-04-10T17:47:25Z
|
NONE
| null |
- [ ] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
print(pd.__version__)
sr = pd.Series(['a','b','c','d','e'])
others = pd.Index(['a','b','c','d','e'])
result = sr.str.cat(others=others)
print(result)
1.0.3
0 NaN
1 NaN
2 NaN
3 NaN
4 NaN
dtype: object
```
#### Problem description
The result should be the same as when `others` is a list or numpy array with the same values. The result is correct for pandas < 1.0.
#### Expected Output
```
0 aa
1 bb
2 cc
3 dd
4 ee
dtype: object
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.4.0-134-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 : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.1.post20200322
Cython : 0.29.15
pytest : 5.4.1
hypothesis : 5.7.0
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
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 : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.15.0
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : 0.48.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/33425/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33425/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33426
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33426/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33426/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33426/events
|
https://github.com/pandas-dev/pandas/issues/33426
| 597,391,177
|
MDU6SXNzdWU1OTczOTExNzc=
| 33,426
|
BUG: core.missing._akima_interpolate will raise AttributeError
|
{
"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": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"color": "cdea3c",
"default": false,
"description": "Unit test(s) needed to prevent regressions",
"id": 986278782,
"name": "Needs Tests",
"node_id": "MDU6TGFiZWw5ODYyNzg3ODI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/29909203?v=4",
"events_url": "https://api.github.com/users/hkennyv/events{/privacy}",
"followers_url": "https://api.github.com/users/hkennyv/followers",
"following_url": "https://api.github.com/users/hkennyv/following{/other_user}",
"gists_url": "https://api.github.com/users/hkennyv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hkennyv",
"id": 29909203,
"login": "hkennyv",
"node_id": "MDQ6VXNlcjI5OTA5MjAz",
"organizations_url": "https://api.github.com/users/hkennyv/orgs",
"received_events_url": "https://api.github.com/users/hkennyv/received_events",
"repos_url": "https://api.github.com/users/hkennyv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hkennyv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hkennyv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hkennyv"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/29909203?v=4",
"events_url": "https://api.github.com/users/hkennyv/events{/privacy}",
"followers_url": "https://api.github.com/users/hkennyv/followers",
"following_url": "https://api.github.com/users/hkennyv/following{/other_user}",
"gists_url": "https://api.github.com/users/hkennyv/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hkennyv",
"id": 29909203,
"login": "hkennyv",
"node_id": "MDQ6VXNlcjI5OTA5MjAz",
"organizations_url": "https://api.github.com/users/hkennyv/orgs",
"received_events_url": "https://api.github.com/users/hkennyv/received_events",
"repos_url": "https://api.github.com/users/hkennyv/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hkennyv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hkennyv/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hkennyv"
}
] |
{
"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"
}
| 8
| 2020-04-09T16:08:50Z
| 2020-04-26T19:57:38Z
| 2020-04-26T19:57:38Z
|
MEMBER
| null |
```
from scipy import interpolate
P = interpolate.Akima1DInterpolator(xi, yi, axis=axis)
if der == 0:
return P(x)
elif interpolate._isscalar(der):
return P(x, der=der)
else:
return [P(x, nu) for nu in der]
```
There is no `interpolate._isscalar` so this would raise if it were ever reached. AFAICT we have only one test that gets to this function, must always have `der == 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/33426/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33426/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33427
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33427/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33427/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33427/events
|
https://github.com/pandas-dev/pandas/pull/33427
| 597,394,302
|
MDExOlB1bGxSZXF1ZXN0NDAxNTE1OTA4
| 33,427
|
CLN: avoid accessing private 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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-09T16:13:57Z
| 2020-04-10T18:02:12Z
| 2020-04-10T16:08:54Z
|
MEMBER
| null |
xref #33394
@simonjayhawkins thoughts on how to handle the mypy complaint?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33427/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33427/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33427.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33427",
"merged_at": "2020-04-10T16:08:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33427.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33427"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33428
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33428/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33428/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33428/events
|
https://github.com/pandas-dev/pandas/issues/33428
| 597,402,095
|
MDU6SXNzdWU1OTc0MDIwOTU=
| 33,428
|
DOC: Data links in Pandas API Reference are broken 404
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/443988?v=4",
"events_url": "https://api.github.com/users/Hackathorn/events{/privacy}",
"followers_url": "https://api.github.com/users/Hackathorn/followers",
"following_url": "https://api.github.com/users/Hackathorn/following{/other_user}",
"gists_url": "https://api.github.com/users/Hackathorn/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Hackathorn",
"id": 443988,
"login": "Hackathorn",
"node_id": "MDQ6VXNlcjQ0Mzk4OA==",
"organizations_url": "https://api.github.com/users/Hackathorn/orgs",
"received_events_url": "https://api.github.com/users/Hackathorn/received_events",
"repos_url": "https://api.github.com/users/Hackathorn/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Hackathorn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Hackathorn/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Hackathorn"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] |
closed
| false
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/61953794?v=4",
"events_url": "https://api.github.com/users/konstell/events{/privacy}",
"followers_url": "https://api.github.com/users/konstell/followers",
"following_url": "https://api.github.com/users/konstell/following{/other_user}",
"gists_url": "https://api.github.com/users/konstell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/konstell",
"id": 61953794,
"login": "konstell",
"node_id": "MDQ6VXNlcjYxOTUzNzk0",
"organizations_url": "https://api.github.com/users/konstell/orgs",
"received_events_url": "https://api.github.com/users/konstell/received_events",
"repos_url": "https://api.github.com/users/konstell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/konstell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/konstell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/konstell"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/61953794?v=4",
"events_url": "https://api.github.com/users/konstell/events{/privacy}",
"followers_url": "https://api.github.com/users/konstell/followers",
"following_url": "https://api.github.com/users/konstell/following{/other_user}",
"gists_url": "https://api.github.com/users/konstell/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/konstell",
"id": 61953794,
"login": "konstell",
"node_id": "MDQ6VXNlcjYxOTUzNzk0",
"organizations_url": "https://api.github.com/users/konstell/orgs",
"received_events_url": "https://api.github.com/users/konstell/received_events",
"repos_url": "https://api.github.com/users/konstell/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/konstell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/konstell/subscriptions",
"type": "User",
"url": "https://api.github.com/users/konstell"
}
] |
{
"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"
}
| 7
| 2020-04-09T16:27:00Z
| 2020-04-14T09:58:30Z
| 2020-04-14T09:58:30Z
|
NONE
| null |
#### Location of the documentation
https://pandas.pydata.org/docs/reference/api/pandas.plotting.parallel_coordinates.html
...probably many examples in other sections
#### Documentation problem
Results in 404 not found error
df = pd.read_csv('https://raw.github.com/pandas-dev/pandas/master'
'/pandas/tests/data/csv/iris.csv')
#### Suggested fix for documentation
The GitHub site should be "raw.githubusercontent.com"
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33428/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33428/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33429
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33429/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33429/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33429/events
|
https://github.com/pandas-dev/pandas/pull/33429
| 597,403,628
|
MDExOlB1bGxSZXF1ZXN0NDAxNTIzNDU2
| 33,429
|
DOC: Fix heading capitalization in doc/source/whatsnew - part3 (#32550)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24496267?v=4",
"events_url": "https://api.github.com/users/cleconte987/events{/privacy}",
"followers_url": "https://api.github.com/users/cleconte987/followers",
"following_url": "https://api.github.com/users/cleconte987/following{/other_user}",
"gists_url": "https://api.github.com/users/cleconte987/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cleconte987",
"id": 24496267,
"login": "cleconte987",
"node_id": "MDQ6VXNlcjI0NDk2MjY3",
"organizations_url": "https://api.github.com/users/cleconte987/orgs",
"received_events_url": "https://api.github.com/users/cleconte987/received_events",
"repos_url": "https://api.github.com/users/cleconte987/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cleconte987/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cleconte987/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cleconte987"
}
|
[
{
"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-04-09T16:29:36Z
| 2020-04-10T17:48:10Z
| 2020-04-10T17:48:06Z
|
CONTRIBUTOR
| null |
- [ ] Modify files v0.8.0.rst, v0.8.1.rst, v0.9.0.rst, v0.9.1.rst, v010.0.rst, v0.10.1.rst, v0.11.0.rst, v0.12.0.rst, v0.13.0.rst, v0.13.1.rst
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33429/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33429/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33429.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33429",
"merged_at": "2020-04-10T17:48:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33429.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33429"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33430
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33430/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33430/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33430/events
|
https://github.com/pandas-dev/pandas/issues/33430
| 597,407,137
|
MDU6SXNzdWU1OTc0MDcxMzc=
| 33,430
|
DOC: Development guide giving 404
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 5
| 2020-04-09T16:35:35Z
| 2020-04-09T18:18:42Z
| 2020-04-09T17:33:04Z
|
CONTRIBUTOR
| null |
https://pandas.pydata.org/docs/development/index.html is giving a 404 right now. Haven't looked into why cc @datapythonista.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33430/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33430/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33431
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33431/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33431/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33431/events
|
https://github.com/pandas-dev/pandas/pull/33431
| 597,418,384
|
MDExOlB1bGxSZXF1ZXN0NDAxNTM1NjY1
| 33,431
|
Temporary fix for Py38 build issues on macOS
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
}
] |
closed
| false
| null |
[] |
{
"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-04-09T16:52:58Z
| 2020-04-09T18:27:01Z
| 2020-04-09T18:26:58Z
|
MEMBER
| null |
ref #33239
works around issues confirmed by @jbrockmendel and @TomAugspurger
Ideally could fix upstream, but may not be worth the effort given the level of nuance
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33431/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33431/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33431.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33431",
"merged_at": "2020-04-09T18:26:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33431.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33431"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33432
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33432/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33432/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33432/events
|
https://github.com/pandas-dev/pandas/pull/33432
| 597,423,362
|
MDExOlB1bGxSZXF1ZXN0NDAxNTM5NzIw
| 33,432
|
remove flake8-rst cap
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-04-09T17:00:55Z
| 2020-04-10T16:40:32Z
| 2020-04-10T16:40:32Z
|
MEMBER
| null |
looks like this was capped a ways back in #24756 - tried locally and didn't see any issues so may be fine to lift the cap
@datapythonista
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33432/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33432/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33432.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33432",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33432.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33432"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33433
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33433/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33433/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33433/events
|
https://github.com/pandas-dev/pandas/issues/33433
| 597,427,737
|
MDU6SXNzdWU1OTc0Mjc3Mzc=
| 33,433
|
BUG: Using `kwargs` in `Rolling.apply()`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24854248?v=4",
"events_url": "https://api.github.com/users/echasnovski/events{/privacy}",
"followers_url": "https://api.github.com/users/echasnovski/followers",
"following_url": "https://api.github.com/users/echasnovski/following{/other_user}",
"gists_url": "https://api.github.com/users/echasnovski/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echasnovski",
"id": 24854248,
"login": "echasnovski",
"node_id": "MDQ6VXNlcjI0ODU0MjQ4",
"organizations_url": "https://api.github.com/users/echasnovski/orgs",
"received_events_url": "https://api.github.com/users/echasnovski/received_events",
"repos_url": "https://api.github.com/users/echasnovski/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echasnovski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echasnovski/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echasnovski"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 1
| 2020-04-09T17:07:56Z
| 2020-05-26T09:29:05Z
| 2020-05-15T14:11:39Z
|
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
from functools import partial
import numpy as np
import pandas as pd
def foo(x, par):
return np.sum(x + par)
df = pd.DataFrame({"gr": [1, 1], "a": [1, 2]})
# With `kwargs`
try:
print(df.groupby("gr")["a"].rolling(1).apply(foo, kwargs={"par": 10}))
except Exception as e:
print(e)
# Using `partial`
bar = partial(foo, par=10)
print(df.groupby("gr")["a"].rolling(1).apply(bar))
```
#### Problem description
**Expected**: using appropriate `kwargs` argument for `pandas.core.window.rolling.Rolling.apply()` should be equivalent to premodifying supplied function with `functools.partial()` (because it is stated in [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.core.window.rolling.Rolling.apply.html)).
**Current**: `kwargs` doesn't seem to be used at all, because it results into "missing 1 required positional argument" exception.
**Note**: This works as expected in pandas 0.25.3, but gives error as early as 1.0.0.
#### Expected Output
```
gr
1 0 11.0
1 12.0
Name: a, dtype: float64
gr
1 0 11.0
1 12.0
Name: a, dtype: float64
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-29-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : ru_UA.UTF-8
LOCALE : ru_UA.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.post20200325
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33433/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33433/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33434
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33434/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33434/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33434/events
|
https://github.com/pandas-dev/pandas/issues/33434
| 597,433,165
|
MDU6SXNzdWU1OTc0MzMxNjU=
| 33,434
|
tm.external_error_raised instead of tm.assertRaises in the documentation
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/53505344?v=4",
"events_url": "https://api.github.com/users/SurajH1/events{/privacy}",
"followers_url": "https://api.github.com/users/SurajH1/followers",
"following_url": "https://api.github.com/users/SurajH1/following{/other_user}",
"gists_url": "https://api.github.com/users/SurajH1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SurajH1",
"id": 53505344,
"login": "SurajH1",
"node_id": "MDQ6VXNlcjUzNTA1MzQ0",
"organizations_url": "https://api.github.com/users/SurajH1/orgs",
"received_events_url": "https://api.github.com/users/SurajH1/received_events",
"repos_url": "https://api.github.com/users/SurajH1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SurajH1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SurajH1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SurajH1"
}
|
[
{
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-09T17:17:32Z
| 2021-03-05T19:27:56Z
| 2021-03-05T19:27:56Z
|
CONTRIBUTOR
| null |
I tried to use tm.assertRaises but got the following error:
with tm.assertRaises(ValueError):
AttributeError: module 'pandas.util.testing' has no attribute 'assertRaises'
After carefully assessing whether I had all the dependencies, I looked into the testing.py files and realised that there is no assertRaises function although the testing documentation advises to use the function.(https://github.com/pandas-dev/pandas/wiki/Testing) I believe the documentation should be updated to tm.external_error_raised.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33434/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33434/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33435
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33435/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33435/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33435/events
|
https://github.com/pandas-dev/pandas/pull/33435
| 597,439,266
|
MDExOlB1bGxSZXF1ZXN0NDAxNTUyNDIy
| 33,435
|
Support downcasting of nullable arrays
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32621777?v=4",
"events_url": "https://api.github.com/users/yixinxiao7/events{/privacy}",
"followers_url": "https://api.github.com/users/yixinxiao7/followers",
"following_url": "https://api.github.com/users/yixinxiao7/following{/other_user}",
"gists_url": "https://api.github.com/users/yixinxiao7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/yixinxiao7",
"id": 32621777,
"login": "yixinxiao7",
"node_id": "MDQ6VXNlcjMyNjIxNzc3",
"organizations_url": "https://api.github.com/users/yixinxiao7/orgs",
"received_events_url": "https://api.github.com/users/yixinxiao7/received_events",
"repos_url": "https://api.github.com/users/yixinxiao7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/yixinxiao7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yixinxiao7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/yixinxiao7"
}
|
[
{
"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": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "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"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-09T17:28:41Z
| 2020-11-18T16:55:40Z
| 2020-11-18T16:55:40Z
|
NONE
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Addressing GH #33013. Supports downcasting of nullable dtypes by transferring elements in extension array to ndarray to avoid TypeError thrown by np.allclose. Enhancement documented on v1.1.0 in the "other enhancements" section. Unit test written in test_to_numeric.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33435/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33435/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33435.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33435",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33435.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33435"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33436
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33436/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33436/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33436/events
|
https://github.com/pandas-dev/pandas/pull/33436
| 597,460,327
|
MDExOlB1bGxSZXF1ZXN0NDAxNTY5MTgz
| 33,436
|
BUG: Fix bug when concatenating Index of strings
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
}
] |
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-04-09T18:07:20Z
| 2020-04-10T18:10:06Z
| 2020-04-10T17:47:26Z
|
MEMBER
| null |
- [ ] closes #33425
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33436/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33436/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33436.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33436",
"merged_at": "2020-04-10T17:47:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33436.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33436"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33437
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33437/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33437/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33437/events
|
https://github.com/pandas-dev/pandas/issues/33437
| 597,469,450
|
MDU6SXNzdWU1OTc0Njk0NTA=
| 33,437
|
BUG: DataFrame constructor doesn't validate index/data lengths with EA data
|
{
"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": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-08-21T08:34:54Z",
"closed_issues": 110,
"created_at": "2020-07-10T13:54:44Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.1.x",
"due_on": "2020-08-22T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/75",
"id": 5640672,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75/labels",
"node_id": "MDk6TWlsZXN0b25lNTY0MDY3Mg==",
"number": 75,
"open_issues": 0,
"state": "closed",
"title": "1.1.1",
"updated_at": "2020-08-25T06:31:23Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/75"
}
| 0
| 2020-04-09T18:24:35Z
| 2020-08-07T02:20:03Z
| 2020-08-07T02:20:03Z
|
MEMBER
| null |
```
dti = pd.date_range("2016-01-01", periods=3, tz="US/Pacific")
>>> pd.DataFrame(dti, index=range(4))
0
0 2016-01-01 00:00:00-08:00
1 2016-01-02 00:00:00-08:00
2 2016-01-03 00:00:00-08:00
3
>>> pd.DataFrame(dti.tz_localize(None), index=range(4))
ValueError: Shape of passed values is (3, 1), indices imply (4, 1)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33437/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33437/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33438
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33438/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33438/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33438/events
|
https://github.com/pandas-dev/pandas/issues/33438
| 597,481,280
|
MDU6SXNzdWU1OTc0ODEyODA=
| 33,438
|
BUG: Inconsistent behavior of pd.DataFrame.drop
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12965733?v=4",
"events_url": "https://api.github.com/users/FSpanhel/events{/privacy}",
"followers_url": "https://api.github.com/users/FSpanhel/followers",
"following_url": "https://api.github.com/users/FSpanhel/following{/other_user}",
"gists_url": "https://api.github.com/users/FSpanhel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FSpanhel",
"id": 12965733,
"login": "FSpanhel",
"node_id": "MDQ6VXNlcjEyOTY1NzMz",
"organizations_url": "https://api.github.com/users/FSpanhel/orgs",
"received_events_url": "https://api.github.com/users/FSpanhel/received_events",
"repos_url": "https://api.github.com/users/FSpanhel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FSpanhel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FSpanhel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FSpanhel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] | null | 2
| 2020-04-09T18:46:41Z
| 2020-08-21T17:05:58Z
| 2020-04-10T10:29:10Z
|
NONE
| null |
**Problem description**
Until an hour ago I thought that I can safely omit the use of inplace = True (which is not recommended, e.g., #30484) and instead use inplace = False and directly assign the result.
For example, I thought that
```python
df.drop(columns = ['a'], inplace = True)
```
can be replaced by
```python
df = df.drop(columns = ['a'])
```
where df is a pd.DataFrame.
However, this does not seem to be case when I use these operations within a function.
```python
# 1) direct assignment, .drop
df = pd.DataFrame([1])
def tfun(df):
df['a'] = 2
df = df.drop(columns = ['a'])
tfun(df)
print(df.columns)
>>> Index([0, 'a'], dtype='object')
```
Compare this with
```python
# 2) direct assignment, .drop with inplace (or del)
df = pd.DataFrame([1])
def tfun(df):
df['a'] = 2
df.drop(columns = ['a'], inplace = True) # using del df['a'] leads to the same result
tfun(df)
print(df.columns)
>>> Index([0], dtype='object')
```
The result of 2) is as expected (we add column 'a' and immediately remove it). However, I am very confused about the result of 1). The removal of column 'a' which is done inside tfun is not reflected in df outside after tfun is applied.
It gets even stranger when we use .assign to add column 'a' to df inside tfun:
```python
# 3) .assign, .drop
df= pd.DataFrame([1])
def tfun(df):
df= df.assign(a = 2)
df= df.drop(columns = ['a'])
tfun(df)
print(df.columns)
>>> RangeIndex(start=0, stop=1, step=1)
```
Now, column 'a' is removed, although the type of the remaining column is now a RangeIndex.
I definitely would expect that the result of 3) is equal to the result of 1). What is going on here?
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : None.None
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : 0.29.15
pytest : 5.3.5
hypothesis : 5.5.4
sphinx : 2.4.0
blosc : None
feather : None
xlsxwriter : 1.2.7
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : 1.3.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.3.5
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.7
numba : 0.48.0
</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/33438/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33438/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33439
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33439/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33439/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33439/events
|
https://github.com/pandas-dev/pandas/issues/33439
| 597,484,723
|
MDU6SXNzdWU1OTc0ODQ3MjM=
| 33,439
|
BUG: Mysterious Series.get() with Int64Index bug
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/4357268?v=4",
"events_url": "https://api.github.com/users/sam-cohan/events{/privacy}",
"followers_url": "https://api.github.com/users/sam-cohan/followers",
"following_url": "https://api.github.com/users/sam-cohan/following{/other_user}",
"gists_url": "https://api.github.com/users/sam-cohan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sam-cohan",
"id": 4357268,
"login": "sam-cohan",
"node_id": "MDQ6VXNlcjQzNTcyNjg=",
"organizations_url": "https://api.github.com/users/sam-cohan/orgs",
"received_events_url": "https://api.github.com/users/sam-cohan/received_events",
"repos_url": "https://api.github.com/users/sam-cohan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sam-cohan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sam-cohan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sam-cohan"
}
|
[
{
"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"
}
| 13
| 2020-04-09T18:53:17Z
| 2020-05-02T18:09:55Z
| 2020-05-01T00:26:36Z
|
CONTRIBUTOR
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
# Your code here
def get_t_minus_n_val(n):
def f(x):
# assume index is days_from_origin
if n == 3 and x.index[-1] == 27:
import pdb; pdb.set_trace()
print(x.index[-1], n, x.get(x.index[-1] - n)) # for debugging
return x.get(x.index[-1] - n, np.NaN)
f.__name__ = f"t_minus_{n}_days"
return f
res = data_df.set_index("days_from_origin_").groupby("device").agg({"metric1": get_t_minus_n_val(3)})
> <ipython-input-452-9b903578cb56>(7)f()
-> print(x.index[-1], n, x.get(x.index[-1] - n)) # for debugging
(Pdb) x.get(24)
(Pdb) x.iloc[-5:]
23 60221064
24 232131096
25 46413584
26 133181464
27 229400712
Name: metric1, dtype: int64
(Pdb) 24 in x.index
False
(Pdb) 24 in x.index.values
True
Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27],
dtype='int64')
(Pdb) x.to_dict().get(24)
232131096
```
#### Problem description
I am not able to get a minimum repro of this as it is seems to be data dependent. Instead, I am capturing the bug by showing you my pdb debugging statements in hopes that someone that knows the code can figure out where the problem is.
Basically, I am doing a custom agg function which needs to grab an element from a Series object, and even though the value clearly exists in the index, it returns None. If I first convert to dict, then it does get the value.
I was not able to repro this by simply creating a new series and calling .get on it... that works just fine. And in fact, if I filter the dataframe for just that device, then it works just fine. It is definitely some sort of internal state issue which happens as a result of groupby having more records...
#### Expected Output
obviously I expect x.get(24) to return the correct value instead of None.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 17.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 41.2.0
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 0.16.0
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
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/33439/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33439/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33440
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33440/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33440/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33440/events
|
https://github.com/pandas-dev/pandas/pull/33440
| 597,510,065
|
MDExOlB1bGxSZXF1ZXN0NDAxNjA5MzIx
| 33,440
|
BUG: `weights` is not working for multiple columns in df.plot.hist
|
{
"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": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
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-04-09T19:41:52Z
| 2020-04-10T17:00:00Z
| 2020-04-10T16:59:56Z
|
MEMBER
| null |
- [x] closes #33173
- [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/33440/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33440/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33440.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33440",
"merged_at": "2020-04-10T16:59:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33440.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33440"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33441
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33441/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33441/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33441/events
|
https://github.com/pandas-dev/pandas/pull/33441
| 597,513,940
|
MDExOlB1bGxSZXF1ZXN0NDAxNjEyNDI0
| 33,441
|
BUG: Timedelta == ndarray[td64]
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "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"
}
| 2
| 2020-04-09T19:49:45Z
| 2020-04-10T18:06:09Z
| 2020-04-10T15:58:10Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
xref #33346
Between the two of these, we should be able to get rid of this kludge: https://github.com/pandas-dev/pandas/blob/master/pandas/core/internals/managers.py#L629
IIRC there were some test_coercion xfails related to that kludge, will be worth revisiting.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33441/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33441/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33441.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33441",
"merged_at": "2020-04-10T15:58:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33441.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33441"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33442
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33442/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33442/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33442/events
|
https://github.com/pandas-dev/pandas/pull/33442
| 597,526,623
|
MDExOlB1bGxSZXF1ZXN0NDAxNjIyODA2
| 33,442
|
ENH: Add prod to masked_reductions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "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": "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"
}
| 6
| 2020-04-09T20:14:40Z
| 2020-04-12T23:21:57Z
| 2020-04-12T22:59:02Z
|
MEMBER
| null |
Adding prod to /core/array_algos/masked_reductions.py and using them for IntegerArray and BooleanArray. This also seems to offer a decent speedup over nanops like the other reductions:
```python
# Branch
[ins] In [3]: %timeit arr.prod() # arr = pd.Series([None, 0, 1, 2] * 10_000, dtype="Int64")
102 µs ± 379 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)
[ins] In [5]: %timeit arr.prod() # arr = pd.Series([0, 0, 1, 2] * 10_000, dtype="Int64")
82.6 µs ± 752 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)
# Master
[ins] In [4]: %timeit arr.prod() # arr = pd.Series([None, 0, 1, 2] * 10_000, dtype="Int64")
291 µs ± 6.23 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
[ins] In [6]: %timeit arr.prod() # arr = pd.Series([0, 0, 1, 2] * 10_000, dtype="Int64")
78.6 µs ± 2.5 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33442/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33442/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33442.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33442",
"merged_at": "2020-04-12T22:59:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33442.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33442"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33443
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33443/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33443/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33443/events
|
https://github.com/pandas-dev/pandas/issues/33443
| 597,548,000
|
MDU6SXNzdWU1OTc1NDgwMDA=
| 33,443
|
BUG: Low performance of DataFrame operations
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3455996?v=4",
"events_url": "https://api.github.com/users/rkashapov/events{/privacy}",
"followers_url": "https://api.github.com/users/rkashapov/followers",
"following_url": "https://api.github.com/users/rkashapov/following{/other_user}",
"gists_url": "https://api.github.com/users/rkashapov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rkashapov",
"id": 3455996,
"login": "rkashapov",
"node_id": "MDQ6VXNlcjM0NTU5OTY=",
"organizations_url": "https://api.github.com/users/rkashapov/orgs",
"received_events_url": "https://api.github.com/users/rkashapov/received_events",
"repos_url": "https://api.github.com/users/rkashapov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rkashapov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rkashapov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rkashapov"
}
|
[
{
"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": "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 | 3
| 2020-04-09T20:56:23Z
| 2020-08-18T22:26:48Z
| 2020-08-18T22:26:48Z
|
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 timeit
import pandas as pd
import numpy as np
def div_simple(df):
return df.div(df.sum(axis=0), axis=1)
def div_transposed(df):
df = df.T
return df.div(df.sum(axis=1), axis=0).T
def div_python(df):
data = df.values.tolist()
for i in range(COLS):
s = sum(data[j][i] for j in range(ROWS))
for j in range(ROWS):
data[j][i] /= s
return data
COLS = 1000
ROWS = 10
df = pd.DataFrame(
np.random.randint(0,100,size=(ROWS, COLS)),
columns=list(range(COLS)),
)
for func in (div_simple, div_transposed, div_python):
print(f'{timeit.timeit(lambda: func(df.copy()), number=100):08.4f}s\t{func.__name__}')
```
#### Problem description
I've faced a strange performance issue. The pandas' version works much longer than a bare-python version.
```
100 x 100
001.6424s div_simple
000.0596s div_transposed
000.1856s div_python
```
```
10 x 1000
000.2322s div_simple
000.0576s div_transposed
000.1780s div_python
```
```
1000 x 10
015.3119s div_simple
000.0560s div_transposed
000.2327s div_python
```
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.4.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : ru_RU.UTF-8
LOCALE : ru_RU.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33443/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33443/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33444
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33444/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33444/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33444/events
|
https://github.com/pandas-dev/pandas/pull/33444
| 597,587,226
|
MDExOlB1bGxSZXF1ZXN0NDAxNjczMTgw
| 33,444
|
DOC: Fix heading capitalization in doc/source/whatsnew - part4 (#32550)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/24496267?v=4",
"events_url": "https://api.github.com/users/cleconte987/events{/privacy}",
"followers_url": "https://api.github.com/users/cleconte987/followers",
"following_url": "https://api.github.com/users/cleconte987/following{/other_user}",
"gists_url": "https://api.github.com/users/cleconte987/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cleconte987",
"id": 24496267,
"login": "cleconte987",
"node_id": "MDQ6VXNlcjI0NDk2MjY3",
"organizations_url": "https://api.github.com/users/cleconte987/orgs",
"received_events_url": "https://api.github.com/users/cleconte987/received_events",
"repos_url": "https://api.github.com/users/cleconte987/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cleconte987/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cleconte987/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cleconte987"
}
|
[
{
"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": "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"
}
| 6
| 2020-04-09T22:21:38Z
| 2020-04-17T02:55:52Z
| 2020-04-17T02:55:35Z
|
CONTRIBUTOR
| null |
Add exceptions to the list in 'scripts/validate_rst_title_capitalization.py'
- [ ] Modify files in doc/source/whatsnew: v0.14.0.rst, v0.14.1.rst, v0.15.0.rst, v0.15.1.rst, v0.15.2.rst, v0.16.0.rst, v0.16.1.rst, v0.16.2.rst, v0.17.0.rst, v0.17.1.rst
- [ ] Modify files in scripts: validate_rst_title_capitalization.py
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33444/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33444/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33444.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33444",
"merged_at": "2020-04-17T02:55:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33444.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33444"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33445
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33445/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33445/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33445/events
|
https://github.com/pandas-dev/pandas/pull/33445
| 597,646,312
|
MDExOlB1bGxSZXF1ZXN0NDAxNzE5ODAz
| 33,445
|
REF: remove replace_list kludge
|
{
"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": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
},
{
"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-04-10T01:43:16Z
| 2020-04-10T20:57:33Z
| 2020-04-10T20:55:01Z
|
MEMBER
| null |
This sits on top of #33441
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33445/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33445/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33445.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33445",
"merged_at": "2020-04-10T20:55:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33445.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33445"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33446
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33446/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33446/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33446/events
|
https://github.com/pandas-dev/pandas/pull/33446
| 597,654,357
|
MDExOlB1bGxSZXF1ZXN0NDAxNzI1MjE1
| 33,446
|
BUG: Fix ValueError when grouping by read-only category (#33410)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/37126755?v=4",
"events_url": "https://api.github.com/users/erik-hasse/events{/privacy}",
"followers_url": "https://api.github.com/users/erik-hasse/followers",
"following_url": "https://api.github.com/users/erik-hasse/following{/other_user}",
"gists_url": "https://api.github.com/users/erik-hasse/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/erik-hasse",
"id": 37126755,
"login": "erik-hasse",
"node_id": "MDQ6VXNlcjM3MTI2NzU1",
"organizations_url": "https://api.github.com/users/erik-hasse/orgs",
"received_events_url": "https://api.github.com/users/erik-hasse/received_events",
"repos_url": "https://api.github.com/users/erik-hasse/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/erik-hasse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/erik-hasse/subscriptions",
"type": "User",
"url": "https://api.github.com/users/erik-hasse"
}
|
[
{
"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 |
[] |
{
"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-04-10T02:12:32Z
| 2020-04-10T17:10:43Z
| 2020-04-10T16:57:10Z
|
CONTRIBUTOR
| null |
- [x] closes #33410
- [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/33446/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33446/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33446.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33446",
"merged_at": "2020-04-10T16:57:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33446.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33446"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33447
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33447/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33447/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33447/events
|
https://github.com/pandas-dev/pandas/pull/33447
| 597,681,288
|
MDExOlB1bGxSZXF1ZXN0NDAxNzQ2MTU2
| 33,447
|
REF: de-nest Series getitem/setitem checks
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-10T03:59:45Z
| 2020-04-14T03:17:57Z
| 2020-04-10T18:21:13Z
|
MEMBER
| null |
ATM the first checks we do in `Series.__getitem__` and `__setitem__` are for `get_loc` with some not-totally-straightforward try/except logic.
This moves the slice case and the com.is_bool_indexer case up, and aligns the ordering of the checks between getitem/setitem.
Getting the com.is_bool_indexer case out from the try/except in setitem is particularly nice.
That said, this _may_ not be what we want to do. This will very slightly improve performance in the cases moved up, and equally slightly harm performance in the scalar case. AFAIK the current ordering is not based on optimizing one case over the others.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33447/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33447/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33447.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33447",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33447.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33447"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33448
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33448/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33448/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33448/events
|
https://github.com/pandas-dev/pandas/pull/33448
| 597,740,342
|
MDExOlB1bGxSZXF1ZXN0NDAxNzkxNzQ2
| 33,448
|
Whitelist std and var for use with custom rolling windows
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/23253999?v=4",
"events_url": "https://api.github.com/users/AlexKirko/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexKirko/followers",
"following_url": "https://api.github.com/users/AlexKirko/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexKirko/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexKirko",
"id": 23253999,
"login": "AlexKirko",
"node_id": "MDQ6VXNlcjIzMjUzOTk5",
"organizations_url": "https://api.github.com/users/AlexKirko/orgs",
"received_events_url": "https://api.github.com/users/AlexKirko/received_events",
"repos_url": "https://api.github.com/users/AlexKirko/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexKirko/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexKirko/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexKirko"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 11
| 2020-04-10T07:21:48Z
| 2020-04-17T06:27:03Z
| 2020-04-17T02:54:51Z
|
MEMBER
| null |
- [X] xref #32865
- [X] 0 tests added / 0 passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
### The problem
While researching what funcitons are broken for #32865 , I added `std` and `var` to the list since their output didn't match numpy output. I have since discovered that this is because we default to the sample variance formula for all window calculations.
After closer examination, the algorithm itself turned out to be very robust against custom indexers. It is even resilient against non-monothonic window starts and ends.
There is nothing to do there, so we should revert blacklisting `std` and `var`. I don't think tests are necessary, since we aren't changing anything.
### Food for thought
Some background information to make our decision here more informed:
The reason I first believed these functions to be broken is because using the sample variance formula for sliding windows makes no sense to me from a statistical viewpoint. We use sample variance when the dataset is a sample drawn from a larger population. **A window is not a sample**. When we calculate sliding window variance, we aren't interested in getting the correct variance for some underlying general window, we are interested in computing it correctly for each window, and thus each window is the population.
However, as we discussed with @mroeschke:
1) Usually users are interested in calculating variance for large windows, and the difference between formulas for variance is proportional to `1 / (window_size - 1) - 1 / window_size`
2) We use sample variance as a default everywhere else in pandas.
3) The user can specify `rolling.var(ddof=0)` to set degrees of freedom to zero and get population variance, if they know what they want and are aware that pandas uses sample variance by default.
So the default doesn't make much sense, but it is consistent with the rest of our software, and the harm is negligible for most use cases. The harm in changing the default would be that people who know the package well might expect the sample variance default.
Apologies for the long read. It's a part of my job to find mistakes in data science models, so I'm sensitive to stuff like 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/33448/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33448/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33448.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33448",
"merged_at": "2020-04-17T02:54:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33448.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33448"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33449
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33449/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33449/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33449/events
|
https://github.com/pandas-dev/pandas/issues/33449
| 597,751,803
|
MDU6SXNzdWU1OTc3NTE4MDM=
| 33,449
|
BUG: Series.any/all with level keyword should preserve boolean dtype
|
{
"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": "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"
},
{
"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"
}
] |
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"
}
| 3
| 2020-04-10T07:51:30Z
| 2021-04-13T17:12:16Z
| 2021-04-13T17:12:16Z
|
MEMBER
| null |
```
In [5]: s = pd.Series([False, False, True, True, False, True],
index=[0, 0, 1, 1, 2, 2], dtype="boolean")
In [6]: s.all(level=0)
Out[6]:
0 False
1 True
2 False
dtype: bool
```
The dtype of the result could also be boolean instead of bool.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33449/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33449/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33450
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33450/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33450/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33450/events
|
https://github.com/pandas-dev/pandas/issues/33450
| 597,774,679
|
MDU6SXNzdWU1OTc3NzQ2Nzk=
| 33,450
|
BUG: maximum of pd.Series([np.nan],dtype=ordered_category) raise
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/282477?v=4",
"events_url": "https://api.github.com/users/mizuy/events{/privacy}",
"followers_url": "https://api.github.com/users/mizuy/followers",
"following_url": "https://api.github.com/users/mizuy/following{/other_user}",
"gists_url": "https://api.github.com/users/mizuy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mizuy",
"id": 282477,
"login": "mizuy",
"node_id": "MDQ6VXNlcjI4MjQ3Nw==",
"organizations_url": "https://api.github.com/users/mizuy/orgs",
"received_events_url": "https://api.github.com/users/mizuy/received_events",
"repos_url": "https://api.github.com/users/mizuy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mizuy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mizuy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mizuy"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 7
| 2020-04-10T08:42:40Z
| 2020-05-26T09:33:58Z
| 2020-04-13T08:16:59Z
|
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
In [1]: pd.__version__
Out[1]: '1.0.3'
In [2]: pd.Series([np.nan],dtype=pd.CategoricalDtype([0,1],ordered=True)).max()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-5a47d189b696> in <module>
----> 1 pd.Series([np.nan],dtype=pd.CategoricalDtype([0,1],ordered=True)).max()
~/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/core/generic.py in stat_func(self, axis, skipna, level, numeric_only, **kwargs)
11213 return self._agg_by_level(name, axis=axis, level=level, skipna=skipna)
11214 return self._reduce(
> 11215 f, name, axis=axis, skipna=skipna, numeric_only=numeric_only
11216 )
11217
~/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/core/series.py in _reduce(self, op, name, axis, skipna, numeric_only, filter_type, **kwds)
3870
3871 if isinstance(delegate, Categorical):
-> 3872 return delegate._reduce(name, skipna=skipna, **kwds)
3873 elif isinstance(delegate, ExtensionArray):
3874 # dispatch to ExtensionArray interface
~/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/core/arrays/categorical.py in _reduce(self, name, axis, **kwargs)
2123 if func is None:
2124 raise TypeError(f"Categorical cannot perform the operation {name}")
-> 2125 return func(**kwargs)
2126
2127 @deprecate_kwarg(old_arg_name="numeric_only", new_arg_name="skipna")
~/.pyenv/versions/3.7.4/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)
~/.pyenv/versions/3.7.4/lib/python3.7/site-packages/pandas/core/arrays/categorical.py in max(self, skipna)
2188 if not good.all():
2189 if skipna:
-> 2190 pointer = self._codes[good].max()
2191 else:
2192 return np.nan
~/.pyenv/versions/3.7.4/lib/python3.7/site-packages/numpy/core/_methods.py in _amax(a, axis, out, keepdims, initial, where)
28 def _amax(a, axis=None, out=None, keepdims=False,
29 initial=_NoValue, where=True):
---> 30 return umr_maximum(a, axis, None, out, keepdims, initial, where)
31
32 def _amin(a, axis=None, out=None, keepdims=False,
ValueError: zero-size array to reduction operation maximum which has no identity
```
In the older version, the same code didn't raise an error.
```python
In [10]: pd.__version__
Out[10]: '0.25.3'
In [11]: pd.Series([np.nan],dtype=pd.CategoricalDtype([0,1],ordered=True)).max()
...:
Out[11]: nan
```
#### Problem description
Because of this behavior, I failed to df.groupby().max() for ordered categories.
#### Expected Output
Expected output should be np.nan
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.4.final.0
python-bits : 64
OS : Darwin
OS-release : 18.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.17.3
pytz : 2019.3
dateutil : 2.8.0
pip : 20.0.2
setuptools : 40.8.0
Cython : None
pytest : 5.2.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.2.2
lxml.etree : 4.4.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : 0.15.0
pytables : None
pytest : 5.2.1
pyxlsb : None
s3fs : 0.2.2
scipy : 1.3.1
sqlalchemy : None
tables : None
tabulate : 0.8.5
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : 1.2.2
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/33450/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33450/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33451
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33451/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33451/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33451/events
|
https://github.com/pandas-dev/pandas/issues/33451
| 597,819,256
|
MDU6SXNzdWU1OTc4MTkyNTY=
| 33,451
|
DOC: Be explicit whether a view or copy is returned
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12965733?v=4",
"events_url": "https://api.github.com/users/FSpanhel/events{/privacy}",
"followers_url": "https://api.github.com/users/FSpanhel/followers",
"following_url": "https://api.github.com/users/FSpanhel/following{/other_user}",
"gists_url": "https://api.github.com/users/FSpanhel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FSpanhel",
"id": 12965733,
"login": "FSpanhel",
"node_id": "MDQ6VXNlcjEyOTY1NzMz",
"organizations_url": "https://api.github.com/users/FSpanhel/orgs",
"received_events_url": "https://api.github.com/users/FSpanhel/received_events",
"repos_url": "https://api.github.com/users/FSpanhel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FSpanhel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FSpanhel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FSpanhel"
}
|
[
{
"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
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/44098774?v=4",
"events_url": "https://api.github.com/users/marinomaria/events{/privacy}",
"followers_url": "https://api.github.com/users/marinomaria/followers",
"following_url": "https://api.github.com/users/marinomaria/following{/other_user}",
"gists_url": "https://api.github.com/users/marinomaria/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/marinomaria",
"id": 44098774,
"login": "marinomaria",
"node_id": "MDQ6VXNlcjQ0MDk4Nzc0",
"organizations_url": "https://api.github.com/users/marinomaria/orgs",
"received_events_url": "https://api.github.com/users/marinomaria/received_events",
"repos_url": "https://api.github.com/users/marinomaria/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/marinomaria/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/marinomaria/subscriptions",
"type": "User",
"url": "https://api.github.com/users/marinomaria"
}
|
[
{
"avatar_url": "https://avatars.githubusercontent.com/u/44098774?v=4",
"events_url": "https://api.github.com/users/marinomaria/events{/privacy}",
"followers_url": "https://api.github.com/users/marinomaria/followers",
"following_url": "https://api.github.com/users/marinomaria/following{/other_user}",
"gists_url": "https://api.github.com/users/marinomaria/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/marinomaria",
"id": 44098774,
"login": "marinomaria",
"node_id": "MDQ6VXNlcjQ0MDk4Nzc0",
"organizations_url": "https://api.github.com/users/marinomaria/orgs",
"received_events_url": "https://api.github.com/users/marinomaria/received_events",
"repos_url": "https://api.github.com/users/marinomaria/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/marinomaria/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/marinomaria/subscriptions",
"type": "User",
"url": "https://api.github.com/users/marinomaria"
}
] |
{
"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-04-10T10:27:07Z
| 2020-06-23T19:45:34Z
| 2020-06-23T19:44:19Z
|
NONE
| null |
#### Location of the documentation
For instance,
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html
#### Documentation problem
Sometimes the documentation is explicit that a copy is returned, e.g., https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html -> "Returns a new object ...", sometimes it is not or not explicitly stated, e.g., https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html -> "Drop specified labels from rows or columns."
#### Suggested fix for documentation
I wrongly assumed that pandas.DataFrame.drop returns a view because the first line of the docstring "Drop specified labels from rows or columns." suggests that, in my view. Later it is mentioned what happens if you set inplace = True. But you can only assume what happens if the default argument is used. Thus, the documentation is not clear w.r.t. this point and may be confusing to users, see #33438 or #30484.
I would suggest that the documentation reads `"Drop specified labels from rows or columns and return a new object"' and/or "inplace : bool, default False. If False, return a copy. If True, do operation inplace and return None." This also applies to other methods that have the inplace parameter.
Since the use of inplace = True seems to be discouraged (#30484) it would also make sense to mention that in the documentation?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33451/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33451/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33452
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33452/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33452/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33452/events
|
https://github.com/pandas-dev/pandas/issues/33452
| 597,825,279
|
MDU6SXNzdWU1OTc4MjUyNzk=
| 33,452
|
ENH: Use fsspec for reading/writing from/to S3, GCS, Azure Blob, etc.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/307739?v=4",
"events_url": "https://api.github.com/users/jrderuiter/events{/privacy}",
"followers_url": "https://api.github.com/users/jrderuiter/followers",
"following_url": "https://api.github.com/users/jrderuiter/following{/other_user}",
"gists_url": "https://api.github.com/users/jrderuiter/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jrderuiter",
"id": 307739,
"login": "jrderuiter",
"node_id": "MDQ6VXNlcjMwNzczOQ==",
"organizations_url": "https://api.github.com/users/jrderuiter/orgs",
"received_events_url": "https://api.github.com/users/jrderuiter/received_events",
"repos_url": "https://api.github.com/users/jrderuiter/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jrderuiter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jrderuiter/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jrderuiter"
}
|
[
{
"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"
}
] |
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"
}
| 26
| 2020-04-10T10:42:26Z
| 2020-06-23T13:43:25Z
| 2020-06-23T13:43:25Z
|
NONE
| null |
#### Is your feature request related to a problem?
Currently pandas has some support for S3 and GCS using the pandas.io.{gcs,s3} modules, which are based on S3fs and gcsfs.
It seems like we could easily broaden the support for different filesystems by leveraging the fsspec library (https://pypi.org/project/fsspec/) and its interface implementations (see https://github.com/intake/filesystem_spec/blob/master/fsspec/registry.py for some examples) to read/write files in pandas.
This way, we would also be able to use filesystems such as Azure-based storage systems directly from pandas.
#### Describe the solution you'd like
I'd like to be able to use the different file systems supported by fsspec in pandas with something like:
```
import pandas as pd
df1 = pd.read_csv("abfs://my_container/my_file.csv")
df1.to_json("file:///some/local/path.json") # Also works without file:// prefix.
df2 = pd.read_csv("s3://my_bucket/my_file.csv")
...
```
#### API breaking implications
In principle, it looks as if we could cover most of the work by adapting get_filepath_or_buffer in pandas/io/common.py to use fsspec. We would of course have to test if fsspec doesn't break anything compared to the current implementations.
One challenge is that some storage systems require extra arguments (called storage options in fsspec). For example, Azure blob requires the user to pass two storage options (account_name and account_key) to be able to access the storage. We would need to consider how to pass these options to the correct methods, either by (a) setting these options globally for a given type of storage or (b) passing the options through the pd.read_* functions and pd.DataFrame.to_* methods.
#### Describe alternatives you've considered
This seems like a change that would have a small impact, as pandas already uses S3fs and gcsfs, which are both implementations of the broader fsspec interface. It should also provide support for a great number of different filesystems with minimal changes, compared to adding support for each filesystem ourselves. As such, I would think it is the preferred approach.
Another approach would be to add support for each additional filesystem as it comes along. This however would require adding and maintaining code for each filesystem, which seems less preferable.
#### Additional context
I recently implemented similar wrappers for pandas code at one of our clients, and am therefore somewhat familiar with fsspec etc. I would be happy to see if we can contribute these ideas + code to the pandas project.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33452/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33452/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33453
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33453/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33453/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33453/events
|
https://github.com/pandas-dev/pandas/pull/33453
| 597,862,876
|
MDExOlB1bGxSZXF1ZXN0NDAxODg5MzE3
| 33,453
|
CLN/TYP: redundant casts and unused ignores
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"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-04-10T12:26:20Z
| 2020-04-10T15:50:55Z
| 2020-04-10T15:38:42Z
|
MEMBER
| null |
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33453/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33453/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33453.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33453",
"merged_at": "2020-04-10T15:38:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33453.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33453"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33454
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33454/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33454/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33454/events
|
https://github.com/pandas-dev/pandas/pull/33454
| 597,878,947
|
MDExOlB1bGxSZXF1ZXN0NDAxOTAxODAx
| 33,454
|
Bump cython asv
|
{
"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 |
[] |
{
"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-04-10T13:07:26Z
| 2020-04-10T13:53:37Z
| 2020-04-10T13:53:34Z
|
CONTRIBUTOR
| null |
We were pulling in an older version, possibly from defaults.
I think we should plan a major update of all these (notably python 3.6 -> 3.8) but that'll require some care to not invalidate the results at pandas.pydata.org/speed/pandas.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33454/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33454/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33454.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33454",
"merged_at": "2020-04-10T13:53:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33454.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33454"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33455
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33455/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33455/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33455/events
|
https://github.com/pandas-dev/pandas/issues/33455
| 597,892,289
|
MDU6SXNzdWU1OTc4OTIyODk=
| 33,455
|
TYP: enable disallow-untyped-decorators in CI
|
{
"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": 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"
}
| 4
| 2020-04-10T13:36:41Z
| 2021-10-30T15:10:03Z
| 2021-10-30T15:10:03Z
|
MEMBER
| null |
xref https://github.com/pandas-dev/pandas/pull/33160#issuecomment-608707397
in order to ensure adding decorators or changing existing decorators don't lose types on our typed functions, we could enable this flag, after resolving the current violations. (expand details)
<details>
$ mypy pandas --disallow-untyped-decorators
pandas\core\window\numba_.py:58: error: Untyped decorator makes function "roll_apply" untyped
pandas\tseries\offsets.py:458: error: Untyped decorator makes function "freqstr" untyped
pandas\core\nanops.py:97: error: Untyped decorator makes function "f" untyped
pandas\core\nanops.py:477: error: Untyped decorator makes function "nansum" untyped
pandas\core\nanops.py:799: error: Untyped decorator makes function "nansem" untyped
pandas\core\nanops.py:849: error: Untyped decorator makes function "reduction" untyped
pandas\core\nanops.py:880: error: Untyped decorator makes function "nanargmax" untyped
pandas\core\nanops.py:916: error: Untyped decorator makes function "nanargmin" untyped
pandas\core\nanops.py:952: error: Untyped decorator makes function "nanskew" untyped
pandas\core\nanops.py:1036: error: Untyped decorator makes function "nankurt" untyped
pandas\core\nanops.py:1129: error: Untyped decorator makes function "nanprod" untyped
pandas\core\nanops.py:1309: error: Untyped decorator makes function "nancorr" untyped
pandas\core\nanops.py:1364: error: Untyped decorator makes function "nancov" untyped
pandas\core\apply.py:136: error: Untyped decorator makes function "dtypes" untyped
pandas\tseries\frequencies.py:333: error: Untyped decorator makes function "is_unique" untyped
pandas\tseries\frequencies.py:337: error: Untyped decorator makes function "is_unique_asi8" untyped
pandas\core\arrays\period.py:270: error: Untyped decorator makes function "dtype" untyped
pandas\core\base.py:198: error: Untyped decorator makes function "ndim" untyped
pandas\core\indexes\base.py:1619: error: Untyped decorator makes function "is_unique" untyped
pandas\core\indexes\base.py:1973: error: Untyped decorator makes function "inferred_type" untyped
pandas\core\indexes\base.py:1980: error: Untyped decorator makes function "is_all_dates" untyped
pandas\core\indexes\base.py:2021: error: Untyped decorator makes function "hasnans" untyped
pandas\core\indexes\base.py:3840: error: Untyped decorator makes function "array" untyped
pandas\core\arrays\integer.py:62: error: Untyped decorator makes function "is_signed_integer" untyped
pandas\core\arrays\integer.py:66: error: Untyped decorator makes function "is_unsigned_integer" untyped
pandas\core\arrays\integer.py:74: error: Untyped decorator makes function "numpy_dtype" untyped
pandas\core\arrays\integer.py:79: error: Untyped decorator makes function "kind" untyped
pandas\core\arrays\integer.py:83: error: Untyped decorator makes function "itemsize" untyped
pandas\core\arrays\integer.py:341: error: Untyped decorator makes function "dtype" untyped
pandas\core\arrays\categorical.py:497: error: Untyped decorator makes function "size" untyped
pandas\core\arrays\categorical.py:504: error: Untyped decorator makes function "itemsize" untyped
pandas\core\indexes\numeric.py:452: error: Untyped decorator makes function "is_unique" untyped
pandas\core\indexes\range.py:170: error: Untyped decorator makes function "_int64index" untyped
pandas\core\indexes\range.py:280: error: Untyped decorator makes function "nbytes" untyped
pandas\core\indexes\range.py:325: error: Untyped decorator makes function "is_monotonic_increasing" untyped
pandas\core\indexes\range.py:329: error: Untyped decorator makes function "is_monotonic_decreasing" untyped
pandas\core\indexes\multi.py:1133: error: Untyped decorator makes function "dtype" untyped
pandas\core\indexes\multi.py:1152: error: Untyped decorator makes function "nbytes" untyped
pandas\core\indexes\multi.py:1414: error: Untyped decorator makes function "inferred_type" untyped
pandas\core\indexes\multi.py:1450: error: Untyped decorator makes function "is_monotonic_increasing" untyped
pandas\core\indexes\multi.py:1474: error: Untyped decorator makes function "is_monotonic_decreasing" untyped
pandas\core\indexes\datetimes.py:279: error: Untyped decorator makes function "_is_dates_only" untyped
pandas\core\indexes\period.py:348: error: Untyped decorator makes function "_int64index" untyped
pandas\core\indexes\interval.py:384: error: Untyped decorator makes function "_multiindex" untyped
pandas\core\indexes\interval.py:388: error: Untyped decorator makes function "values" untyped
pandas\core\indexes\interval.py:430: error: Untyped decorator makes function "is_monotonic_decreasing" untyped
pandas\core\indexes\interval.py:1031: error: Untyped decorator makes function "intersection" untyped
pandas\core\groupby\ops.py:257: error: Untyped decorator makes function "is_monotonic" untyped
pandas\core\groupby\ops.py:270: error: Untyped decorator makes function "codes_info" untyped
pandas\core\groupby\ops.py:288: error: Untyped decorator makes function "ngroups" untyped
pandas\core\groupby\ops.py:298: error: Untyped decorator makes function "result_index" untyped
pandas\core\groupby\ops.py:818: error: Untyped decorator makes function "reconstructed_codes" untyped
pandas\core\groupby\grouper.py:395: error: Untyped decorator makes function "result_index" untyped
pandas\core\groupby\grouper.py:420: error: Untyped decorator makes function "groups" untyped
pandas\core\window\rolling.py:1802: error: Untyped decorator makes function "is_datetimelike" untyped
pandas\core\window\rolling.py:1808: error: Untyped decorator makes function "_on" untyped
pandas\tests\frame\methods\test_replace.py:14: error: Untyped decorator makes function "mix_ab" untyped
pandas\tests\frame\methods\test_replace.py:19: error: Untyped decorator makes function "mix_abc" untyped
Found 58 errors in 20 files (checked 987 source files)
</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/33455/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33455/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33456
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33456/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33456/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33456/events
|
https://github.com/pandas-dev/pandas/pull/33456
| 597,910,244
|
MDExOlB1bGxSZXF1ZXN0NDAxOTI1NTUx
| 33,456
|
TYP: F used in decorators to _typing
|
{
"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-04-10T14:14:39Z
| 2020-04-10T17:10:57Z
| 2020-04-10T17:02:33Z
|
MEMBER
| null |
xref #27404
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33456/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33456/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33456.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33456",
"merged_at": "2020-04-10T17:02:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33456.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33456"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33457
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33457/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33457/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33457/events
|
https://github.com/pandas-dev/pandas/issues/33457
| 597,912,509
|
MDU6SXNzdWU1OTc5MTI1MDk=
| 33,457
|
REGR: setting column with setitem should not modify existing array inplace
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"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": "70e5ca",
"default": false,
"description": "",
"id": 2085877452,
"name": "Copy / view semantics",
"node_id": "MDU6TGFiZWwyMDg1ODc3NDUy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Copy%20/%20view%20semantics"
}
] |
open
| false
| null |
[] | null | 34
| 2020-04-10T14:18:57Z
| 2021-11-08T18:31:46Z
| null |
MEMBER
| null |
So consider this example of a small dataframe with a nullable integer column:
```
def recreate_df():
return pd.DataFrame({'int': [1, 2, 3], 'int2': [3, 4, 5],
'float': [.1, .2, .3],
'EA': pd.array([1, 2, None], dtype="Int64")
})
```
Assigning a new column with `__setitem__` (`df[col] = ...`) normally does not even preserve the dtype:
```
In [2]: df = recreate_df()
...: df['EA'] = np.array([1., 2., 3.])
...: df['EA'].dtype
Out[2]: dtype('float64')
In [3]: df = recreate_df()
...: df['EA'] = np.array([1, 2, 3])
...: df['EA'].dtype
Out[3]: dtype('int64')
```
When assigning a new nullable integer array, it of course keeps the dtype of the assigned values:
```
In [4]: df = recreate_df()
...: df['EA'] = pd.array([1, 2, 3], dtype="Int64")
...: df['EA'].dtype
Out[4]: Int64Dtype()
```
However, in this case you now also have the tricky side-effect of being in place:
```
In [5]: df = recreate_df()
...: original_arr = df.EA.array
...: df['EA'] = pd.array([1, 2, 3], dtype="Int64")
...: original_arr is df.EA.array
Out[5]: True
```
I don't think this behaviour should depend on the values being set, and setitem should always replace the array of the ExtensionBlock.
Because with the above way, you can unexpectedly alter the data with which you created the dataframe. See also a different example using Categorical of this at the original PR that introduced this: https://github.com/pandas-dev/pandas/pull/32831#issuecomment-611994512
cc @jbrockmendel
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33457/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33457/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33458
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33458/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33458/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33458/events
|
https://github.com/pandas-dev/pandas/pull/33458
| 597,947,610
|
MDExOlB1bGxSZXF1ZXN0NDAxOTU0NDUx
| 33,458
|
TST: concat(..., copy=False) with datetime tz-aware data raises ValueError: cannot create a DatetimeTZBlock without a tz
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/53505344?v=4",
"events_url": "https://api.github.com/users/SurajH1/events{/privacy}",
"followers_url": "https://api.github.com/users/SurajH1/followers",
"following_url": "https://api.github.com/users/SurajH1/following{/other_user}",
"gists_url": "https://api.github.com/users/SurajH1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/SurajH1",
"id": 53505344,
"login": "SurajH1",
"node_id": "MDQ6VXNlcjUzNTA1MzQ0",
"organizations_url": "https://api.github.com/users/SurajH1/orgs",
"received_events_url": "https://api.github.com/users/SurajH1/received_events",
"repos_url": "https://api.github.com/users/SurajH1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/SurajH1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SurajH1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/SurajH1"
}
|
[
{
"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": "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": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-04-10T15:30:26Z
| 2020-07-13T12:55:29Z
| 2020-07-13T12:55:12Z
|
CONTRIBUTOR
| null |
…n version 0.24.1 but passes on current version
- [x] closes #25257
- [x] tests added / passed
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33458/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33458/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33458.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33458",
"merged_at": "2020-07-13T12:55:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33458.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33458"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33459
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33459/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33459/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33459/events
|
https://github.com/pandas-dev/pandas/pull/33459
| 597,962,466
|
MDExOlB1bGxSZXF1ZXN0NDAxOTY2NDAy
| 33,459
|
asv config to use `build_ext` instead of `build`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[] |
closed
| false
| null |
[] | null | 3
| 2020-04-10T15:59:30Z
| 2020-04-10T19:27:31Z
| 2020-04-10T19:26:29Z
|
MEMBER
| null |
Not 100% sure on this change, feel free to close at any time.
---
I have not seen a single mention in the docs of ```python setup.py build``` there was only mention of ```python setup.py build_ext```, so I thought that asv should follow that as well (I could be wrong here).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33459/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33459/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33459.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33459",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33459.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33459"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33460
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33460/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33460/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33460/events
|
https://github.com/pandas-dev/pandas/issues/33460
| 597,978,313
|
MDU6SXNzdWU1OTc5NzgzMTM=
| 33,460
|
BUG: When using apply on a DataFrame with SparseDtype, passing raw=True doesn't have any effect.
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26576394?v=4",
"events_url": "https://api.github.com/users/victor-ab/events{/privacy}",
"followers_url": "https://api.github.com/users/victor-ab/followers",
"following_url": "https://api.github.com/users/victor-ab/following{/other_user}",
"gists_url": "https://api.github.com/users/victor-ab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/victor-ab",
"id": 26576394,
"login": "victor-ab",
"node_id": "MDQ6VXNlcjI2NTc2Mzk0",
"organizations_url": "https://api.github.com/users/victor-ab/orgs",
"received_events_url": "https://api.github.com/users/victor-ab/received_events",
"repos_url": "https://api.github.com/users/victor-ab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/victor-ab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/victor-ab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/victor-ab"
}
|
[
{
"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-04-10T16:33:45Z
| 2020-08-21T17:05:58Z
| 2020-04-10T18:50:39Z
|
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
import numpy as np
pd.DataFrame(
[[0, 1, 0, 2, 0, 3, 0, 4]],
dtype=pd.SparseDtype(np.dtype("int")),
).apply(lambda x: type(x), raw=True, axis=1)
```
Output:
`0 <class 'pandas.core.series.Series'>`
#### Problem description
When using apply on a DataFrame with SparseDtype, passing raw=True doesn't have any effect.
#32425 is related but did not solve it.
#### Expected Output
`0 <class 'numpy.ndarray'>`
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.6.8.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
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 : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : 0.3.2
gcsfs : None
lxml.etree : 4.4.2
matplotlib : 3.1.2
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 : 1.2.0
xlwt : None
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/33460/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33460/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33461
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33461/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33461/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33461/events
|
https://github.com/pandas-dev/pandas/pull/33461
| 598,009,338
|
MDExOlB1bGxSZXF1ZXN0NDAyMDAyMjcy
| 33,461
|
CI: fix lint issue
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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-04-10T17:45:51Z
| 2020-04-11T08:36:45Z
| 2020-04-10T19:16:14Z
|
MEMBER
| null |
https://github.com/pandas-dev/pandas/runs/577244968
Linting .py code
##[error]./pandas/core/internals/blocks.py:11:1:F401:'pandas._libs.tslibs.Timedelta' imported but unused
Linting .py code DONE
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33461/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33461/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33461.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33461",
"merged_at": "2020-04-10T19:16:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33461.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33461"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33462
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33462/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33462/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33462/events
|
https://github.com/pandas-dev/pandas/pull/33462
| 598,010,336
|
MDExOlB1bGxSZXF1ZXN0NDAyMDAzMDE1
| 33,462
|
BUG: None converted to NaN after groupby first and last
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34447984?v=4",
"events_url": "https://api.github.com/users/JDkuba/events{/privacy}",
"followers_url": "https://api.github.com/users/JDkuba/followers",
"following_url": "https://api.github.com/users/JDkuba/following{/other_user}",
"gists_url": "https://api.github.com/users/JDkuba/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JDkuba",
"id": 34447984,
"login": "JDkuba",
"node_id": "MDQ6VXNlcjM0NDQ3OTg0",
"organizations_url": "https://api.github.com/users/JDkuba/orgs",
"received_events_url": "https://api.github.com/users/JDkuba/received_events",
"repos_url": "https://api.github.com/users/JDkuba/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JDkuba/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JDkuba/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JDkuba"
}
|
[
{
"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"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 1
| 2020-04-10T17:48:02Z
| 2020-05-26T09:36:35Z
| 2020-04-17T02:53:39Z
|
CONTRIBUTOR
| null |
- [x] closes #32800
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR solves #32800. In #32124 `not checknull()` was introduced to `groupfirst()` and `grouplast()`. `None` is not caught in this conditional and it's being converted to `nan` because of that.
I'm a newbie and not sure whether I should add whatsnew entry or not. Should I?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33462/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33462/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33462.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33462",
"merged_at": "2020-04-17T02:53:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33462.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33462"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33463
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33463/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33463/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33463/events
|
https://github.com/pandas-dev/pandas/issues/33463
| 598,018,009
|
MDU6SXNzdWU1OTgwMTgwMDk=
| 33,463
|
merge_asof(left_index=True, right_on=...) overwrites left index with right index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/34138447?v=4",
"events_url": "https://api.github.com/users/gtg944q/events{/privacy}",
"followers_url": "https://api.github.com/users/gtg944q/followers",
"following_url": "https://api.github.com/users/gtg944q/following{/other_user}",
"gists_url": "https://api.github.com/users/gtg944q/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gtg944q",
"id": 34138447,
"login": "gtg944q",
"node_id": "MDQ6VXNlcjM0MTM4NDQ3",
"organizations_url": "https://api.github.com/users/gtg944q/orgs",
"received_events_url": "https://api.github.com/users/gtg944q/received_events",
"repos_url": "https://api.github.com/users/gtg944q/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gtg944q/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gtg944q/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gtg944q"
}
|
[
{
"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": "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"
}
| 4
| 2020-04-10T18:05:25Z
| 2021-04-12T14:41:14Z
| 2021-04-12T14:41:14Z
|
NONE
| null |
Building from an example in the docs...
```
left = pd.DataFrame({'left_val': ['a', 'b', 'c'], 'left_time': [1, 5, 10]}, index=[1, 5, 10])
right = pd.DataFrame({'right_val': [1, 2, 3, 6, 7]}, index=[1, 2, 3, 6, 7])
```
```
>>> pd.merge_asof(left, right, left_index=True, right_index=True)
left_val left_time right_val
1 a 1 1
5 b 5 3
10 c 10 7
```
Returned index is the index of left.
```
>>> pd.merge_asof(left, right, left_on='left_time', right_index=True)
left_val left_time right_val
1 a 1 1
5 b 5 3
10 c 10 7
```
Returned index is the index of left.
```
>>> pd.merge_asof(left, right, left_on='left_time', right_on='right_val')
left_val left_time right_val
0 a 1 1
1 b 5 3
2 c 10 7
```
Return value has index reset (I assume expected?)
```
>>> pd.merge_asof(left, right, left_index=True, right_on='right_val')
left_val left_time right_val
1 a 1 1
3 b 5 3
7 c 10 7
```
Returned index is the index of _right_.
Perhaps I'm misunderstanding something about how this is supposed to work, but it seems to me that the behavior in the last example is incorrect.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33463/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33463/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33464
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33464/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33464/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33464/events
|
https://github.com/pandas-dev/pandas/pull/33464
| 598,057,238
|
MDExOlB1bGxSZXF1ZXN0NDAyMDM5NDEz
| 33,464
|
CLN: Nitpicks
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-10T19:33:41Z
| 2020-04-11T18:54:14Z
| 2020-04-11T18:41:33Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33464/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33464/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33464.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33464",
"merged_at": "2020-04-11T18:41:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33464.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33464"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33465
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33465/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33465/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33465/events
|
https://github.com/pandas-dev/pandas/pull/33465
| 598,063,292
|
MDExOlB1bGxSZXF1ZXN0NDAyMDQ0MjI4
| 33,465
|
API: more permissive conversion to StringDtype
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
}
|
[
{
"color": "5319e7",
"default": false,
"description": "String extension data type and string data",
"id": 57522093,
"name": "Strings",
"node_id": "MDU6TGFiZWw1NzUyMjA5Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] |
closed
| false
| null |
[] |
{
"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"
}
| 8
| 2020-04-10T19:50:25Z
| 2020-05-27T05:56:38Z
| 2020-05-26T22:20:21Z
|
CONTRIBUTOR
| null |
- [x] closes #31204
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a proposal to make using ``StringDtype`` more permissive and be usable inplace of ``dtype=str``.
ATM converting to StringDtype will only accept arrays that are ``str`` already, meaning you will often have to use ``astype(str).astype("string")`` to be sure not to get errors, which can be tedious. For example these fail in master and work in this PR:
```python
>>> pd.Series([1,2, np.nan], dtype="string")
0 1
1 2
2 <NA>
dtype: string
>>> pd.array([1,2, np.nan], dtype="string")
<StringArray>
['1', '2', <NA>]
Length: 3, dtype: string
>>> pd.Series([1,2, np.nan]).astype("string")
0 1.0
1 2.0
2 <NA>
dtype: string
>>> pd.Series([1,2, np.nan], dtype="Int64").astype("string")
0 1
1 2
2 <NA>
dtype: string
```
etc. now work. Previously the above all gave errors.
## The proposed solution:
``ExtensionArray._from_sequence`` is in master explicitly stated to expect a sequence of scalars of the *correct* type. This makes it not usable for type conversion.
I've therefore added a new ``ExtensionArray._from_sequence_of_any_type`` that accepts scalars of any type and may change the scalars to the correct type before passing them on to ``_from_sequence``. Currently it just routes everything through to ``ExtensionArray._from_sequence``, except in ``StringArray._from_sequence_of_any_type``, where it massages the input scalars into strings before passing them on.
Obviously tests and doc updates are still missing, but I would appreciate feedback if this solution looks ok and I'll add tests and doc updates if this is ok.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33465/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33465/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33465.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33465",
"merged_at": "2020-05-26T22:20:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33465.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33465"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33466
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33466/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33466/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33466/events
|
https://github.com/pandas-dev/pandas/issues/33466
| 598,064,383
|
MDU6SXNzdWU1OTgwNjQzODM=
| 33,466
|
BUG: margin=True is affected by NaN in other columns in pivot_table
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/505583?v=4",
"events_url": "https://api.github.com/users/nikhilpatwardhan/events{/privacy}",
"followers_url": "https://api.github.com/users/nikhilpatwardhan/followers",
"following_url": "https://api.github.com/users/nikhilpatwardhan/following{/other_user}",
"gists_url": "https://api.github.com/users/nikhilpatwardhan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nikhilpatwardhan",
"id": 505583,
"login": "nikhilpatwardhan",
"node_id": "MDQ6VXNlcjUwNTU4Mw==",
"organizations_url": "https://api.github.com/users/nikhilpatwardhan/orgs",
"received_events_url": "https://api.github.com/users/nikhilpatwardhan/received_events",
"repos_url": "https://api.github.com/users/nikhilpatwardhan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nikhilpatwardhan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nikhilpatwardhan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nikhilpatwardhan"
}
|
[
{
"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": "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"
}
] |
open
| false
| null |
[] | null | 1
| 2020-04-10T19:53:26Z
| 2021-07-31T04:16:46Z
| null |
NONE
| null |
- [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
>>> import pandas as pd
>>> data = {'A': [6, 7, None], 'B': [None, 5, 8], 'name': ['Alice', 'Alice', 'Alice']}
>>> df = pd.DataFrame(data)
>>> df.pivot_table(index='name', values=['A', 'B'], aggfunc=['min', 'max'], margins=True)
```
Output:
```python
min max
A B A B
name
Alice 6.0 5.0 7.0 8.0
All 7.0 5.0 7.0 5.0
```
#### Problem description
The summary line 'All' shows min for A as 7.0 and max for B as 5.0 although min of A is 6.0 and max of B is 8.0
#### Expected Output
```python
min max
A B A B
name
Alice 6.0 5.0 7.0 8.0
All 6.0 5.0 7.0 8.0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 6bc8a49f2595daca6f6d0391020981d536747b23
python : 3.8.2.final.0
python-bits : 64
OS : Darwin
OS-release : 19.3.0
Version : Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.0.dev0+1225.g6bc8a49f2
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200325
Cython : 0.29.16
pytest : 5.4.1
hypothesis : 5.8.0
sphinx : 3.0.1
blosc : None
feather : None
xlsxwriter : 1.2.8
lxml.etree : 4.5.0
html5lib : 1.0.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.9.0
bottleneck : 1.3.2
fastparquet : 0.3.3
gcsfs : None
matplotlib : 3.2.1
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : 0.16.0
pytables : None
pyxlsb : None
s3fs : 0.4.2
scipy : 1.4.1
sqlalchemy : 1.3.16
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.15.1
xlrd : 1.2.0
xlwt : 1.3.0
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/33466/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33466/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33467
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33467/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33467/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33467/events
|
https://github.com/pandas-dev/pandas/pull/33467
| 598,081,918
|
MDExOlB1bGxSZXF1ZXN0NDAyMDU5NjE4
| 33,467
|
setup.py Simplifications
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-10T20:32:38Z
| 2020-04-14T14:59:48Z
| 2020-04-14T14:59:48Z
|
MEMBER
| null |
Just a smattering of things that I doubt anyone is using
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33467/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33467/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33467.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33467",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33467.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33467"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33468
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33468/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33468/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33468/events
|
https://github.com/pandas-dev/pandas/pull/33468
| 598,093,842
|
MDExOlB1bGxSZXF1ZXN0NDAyMDY5MTYw
| 33,468
|
Groupby test_apply_mutate
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 0
| 2020-04-10T21:03:01Z
| 2020-04-10T22:24:01Z
| 2020-04-10T22:24:01Z
|
MEMBER
| null |
@jreback comment in https://github.com/pandas-dev/pandas/pull/33072#pullrequestreview-391657128
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33468/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33468/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33468.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33468",
"merged_at": "2020-04-10T22:24:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33468.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33468"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33469
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33469/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33469/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33469/events
|
https://github.com/pandas-dev/pandas/issues/33469
| 598,126,479
|
MDU6SXNzdWU1OTgxMjY0Nzk=
| 33,469
|
API: __getitem__[int] vs __setitem__[int] with Float64Index
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "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": "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": "b60205",
"default": false,
"description": "Internal Consistency of API/Behavior",
"id": 1741841389,
"name": "API - Consistency",
"node_id": "MDU6TGFiZWwxNzQxODQxMzg5",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency"
}
] |
closed
| false
| null |
[] |
{
"closed_at": 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"
}
| 6
| 2020-04-10T22:44:58Z
| 2021-07-04T21:38:46Z
| 2021-07-04T21:38:46Z
|
MEMBER
| null |
```
ser = pd.Series([1, 2, 3, 4], index=[1.1, 2.1, 3.0, 4.1])
>>> ser[5] # <--we are treating 5 as a label
KeyError: 5
>>> ser[5] = 5 # < --we are treating 5 as position
IndexError: index 5 is out of bounds for axis 0 with size 4
>>> ser[3] = 5 # <-- we are treating 3 as a label
>>> ser
1.1 1
2.1 2
3.0 5
4.1 4
dtype: int64
```
The `ser[5] = 5` case is an outlier because instead of having its label-vs-positional behavior determined by `ser.index._should_fallback_to_positional`, it is defermined by `if is_integer(key) and not self.index.inferred_type == "integer":`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33469/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33469/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33470
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33470/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33470/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33470/events
|
https://github.com/pandas-dev/pandas/pull/33470
| 598,130,871
|
MDExOlB1bGxSZXF1ZXN0NDAyMDk3NTIx
| 33,470
|
DOC: timezone conversion example added to pandas.Series.astype doc #33399
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/53470757?v=4",
"events_url": "https://api.github.com/users/venkateshdatta1993/events{/privacy}",
"followers_url": "https://api.github.com/users/venkateshdatta1993/followers",
"following_url": "https://api.github.com/users/venkateshdatta1993/following{/other_user}",
"gists_url": "https://api.github.com/users/venkateshdatta1993/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/venkateshdatta1993",
"id": 53470757,
"login": "venkateshdatta1993",
"node_id": "MDQ6VXNlcjUzNDcwNzU3",
"organizations_url": "https://api.github.com/users/venkateshdatta1993/orgs",
"received_events_url": "https://api.github.com/users/venkateshdatta1993/received_events",
"repos_url": "https://api.github.com/users/venkateshdatta1993/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/venkateshdatta1993/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venkateshdatta1993/subscriptions",
"type": "User",
"url": "https://api.github.com/users/venkateshdatta1993"
}
|
[
{
"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-04-10T23:00:35Z
| 2020-04-13T01:58:00Z
| 2020-04-12T21:47:12Z
|
CONTRIBUTOR
| null |
…3399
- [x] closes #33399
Have added an example in the documentation page of pandas.Series.astype for datetime type with timezone.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33470/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33470/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33470.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33470",
"merged_at": "2020-04-12T21:47:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33470.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33470"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33471
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33471/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33471/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33471/events
|
https://github.com/pandas-dev/pandas/pull/33471
| 598,137,635
|
MDExOlB1bGxSZXF1ZXN0NDAyMTAyNzE3
| 33,471
|
REF: Simplify __getitem__ by doing positional-int check first
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"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-04-10T23:22:34Z
| 2020-04-12T20:31:02Z
| 2020-04-12T20:29:57Z
|
MEMBER
| null |
This gets rid of the last non-test usage of `Index.get_value`, so that can be deprecated, xref #19728
This focuses only on `__getitem__`; `__setitem__` is tougher for a few reasons, including #33469.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33471/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33471/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33471.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33471",
"merged_at": "2020-04-12T20:29:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33471.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33471"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33472
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33472/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33472/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33472/events
|
https://github.com/pandas-dev/pandas/issues/33472
| 598,154,375
|
MDU6SXNzdWU1OTgxNTQzNzU=
| 33,472
|
DOC: unwanted line of text
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/22989543?v=4",
"events_url": "https://api.github.com/users/benji1123/events{/privacy}",
"followers_url": "https://api.github.com/users/benji1123/followers",
"following_url": "https://api.github.com/users/benji1123/following{/other_user}",
"gists_url": "https://api.github.com/users/benji1123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benji1123",
"id": 22989543,
"login": "benji1123",
"node_id": "MDQ6VXNlcjIyOTg5NTQz",
"organizations_url": "https://api.github.com/users/benji1123/orgs",
"received_events_url": "https://api.github.com/users/benji1123/received_events",
"repos_url": "https://api.github.com/users/benji1123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benji1123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benji1123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benji1123"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 0
| 2020-04-11T00:38:12Z
| 2020-08-21T17:05:59Z
| 2020-04-11T02:44:37Z
|
NONE
| null |
#### Location of the documentation
[./doc/source/development/contributing.rst](https://github.com/pandas-dev/pandas/blob/master/doc/source/development/contributing.rst#bug-reports-and-enhancement-requests)
#### Documentation problem
There seems to be an [unwanted line of text](https://github.com/pandas-dev/pandas/blob/master/doc/source/development/contributing.rst) at the top of the document: "{{ header }}"
#### Suggested fix for documentation
[I fixed it in my fork](https://github.com/benji1123/pandas/blob/master/doc/source/development/contributing.rst) and can make a PR (into 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/33472/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33472/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33473
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33473/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33473/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33473/events
|
https://github.com/pandas-dev/pandas/pull/33473
| 598,166,106
|
MDExOlB1bGxSZXF1ZXN0NDAyMTIzMzcw
| 33,473
|
BUG: Series.__setitem__[listlike_of_integers] with IntervalIndex
|
{
"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": "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"
}
| 5
| 2020-04-11T01:54:00Z
| 2020-04-17T19:44:12Z
| 2020-04-17T18:09:59Z
|
MEMBER
| null |
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33473/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33473/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33473.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33473",
"merged_at": "2020-04-17T18:09:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33473.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33473"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33474
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33474/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33474/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33474/events
|
https://github.com/pandas-dev/pandas/pull/33474
| 598,175,638
|
MDExOlB1bGxSZXF1ZXN0NDAyMTMwMDU3
| 33,474
|
REF: unstack
|
{
"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": "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"
}
| 1
| 2020-04-11T03:00:36Z
| 2020-12-02T17:58:46Z
| 2020-04-12T20:33:38Z
|
MEMBER
| null |
cc @jreback this moves a small amount of the unstack logic up the call stack, which is worthwhile, but the big wins available are if you can help me figure out the questions in inline comments.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33474/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33474/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33474.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33474",
"merged_at": "2020-04-12T20:33:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33474.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33474"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33475
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33475/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33475/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33475/events
|
https://github.com/pandas-dev/pandas/issues/33475
| 598,185,969
|
MDU6SXNzdWU1OTgxODU5Njk=
| 33,475
|
BUG: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead. import pandas.util.testing as tm
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/40047036?v=4",
"events_url": "https://api.github.com/users/fescobar96/events{/privacy}",
"followers_url": "https://api.github.com/users/fescobar96/followers",
"following_url": "https://api.github.com/users/fescobar96/following{/other_user}",
"gists_url": "https://api.github.com/users/fescobar96/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fescobar96",
"id": 40047036,
"login": "fescobar96",
"node_id": "MDQ6VXNlcjQwMDQ3MDM2",
"organizations_url": "https://api.github.com/users/fescobar96/orgs",
"received_events_url": "https://api.github.com/users/fescobar96/received_events",
"repos_url": "https://api.github.com/users/fescobar96/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fescobar96/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fescobar96/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fescobar96"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-11T04:12:16Z
| 2020-08-21T17:05:59Z
| 2020-04-13T23:49:54Z
|
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
```
#### Problem description
I'm getting this future warning when I import pandas as pd. It does not affect pandas' performance, but I think this is something that should be looked at. I have already looked into reports for similar issues, but the circumstances are different. It is also important to note that I am working in Google Colab.
#### Expected Output
There should be no warning.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
pandas : 1.0.3
</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/33475/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33475/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33476
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33476/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33476/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33476/events
|
https://github.com/pandas-dev/pandas/issues/33476
| 598,235,371
|
MDU6SXNzdWU1OTgyMzUzNzE=
| 33,476
|
BUG: read_excel: incorrect multi-index values - 1 (empty or equal values)
|
{
"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"
}
] |
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-04-11T10:09:19Z
| 2020-06-09T18:34:03Z
| 2020-06-04T21:56:55Z
|
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
pd.read_excel('df.xlsx', sheet_name='Sheet1', index_col=0, header=[0, 1])
```
Note: `engine`s could be different.
#### Problem description
Exception on `pd.read_excel()`:
```
$ ~/miniconda3/bin/python read.py
Traceback (most recent call last):
File "read.py", line 4, in <module>
df = pd.read_excel('df_empty.xlsx', engine='openpyxl', sheet_name='Sheet1', index_col=0, header=[0, 1])
File "/home/sasha/miniconda3/lib/python3.7/site-packages/pandas/io/excel/_base.py", line 334, in read_excel
**kwds,
File "/home/sasha/miniconda3/lib/python3.7/site-packages/pandas/io/excel/_base.py", line 888, in parse
**kwds,
File "/home/sasha/miniconda3/lib/python3.7/site-packages/pandas/io/excel/_base.py", line 521, in parse
].columns.set_names(header_names)
File "/home/sasha/miniconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 1325, in set_names
idx._set_names(names, level=level)
File "/home/sasha/miniconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 1239, in _set_names
raise ValueError(f"Length of new names must be 1, got {len(values)}")
ValueError: Length of new names must be 1, got 2
```
on XLSX like:

(C2 is empty, [df_empty.xlsx](https://github.com/pandas-dev/pandas/files/4464392/df_empty.xlsx))
or this:

(B2 == C2, [df_equals.xlsx](https://github.com/pandas-dev/pandas/files/4464393/df_equals.xlsx))
#### Expected Output
No exceptions.
#### 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.25-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": 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/33476/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33476/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33477
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33477/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33477/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33477/events
|
https://github.com/pandas-dev/pandas/pull/33477
| 598,244,751
|
MDExOlB1bGxSZXF1ZXN0NDAyMTc1Njc5
| 33,477
|
Send None parameter to pandas-gbq to set no progress bar
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/5400810?v=4",
"events_url": "https://api.github.com/users/sumanau7/events{/privacy}",
"followers_url": "https://api.github.com/users/sumanau7/followers",
"following_url": "https://api.github.com/users/sumanau7/following{/other_user}",
"gists_url": "https://api.github.com/users/sumanau7/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sumanau7",
"id": 5400810,
"login": "sumanau7",
"node_id": "MDQ6VXNlcjU0MDA4MTA=",
"organizations_url": "https://api.github.com/users/sumanau7/orgs",
"received_events_url": "https://api.github.com/users/sumanau7/received_events",
"repos_url": "https://api.github.com/users/sumanau7/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sumanau7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sumanau7/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sumanau7"
}
|
[
{
"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"
}
| 13
| 2020-04-11T11:12:16Z
| 2020-06-04T18:10:02Z
| 2020-06-04T17:41:35Z
|
CONTRIBUTOR
| null |
- [x] closes #33360
- [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/33477/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33477/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33477.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33477",
"merged_at": "2020-06-04T17:41:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33477.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33477"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33478
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33478/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33478/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33478/events
|
https://github.com/pandas-dev/pandas/issues/33478
| 598,261,974
|
MDU6SXNzdWU1OTgyNjE5NzQ=
| 33,478
|
CLN remove unreachable code in pandas/core/groupby/generic.py::DataFrameGroupBy::_wrap_applied_output
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/33491632?v=4",
"events_url": "https://api.github.com/users/MarcoGorelli/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcoGorelli/followers",
"following_url": "https://api.github.com/users/MarcoGorelli/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcoGorelli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcoGorelli",
"id": 33491632,
"login": "MarcoGorelli",
"node_id": "MDQ6VXNlcjMzNDkxNjMy",
"organizations_url": "https://api.github.com/users/MarcoGorelli/orgs",
"received_events_url": "https://api.github.com/users/MarcoGorelli/received_events",
"repos_url": "https://api.github.com/users/MarcoGorelli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcoGorelli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcoGorelli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcoGorelli"
}
|
[
{
"color": "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 |
[] | null | 21
| 2020-04-11T13:02:10Z
| 2020-10-04T06:43:35Z
| 2020-10-04T06:43:34Z
|
MEMBER
| null |
NOTE: I'd originally [opened a PR](https://github.com/pandas-dev/pandas/pull/32583) to address this, but am now busy with other obligations + other PRs to respond to. So I'm opening it up as a good first issue for now, and will return to work on it if nobody takes it.
---------
In `pandas/core/groupby/generic.py::DataFrameGroupBy::_wrap_applied_output`, it seems this branch is never reached:
```
else:
# Handle cases like BinGrouper
return self._concat_objects(keys, values, not_indexed_same=not_indexed_same)
```
Two things need to be done here:
1. refactor `_wrap_applied_output` by making a helper function out of some of its internals (it's currently very long, and changes are hard to review)
2. Remove this unused `else` branch
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33478/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33478/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33479
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33479/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33479/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33479/events
|
https://github.com/pandas-dev/pandas/pull/33479
| 598,269,661
|
MDExOlB1bGxSZXF1ZXN0NDAyMTkyNjMz
| 33,479
|
Added option to ignore file paths
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-11T13:47:45Z
| 2021-05-03T12:28:26Z
| 2020-07-10T00:06:32Z
|
MEMBER
| null |
This is needed both for #32942 and to #33394 to ignore the ```pandas/tests``` directory
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33479/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33479/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33479.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33479",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33479.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33479"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33480
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33480/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33480/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33480/events
|
https://github.com/pandas-dev/pandas/pull/33480
| 598,273,015
|
MDExOlB1bGxSZXF1ZXN0NDAyMTk0OTky
| 33,480
|
BUG: Add unordered option to pandas.cut (#33141)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/15342068?v=4",
"events_url": "https://api.github.com/users/mabelvj/events{/privacy}",
"followers_url": "https://api.github.com/users/mabelvj/followers",
"following_url": "https://api.github.com/users/mabelvj/following{/other_user}",
"gists_url": "https://api.github.com/users/mabelvj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mabelvj",
"id": 15342068,
"login": "mabelvj",
"node_id": "MDQ6VXNlcjE1MzQyMDY4",
"organizations_url": "https://api.github.com/users/mabelvj/orgs",
"received_events_url": "https://api.github.com/users/mabelvj/received_events",
"repos_url": "https://api.github.com/users/mabelvj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mabelvj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mabelvj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mabelvj"
}
|
[
{
"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": "9aace2",
"default": false,
"description": "cut, qcut",
"id": 1639305834,
"name": "cut",
"node_id": "MDU6TGFiZWwxNjM5MzA1ODM0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/cut"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 5
| 2020-04-11T14:07:04Z
| 2020-05-01T00:31:53Z
| 2020-05-01T00:31:48Z
|
CONTRIBUTOR
| null |
Added tests and error message when there are no labels and `ordered=False`.
Issue: Pandas cut raises error if labels are non-unique (Closes #33141)
- [x] closes #33141
- [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/33480/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33480/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33480.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33480",
"merged_at": "2020-05-01T00:31:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33480.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33480"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33481
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33481/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33481/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33481/events
|
https://github.com/pandas-dev/pandas/issues/33481
| 598,276,678
|
MDU6SXNzdWU1OTgyNzY2Nzg=
| 33,481
|
CI: Github actions error
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-11T14:26:33Z
| 2020-04-11T14:34:20Z
| 2020-04-11T14:34:20Z
|
MEMBER
| null |
Noticed on #33479 and #33480
Seems like github actions have an internal error.
The error message:
```
This check failed
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33481/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33481/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33482
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33482/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33482/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33482/events
|
https://github.com/pandas-dev/pandas/pull/33482
| 598,277,986
|
MDExOlB1bGxSZXF1ZXN0NDAyMTk4MzQ3
| 33,482
|
TST: Don't use deprecated version of read_html
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/160962?v=4",
"events_url": "https://api.github.com/users/LTe/events{/privacy}",
"followers_url": "https://api.github.com/users/LTe/followers",
"following_url": "https://api.github.com/users/LTe/following{/other_user}",
"gists_url": "https://api.github.com/users/LTe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LTe",
"id": 160962,
"login": "LTe",
"node_id": "MDQ6VXNlcjE2MDk2Mg==",
"organizations_url": "https://api.github.com/users/LTe/orgs",
"received_events_url": "https://api.github.com/users/LTe/received_events",
"repos_url": "https://api.github.com/users/LTe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LTe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LTe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LTe"
}
|
[
{
"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"
}
| 4
| 2020-04-11T14:33:30Z
| 2020-04-12T21:48:37Z
| 2020-04-12T21:48:32Z
|
CONTRIBUTOR
| null |
Usage of function read_html is marked as deprecated when used with
positional arguments. In case when we do not explicitly check the
warning message with assert_produces_warning we should use non-deprecated
version.
This will resolve #33397
To identify candidates to change I modified decorator to raise an `Exception`
```diff
--- a/pandas/util/_decorators.py
+++ b/pandas/util/_decorators.py
@@ -294,6 +294,7 @@ def deprecate_nonkeyword_arguments(
"Starting with Pandas version {version} all arguments of {funcname}"
"{except_args} will be keyword-only"
).format(version=version, funcname=func.__name__, except_args=arguments)
+ raise Exception("keyword argument test")
warnings.warn(msg, FutureWarning, stacklevel=stacklevel)
return func(*args, **kwargs)
```
Related test build https://dev.azure.com/piotrnielacny/piotrnielacny/_build/results?buildId=2&view=ms.vss-test-web.build-test-results-tab
- [x] closes #33397
- [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/33482/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33482/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33482.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33482",
"merged_at": "2020-04-12T21:48:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33482.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33482"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33483
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33483/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33483/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33483/events
|
https://github.com/pandas-dev/pandas/issues/33483
| 598,283,617
|
MDU6SXNzdWU1OTgyODM2MTc=
| 33,483
|
BUG: Clipping a data frame after selecting only numeric columns does not work
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/14852343?v=4",
"events_url": "https://api.github.com/users/santhisenan/events{/privacy}",
"followers_url": "https://api.github.com/users/santhisenan/followers",
"following_url": "https://api.github.com/users/santhisenan/following{/other_user}",
"gists_url": "https://api.github.com/users/santhisenan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/santhisenan",
"id": 14852343,
"login": "santhisenan",
"node_id": "MDQ6VXNlcjE0ODUyMzQz",
"organizations_url": "https://api.github.com/users/santhisenan/orgs",
"received_events_url": "https://api.github.com/users/santhisenan/received_events",
"repos_url": "https://api.github.com/users/santhisenan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/santhisenan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/santhisenan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/santhisenan"
}
|
[
{
"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"
}
| 5
| 2020-04-11T15:02:43Z
| 2020-04-12T01:06:29Z
| 2020-04-12T01: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
import numpy as np
df1 = pd.DataFrame({'A': [100] * 10, 'B': [100] * 10, 'C': ['abc'] * 10})
df1.loc[:, df1.select_dtypes(include=[np.number]).columns].clip(-90, 90, inplace=True)
```
#### Problem description
I am trying to clip the values of all numeric columns in the dataframe.
Initially, the data frame is
```
A B C
0 100 100 abc
1 100 100 abc
2 100 100 abc
3 100 100 abc
4 100 100 abc
5 100 100 abc
6 100 100 abc
7 100 100 abc
8 100 100 abc
9 100 100 abc
```
The numeric columns are A and B, so
`df1.loc[:, df1.select_dtypes(include=[np.number]).columns]` selects the required columns.
`df1.loc[:, df1.select_dtypes(include=[np.number]).columns].clip(-90, 90, inplace=True)` should clip values in A and B to 90.
Dataframe after clipping is:
```
A B C
0 100 100 abc
1 100 100 abc
2 100 100 abc
3 100 100 abc
4 100 100 abc
5 100 100 abc
6 100 100 abc
7 100 100 abc
8 100 100 abc
9 100 100 abc
```
Clearly, the values are not getting clipped.
#### Expected Output
```
A B C
0 90 90 abc
1 90 90 abc
2 90 90 abc
3 90 90 abc
4 90 90 abc
5 90 90 abc
6 90 90 abc
7 90 90 abc
8 90 90 abc
9 90 90 abc
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
pandas : 1.0.3
numpy : 1.17.2
pytz : 2019.3
dateutil : 2.8.1
pip : 19.2.3
setuptools : 41.4.0
Cython : 0.29.13
pytest : 5.2.1
hypothesis : None
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : 1.2.1
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : 1.2.1
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : 2.7.0
odfpy : None
openpyxl : 3.0.0
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.2.1
pyxlsb : None
s3fs : None
scipy : 1.3.1
sqlalchemy : 1.3.15
tables : 3.5.2
tabulate : 0.8.6
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
xlsxwriter : 1.2.1
numba : 0.45.1
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33483/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33483/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33484
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33484/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33484/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33484/events
|
https://github.com/pandas-dev/pandas/issues/33484
| 598,305,934
|
MDU6SXNzdWU1OTgzMDU5MzQ=
| 33,484
|
BUG: pd.Series.replace(to_replace=...) does not preserve the original dtype of the series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2436203?v=4",
"events_url": "https://api.github.com/users/chrispe/events{/privacy}",
"followers_url": "https://api.github.com/users/chrispe/followers",
"following_url": "https://api.github.com/users/chrispe/following{/other_user}",
"gists_url": "https://api.github.com/users/chrispe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrispe",
"id": 2436203,
"login": "chrispe",
"node_id": "MDQ6VXNlcjI0MzYyMDM=",
"organizations_url": "https://api.github.com/users/chrispe/orgs",
"received_events_url": "https://api.github.com/users/chrispe/received_events",
"repos_url": "https://api.github.com/users/chrispe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrispe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrispe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrispe"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "01a886",
"default": false,
"description": "replace method",
"id": 1652721180,
"name": "replace",
"node_id": "MDU6TGFiZWwxNjUyNzIxMTgw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/replace"
}
] |
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-04-11T16:48:18Z
| 2020-09-25T09:30:12Z
| 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
>>> s = pd.Series(["one", "two"], dtype="string")
>>> expected = pd.Series(["1", "2"], dtype="string")
>>> result = s.replace(to_replace={"one": "1", "two": "2"})
>>> expected
0 1
1 2
dtype: string
>>> result
0 1
1 2
dtype: object
```
#### Problem description
The `pandas.Series.replace` does not return a series with the same `dtype` as the the original series. This behaviour is produced only when the replace function is called using the argument `to_replace`.
Notice: Similar behaviour is produced with other dtypes as well, this issue is not limited to string dtype.
The investigation should probably start here: `/pandas/core/generic.py`
#### Expected Output
We would expect the `pandas.Series.replace(to_replace=...)` to preserve the dtype of the series.
In the above code sample, both of the series should have a dtype of string.
#### Output of ``pd.show_versions()``
<details>
<h2>INSTALLED VERSIONS</h2>
commit : None
python : 3.8.2.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 : None.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 : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33484/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33484/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33485
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33485/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33485/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33485/events
|
https://github.com/pandas-dev/pandas/pull/33485
| 598,319,411
|
MDExOlB1bGxSZXF1ZXN0NDAyMjI1Njcw
| 33,485
|
PERF: Cythonize `from_nested_dict`
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/50263213?v=4",
"events_url": "https://api.github.com/users/ShaharNaveh/events{/privacy}",
"followers_url": "https://api.github.com/users/ShaharNaveh/followers",
"following_url": "https://api.github.com/users/ShaharNaveh/following{/other_user}",
"gists_url": "https://api.github.com/users/ShaharNaveh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShaharNaveh",
"id": 50263213,
"login": "ShaharNaveh",
"node_id": "MDQ6VXNlcjUwMjYzMjEz",
"organizations_url": "https://api.github.com/users/ShaharNaveh/orgs",
"received_events_url": "https://api.github.com/users/ShaharNaveh/received_events",
"repos_url": "https://api.github.com/users/ShaharNaveh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShaharNaveh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShaharNaveh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShaharNaveh"
}
|
[
{
"color": "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": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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"
}
| 8
| 2020-04-11T18:00:50Z
| 2020-04-23T16:34:57Z
| 2020-04-23T16:34:57Z
|
MEMBER
| null |
I did try to cythonize this function, but the problem is that it also accepting a ```collections.OrderedDict```, which cannot be ```cdef``` as ```dict```, but have to ```cdef``` as ```object```.
---
I don't see much of a performance boost, I have ran the full benchmark suite and ```asv``` says that the ```BENCHMARKS NOT SIGNIFICANTLY CHANGED.```
Maybe just better to remove the ```TODO``` note, thoughts?
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33485/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33485/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33485.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33485",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33485.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33485"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33486
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33486/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33486/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33486/events
|
https://github.com/pandas-dev/pandas/pull/33486
| 598,349,623
|
MDExOlB1bGxSZXF1ZXN0NDAyMjQ2MTUy
| 33,486
|
REF: remove Block.concat_same_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": "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": "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"
}
] |
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-04-11T20:56:32Z
| 2020-04-15T19:34:21Z
| 2020-04-15T19:22:47Z
|
MEMBER
| null |
All the relevant logic lives in concat_compat already.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33486/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33486/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33486.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33486",
"merged_at": "2020-04-15T19:22:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33486.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33486"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33487
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33487/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33487/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33487/events
|
https://github.com/pandas-dev/pandas/pull/33487
| 598,353,515
|
MDExOlB1bGxSZXF1ZXN0NDAyMjQ4Nzcx
| 33,487
|
API: dont infer freq in DTA/TDA arithmetic ops
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "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-04-11T21:20:39Z
| 2020-04-17T22:03:53Z
| 2020-04-17T21:42:53Z
|
MEMBER
| null |
- [x] closes #23216
freq inference is pure overhead for the Series/DataFrame op because freq gets discarded.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33487/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33487/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33487.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33487",
"merged_at": "2020-04-17T21:42:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33487.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33487"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33488
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33488/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33488/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33488/events
|
https://github.com/pandas-dev/pandas/pull/33488
| 598,358,934
|
MDExOlB1bGxSZXF1ZXN0NDAyMjUyNTk4
| 33,488
|
REF: _convert_to_index_sliceable as DataFrame method
|
{
"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 |
[] | null | 2
| 2020-04-11T21:57:07Z
| 2021-07-16T16:08:20Z
| 2020-04-15T18:44:10Z
|
MEMBER
| null |
It really doesnt make sense as anything other than a method.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33488/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33488/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33488.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33488",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33488.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33488"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33489
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33489/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33489/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33489/events
|
https://github.com/pandas-dev/pandas/issues/33489
| 598,392,551
|
MDU6SXNzdWU1OTgzOTI1NTE=
| 33,489
|
BUG: weird resample behavior between very similar cases of Period vs Datetimes
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3902859?v=4",
"events_url": "https://api.github.com/users/hasB4K/events{/privacy}",
"followers_url": "https://api.github.com/users/hasB4K/followers",
"following_url": "https://api.github.com/users/hasB4K/following{/other_user}",
"gists_url": "https://api.github.com/users/hasB4K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hasB4K",
"id": 3902859,
"login": "hasB4K",
"node_id": "MDQ6VXNlcjM5MDI4NTk=",
"organizations_url": "https://api.github.com/users/hasB4K/orgs",
"received_events_url": "https://api.github.com/users/hasB4K/received_events",
"repos_url": "https://api.github.com/users/hasB4K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hasB4K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasB4K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hasB4K"
}
|
[
{
"color": "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
| true
| null |
[] | null | 4
| 2020-04-12T02:21:10Z
| 2021-10-26T15:38:05Z
| 2020-07-29T10:42:28Z
|
MEMBER
|
resolved
|
- [X] I have checked that this issue has not already been reported. (as far as I know...)
- [X] I have confirmed this bug exists on the latest version of pandas.
- [X] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
Create `result_date`:
```python
series = pd.Series(1, index=pd.date_range(start="2000-01-01", periods=100))
result_date = series.resample("2M").count()
result_date
```
Outputs:
```
2000-01-31 31
2000-03-31 60
2000-05-31 9
Freq: 2M, dtype: int64
```
Create `result_period`:
```python
series = pd.Series(1, index=pd.period_range(start="2000-01-01", periods=100))
result_period = series.resample("2M").count()
result_period
```
Outputs:
```
2000-01 60
2000-03 40
Freq: 2M, dtype: int64
```
#### Problem description
I would have expect that `result_period` and `result_date` would have been equals.
I have noticed this behavior when trying to debug `pandas/tests/resample/test_period_index.py::test_resample_count` for #31809. (see https://github.com/pandas-dev/pandas/pull/31809#discussion_r407133957)
After the debug, I realised that maybe another bug was there... but I am not sure, I am not familiar enough with the use of Period. So. Is this a bug? If that's not the case, could someone explain why the two outputs are different?
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.2.final.0
python-bits : 64
OS : Linux
OS-release : 5.5.13-arch2-1
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
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/33489/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33489/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33490
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33490/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33490/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33490/events
|
https://github.com/pandas-dev/pandas/pull/33490
| 598,401,585
|
MDExOlB1bGxSZXF1ZXN0NDAyMjgwODk1
| 33,490
|
Implement pd.NA checking function
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-12T03:30:26Z
| 2020-04-14T18:04:30Z
| 2020-04-14T18:04:26Z
|
MEMBER
| null |
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This may already exist in some form, but if not I think it could be useful to have a fast function for checking specifically for the presence of pd.NA (e.g. if we're looking at an arbitrary array and don't know if we'll have access to a _mask attribute, or if we're handling some other data type that uses pd.NA for missing values but doesn't have this attribute).
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33490/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33490/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33490.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33490",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33490.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33490"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33491
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33491/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33491/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33491/events
|
https://github.com/pandas-dev/pandas/pull/33491
| 598,407,038
|
MDExOlB1bGxSZXF1ZXN0NDAyMjg0MzA3
| 33,491
|
REF: de-duplicate code 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": "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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 2
| 2020-04-12T04:16:46Z
| 2020-04-15T19:38:19Z
| 2020-04-15T19:20:55Z
|
MEMBER
| null |
discussed a few months ago, this gets rid of `date_info_from_days_and_time` and instead re-uses `pandas_datetime_to_datetimestruct`
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33491/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33491/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33491.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33491",
"merged_at": "2020-04-15T19:20:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33491.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33491"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33492
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33492/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33492/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33492/events
|
https://github.com/pandas-dev/pandas/issues/33492
| 598,469,878
|
MDU6SXNzdWU1OTg0Njk4Nzg=
| 33,492
|
BUG: apply for series of numpy arrays falis with np functions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/20436915?v=4",
"events_url": "https://api.github.com/users/Aroksak/events{/privacy}",
"followers_url": "https://api.github.com/users/Aroksak/followers",
"following_url": "https://api.github.com/users/Aroksak/following{/other_user}",
"gists_url": "https://api.github.com/users/Aroksak/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Aroksak",
"id": 20436915,
"login": "Aroksak",
"node_id": "MDQ6VXNlcjIwNDM2OTE1",
"organizations_url": "https://api.github.com/users/Aroksak/orgs",
"received_events_url": "https://api.github.com/users/Aroksak/received_events",
"repos_url": "https://api.github.com/users/Aroksak/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Aroksak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Aroksak/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Aroksak"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
},
{
"color": "f2f989",
"default": false,
"description": "Data where the values are collections (lists, sets, dicts, objects, etc.).",
"id": 2189479765,
"name": "Nested Data",
"node_id": "MDU6TGFiZWwyMTg5NDc5NzY1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Nested%20Data"
}
] |
open
| false
| null |
[] | null | 2
| 2020-04-12T12:01:30Z
| 2021-07-31T04:18:48Z
| 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
import numpy as np
df = pd.DataFrame({"col": [np.array([.1, .2], dtype=float)]})
np.sin(df['col'].iloc[0]) # This works fine
df["col"].apply(np.sin) # This breaks
```
Raises:
```python
AttributeError: 'numpy.ndarray' object has no attribute 'sin'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "~/main.py", line 6, in <module>
df["col"].apply(np.sin)
File "~/anaconda3/envs/pandas-issue/lib/python3.7/site-packages/pandas/core/series.py", line 3840, in apply
return f(self)
File "~/anaconda3/envs/pandas-issue/lib/python3.7/site-packages/pandas/core/series.py", line 679, in __array_ufunc__
result = getattr(ufunc, method)(*inputs, **kwargs)
TypeError: loop of ufunc does not support argument 0 of type numpy.ndarray which has no callable sin method
```
#### Problem description
When I have a pd.Series where each row is a numerical numpy array, I can't apply numpy functions to them, I tried np.sin, np.cos, np.exp, but I think it's a general problem. I can apply them to individual rows manually and it works fine.
Moreover, If I import tqdm with tqdm.pandas and use progress_apply instead of apply it also works just fine!
#### Expected Output
```
0 [0.09983341664682815, 0.19866933079506122]
Name: col, dtype: object
```
#### 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.0-46-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200325
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33492/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33492/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33493
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33493/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33493/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33493/events
|
https://github.com/pandas-dev/pandas/pull/33493
| 598,490,464
|
MDExOlB1bGxSZXF1ZXN0NDAyMzQyMzk0
| 33,493
|
BUG: groupby.hist legend should use group keys
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
}
|
[
{
"color": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] |
closed
| false
| null |
[] |
{
"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"
}
| 15
| 2020-04-12T13:55:43Z
| 2020-07-11T16:02:04Z
| 2020-06-22T15:30:56Z
|
MEMBER
| null |
- [x] closes #6279
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
cc @TomAugspurger
Added argument "legend" to histogram backend. This adds the ability to display a legend even when not using a groupby.
````
df = pd.DataFrame(np.random.randn(30, 2), columns=['A', 'B'])
df['C'] = 15 * ['a'] + 15 * ['b']
df = df.set_index('C')
df.groupby('C')['A'].hist(legend=True)
````
produces

I went off the tests that already existed in test_hist_method and test_groupby, but perhaps more stringent tests should be added. I've been manually checking with the following code:
````
import matplotlib.pyplot as plt
import pandas as pd
df = pd.DataFrame(np.random.randn(30, 2), columns=['A', 'B'])
df['C'] = 15 * ['a'] + 15 * ['b']
df = df.set_index('C')
df.groupby('C')['A'].hist(legend=False)
plt.show()
df.groupby('C')['A'].hist(legend=True)
plt.show()
df.A.hist(by='C', legend=False)
plt.show()
df.A.hist(by='C', legend=True)
plt.show()
plt.show()
df.hist(by='C', legend=False)
plt.show()
df.hist(by='C', legend=True)
plt.show()
df.hist(by='C', column='B', legend=False)
plt.show()
df.hist(by='C', column='B', legend=True)
plt.show()
df.groupby('C')['A'].hist(label='D', legend=False)
plt.show()
df.groupby('C')['A'].hist(label='D', legend=True)
plt.show()
df.A.hist(by='C', label='D', legend=False)
plt.show()
df.A.hist(by='C', label='D', legend=True)
plt.show()
df.hist(by='C', label='D', legend=False)
plt.show()
df.hist(by='C', label='D', legend=True)
plt.show()
df.hist(by='C', column='B', label='D', legend=False)
plt.show()
df.hist(by='C', column='B', label='D', legend=True)
plt.show()
````
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33493/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33493/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33493.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33493",
"merged_at": "2020-06-22T15:30:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33493.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33493"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33494
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33494/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33494/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33494/events
|
https://github.com/pandas-dev/pandas/issues/33494
| 598,503,268
|
MDU6SXNzdWU1OTg1MDMyNjg=
| 33,494
|
BUG: MultiIndex drop produces wrong output if not lexicographically sorted
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/47403209?v=4",
"events_url": "https://api.github.com/users/mrupp-citrine/events{/privacy}",
"followers_url": "https://api.github.com/users/mrupp-citrine/followers",
"following_url": "https://api.github.com/users/mrupp-citrine/following{/other_user}",
"gists_url": "https://api.github.com/users/mrupp-citrine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mrupp-citrine",
"id": 47403209,
"login": "mrupp-citrine",
"node_id": "MDQ6VXNlcjQ3NDAzMjA5",
"organizations_url": "https://api.github.com/users/mrupp-citrine/orgs",
"received_events_url": "https://api.github.com/users/mrupp-citrine/received_events",
"repos_url": "https://api.github.com/users/mrupp-citrine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mrupp-citrine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mrupp-citrine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mrupp-citrine"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
}
| 0
| 2020-04-12T14:56:04Z
| 2020-12-02T23:28:04Z
| 2020-12-02T23:28:04Z
|
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.
Latest Pandas version my system installs (via `anaconda update pandas`), which is 0.25.3.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
df1 = pd.DataFrame(
[
[4, 5, 6],
[5, 4, 6],
[4, 5, 6],
[3, 7, 5],
[5, 9, 0],
[1, 2, 3],
],
columns=["a", "b", "c"],
)
df2 = pd.DataFrame(
[
[1, 2, 3],
[4, 5, 6],
[1, 6, 0],
],
columns=["a", "b", "c"],
)
df1mi = pd.MultiIndex.from_frame(df1)
df2mi = pd.MultiIndex.from_frame(df2)
ismi = df1mi.intersection(df2mi) # intersection of df1 and df2
# df1mi, _ = df1mi.sortlevel(sort_remaining=True)
complement = df1mi.drop(ismi).to_frame().reset_index(drop=True)
print(df1, "\n")
print(df2, "\n")
print(complement)
```
#### Problem description
Above code computes the multi-set complement A-B for two multi-sets A and B (only difference to sets is that duplicates in A that are not in B are preserved).
Without the commented-out line, pandas issues a warning (`sys:1: PerformanceWarning: indexing past lexsort depth may impact performance.`). However, the result is wrong: Row 1 from df1 is missing in the complement.
With the commented-out line, no warning is issued and the result is correct.
The bug is that without the sorting, the drop command malfunctions.
#### Expected Output
Correct output (with explicit sort):
```
a b c
0 3 7 5
1 5 4 6
2 5 9 0
```
Wrong output (without explicit sort):
```
a b c
0 3 7 5
1 5 9 0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.7.final.0
python-bits : 64
OS : Darwin
OS-release : 18.7.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.1.3.post20200330
Cython : None
pytest : 5.4.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
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
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
</details>
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33494/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33494/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33495
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33495/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33495/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33495/events
|
https://github.com/pandas-dev/pandas/pull/33495
| 598,515,522
|
MDExOlB1bGxSZXF1ZXN0NDAyMzU5NDk4
| 33,495
|
CLN: remove ensure_categorical
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-12T15:56:39Z
| 2020-04-17T02:55:17Z
| 2020-04-17T02:48:49Z
|
MEMBER
| null |
only used in two places, its a misnomer because it really only ensures categorical dtype, and it complicates the dependency structure
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33495/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33495/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33495.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33495",
"merged_at": "2020-04-17T02:48:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33495.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33495"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33496
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33496/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33496/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33496/events
|
https://github.com/pandas-dev/pandas/pull/33496
| 598,521,093
|
MDExOlB1bGxSZXF1ZXN0NDAyMzYzNjYw
| 33,496
|
BUG: Allow apply of ufunc over Series of list-like
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] |
closed
| false
| null |
[] | null | 1
| 2020-04-12T16:25:50Z
| 2020-04-13T02:04:25Z
| 2020-04-13T02:04:21Z
|
MEMBER
| null |
- [ ] closes #33492
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33496/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33496/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33496.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33496",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33496.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33496"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33497
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33497/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33497/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33497/events
|
https://github.com/pandas-dev/pandas/pull/33497
| 598,522,565
|
MDExOlB1bGxSZXF1ZXN0NDAyMzY0NzE5
| 33,497
|
CLN: assorted cleanups, annotations, de-privatizing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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-04-12T16:33:55Z
| 2020-04-17T02:53:56Z
| 2020-04-17T02:47:40Z
|
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/33497/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33497/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33497.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33497",
"merged_at": "2020-04-17T02:47:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33497.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33497"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33498
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33498/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33498/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33498/events
|
https://github.com/pandas-dev/pandas/pull/33498
| 598,524,527
|
MDExOlB1bGxSZXF1ZXN0NDAyMzY2MTQ4
| 33,498
|
BUG: Fix a bug in 'timedelta_range' that produced an extra point on a edge case (fix #30353)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3902859?v=4",
"events_url": "https://api.github.com/users/hasB4K/events{/privacy}",
"followers_url": "https://api.github.com/users/hasB4K/followers",
"following_url": "https://api.github.com/users/hasB4K/following{/other_user}",
"gists_url": "https://api.github.com/users/hasB4K/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hasB4K",
"id": 3902859,
"login": "hasB4K",
"node_id": "MDQ6VXNlcjM5MDI4NTk=",
"organizations_url": "https://api.github.com/users/hasB4K/orgs",
"received_events_url": "https://api.github.com/users/hasB4K/received_events",
"repos_url": "https://api.github.com/users/hasB4K/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hasB4K/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hasB4K/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hasB4K"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta 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"
}
| 7
| 2020-04-12T16:44:54Z
| 2020-05-09T20:41:27Z
| 2020-05-09T19:23:30Z
|
MEMBER
| null |
The issue from #30353 came actually from `timedelta_range`.
```python
import pandas as pd
def mock_timedelta_range(start=None, end=None, periods=None, freq=None, name=None, closed=None):
epoch = pd.Timestamp(0)
if start is not None:
start = epoch + pd.Timedelta(start)
if end is not None:
end = epoch + pd.Timedelta(end)
res = pd.date_range(start=start, end=end, periods=periods, freq=freq, name=name, closed=closed)
res -= epoch
res.freq = freq
return res
print(mock_timedelta_range("1day", "10day", freq="2D"))
print(pd.timedelta_range("1day", "10day", freq="2D"))
```
The outputs from `mock_timedelta_range` and from `pd.timedelta_range` are supposed to equivalent, but are not on pandas v1.0.0:
Outputs without this PR:
```
TimedeltaIndex(['1 days', '3 days', '5 days', '7 days', '9 days'], dtype='timedelta64[ns]', freq='2D')
TimedeltaIndex(['1 days', '3 days', '5 days', '7 days', '9 days', '11 days'], dtype='timedelta64[ns]', freq='2D')
```
Outputs with this PR:
```
TimedeltaIndex(['1 days', '3 days', '5 days', '7 days', '9 days'], dtype='timedelta64[ns]', freq='2D')
TimedeltaIndex(['1 days', '3 days', '5 days', '7 days', '9 days'], dtype='timedelta64[ns]', freq='2D')
```
----
It also solve an issue (that fail on master) related to this comment: https://github.com/pandas-dev/pandas/issues/13022#issuecomment-238382933
```python
import pandas as pd
rng = pd.timedelta_range(start='1d', periods=10, freq='d')
df = pd.Series(range(10), index=rng)
df.resample('2D').count()
```
Outputs with this PR:
```
1 days 2
3 days 2
5 days 2
7 days 2
9 days 2
Freq: 2D, dtype: int64
```
----
On the firsts commits I just fixed the issue in `_generate_regular_range`, then I decided to do a refactor and to use the same code that generate ranges in `core/arrays/_ranges.py` for `date_range` and `timedelta_range`.
Linked with #10887.
----
- [X] closes #30353
closes #13022
closes #7687 (for loffset when resampling Timedelta)
- [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/33498/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33498/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33498.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33498",
"merged_at": "2020-05-09T19:23:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33498.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33498"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33499
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33499/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33499/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33499/events
|
https://github.com/pandas-dev/pandas/pull/33499
| 598,543,542
|
MDExOlB1bGxSZXF1ZXN0NDAyMzc5MjA1
| 33,499
|
ENH: Adds round_decimals=None to Series.value_counts() to use with normalize=True
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/31772558?v=4",
"events_url": "https://api.github.com/users/maxi-marufo/events{/privacy}",
"followers_url": "https://api.github.com/users/maxi-marufo/followers",
"following_url": "https://api.github.com/users/maxi-marufo/following{/other_user}",
"gists_url": "https://api.github.com/users/maxi-marufo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/maxi-marufo",
"id": 31772558,
"login": "maxi-marufo",
"node_id": "MDQ6VXNlcjMxNzcyNTU4",
"organizations_url": "https://api.github.com/users/maxi-marufo/orgs",
"received_events_url": "https://api.github.com/users/maxi-marufo/received_events",
"repos_url": "https://api.github.com/users/maxi-marufo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/maxi-marufo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maxi-marufo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/maxi-marufo"
}
|
[] |
closed
| false
| null |
[] | null | 7
| 2020-04-12T18:24:42Z
| 2020-06-19T11:31:07Z
| 2020-06-19T11:31:07Z
|
NONE
| null |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
When using `value_counts` with `normalize=True` with a **Series,** the result contains the relative frequencies of the unique values, and therefore sums up to 1.0. If then you need to round this frequencies to some decimals, it is not a so trivial task [[1]](https://stackoverflow.com/questions/13483430/how-to-make-rounded-percentages-add-up-to-100)[[2]](https://stackoverflow.com/questions/5227215/how-to-deal-with-the-sum-of-rounded-percentage-not-being-100)[[3]](https://revs.runtime-revolution.com/getting-100-with-rounded-percentages-273ffa70252b). So when this new **int** `round_decimals` argument is **not None**, the method applies the [Largest_remainder_method](https://en.wikipedia.org/wiki/Largest_remainder_method) to round the values to the number of decimals selected, but also to sum up to 1.0 in total.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33499/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33499/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33499.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33499",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33499.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33499"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33500
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33500/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33500/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33500/events
|
https://github.com/pandas-dev/pandas/issues/33500
| 598,546,361
|
MDU6SXNzdWU1OTg1NDYzNjE=
| 33,500
|
BUG: Empty dataframe returns weird aggregation results with custom aggregation functions
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/12527?v=4",
"events_url": "https://api.github.com/users/mfcabrera/events{/privacy}",
"followers_url": "https://api.github.com/users/mfcabrera/followers",
"following_url": "https://api.github.com/users/mfcabrera/following{/other_user}",
"gists_url": "https://api.github.com/users/mfcabrera/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mfcabrera",
"id": 12527,
"login": "mfcabrera",
"node_id": "MDQ6VXNlcjEyNTI3",
"organizations_url": "https://api.github.com/users/mfcabrera/orgs",
"received_events_url": "https://api.github.com/users/mfcabrera/received_events",
"repos_url": "https://api.github.com/users/mfcabrera/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mfcabrera/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mfcabrera/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mfcabrera"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
},
{
"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"
}
] |
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"
}
| 1
| 2020-04-12T18:41:11Z
| 2020-07-27T20:46:43Z
| 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
df = pd.DataFrame( columns=["item", "att1", "att2"])
df.agg(("count",))
# item att1 att2
# count 0 0 0
def count_not_null(series: pd.Series) -> int:
return series.notnull().astype(int).sum()
df.agg((count_not_null,))
# Empty DataFrame
# Columns: [(item, count_not_null), (att1, count_not_null), (att2, count_not_null)]
# Index: []
def count_all(series: pd.Series) -> int:
""" count all the values (regardless if they are null or nan) """
return len(series)
df.agg((count_not_null, count_all))
# Empty DataFrame
# Columns: [(item, count_not_null), (item, count_all), (att1, count_not_null), (att1, count_all),
# (att2, count_not_null), (att2, count_all)]
# Index: []
```
#### Problem description
This issue only occurs when using custom aggregation function on empty dataframes. it works as expected with non empty dataframe. I would expect a similar output as the one obtained when using `count` aggregation function.
Workaround: if I use only one aggregation pass only the specific function to `agg`.
This is definetely a very dark specific bug that I found by toying around with pandas for a small library that I am writing. I don't see big effect in the daily lives of users (we probably don't want to aggregate on empty dataframes!) :).
#### Expected Output
```
# item att1 att2
# count 0 0 0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : None
python : 3.8.1.final.0
python-bits : 64
OS : Darwin
OS-release : 19.0.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : None
pytest : 5.4.1
hypothesis : 5.8.0
sphinx : 2.4.4
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
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/33500/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33500/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33501
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33501/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33501/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33501/events
|
https://github.com/pandas-dev/pandas/pull/33501
| 598,553,632
|
MDExOlB1bGxSZXF1ZXN0NDAyMzg2MjUw
| 33,501
|
CLN: use _values_for_argsort in fewer places
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
}
|
[
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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-04-12T19:22:19Z
| 2020-04-17T18:10:38Z
| 2020-04-17T18:06:20Z
|
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/33501/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33501/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33501.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33501",
"merged_at": "2020-04-17T18:06:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33501.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33501"
}
|
|
https://api.github.com/repos/pandas-dev/pandas/issues/33502
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33502/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33502/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33502/events
|
https://github.com/pandas-dev/pandas/pull/33502
| 598,558,227
|
MDExOlB1bGxSZXF1ZXN0NDAyMzg5NTIx
| 33,502
|
ENH: Make Series.update() use objects coercible to Series
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/3587185?v=4",
"events_url": "https://api.github.com/users/dericke/events{/privacy}",
"followers_url": "https://api.github.com/users/dericke/followers",
"following_url": "https://api.github.com/users/dericke/following{/other_user}",
"gists_url": "https://api.github.com/users/dericke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dericke",
"id": 3587185,
"login": "dericke",
"node_id": "MDQ6VXNlcjM1ODcxODU=",
"organizations_url": "https://api.github.com/users/dericke/orgs",
"received_events_url": "https://api.github.com/users/dericke/received_events",
"repos_url": "https://api.github.com/users/dericke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dericke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dericke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dericke"
}
|
[
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "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-04-12T19:48:56Z
| 2020-04-27T04:32:35Z
| 2020-04-26T19:49:37Z
|
CONTRIBUTOR
| null |
- [x] closes #33215
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Allows `Series.update()` to accept objects that can be coerced into a `Series`, like a `dict`. This mirrors the existing behavior of `DataFrame.update()`.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33502/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33502/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33502.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33502",
"merged_at": "2020-04-26T19:49:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33502.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33502"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33503
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33503/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33503/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33503/events
|
https://github.com/pandas-dev/pandas/issues/33503
| 598,578,153
|
MDU6SXNzdWU1OTg1NzgxNTM=
| 33,503
|
DEPR: weekofyear
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
}
|
[
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-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-04-12T21:45:31Z
| 2020-05-26T03:22:04Z
| 2020-05-26T03:22:04Z
|
MEMBER
| null |
Now that `isocalendar` is available on `Timestamp`, `DatetimeIndex` and the `dt` accessor, `weekofyear` already exists in `isocalendar` and can be deprecated.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33503/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33503/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33504
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33504/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33504/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33504/events
|
https://github.com/pandas-dev/pandas/pull/33504
| 598,583,730
|
MDExOlB1bGxSZXF1ZXN0NDAyNDA3NTQ4
| 33,504
|
WIP: CI: Setup 3.9 Travis Build
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[] |
closed
| false
| null |
[] | null | 0
| 2020-04-12T22:18:12Z
| 2020-04-12T22:20:13Z
| 2020-04-12T22:20:13Z
|
CONTRIBUTOR
| null |
- [x] ref https://github.com/pandas-dev/pandas/issues/33395
- In a very similar fashion to @jbrockmendel work for 3.8 - might be useful to have start a 3.9 build so we can start eliminating the issues @TomAugspurger mentioned in https://github.com/pandas-dev/pandas/issues/33395
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33504/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33504/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33504.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33504",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33504.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33504"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33505
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33505/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33505/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33505/events
|
https://github.com/pandas-dev/pandas/pull/33505
| 598,589,638
|
MDExOlB1bGxSZXF1ZXN0NDAyNDExNzM4
| 33,505
|
CI: Setup 3.9 Travis Build
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "72e24d",
"default": false,
"description": "",
"id": 1971420228,
"name": "Python 3.9",
"node_id": "MDU6TGFiZWwxOTcxNDIwMjI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Python%203.9"
}
] |
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"
}
| 12
| 2020-04-12T22:57:21Z
| 2020-05-10T01:01:13Z
| 2020-05-09T23:26:57Z
|
CONTRIBUTOR
| null |
- [x] closes https://github.com/pandas-dev/pandas/issues/33395
- In a very similar fashion to @jbrockmendel work for 3.8 - might be useful to have start a 3.9 build so we can start eliminating the issues @TomAugspurger mentioned in https://github.com/pandas-dev/pandas/issues/33395.
This is using currently using `Python 3.9.0a5+`
Currently failing with
```
ImportError while loading conftest '/home/travis/build/pandas-dev/pandas/pandas/conftest.py'.
pandas/conftest.py:1123: in <module>
("period", [pd.Period(2013), pd.NaT, pd.Period(2018)]),
pandas/_libs/tslibs/period.pyx:2470: in pandas._libs.tslibs.period.Period.__new__
freq = Resolution.get_freq(reso)
pandas/_libs/tslibs/resolution.pyx:240: in pandas._libs.tslibs.resolution.Resolution.get_freq
return cls._reso_freq_map[resostr]
E AttributeError: type object 'type' has no attribute '_reso_freq_map'
The command "ci/run_tests.sh" exited with 4.
cache.2
store build cache
```
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33505/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33505/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33505.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33505",
"merged_at": "2020-05-09T23:26:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33505.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33505"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33506
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33506/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33506/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33506/events
|
https://github.com/pandas-dev/pandas/pull/33506
| 598,590,859
|
MDExOlB1bGxSZXF1ZXN0NDAyNDEyNjE0
| 33,506
|
Removed xfail for issue #31883
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10412608?v=4",
"events_url": "https://api.github.com/users/devjeetr/events{/privacy}",
"followers_url": "https://api.github.com/users/devjeetr/followers",
"following_url": "https://api.github.com/users/devjeetr/following{/other_user}",
"gists_url": "https://api.github.com/users/devjeetr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devjeetr",
"id": 10412608,
"login": "devjeetr",
"node_id": "MDQ6VXNlcjEwNDEyNjA4",
"organizations_url": "https://api.github.com/users/devjeetr/orgs",
"received_events_url": "https://api.github.com/users/devjeetr/received_events",
"repos_url": "https://api.github.com/users/devjeetr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devjeetr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devjeetr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devjeetr"
}
|
[
{
"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-04-12T23:05:53Z
| 2020-04-14T15:01:00Z
| 2020-04-14T15:00:53Z
|
CONTRIBUTOR
| null |
I removed the xfail in lines 412-414 as discussed in https://github.com/pandas-dev/pandas/issues/31883.
- [x] closes #31883
- [x] 0 tests added / 0 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/33506/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33506/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33506.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33506",
"merged_at": "2020-04-14T15:00:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33506.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33506"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33507
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33507/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33507/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33507/events
|
https://github.com/pandas-dev/pandas/issues/33507
| 598,601,849
|
MDU6SXNzdWU1OTg2MDE4NDk=
| 33,507
|
CI: Numpy Dev Build Failing
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
|
[
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] |
closed
| false
| null |
[] | null | 14
| 2020-04-13T00:17:50Z
| 2020-04-27T23:10:34Z
| 2020-04-27T23:10:34Z
|
CONTRIBUTOR
| null |
Looks like our numpy dev build also uses a pre-release (alpha) of cython.
Is this the intended behaviour?
Think this is potentially what is causing the test failures:
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=33245&view=logs&j=3a03f79d-0b41-5610-1aa4-b4a014d0bc70&t=4d05ed0e-1ed3-5bff-dd63-1e957f2766a9
```
attrs 19.3.0 py_0
ca-certificates 2020.1.1 0
certifi 2020.4.5.1 py37_0
**cython 3.0a1 pypi_0 pypi**
execnet 1.7.1 py_0
hypothesis 5.5.4 py_0
importlib_metadata 1.5.0 py37_0
ld_impl_linux-64 2.33.1 h53a641e_7
libedit 3.1.20181209 hc058e9b_0
libffi 3.2.1 hd88cf55_4
libgcc-ng 9.1.0 hdf63c60_0
libstdcxx-ng 9.1.0 hdf63c60_0
more-itertools 8.2.0 py_0
ncurses 6.2 he6710b0_0
numpy 1.19.0.dev0+8f7adad pypi_0 pypi
openssl 1.1.1f h7b6447c_0
packaging 20.3 py_0
pandas 1.1.0.dev0+1243.gd3ff12cff dev_0 <develop>
pip 20.0.2 py37_1
pluggy 0.13.1 py37_0
py 1.8.1 py_0
pyparsing 2.4.6 py_0
pytest 5.4.1 py37_0
pytest-azurepipelines 0.8.0 py_0
pytest-forked 1.1.3 py_0
pytest-xdist 1.31.0 py_0
python 3.7.7 hcf32534_0_cpython
**python-dateutil 2.8.2.dev25+gc175137 pypi_0 pypi**
pytz 2019.3 py_0
readline 8.0 h7b6447c_0
scipy 1.5.0.dev0+f614064 pypi_0 pypi
setuptools 46.1.3 py37_0
six 1.14.0 py37_0
sortedcontainers 2.1.0 py37_0
sqlite 3.31.1 h7b6447c_0
tk 8.6.8 hbc83047_0
wcwidth 0.1.9 py_0
wheel 0.34.2 py37_0
xz 5.2.4 h14c3975_4
zipp 2.2.0 py_0
zlib 1.2.11 h7b6447c_3
```
|
{
"+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/33507/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33507/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33508
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33508/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33508/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33508/events
|
https://github.com/pandas-dev/pandas/pull/33508
| 598,603,633
|
MDExOlB1bGxSZXF1ZXN0NDAyNDIxODAw
| 33,508
|
Added two tests for issue #29697
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10412608?v=4",
"events_url": "https://api.github.com/users/devjeetr/events{/privacy}",
"followers_url": "https://api.github.com/users/devjeetr/followers",
"following_url": "https://api.github.com/users/devjeetr/following{/other_user}",
"gists_url": "https://api.github.com/users/devjeetr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devjeetr",
"id": 10412608,
"login": "devjeetr",
"node_id": "MDQ6VXNlcjEwNDEyNjA4",
"organizations_url": "https://api.github.com/users/devjeetr/orgs",
"received_events_url": "https://api.github.com/users/devjeetr/received_events",
"repos_url": "https://api.github.com/users/devjeetr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devjeetr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devjeetr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devjeetr"
}
|
[
{
"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": "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"
}
| 6
| 2020-04-13T00:28:11Z
| 2020-04-26T20:24:21Z
| 2020-04-26T20:24:18Z
|
CONTRIBUTOR
| null |
I added two basic tests for `merge` as requested in #29697, one for `how="outer"` and one for `how="right"`.
I'm not sure if the way I'm creating duplicate columns for the `expected` dataframe is the recommended way but I could not find anything on this. Please let me know if there's a better way to do this.
- [x] closes #29697
- [x] 2 tests added / 2 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/33508/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33508/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33508.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33508",
"merged_at": "2020-04-26T20:24:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33508.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33508"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33509
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33509/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33509/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33509/events
|
https://github.com/pandas-dev/pandas/pull/33509
| 598,605,540
|
MDExOlB1bGxSZXF1ZXN0NDAyNDIzMTc5
| 33,509
|
ENH: clearer error message if read_hdf loads upsupported HDF file (GH9539)
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/1399377?v=4",
"events_url": "https://api.github.com/users/a-y-khan/events{/privacy}",
"followers_url": "https://api.github.com/users/a-y-khan/followers",
"following_url": "https://api.github.com/users/a-y-khan/following{/other_user}",
"gists_url": "https://api.github.com/users/a-y-khan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/a-y-khan",
"id": 1399377,
"login": "a-y-khan",
"node_id": "MDQ6VXNlcjEzOTkzNzc=",
"organizations_url": "https://api.github.com/users/a-y-khan/orgs",
"received_events_url": "https://api.github.com/users/a-y-khan/received_events",
"repos_url": "https://api.github.com/users/a-y-khan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/a-y-khan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/a-y-khan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/a-y-khan"
}
|
[
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-13T00:37:04Z
| 2020-04-20T04:18:38Z
| 2020-04-17T18:08:36Z
|
CONTRIBUTOR
| null |
- [x] closes #9539
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
The error message changed since the original bug report but still could be made more clear.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33509/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33509/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33509.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33509",
"merged_at": "2020-04-17T18:08:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33509.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33509"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33510
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33510/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33510/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33510/events
|
https://github.com/pandas-dev/pandas/pull/33510
| 598,631,706
|
MDExOlB1bGxSZXF1ZXN0NDAyNDQyMzQz
| 33,510
|
Issue 31175
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32339541?v=4",
"events_url": "https://api.github.com/users/echozzy629/events{/privacy}",
"followers_url": "https://api.github.com/users/echozzy629/followers",
"following_url": "https://api.github.com/users/echozzy629/following{/other_user}",
"gists_url": "https://api.github.com/users/echozzy629/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echozzy629",
"id": 32339541,
"login": "echozzy629",
"node_id": "MDQ6VXNlcjMyMzM5NTQx",
"organizations_url": "https://api.github.com/users/echozzy629/orgs",
"received_events_url": "https://api.github.com/users/echozzy629/received_events",
"repos_url": "https://api.github.com/users/echozzy629/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echozzy629/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echozzy629/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echozzy629"
}
|
[] |
closed
| false
| null |
[] | null | 1
| 2020-04-13T02:29:08Z
| 2020-04-13T04:16:25Z
| 2020-04-13T04:16:25Z
|
NONE
| null |
- [ ] passes `black pandas`
- [ ] 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/33510/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33510/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33510.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33510",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33510.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33510"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33511
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33511/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33511/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33511/events
|
https://github.com/pandas-dev/pandas/pull/33511
| 598,641,375
|
MDExOlB1bGxSZXF1ZXN0NDAyNDQ5MzEx
| 33,511
|
CLN: remove unused util.hashing 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": "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-04-13T03:06:31Z
| 2020-04-15T01:35:56Z
| 2020-04-15T01:29:42Z
|
MEMBER
| null |
The only place where _any_ of util.hashing is used internally is in `CategoricalDtype.__hash__`. It's pretty ugly dependency-tree wise. This just prunes a couple of entirely unused functions.
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33511/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33511/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33511.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33511",
"merged_at": "2020-04-15T01:29:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33511.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33511"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33512
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33512/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33512/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33512/events
|
https://github.com/pandas-dev/pandas/pull/33512
| 598,645,582
|
MDExOlB1bGxSZXF1ZXN0NDAyNDUyMTIx
| 33,512
|
TST/CLN: Clean categorical min / max tests
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
}
| 1
| 2020-04-13T03:21:12Z
| 2020-04-14T17:58:58Z
| 2020-04-14T17:26:28Z
|
MEMBER
| null |
Fixes one small error in a test, and otherwise tries to remove some code duplication
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33512/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33512/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33512.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33512",
"merged_at": "2020-04-14T17:26:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33512.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33512"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33513
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33513/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33513/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33513/events
|
https://github.com/pandas-dev/pandas/pull/33513
| 598,651,905
|
MDExOlB1bGxSZXF1ZXN0NDAyNDU2NTAx
| 33,513
|
BUG: Fix Categorical.min / max bug
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/2658661?v=4",
"events_url": "https://api.github.com/users/dsaxton/events{/privacy}",
"followers_url": "https://api.github.com/users/dsaxton/followers",
"following_url": "https://api.github.com/users/dsaxton/following{/other_user}",
"gists_url": "https://api.github.com/users/dsaxton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsaxton",
"id": 2658661,
"login": "dsaxton",
"node_id": "MDQ6VXNlcjI2NTg2NjE=",
"organizations_url": "https://api.github.com/users/dsaxton/orgs",
"received_events_url": "https://api.github.com/users/dsaxton/received_events",
"repos_url": "https://api.github.com/users/dsaxton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsaxton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsaxton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsaxton"
}
|
[
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "e11d21",
"default": false,
"description": "Categorical Data Type",
"id": 78527356,
"name": "Categorical",
"node_id": "MDU6TGFiZWw3ODUyNzM1Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical"
}
] |
closed
| false
| null |
[] |
{
"closed_at": "2020-05-30T15:21:05Z",
"closed_issues": 94,
"created_at": "2020-03-19T21:32:28Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-06-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/72",
"id": 5219206,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72/labels",
"node_id": "MDk6TWlsZXN0b25lNTIxOTIwNg==",
"number": 72,
"open_issues": 0,
"state": "closed",
"title": "1.0.4",
"updated_at": "2020-06-24T17:57:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/72"
}
| 2
| 2020-04-13T03:40:56Z
| 2020-05-05T09:07:23Z
| 2020-04-13T08:16:59Z
|
MEMBER
| null |
- [ ] closes #33450
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33513/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33513/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33513.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33513",
"merged_at": "2020-04-13T08:16:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/33513.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33513"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33514
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33514/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33514/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33514/events
|
https://github.com/pandas-dev/pandas/pull/33514
| 598,652,162
|
MDExOlB1bGxSZXF1ZXN0NDAyNDU2NjY1
| 33,514
|
DOC: Add missing descriptions in See Also section
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/10412608?v=4",
"events_url": "https://api.github.com/users/devjeetr/events{/privacy}",
"followers_url": "https://api.github.com/users/devjeetr/followers",
"following_url": "https://api.github.com/users/devjeetr/following{/other_user}",
"gists_url": "https://api.github.com/users/devjeetr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/devjeetr",
"id": 10412608,
"login": "devjeetr",
"node_id": "MDQ6VXNlcjEwNDEyNjA4",
"organizations_url": "https://api.github.com/users/devjeetr/orgs",
"received_events_url": "https://api.github.com/users/devjeetr/received_events",
"repos_url": "https://api.github.com/users/devjeetr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/devjeetr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/devjeetr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/devjeetr"
}
|
[
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] |
closed
| false
| null |
[] | null | 4
| 2020-04-13T03:41:51Z
| 2020-05-22T10:29:05Z
| 2020-05-22T10:29:05Z
|
CONTRIBUTOR
| null |
Fixed SR04 for `pandas/core/window/rolling.py`
- [X] xref #28792
- [ ] 0 tests added / 0 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/33514/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33514/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33514.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33514",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33514.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33514"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33515
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33515/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33515/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33515/events
|
https://github.com/pandas-dev/pandas/issues/33515
| 598,670,747
|
MDU6SXNzdWU1OTg2NzA3NDc=
| 33,515
|
BUG: DataError: No numeric types to aggregate during pd.pivot_table
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/7960913?v=4",
"events_url": "https://api.github.com/users/retsyo/events{/privacy}",
"followers_url": "https://api.github.com/users/retsyo/followers",
"following_url": "https://api.github.com/users/retsyo/following{/other_user}",
"gists_url": "https://api.github.com/users/retsyo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/retsyo",
"id": 7960913,
"login": "retsyo",
"node_id": "MDQ6VXNlcjc5NjA5MTM=",
"organizations_url": "https://api.github.com/users/retsyo/orgs",
"received_events_url": "https://api.github.com/users/retsyo/received_events",
"repos_url": "https://api.github.com/users/retsyo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/retsyo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/retsyo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/retsyo"
}
|
[
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] |
closed
| false
| null |
[] | null | 3
| 2020-04-13T04:47:05Z
| 2021-04-27T07:06:51Z
| 2020-05-02T09:29:53Z
|
NONE
| null |
I am using pandas 1.0.3 in anaconda python 3.6.6 64 bits on win7 64 bits
the following code
```python
pd.pivot_table(df, index=['time', 'goods'], values=['price',])
```
# says something like https://github.com/pandas-dev/pandas/issues/17382
```
DataError Traceback (most recent call last)
<ipython-input-62-dc402f731fc3> in <module>()
----> 1 pd.pivot_table(df.iloc[:5,:], index=['time', 'goods'], values=['price',])
L:\prg\py\Anaconda3_64\lib\site-packages\pandas\core\reshape\pivot.py in pivot_table(data, values, index, columns, aggfunc, fill_value, margins, dropna, margins_name, observed)
99
100 grouped = data.groupby(keys, observed=observed)
--> 101 agged = grouped.agg(aggfunc)
102 if dropna and isinstance(agged, ABCDataFrame) and len(agged.columns):
103 agged = agged.dropna(how="all")
L:\prg\py\Anaconda3_64\lib\site-packages\pandas\core\groupby\generic.py in aggregate(self, func, *args, **kwargs)
926 func = _maybe_mangle_lambdas(func)
927
--> 928 result, how = self._aggregate(func, *args, **kwargs)
929 if how is None:
930 return result
L:\prg\py\Anaconda3_64\lib\site-packages\pandas\core\base.py in _aggregate(self, arg, *args, **kwargs)
309
310 if isinstance(arg, str):
--> 311 return self._try_aggregate_string_function(arg, *args, **kwargs), None
312
313 if isinstance(arg, dict):
L:\prg\py\Anaconda3_64\lib\site-packages\pandas\core\base.py in _try_aggregate_string_function(self, arg, *args, **kwargs)
265 if f is not None:
266 if callable(f):
--> 267 return f(*args, **kwargs)
268
269 # people may try to aggregate on a non-callable attribute
L:\prg\py\Anaconda3_64\lib\site-packages\pandas\core\groupby\groupby.py in mean(self, *args, **kwargs)
1223 nv.validate_groupby_func("mean", args, kwargs, ["numeric_only"])
1224 return self._cython_agg_general(
-> 1225 "mean", alt=lambda x, axis: Series(x).mean(**kwargs), **kwargs
1226 )
1227
L:\prg\py\Anaconda3_64\lib\site-packages\pandas\core\groupby\generic.py in _cython_agg_general(self, how, alt, numeric_only, min_count)
992 ) -> DataFrame:
993 agg_blocks, agg_items = self._cython_agg_blocks(
--> 994 how, alt=alt, numeric_only=numeric_only, min_count=min_count
995 )
996 return self._wrap_agged_blocks(agg_blocks, items=agg_items)
L:\prg\py\Anaconda3_64\lib\site-packages\pandas\core\groupby\generic.py in _cython_agg_blocks(self, how, alt, numeric_only, min_count)
1093
1094 if not (agg_blocks or split_frames):
-> 1095 raise DataError("No numeric types to aggregate")
1096
1097 if split_items:
DataError: No numeric types to aggregate
```
# but if I do
```
df.to_excel('r:/5.xls')
dfm = pd.read_excel('r:/5.xls')
pd.pivot_table(dfm, index=['time', 'goods'], values=['price',])
```
then I get the pivot table as I expected
# the question
so you may find that I can't make a minimal excel file to let you reproduce the `DataError`. On the other hand, my original `df` is made by `concat`ing some privacy excel files, which I can't share too.
Can anyone give me some hints? Thanks
```
df = pd.concat(
[pd.read_excel(i, convertor={'ID2': int, 'pin': int}) for i in someXlsFilenames]
)
df.head(1)
```
| _ | time | ID1 | ID2 | goods | pin | owener | price | weight | from | to | material | source |
| ---: | ----------: | ----------: | ------: | ---------------: | ---------: | --------: | -----: | -----: | ------: | ---: | -------: | ----------- |
| 152 | 2013-2014_1 | BS080003123 | 1311225 | Data Transfomers | 1200830216 | Jack Chan | 65 | 1.0 | England | USA | wood | 13-14-1.xls |
|
{
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/33515/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33515/timeline
| null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/33516
|
https://api.github.com/repos/pandas-dev/pandas
|
https://api.github.com/repos/pandas-dev/pandas/issues/33516/labels{/name}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33516/comments
|
https://api.github.com/repos/pandas-dev/pandas/issues/33516/events
|
https://github.com/pandas-dev/pandas/pull/33516
| 598,705,421
|
MDExOlB1bGxSZXF1ZXN0NDAyNDk4MjQ5
| 33,516
|
add a new feature sample() into groupby
|
{
"avatar_url": "https://avatars.githubusercontent.com/u/32339541?v=4",
"events_url": "https://api.github.com/users/echozzy629/events{/privacy}",
"followers_url": "https://api.github.com/users/echozzy629/followers",
"following_url": "https://api.github.com/users/echozzy629/following{/other_user}",
"gists_url": "https://api.github.com/users/echozzy629/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/echozzy629",
"id": 32339541,
"login": "echozzy629",
"node_id": "MDQ6VXNlcjMyMzM5NTQx",
"organizations_url": "https://api.github.com/users/echozzy629/orgs",
"received_events_url": "https://api.github.com/users/echozzy629/received_events",
"repos_url": "https://api.github.com/users/echozzy629/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/echozzy629/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/echozzy629/subscriptions",
"type": "User",
"url": "https://api.github.com/users/echozzy629"
}
|
[] |
closed
| false
| null |
[] | null | 4
| 2020-04-13T06:34:37Z
| 2020-05-13T18:33:52Z
| 2020-05-13T18:33:52Z
|
NONE
| null |
- [ ] closes #33175
- [ ] 0 tests added / 0 passed
- [ ] passes `black pandas`
- [ ] 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/33516/reactions"
}
|
https://api.github.com/repos/pandas-dev/pandas/issues/33516/timeline
| null | 0
|
{
"diff_url": "https://github.com/pandas-dev/pandas/pull/33516.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/33516",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/33516.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/33516"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.