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/39619 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39619/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39619/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39619/events | https://github.com/pandas-dev/pandas/pull/39619 | 802,534,014 | MDExOlB1bGxSZXF1ZXN0NTY4NjYxMDgz | 39,619 | BUG: Series[int].__setitem__(mask, td64_or_dt64) incorrect casting | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-05T23:12:01Z | 2021-02-07T17:01:42Z | 2021-02-07T16:58:58Z | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/39619/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39619/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39619.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39619",
"merged_at": "2021-02-07T16:58:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39619.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39619"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39620 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39620/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39620/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39620/events | https://github.com/pandas-dev/pandas/pull/39620 | 802,608,000 | MDExOlB1bGxSZXF1ZXN0NTY4NzE4OTI1 | 39,620 | REF: remove Float64Index get_loc, __contains__ | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-06T04:39:09Z | 2021-02-07T16:58:15Z | 2021-02-07T16:42:50Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39620/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39620/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39620.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39620",
"merged_at": "2021-02-07T16:42:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39620.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39620"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39621 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39621/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39621/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39621/events | https://github.com/pandas-dev/pandas/issues/39621 | 802,620,261 | MDU6SXNzdWU4MDI2MjAyNjE= | 39,621 | BUG: Calling pop() on a row inside apply() affects all subsequent applied rows | {
"avatar_url": "https://avatars.githubusercontent.com/u/78633684?v=4",
"events_url": "https://api.github.com/users/flogbert/events{/privacy}",
"followers_url": "https://api.github.com/users/flogbert/followers",
"following_url": "https://api.github.com/users/flogbert/following{/other_user}",
"gists_url": "https://api.github.com/users/flogbert/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/flogbert",
"id": 78633684,
"login": "flogbert",
"node_id": "MDQ6VXNlcjc4NjMzNjg0",
"organizations_url": "https://api.github.com/users/flogbert/orgs",
"received_events_url": "https://api.github.com/users/flogbert/received_events",
"repos_url": "https://api.github.com/users/flogbert/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/flogbert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/flogbert/subscriptions",
"type": "User",
"url": "https://api.github.com/users/flogbert"
} | [
{
"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": "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 | 5 | 2021-02-06T05:59:15Z | 2021-02-21T12:09:27Z | 2021-02-21T09:12: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
def f(s):
s.pop("A")
df = pd.DataFrame({"A": [1, 2, 3]})
df.apply(f, axis="columns")
```
```python-traceback
Traceback (most recent call last):
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3080, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'A'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 7765, in apply
return op.get_result()
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/apply.py", line 185, in get_result
return self.apply_standard()
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/apply.py", line 276, in apply_standard
results, res_index = self.apply_series_generator()
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/apply.py", line 290, in apply_series_generator
results[i] = self.f(v)
File "<stdin>", line 1, in f
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/series.py", line 4467, in pop
return super().pop(item=item)
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/generic.py", line 768, in pop
result = self[item]
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/series.py", line 824, in __getitem__
return self._get_value(key)
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/series.py", line 932, in _get_value
loc = self.index.get_loc(label)
File "/usr/local/google/home/rchristy/.local/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3082, in get_loc
raise KeyError(key) from err
KeyError: 'A'
```
#### Problem description
When the function being applied by `apply` pops a column from the row, the popped column is missing on subsequent calls of the function. This seems to stem from `apply` reusing the same `Series` instance across multiple invocations but failing to fully reset its state (i.e., the popped column stays popped).
This is an apparent regression from the behavior in v1.0.5 which returned a `DataFrame` with three rows. The timing of the regression suggests that it is possibly an unintended consequence of https://github.com/pandas-dev/pandas/pull/34909.
The problem is relatively straightforward to work around. Performing a shallow copy on the `Series` fixes it:
```
>>> def f(s):
... s.copy(deep=False).pop("A")
...
>>> df = pd.DataFrame({"A": [1, 2, 3]})
>>> df.apply(f, axis="columns")
0 None
1 None
2 None
dtype: object
```
#### Expected Output
The expected output is what is shown above with the workaround which is what v1.0.5 output.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.8.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.7.17-1rodete4-amd64
Version : #1 SMP Debian 5.7.17-1rodete4 (2020-10-01)
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.1
numpy : 1.19.4
pytz : 2020.5
dateutil : 2.8.1
pip : 20.1.1
setuptools : 51.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39621/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39621/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39622 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39622/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39622/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39622/events | https://github.com/pandas-dev/pandas/issues/39622 | 802,651,209 | MDU6SXNzdWU4MDI2NTEyMDk= | 39,622 | PERF: slowdown in groupby/resample mean() method | {
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "207de5",
"default": false,
"description": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] | open | false | null | [] | {
"closed_at": null,
"closed_issues": 47,
"created_at": "2021-10-16T17:29:59Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-11-28T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/91",
"id": 7259169,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91/labels",
"node_id": "MI_kwDOAA0YD84AbsQh",
"number": 91,
"open_issues": 23,
"state": "open",
"title": "1.3.5",
"updated_at": "2021-11-21T13:42:45Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/91"
} | 8 | 2021-02-06T09:05:47Z | 2021-10-16T19:06:30Z | null | MEMBER | null | See https://pandas.pydata.org/speed/pandas/#timeseries.ResampleSeries.time_resample?python=3.8&Cython=0.29.21&p-index='datetime'&p-freq='1D'&p-method='mean'&commits=812c3012-71a4cb69
It's from the period there were no benchmarks runs, so no clear indication which commit (range) would be responsible.
Reproducer:
```python
idx = pd.date_range(start="1/1/2000", end="1/1/2001", freq="T")
s = pd.Series(np.random.randn(len(idx)), index=idx)
%timeit s.resample("1D").mean()
```
Last release:
```
In [2]: %timeit s.resample("1D").mean()
4.45 ms ± 507 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [3]: pd.__version__
Out[3]: '1.2.1'
```
on master:
```
In [2]: %timeit s.resample("1D").mean()
6.33 ms ± 430 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
So around 50% slowdown.
And it seems somewhat specific to `mean` (eg I don't see a similar slowdown for eg `max`) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39622/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39622/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39623 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39623/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39623/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39623/events | https://github.com/pandas-dev/pandas/pull/39623 | 802,671,608 | MDExOlB1bGxSZXF1ZXN0NTY4NzY2NzM2 | 39,623 | BUG: Series.loc raising KeyError for Iterator indexer in case of setitem | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"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": "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"
} | 16 | 2021-02-06T10:55:16Z | 2021-04-16T08:13:47Z | 2021-04-16T00:46:28Z | MEMBER | null | - [x] closes #39614
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/39623/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39623/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39623.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39623",
"merged_at": "2021-04-16T00:46:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39623.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39623"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39624 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39624/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39624/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39624/events | https://github.com/pandas-dev/pandas/pull/39624 | 802,718,222 | MDExOlB1bGxSZXF1ZXN0NTY4ODAwODA5 | 39,624 | CI/TST: Disallow usage of pytest.xfail | {
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "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 | 2021-02-06T14:55:01Z | 2021-02-08T22:05:35Z | 2021-02-08T21:47:50Z | MEMBER | null | - [x] closes #38902
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39624/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39624/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39624.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39624",
"merged_at": "2021-02-08T21:47:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39624.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39624"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39625 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39625/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39625/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39625/events | https://github.com/pandas-dev/pandas/pull/39625 | 802,743,805 | MDExOlB1bGxSZXF1ZXN0NTY4ODE4Nzc4 | 39,625 | CLN: Use kwargs instead of kwds in apply functions | {
"avatar_url": "https://avatars.githubusercontent.com/u/45562402?v=4",
"events_url": "https://api.github.com/users/rhshadrach/events{/privacy}",
"followers_url": "https://api.github.com/users/rhshadrach/followers",
"following_url": "https://api.github.com/users/rhshadrach/following{/other_user}",
"gists_url": "https://api.github.com/users/rhshadrach/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rhshadrach",
"id": 45562402,
"login": "rhshadrach",
"node_id": "MDQ6VXNlcjQ1NTYyNDAy",
"organizations_url": "https://api.github.com/users/rhshadrach/orgs",
"received_events_url": "https://api.github.com/users/rhshadrach/received_events",
"repos_url": "https://api.github.com/users/rhshadrach/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rhshadrach/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rhshadrach/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rhshadrach"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 1 | 2021-02-06T17:05:01Z | 2021-02-07T16:43:05Z | 2021-02-07T16:41:20Z | MEMBER | null | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
I've applied the change here to the API function `apply` but I don't believe this is an API change as you cannot pass to `**kwds` (or `**kwargs`) by name. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39625/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39625/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39625.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39625",
"merged_at": "2021-02-07T16:41:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39625.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39625"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39626 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39626/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39626/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39626/events | https://github.com/pandas-dev/pandas/issues/39626 | 802,794,015 | MDU6SXNzdWU4MDI3OTQwMTU= | 39,626 | BUG: Styler HTML is unstructured | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"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": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-06T21:19:43Z | 2021-02-07T17:01:12Z | 2021-02-07T17:01:12Z | 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.
---
Currently the jinja2 template for `Styler` rendering HTML leaves unstructured spaces and newlines.
For example:
```
df = pd.DataFrame('', index=['a', 'b'], columns=['A', 'B'])
print(df.style.applymap(lambda x: 'color:red;', subset=pd.IndexSlice['a', ['B', 'A']])\
.set_table_styles([{'selector': 'th', 'props': 'color:green;att:bad;'}]).render())
```
```
<style type="text/css" >
#T_6b11f_ th {
color: green;
att: bad;
}#T_6b11f_row0_col0,#T_6b11f_row0_col1{
color: red;
}</style><table id="T_6b11f_" ><thead> <tr> <th class="blank level0" ></th> <th class="col_heading level0 col0" >A</th> <th class="col_heading level0 col1" >B</th> </tr></thead><tbody>
<tr>
<th id="T_6b11f_level0_row0" class="row_heading level0 row0" >a</th>
<td id="T_6b11f_row0_col0" class="data row0 col0" ></td>
<td id="T_6b11f_row0_col1" class="data row0 col1" ></td>
</tr>
<tr>
<th id="T_6b11f_level0_row1" class="row_heading level0 row1" >b</th>
<td id="T_6b11f_row1_col0" class="data row1 col0" ></td>
<td id="T_6b11f_row1_col1" class="data row1 col1" ></td>
</tr>
</tbody></table>
```
It would be more suitable for adopt a standard 2 space tabbed indent for new HTML elements ([w3 good code standard](https://www.w3schools.com/html/html5_syntax.asp)), to yield for example:
```
<style type="text/css">
#T_53778_ th {
color: green;
att: bad;
}
#T_53778_row0_col0, #T_53778_row0_col1 {
color: red;
}
</style>
<table id="T_53778_" >
<thead>
<tr>
<th class="blank level0" ></th>
<th class="col_heading level0 col0" >A</th>
<th class="col_heading level0 col1" >B</th>
</tr>
</thead>
<tbody>
<tr>
<th id="T_53778_level0_row0" class="row_heading level0 row0" >a</th>
<td id="T_53778_row0_col0" class="data row0 col0" ></td>
<td id="T_53778_row0_col1" class="data row0 col1" ></td>
</tr>
<tr>
<th id="T_53778_level0_row1" class="row_heading level0 row1" >b</th>
<td id="T_53778_row1_col0" class="data row1 col0" ></td>
<td id="T_53778_row1_col1" class="data row1 col1" ></td>
</tr>
</tbody>
</table>
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39626/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39626/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39627 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39627/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39627/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39627/events | https://github.com/pandas-dev/pandas/pull/39627 | 802,795,209 | MDExOlB1bGxSZXF1ZXN0NTY4ODU1Njkz | 39,627 | CLN: Styler HTML output adopt structured code standard | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "006b75",
"default": false,
"description": "read_html, to_html, Styler.apply, Styler.applymap",
"id": 57395487,
"name": "IO HTML",
"node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-06T21:26:34Z | 2021-02-07T18:38:09Z | 2021-02-07T17:01:12Z | CONTRIBUTOR | null | - [x] closes #39626
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [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/39627/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39627/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39627.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39627",
"merged_at": "2021-02-07T17:01:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39627.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39627"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39628 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39628/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39628/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39628/events | https://github.com/pandas-dev/pandas/issues/39628 | 802,803,858 | MDU6SXNzdWU4MDI4MDM4NTg= | 39,628 | ENH: vector methods for conversion from Period to its ordinal and back | {
"avatar_url": "https://avatars.githubusercontent.com/u/1254407?v=4",
"events_url": "https://api.github.com/users/JacekPliszka/events{/privacy}",
"followers_url": "https://api.github.com/users/JacekPliszka/followers",
"following_url": "https://api.github.com/users/JacekPliszka/following{/other_user}",
"gists_url": "https://api.github.com/users/JacekPliszka/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JacekPliszka",
"id": 1254407,
"login": "JacekPliszka",
"node_id": "MDQ6VXNlcjEyNTQ0MDc=",
"organizations_url": "https://api.github.com/users/JacekPliszka/orgs",
"received_events_url": "https://api.github.com/users/JacekPliszka/received_events",
"repos_url": "https://api.github.com/users/JacekPliszka/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JacekPliszka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JacekPliszka/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JacekPliszka"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 6 | 2021-02-06T22:18:56Z | 2021-02-07T15:34:09Z | 2021-02-07T15:34:09Z | NONE | null | #### Is your feature request related to a problem?
a) Currently to get Series of ordinal of Period Series I do
`s.apply(lambda x: x.ordinal)
b) Also to get back I do
`s.apply(lambda x: Period(ordinal=x, 'W-SAT'))
c) And last but not least:
s.astype(int).astype('period[W-SAT]') is different than s.
#### Describe the solution you'd like
a)
s.ordinal returns series with ordinals
b)
There is some easy method to create series of Periods from ordinals... like Period(s, 'W-SAT')
or s.astype('period[W-SAT]', from_ordinal=True)
c) last option in b) is kind of solution to c)
[this should provide a description of the feature request, e.g. "`DataFrame.foo` should get a new parameter `bar` that [...]", try to write a docstring for the desired feature]
#### API breaking implications
Mostly it won't but if .astype('period[W-SAT]') would use ordinals then yes as currently 2650 means year nor ordinal for this 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/39628/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39628/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39629 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39629/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39629/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39629/events | https://github.com/pandas-dev/pandas/issues/39629 | 802,857,222 | MDU6SXNzdWU4MDI4NTcyMjI= | 39,629 | BUG: MemoryError: Unable to allocate | {
"avatar_url": "https://avatars.githubusercontent.com/u/566650?v=4",
"events_url": "https://api.github.com/users/impredicative/events{/privacy}",
"followers_url": "https://api.github.com/users/impredicative/followers",
"following_url": "https://api.github.com/users/impredicative/following{/other_user}",
"gists_url": "https://api.github.com/users/impredicative/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/impredicative",
"id": 566650,
"login": "impredicative",
"node_id": "MDQ6VXNlcjU2NjY1MA==",
"organizations_url": "https://api.github.com/users/impredicative/orgs",
"received_events_url": "https://api.github.com/users/impredicative/received_events",
"repos_url": "https://api.github.com/users/impredicative/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/impredicative/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/impredicative/subscriptions",
"type": "User",
"url": "https://api.github.com/users/impredicative"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | true | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | 2021-02-07T04:27:56Z | 2021-02-07T16:34:47Z | 2021-02-07T16:34:39Z | NONE | null | - [ ] 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
Unfortunately this is not available since the errors occur exclusively over proprietary datasets which are very complex and large. It is not feasible to distill an example.
#### Problem description
I am seeing `MemoryError` exceptions all over the place on somewhat random lines. I am measuring the memory usage using `psutil` to ascertain that there is however vast amounts of free memory on the node. These exceptions are making Pandas completely unusable for me. It's struggling with allocating 22 MiB when there is over 2 TiB of free memory available.
```
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/frame.py"", line 7950, in merge"
return merge(
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/reshape/merge.py"", line 74, in merge"
op = _MergeOperation(
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/reshape/merge.py"", line 652, in __init__"
) = self._get_merge_keys()
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/reshape/merge.py"", line 1063, in _get_merge_keys"
self.right = self.right._drop_labels_or_levels(right_drop)
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/generic.py"", line 1637, in _drop_labels_or_levels"
dropped = self.copy()
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/generic.py"", line 5665, in copy"
data = self._mgr.copy(deep=deep)
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/internals/managers.py"", line 811, in copy"
" res = self.apply(""copy"", deep=deep)"
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/internals/managers.py"", line 409, in apply"
" applied = getattr(b, f)(**kwargs)"
" File ""/opt/conda/envs/condaenv/lib/python3.8/site-packages/pandas/core/internals/blocks.py"", line 679, in copy"
values = values.copy()
"MemoryError: Unable to allocate 22.1 MiB for an array with shape (1, 2896551) and data type object"
```
#### Expected Output
These exceptions are not supposed to happen given there is sufficient free memory. There are many prior issues noting this exception, which is suggestive of severe continued bugs in Pandas.
#### Output of ``pd.show_versions()``
This is not entirely available since it's running exclusively in the cloud, but the salient versions are:
```
python : 3.8.6.final.0
python-bits : 64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.2.1
numpy : 1.19.4
pytz : 2020.4
dateutil : 2.8.1
pip : 20.3.3
setuptools : 50.3.1.post20201107
Cython : None
pandas_datareader: None
numexpr : None
pyarrow : 3.0.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/39629/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39629/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39630 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39630/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39630/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39630/events | https://github.com/pandas-dev/pandas/issues/39630 | 802,911,079 | MDU6SXNzdWU4MDI5MTEwNzk= | 39,630 | ENH: Series.explode_range | {
"avatar_url": "https://avatars.githubusercontent.com/u/1254407?v=4",
"events_url": "https://api.github.com/users/JacekPliszka/events{/privacy}",
"followers_url": "https://api.github.com/users/JacekPliszka/followers",
"following_url": "https://api.github.com/users/JacekPliszka/following{/other_user}",
"gists_url": "https://api.github.com/users/JacekPliszka/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JacekPliszka",
"id": 1254407,
"login": "JacekPliszka",
"node_id": "MDQ6VXNlcjEyNTQ0MDc=",
"organizations_url": "https://api.github.com/users/JacekPliszka/orgs",
"received_events_url": "https://api.github.com/users/JacekPliszka/received_events",
"repos_url": "https://api.github.com/users/JacekPliszka/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JacekPliszka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JacekPliszka/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JacekPliszka"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | open | false | null | [] | null | 7 | 2021-02-07T09:44:19Z | 2021-08-15T17:30:48Z | null | NONE | null | #### Is your feature request related to a problem?
Yes. Often I have 2 columns: start and stop and what I want is instead single column with all values from start to stop. currently I can do it with explode but I need mostly int64 and for this is it is a bit slow.
#### Describe the solution you'd like
Series.explode_range method
```
def explode_range(
self, stop, left_shift=0, right_shift=0, ignore_index: bool = False
) -> "Series":
"""
Creates series from exploded ranges from this series to the ones given in stop
Currently works only in int64
left_shift and right_shift parameters are used to delay or hasten start - stop
.. versionadded:: 1.2.x
Parameters
----------
stop: Series providing stop point
left_shift: shift for start point - 0 includes it, 1 not
right_shift: shift for end point - 0 excludes it, 1 includes
ignore_index : bool, default False
If True, the resulting index will be labeled 0, 1, …, n - 1.
Returns
-------
Series
Exploded ranges to rows; index will be duplicated for these rows.
```
#### API breaking implications
This is new feature but for int64 only for now
#### Describe alternatives you've considered
Using explode
#### Additional context
I will provide a PR with sample code | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39630/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39630/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39631 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39631/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39631/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39631/events | https://github.com/pandas-dev/pandas/pull/39631 | 802,911,927 | MDExOlB1bGxSZXF1ZXN0NTY4OTQ0NjM2 | 39,631 | ENH: Series.explode_range minimal implementation - WIP | {
"avatar_url": "https://avatars.githubusercontent.com/u/1254407?v=4",
"events_url": "https://api.github.com/users/JacekPliszka/events{/privacy}",
"followers_url": "https://api.github.com/users/JacekPliszka/followers",
"following_url": "https://api.github.com/users/JacekPliszka/following{/other_user}",
"gists_url": "https://api.github.com/users/JacekPliszka/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/JacekPliszka",
"id": 1254407,
"login": "JacekPliszka",
"node_id": "MDQ6VXNlcjEyNTQ0MDc=",
"organizations_url": "https://api.github.com/users/JacekPliszka/orgs",
"received_events_url": "https://api.github.com/users/JacekPliszka/received_events",
"repos_url": "https://api.github.com/users/JacekPliszka/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/JacekPliszka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JacekPliszka/subscriptions",
"type": "User",
"url": "https://api.github.com/users/JacekPliszka"
} | [] | closed | false | null | [] | null | 11 | 2021-02-07T09:49:17Z | 2021-02-08T12:02:58Z | 2021-02-08T11:04:56Z | NONE | null | This is work in progress
- [ ] closes #39630
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39631/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39631/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39631.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39631",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39631.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39631"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39632 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39632/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39632/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39632/events | https://github.com/pandas-dev/pandas/pull/39632 | 802,926,241 | MDExOlB1bGxSZXF1ZXN0NTY4OTU0ODIz | 39,632 | CLN: redundant function in `Styler` | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 1 | 2021-02-07T11:05:48Z | 2021-02-16T18:24:09Z | 2021-02-07T17:12:20Z | CONTRIBUTOR | null | simplifies code by removing unnecessary function def. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39632/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39632/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39632.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39632",
"merged_at": "2021-02-07T17:12:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39632.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39632"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39633 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39633/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39633/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39633/events | https://github.com/pandas-dev/pandas/pull/39633 | 802,936,840 | MDExOlB1bGxSZXF1ZXN0NTY4OTYyNTk4 | 39,633 | Backport PR #39486: BUG: read_excel with openpyxl and missing dimension' | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T12:04:34Z | 2021-02-07T13:08:23Z | 2021-02-07T13:08:20Z | MEMBER | null | Backport PR #39486 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39633/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39633/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39633.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39633",
"merged_at": "2021-02-07T13:08:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39633.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39633"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39634 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39634/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39634/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39634/events | https://github.com/pandas-dev/pandas/pull/39634 | 802,940,171 | MDExOlB1bGxSZXF1ZXN0NTY4OTY1MTIx | 39,634 | Backport PR #39604: REGR: Rolling.count setting min_periods after call | {
"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": "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": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T12:22:37Z | 2021-02-07T13:14:37Z | 2021-02-07T13:14:34Z | MEMBER | null | Backport PR #39604 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39634/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39634/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39634.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39634",
"merged_at": "2021-02-07T13:14:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39634.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39634"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39635 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39635/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39635/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39635/events | https://github.com/pandas-dev/pandas/pull/39635 | 802,942,013 | MDExOlB1bGxSZXF1ZXN0NTY4OTY2NDkw | 39,635 | Backport PR #39551: CI: numpy deprecation warnings | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T12:33:16Z | 2021-02-07T13:32:04Z | 2021-02-07T13:32:00Z | MEMBER | null | Backport PR #39551 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39635/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39635/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39635.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39635",
"merged_at": "2021-02-07T13:32:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39635.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39635"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39636 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39636/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39636/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39636/events | https://github.com/pandas-dev/pandas/issues/39636 | 802,942,565 | MDU6SXNzdWU4MDI5NDI1NjU= | 39,636 | BUG: ValueError on ".transform" method applied to an empty DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/382887?v=4",
"events_url": "https://api.github.com/users/rennerocha/events{/privacy}",
"followers_url": "https://api.github.com/users/rennerocha/followers",
"following_url": "https://api.github.com/users/rennerocha/following{/other_user}",
"gists_url": "https://api.github.com/users/rennerocha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rennerocha",
"id": 382887,
"login": "rennerocha",
"node_id": "MDQ6VXNlcjM4Mjg4Nw==",
"organizations_url": "https://api.github.com/users/rennerocha/orgs",
"received_events_url": "https://api.github.com/users/rennerocha/received_events",
"repos_url": "https://api.github.com/users/rennerocha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rennerocha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rennerocha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rennerocha"
} | [
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 4 | 2021-02-07T12:36:14Z | 2021-02-07T16:22:38Z | 2021-02-07T16:22:38Z | 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
Output on version 1.1.5:
```python
In [5]: import pandas as pd
...: df = pd.DataFrame([], columns=["id", "field"])
...: df["id"].transform(lambda x: x + 10)
Out[5]: Series([], Name: id, dtype: object)
```
Output on version 1.2.x:
```python
In [4]: import pandas as pd
...: df = pd.DataFrame([], columns=["id", "field"])
...: df["id"].transform(lambda x: x + 10)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-d1e6cad57091> in <module>
----> 1 df["id"].transform(lambda x: x + 10)
~/.pyenv/versions/3.9.1/envs/odds-data-3.9.1/lib/python3.9/site-packages/pandas/core/series.py in transform(self, func, axis, *args, **kwargs)
3975 self, func: AggFuncType, axis: Axis = 0, *args, **kwargs
3976 ) -> FrameOrSeriesUnion:
-> 3977 return transform(self, func, axis, *args, **kwargs)
3978
3979 def apply(self, func, convert_dtype=True, args=(), **kwds):
~/.pyenv/versions/3.9.1/envs/odds-data-3.9.1/lib/python3.9/site-packages/pandas/core/aggregation.py in transform(obj, func, axis, *args, **kwargs)
458 # when the dtype is not appropriate
459 if isinstance(result, (ABCSeries, ABCDataFrame)) and result.empty:
--> 460 raise ValueError("Transform function failed")
461 if not isinstance(result, (ABCSeries, ABCDataFrame)) or not result.index.equals(
462 obj.index
ValueError: Transform function failed
```
#### Problem description
Applying `.transform` on an empty DataFrame raises a `ValueError` on version 1.2.x. This is a change on the behavior of 1.1.5 version that returns the same empty DataFrame (as `.apply` is still doing).
The change that added this error apparently is related to this commit https://github.com/pandas-dev/pandas/pull/35964/commits/7b6ab94720024d6696b19867f5f8f59f79587ff0
#### Expected Output
```python
In [5]: import pandas as pd
...: df = pd.DataFrame([], columns=["id", "field"])
...: df["id"].transform(lambda x: x + 10)
Out[5]: Series([], Name: id, dtype: object)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.9.1.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-65-generic
Version : #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.1
numpy : 1.20.0
pytz : 2021.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 49.2.1
Cython : None
pytest : 6.2.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : 1.3.23
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39636/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39636/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39637 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39637/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39637/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39637/events | https://github.com/pandas-dev/pandas/pull/39637 | 802,943,436 | MDExOlB1bGxSZXF1ZXN0NTY4OTY3NTE1 | 39,637 | Revert "Fixed comment for pandas.unique" | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 4 | 2021-02-07T12:41:00Z | 2021-02-07T16:28:05Z | 2021-02-07T16:25:04Z | MEMBER | null | Reverts pandas-dev/pandas#39557 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39637/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39637/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39637.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39637",
"merged_at": "2021-02-07T16:25:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39637.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39637"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39638 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39638/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39638/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39638/events | https://github.com/pandas-dev/pandas/pull/39638 | 802,944,359 | MDExOlB1bGxSZXF1ZXN0NTY4OTY4MjAx | 39,638 | API: transform behaves differently with 'ffill' on DataFrameGroupBy and SeriesGroupBy | {
"avatar_url": "https://avatars.githubusercontent.com/u/24451137?v=4",
"events_url": "https://api.github.com/users/ftrihardjo/events{/privacy}",
"followers_url": "https://api.github.com/users/ftrihardjo/followers",
"following_url": "https://api.github.com/users/ftrihardjo/following{/other_user}",
"gists_url": "https://api.github.com/users/ftrihardjo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ftrihardjo",
"id": 24451137,
"login": "ftrihardjo",
"node_id": "MDQ6VXNlcjI0NDUxMTM3",
"organizations_url": "https://api.github.com/users/ftrihardjo/orgs",
"received_events_url": "https://api.github.com/users/ftrihardjo/received_events",
"repos_url": "https://api.github.com/users/ftrihardjo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ftrihardjo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ftrihardjo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ftrihardjo"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-07T12:46:04Z | 2021-02-15T22:34:51Z | 2021-02-15T22:34:48Z | CONTRIBUTOR | null | - [ ] closes #24211
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39638/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39638/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39638.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39638",
"merged_at": "2021-02-15T22:34:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39638.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39638"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39639 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39639/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39639/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39639/events | https://github.com/pandas-dev/pandas/pull/39639 | 802,946,236 | MDExOlB1bGxSZXF1ZXN0NTY4OTY5NTY0 | 39,639 | REGR: fix transform of empty DataFrame/Series | {
"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": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 5 | 2021-02-07T12:55:47Z | 2021-02-07T19:08:27Z | 2021-02-07T16:22:38Z | MEMBER | null | Closes #39636 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39639/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39639/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39639.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39639",
"merged_at": "2021-02-07T16:22:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39639.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39639"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39640 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39640/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39640/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39640/events | https://github.com/pandas-dev/pandas/issues/39640 | 802,947,062 | MDU6SXNzdWU4MDI5NDcwNjI= | 39,640 | DOC: Series.pad has template variables that are not replaced | {
"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": "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/23036581?v=4",
"events_url": "https://api.github.com/users/dylanp-git/events{/privacy}",
"followers_url": "https://api.github.com/users/dylanp-git/followers",
"following_url": "https://api.github.com/users/dylanp-git/following{/other_user}",
"gists_url": "https://api.github.com/users/dylanp-git/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dylanp-git",
"id": 23036581,
"login": "dylanp-git",
"node_id": "MDQ6VXNlcjIzMDM2NTgx",
"organizations_url": "https://api.github.com/users/dylanp-git/orgs",
"received_events_url": "https://api.github.com/users/dylanp-git/received_events",
"repos_url": "https://api.github.com/users/dylanp-git/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dylanp-git/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dylanp-git/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dylanp-git"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/23036581?v=4",
"events_url": "https://api.github.com/users/dylanp-git/events{/privacy}",
"followers_url": "https://api.github.com/users/dylanp-git/followers",
"following_url": "https://api.github.com/users/dylanp-git/following{/other_user}",
"gists_url": "https://api.github.com/users/dylanp-git/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dylanp-git",
"id": 23036581,
"login": "dylanp-git",
"node_id": "MDQ6VXNlcjIzMDM2NTgx",
"organizations_url": "https://api.github.com/users/dylanp-git/orgs",
"received_events_url": "https://api.github.com/users/dylanp-git/received_events",
"repos_url": "https://api.github.com/users/dylanp-git/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dylanp-git/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dylanp-git/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dylanp-git"
}
] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 9 | 2021-02-07T12:59:57Z | 2021-02-24T13:36:09Z | 2021-02-24T13:36:09Z | MEMBER | null | When looking at the docstring of `pad`:
```
In [21]: pd.Series.pad?
Signature:
pd.Series.pad(
self: 'FrameOrSeries',
axis=None,
inplace: 'bool_t' = False,
limit=None,
downcast=None,
) -> 'Optional[FrameOrSeries]'
Docstring:
Synonym for :meth:`DataFrame.fillna` with ``method='ffill'``.
Returns
-------
{klass} or None
Object with missing values filled or None if ``inplace=True``.
```
Or on the online version: https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.pad.html
There is a ``{klass}`` that has not been properly substituted. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39640/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39640/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39641 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39641/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39641/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39641/events | https://github.com/pandas-dev/pandas/pull/39641 | 802,954,846 | MDExOlB1bGxSZXF1ZXN0NTY4OTc1Nzgw | 39,641 | Revert "Backport PR #39526 on branch 1.2.x (CI: pin numpy for CI / Checks github action)" | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "e11d21",
"default": false,
"description": "Blocking issue or pull request for an upcoming release",
"id": 77550281,
"name": "Blocker",
"node_id": "MDU6TGFiZWw3NzU1MDI4MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Blocker"
},
{
"color": "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": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 1 | 2021-02-07T13:39:01Z | 2021-02-08T18:07:45Z | 2021-02-08T18:07:41Z | MEMBER | null | Reverts pandas-dev/pandas#39529
will be merging this just prior to tagging 1.2.2 see https://github.com/pandas-dev/pandas/issues/39513#issuecomment-771006563 and then re-appling after release so that ci on 12.x is green | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39641/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39641/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39641.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39641",
"merged_at": "2021-02-08T18:07:41Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39641.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39641"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39642 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39642/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39642/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39642/events | https://github.com/pandas-dev/pandas/pull/39642 | 802,955,250 | MDExOlB1bGxSZXF1ZXN0NTY4OTc2MDY4 | 39,642 | CLN: reorganise vars in `Styler` init | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"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": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "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 | 2021-02-07T13:41:14Z | 2021-02-10T08:36:18Z | 2021-02-08T13:50:14Z | CONTRIBUTOR | null | Trying to clean up Styler class grouping and ordering variables and adding typing where necessary. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39642/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39642/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39642.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39642",
"merged_at": "2021-02-08T13:50:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39642.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39642"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39643 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39643/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39643/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39643/events | https://github.com/pandas-dev/pandas/pull/39643 | 802,967,275 | MDExOlB1bGxSZXF1ZXN0NTY4OTg0NjQx | 39,643 | DOC: Fixed comment for pandas.unique (#39557) | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-07T14:38:26Z | 2021-02-07T16:36:05Z | 2021-02-07T16:35:23Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/pull/39557#issuecomment-774667542 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39643/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39643/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39643.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39643",
"merged_at": "2021-02-07T16:35:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39643.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39643"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39644 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39644/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39644/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39644/events | https://github.com/pandas-dev/pandas/pull/39644 | 802,976,543 | MDExOlB1bGxSZXF1ZXN0NTY4OTkxMDUz | 39,644 | fix #39556 (infer_freq not working with freq="H" and DST | {
"avatar_url": "https://avatars.githubusercontent.com/u/1304950?v=4",
"events_url": "https://api.github.com/users/sdementen/events{/privacy}",
"followers_url": "https://api.github.com/users/sdementen/followers",
"following_url": "https://api.github.com/users/sdementen/following{/other_user}",
"gists_url": "https://api.github.com/users/sdementen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sdementen",
"id": 1304950,
"login": "sdementen",
"node_id": "MDQ6VXNlcjEzMDQ5NTA=",
"organizations_url": "https://api.github.com/users/sdementen/orgs",
"received_events_url": "https://api.github.com/users/sdementen/received_events",
"repos_url": "https://api.github.com/users/sdementen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sdementen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sdementen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sdementen"
} | [
{
"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": "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": "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"
} | 12 | 2021-02-07T15:18:22Z | 2021-02-23T02:25:56Z | 2021-02-23T02:25:47Z | CONTRIBUTOR | null | - check that the delta are unique before checking if they are day multiples
- add test with freq="H" that raises the bug
- [x] closes #39556
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry => not sure where to enter 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/39644/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39644/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39644.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39644",
"merged_at": "2021-02-23T02:25:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39644.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39644"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39645 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39645/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39645/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39645/events | https://github.com/pandas-dev/pandas/pull/39645 | 802,992,051 | MDExOlB1bGxSZXF1ZXN0NTY5MDAxOTU4 | 39,645 | Backport PR #39374 on branch 1.2.x (DOC: Clarify behavior for Series with dict-like data and index) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T16:26:47Z | 2021-02-07T18:04:27Z | 2021-02-07T18:04:27Z | NONE | null | Backport PR #39374: DOC: Clarify behavior for Series with dict-like data and index | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39645/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39645/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39645.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39645",
"merged_at": "2021-02-07T18:04:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39645.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39645"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39646 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39646/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39646/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39646/events | https://github.com/pandas-dev/pandas/pull/39646 | 802,999,657 | MDExOlB1bGxSZXF1ZXN0NTY5MDA3Mjcw | 39,646 | DOC: typo in 1.2.2 whatsnew | {
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
} | [
{
"color": "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": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 1 | 2021-02-07T17:00:17Z | 2021-02-07T20:16:59Z | 2021-02-07T20:16:53Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39646/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39646/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39646.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39646",
"merged_at": "2021-02-07T20:16:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39646.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39646"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39647 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39647/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39647/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39647/events | https://github.com/pandas-dev/pandas/pull/39647 | 803,001,008 | MDExOlB1bGxSZXF1ZXN0NTY5MDA4MjY0 | 39,647 | add default zip file name in dataframe to_csv when use 'infer' + 'zip' method | {
"avatar_url": "https://avatars.githubusercontent.com/u/15418465?v=4",
"events_url": "https://api.github.com/users/HQDragon/events{/privacy}",
"followers_url": "https://api.github.com/users/HQDragon/followers",
"following_url": "https://api.github.com/users/HQDragon/following{/other_user}",
"gists_url": "https://api.github.com/users/HQDragon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HQDragon",
"id": 15418465,
"login": "HQDragon",
"node_id": "MDQ6VXNlcjE1NDE4NDY1",
"organizations_url": "https://api.github.com/users/HQDragon/orgs",
"received_events_url": "https://api.github.com/users/HQDragon/received_events",
"repos_url": "https://api.github.com/users/HQDragon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HQDragon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HQDragon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HQDragon"
} | [] | closed | false | null | [] | null | 3 | 2021-02-07T17:06:04Z | 2021-02-08T01:54:51Z | 2021-02-08T01:34:31Z | NONE | null | fix #39465
copy some code from gzip ,now df.to_csv('myfile.csv.zip') works like df.to_csv('myfile.csv.gz')
- [ ] closes #39465
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39647/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39647/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39647.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39647",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39647.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39647"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39648 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39648/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39648/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39648/events | https://github.com/pandas-dev/pandas/pull/39648 | 803,001,111 | MDExOlB1bGxSZXF1ZXN0NTY5MDA4MzM3 | 39,648 | DOC: fix an incomplete sentence | {
"avatar_url": "https://avatars.githubusercontent.com/u/23830955?v=4",
"events_url": "https://api.github.com/users/partev/events{/privacy}",
"followers_url": "https://api.github.com/users/partev/followers",
"following_url": "https://api.github.com/users/partev/following{/other_user}",
"gists_url": "https://api.github.com/users/partev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/partev",
"id": 23830955,
"login": "partev",
"node_id": "MDQ6VXNlcjIzODMwOTU1",
"organizations_url": "https://api.github.com/users/partev/orgs",
"received_events_url": "https://api.github.com/users/partev/received_events",
"repos_url": "https://api.github.com/users/partev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/partev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/partev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/partev"
} | [
{
"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": "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": "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"
} | 1 | 2021-02-07T17:06:30Z | 2021-02-08T22:52:16Z | 2021-02-08T21:47:22Z | CONTRIBUTOR | null | "We will address array-based indexing like s[[4, 3, 1]] in section." -> "We will address array-based indexing like s[[4, 3, 1]] in section on indexing."
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39648/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39648/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39648.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39648",
"merged_at": "2021-02-08T21:47:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39648.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39648"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39649 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39649/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39649/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39649/events | https://github.com/pandas-dev/pandas/issues/39649 | 803,005,005 | MDU6SXNzdWU4MDMwMDUwMDU= | 39,649 | BUG: Categorical.from_codes casts nullable int categories to object | {
"avatar_url": "https://avatars.githubusercontent.com/u/48889395?v=4",
"events_url": "https://api.github.com/users/arw2019/events{/privacy}",
"followers_url": "https://api.github.com/users/arw2019/followers",
"following_url": "https://api.github.com/users/arw2019/following{/other_user}",
"gists_url": "https://api.github.com/users/arw2019/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/arw2019",
"id": 48889395,
"login": "arw2019",
"node_id": "MDQ6VXNlcjQ4ODg5Mzk1",
"organizations_url": "https://api.github.com/users/arw2019/orgs",
"received_events_url": "https://api.github.com/users/arw2019/received_events",
"repos_url": "https://api.github.com/users/arw2019/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/arw2019/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/arw2019/subscriptions",
"type": "User",
"url": "https://api.github.com/users/arw2019"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"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": "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": "8cc645",
"default": false,
"description": "Related to pd.NA and nullable extension arrays",
"id": 1817503692,
"name": "NA - MaskedArrays",
"node_id": "MDU6TGFiZWwxODE3NTAzNjky",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/NA%20-%20MaskedArrays"
}
] | open | false | null | [] | null | 2 | 2021-02-07T17:23:52Z | 2021-08-15T17:31:56Z | null | MEMBER | null | For `int64` the construction yields:
``` python
In [18]: import numpy as np
...: import pandas as pd
...: import pandas._testing as tm
...:
...: integer_dtype="int64"
...:
...: cats = pd.array(range(5), dtype=integer_dtype)
...: codes = np.random.randint(5, size=3)
...: categorical_dtype = pd.CategoricalDtype(cats)
...: arr = pd.Categorical.from_codes(codes, dtype=categorical_dtype)
...: arr
Out[18]:
[0, 2, 0]
Categories (5, int64): [0, 1, 2, 3, 4]
```
whereas for nullable int categories:
```
In [19]: import numpy as np
...: import pandas as pd
...: import pandas._testing as tm
...:
...: integer_dtype="Int64"
...:
...: cats = pd.array(range(5), dtype=integer_dtype)
...: codes = np.random.randint(5, size=3)
...: categorical_dtype = pd.CategoricalDtype(cats)
...: arr = pd.Categorical.from_codes(codes, dtype=categorical_dtype)
...: arr
Out[19]:
[3, 3, 4]
Categories (5, object): [0, 1, 2, 3, 4]
```
I expect instead in the nullable int case:
```
Out[19]:
[3, 3, 4]
Categories (5, Int64): [0, 1, 2, 3, 4]
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39649/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39649/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39650 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39650/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39650/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39650/events | https://github.com/pandas-dev/pandas/pull/39650 | 803,010,423 | MDExOlB1bGxSZXF1ZXN0NTY5MDE1MDY5 | 39,650 | BUG: equals/assert_numpy_array_equals with non-singleton NAs | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-07T17:48:47Z | 2021-02-10T20:36:30Z | 2021-02-10T20:35:05Z | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39650/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39650/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39650.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39650",
"merged_at": "2021-02-10T20:35:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39650.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39650"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39651 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39651/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39651/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39651/events | https://github.com/pandas-dev/pandas/pull/39651 | 803,012,257 | MDExOlB1bGxSZXF1ZXN0NTY5MDE2NTAw | 39,651 | REF: implement Index._view, Index._rename | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-07T17:55:19Z | 2021-02-08T19:50:59Z | 2021-02-08T19:36:43Z | MEMBER | null | take these 2 special cases out of _shallow_copy. We can get rid of some more _shallow_copy usages following #38140 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39651/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39651/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39651.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39651",
"merged_at": "2021-02-08T19:36:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39651.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39651"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39652 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39652/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39652/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39652/events | https://github.com/pandas-dev/pandas/pull/39652 | 803,014,206 | MDExOlB1bGxSZXF1ZXN0NTY5MDE4MjQw | 39,652 | Backport PR #39586: REG: read_excel with engine specified raises on non-path/non-buffer | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T17:58:43Z | 2021-02-08T06:43:22Z | 2021-02-08T06:43:13Z | MEMBER | null | Backport PR #39586 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39652/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39652/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39652.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39652",
"merged_at": "2021-02-08T06:43:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39652.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39652"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39653 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39653/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39653/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39653/events | https://github.com/pandas-dev/pandas/pull/39653 | 803,017,368 | MDExOlB1bGxSZXF1ZXN0NTY5MDIwNTYx | 39,653 | Fixed comment for pandas.unique | {
"avatar_url": "https://avatars.githubusercontent.com/u/1339818?v=4",
"events_url": "https://api.github.com/users/Remit/events{/privacy}",
"followers_url": "https://api.github.com/users/Remit/followers",
"following_url": "https://api.github.com/users/Remit/following{/other_user}",
"gists_url": "https://api.github.com/users/Remit/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Remit",
"id": 1339818,
"login": "Remit",
"node_id": "MDQ6VXNlcjEzMzk4MTg=",
"organizations_url": "https://api.github.com/users/Remit/orgs",
"received_events_url": "https://api.github.com/users/Remit/received_events",
"repos_url": "https://api.github.com/users/Remit/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Remit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Remit/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Remit"
} | [] | closed | false | null | [] | null | 1 | 2021-02-07T18:13:49Z | 2021-02-07T18:31:48Z | 2021-02-07T18:31:48Z | CONTRIBUTOR | null | Was merged in 1.2.x as #39557 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39653/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39653/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39653.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39653",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39653.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39653"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39654 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39654/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39654/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39654/events | https://github.com/pandas-dev/pandas/pull/39654 | 803,020,784 | MDExOlB1bGxSZXF1ZXN0NTY5MDIzMDE3 | 39,654 | Backport PR #39639: REGR: fix transform of empty DataFrame/Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "fbca04",
"default": false,
"description": "Apply, Aggregate, Transform",
"id": 697792067,
"name": "Apply",
"node_id": "MDU6TGFiZWw2OTc3OTIwNjc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Apply"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T18:29:53Z | 2021-02-07T22:54:02Z | 2021-02-07T22:53:58Z | MEMBER | null | Backport PR #39639 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39654/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39654/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39654.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39654",
"merged_at": "2021-02-07T22:53:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39654.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39654"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39655 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39655/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39655/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39655/events | https://github.com/pandas-dev/pandas/pull/39655 | 803,041,314 | MDExOlB1bGxSZXF1ZXN0NTY5MDM4Mzc4 | 39,655 | REGR: fix case all-NaN/numeric object column in groupby | {
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 14 | 2021-02-07T19:56:10Z | 2021-02-08T14:47:13Z | 2021-02-08T13:42:32Z | MEMBER | null | Fixes #39329
This basically reverts #35841, although the code itself has changed quite a bit since then, so it's simpler here as the original PR² (not dealing with blocks anymore)
The original code comment that was removed in #35841 *"We've split an object block!"* was correct, as it can actually happen in those example cases. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39655/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39655/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39655.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39655",
"merged_at": "2021-02-08T13:42:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39655.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39655"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39656 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39656/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39656/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39656/events | https://github.com/pandas-dev/pandas/pull/39656 | 803,044,064 | MDExOlB1bGxSZXF1ZXN0NTY5MDQwNjA3 | 39,656 | BUG: Series[dt64tz].__setitem__(mask, different_tz) raises | {
"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"
},
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-07T20:05:08Z | 2021-02-10T23:16:06Z | 2021-02-10T23:13:01Z | MEMBER | null | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
sits on top of #39650
after this we'll be ready to cleanup/de-duplicate some of the putmask/where methods | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39656/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39656/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39656.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39656",
"merged_at": "2021-02-10T23:13:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39656.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39656"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39657 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39657/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39657/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39657/events | https://github.com/pandas-dev/pandas/pull/39657 | 803,046,638 | MDExOlB1bGxSZXF1ZXN0NTY5MDQyNDg1 | 39,657 | Backport PR #39646 on branch 1.2.x (DOC: typo in 1.2.2 whatsnew) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T20:17:29Z | 2021-02-07T20:18:30Z | 2021-02-07T20:18:30Z | NONE | null | Backport PR #39646: DOC: typo in 1.2.2 whatsnew | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39657/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39657/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39657.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39657",
"merged_at": "2021-02-07T20:18:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39657.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39657"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39658 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39658/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39658/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39658/events | https://github.com/pandas-dev/pandas/pull/39658 | 803,058,751 | MDExOlB1bGxSZXF1ZXN0NTY5MDUxMzk0 | 39,658 | DOC: pin sphinx theme to avoid mobile dropdown bug | {
"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": "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": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 3 | 2021-02-07T21:07:15Z | 2021-02-08T13:46:59Z | 2021-02-08T13:44:03Z | MEMBER | null | In the latest master version of the pydata-sphinx-theme, there is a bug in the menu dropdown on mobile mode (https://github.com/pydata/pydata-sphinx-theme/issues/304), and since this will probably not be fixed by tomorrow when releasing 1.2.2, I am pinning it here to a few commits earlier to avoid this specific bug (but still using the latest version to have the same looks as the current docs, since we are using a few features that are not yet in the latest stable release). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39658/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39658/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39658.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39658",
"merged_at": "2021-02-08T13:44:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39658.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39658"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39659 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39659/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39659/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39659/events | https://github.com/pandas-dev/pandas/pull/39659 | 803,070,348 | MDExOlB1bGxSZXF1ZXN0NTY5MDYwMjIy | 39,659 | Backport PR #39605: REGR: appending to existing excel file created corrupt files | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-07T21:56:29Z | 2021-02-08T06:44:30Z | 2021-02-08T06:44:22Z | MEMBER | null | Backport PR #39605 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39659/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39659/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39659.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39659",
"merged_at": "2021-02-08T06:44:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39659.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39659"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39660 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39660/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39660/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39660/events | https://github.com/pandas-dev/pandas/pull/39660 | 803,085,310 | MDExOlB1bGxSZXF1ZXN0NTY5MDcxMzEx | 39,660 | CLN: Styler Types for CSS variables on `ctx` object. | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"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"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 7 | 2021-02-07T23:12:16Z | 2021-07-07T10:01:22Z | 2021-02-19T01:10:21Z | CONTRIBUTOR | null | - [x] tests changed / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
`Styler` currently has three formats for keeping track of CSS:
A) `CSSList type: [('a1', 'v1'), ('a2', 'v2')]`
B) `List[str] type: ['a1:v1', 'a2:v2']`
C) `Str type: 'a1:v1; a2:v2;'`
`C` is only ever used as user input format, and now, as of #39564 `C` can be used in *all* cases for user input (albeit `A` remains available for backwards compatibility in `.set_table_styles()`)
`A` remains the most algorithimcally accessible, and is what `C` is already converted to in some cases for internal variables.
`B` is only ever used by one internal variable. The `ctx` object is updated with `B` type converted from `C`. For final render this `B` type is converted to `A` type for looping. In the process, white space is poorly handled.
This PR eliminates `B` type and converts `C` directly to `A`.
Tests using the `ctx` object needed updating for new type.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39660/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39660/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39660.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39660",
"merged_at": "2021-02-19T01:10:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39660.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39660"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39661 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39661/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39661/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39661/events | https://github.com/pandas-dev/pandas/pull/39661 | 803,094,768 | MDExOlB1bGxSZXF1ZXN0NTY5MDc4Mjgz | 39,661 | TST/REF: collect indexing tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-08T00:02:04Z | 2021-02-08T15:04:51Z | 2021-02-08T13:48:00Z | MEMBER | null | and assorted cleanups | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39661/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39661/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39661.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39661",
"merged_at": "2021-02-08T13:48:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39661.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39661"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39662 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39662/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39662/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39662/events | https://github.com/pandas-dev/pandas/pull/39662 | 803,124,259 | MDExOlB1bGxSZXF1ZXN0NTY5MTAxNjM1 | 39,662 | Enhancement dataframe to csv use zip method | {
"avatar_url": "https://avatars.githubusercontent.com/u/15418465?v=4",
"events_url": "https://api.github.com/users/HQDragon/events{/privacy}",
"followers_url": "https://api.github.com/users/HQDragon/followers",
"following_url": "https://api.github.com/users/HQDragon/following{/other_user}",
"gists_url": "https://api.github.com/users/HQDragon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HQDragon",
"id": 15418465,
"login": "HQDragon",
"node_id": "MDQ6VXNlcjE1NDE4NDY1",
"organizations_url": "https://api.github.com/users/HQDragon/orgs",
"received_events_url": "https://api.github.com/users/HQDragon/received_events",
"repos_url": "https://api.github.com/users/HQDragon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HQDragon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HQDragon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HQDragon"
} | [] | closed | false | null | [] | null | 1 | 2021-02-08T01:52:36Z | 2021-03-12T00:46:31Z | 2021-03-11T09:00:07Z | NONE | null | Enhancement dataframe to csv use zip method,now df.to_csv('myfile.csv.zip') works like df.to_csv('myfile.csv.gz'), generate a zip file with a myfile.csv as content
- [ ] closes #39465
- [ ] tests added / passed,simply test
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
## test code
>> import pandas as pd
a=pd.DataFrame({'a':[1,2,3,4,5],'b':[4,5,6,7,8]})
a.to_csv(r'z:/myfile.csv.zip')
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39662/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39662/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39662.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39662",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39662.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39662"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39663 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39663/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39663/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39663/events | https://github.com/pandas-dev/pandas/pull/39663 | 803,151,724 | MDExOlB1bGxSZXF1ZXN0NTY5MTIzMjA4 | 39,663 | TST: split/collect/parametrize tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-08T03:22:52Z | 2021-02-08T15:04:07Z | 2021-02-08T13:49:06Z | 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/39663/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39663/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39663.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39663",
"merged_at": "2021-02-08T13:49:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39663.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39663"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39664 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39664/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39664/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39664/events | https://github.com/pandas-dev/pandas/pull/39664 | 803,245,344 | MDExOlB1bGxSZXF1ZXN0NTY5MjAzOTg2 | 39,664 | PERF: EWMGroupby | {
"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": "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": "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": "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 | 2021-02-08T06:37:32Z | 2021-02-08T21:06:24Z | 2021-02-08T21:00:52Z | MEMBER | null | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
```
(pandas-dev) asv_bench % asv continuous -f 1.1 upstream/master HEAD -b rolling.GroupbyEWM
before after ratio
[508b9f98] [c4340436]
<master> <ref/ewm_groupby>
- 22.1±4ms 2.57±0.3ms 0.12 rolling.GroupbyEWM.time_groupby_mean('cython')
SOME BENCHMARKS HAVE CHANGED SIGNIFICANTLY.
PERFORMANCE INCREASED.
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39664/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39664/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39664.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39664",
"merged_at": "2021-02-08T21:00:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39664.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39664"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39665 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39665/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39665/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39665/events | https://github.com/pandas-dev/pandas/pull/39665 | 803,257,815 | MDExOlB1bGxSZXF1ZXN0NTY5MjE1MDY2 | 39,665 | Run database | {
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
} | [] | closed | false | null | [] | null | 0 | 2021-02-08T06:55:39Z | 2021-02-08T06:57:46Z | 2021-02-08T06:56:10Z | MEMBER | null | - [ ] closes #39550
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39665/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39665/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39665.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39665",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39665.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39665"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39666 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39666/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39666/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39666/events | https://github.com/pandas-dev/pandas/pull/39666 | 803,261,283 | MDExOlB1bGxSZXF1ZXN0NTY5MjE4MTYw | 39,666 | CI: run database tests only #39550 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 5 | 2021-02-08T07:00:31Z | 2021-03-21T03:45:52Z | 2021-03-19T14:22:49Z | MEMBER | null | - [x] closes #39550
- [x] closes #39758 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39666/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39666/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39666.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39666",
"merged_at": "2021-03-19T14:22:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39666.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39666"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39667 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39667/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39667/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39667/events | https://github.com/pandas-dev/pandas/pull/39667 | 803,276,156 | MDExOlB1bGxSZXF1ZXN0NTY5MjMxMTU3 | 39,667 | CLN: minor error msg fix | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"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": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-08T07:21:03Z | 2021-02-11T18:07:21Z | 2021-02-11T13:47:33Z | CONTRIBUTOR | null | - [x] tests 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/39667/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39667/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39667.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39667",
"merged_at": "2021-02-11T13:47:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39667.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39667"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39668 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39668/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39668/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39668/events | https://github.com/pandas-dev/pandas/pull/39668 | 803,278,743 | MDExOlB1bGxSZXF1ZXN0NTY5MjMzNDI0 | 39,668 | ⬆️ UPGRADE: Autoupdate pre-commit config | {
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/github-actions",
"id": 41898282,
"login": "github-actions[bot]",
"node_id": "MDM6Qm90NDE4OTgyODI=",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/github-actions%5Bbot%5D"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-08T07:24:47Z | 2021-02-08T10:02:51Z | 2021-02-08T10:02:45Z | CONTRIBUTOR | null | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/bin
```
</details>
<details>
<summary><em>pip install pre-commit</em></summary>
```Shell
Collecting pre-commit
Downloading pre_commit-2.10.1-py2.py3-none-any.whl (185 kB)
Collecting identify>=1.0.0
Downloading identify-1.5.13-py2.py3-none-any.whl (97 kB)
Collecting virtualenv>=20.0.8
Downloading virtualenv-20.4.2-py2.py3-none-any.whl (7.2 MB)
Collecting cfgv>=2.0.0
Using cached cfgv-3.2.0-py2.py3-none-any.whl (7.3 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting pyyaml>=5.1
Downloading PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Collecting nodeenv>=0.11.1
Using cached nodeenv-1.5.0-py2.py3-none-any.whl (21 kB)
Collecting filelock<4,>=3.0.0
Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting appdirs<2,>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting six<2,>=1.9.0
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting distlib<1,>=0.3.1
Using cached distlib-0.3.1-py2.py3-none-any.whl (335 kB)
Installing collected packages: six, filelock, distlib, appdirs, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
Successfully installed appdirs-1.4.4 cfgv-3.2.0 distlib-0.3.1 filelock-3.0.12 identify-1.5.13 nodeenv-1.5.0 pre-commit-2.10.1 pyyaml-5.4.1 six-1.15.0 toml-0.10.2 virtualenv-20.4.2
```
</details>
<details>
<summary><em>pre-commit autoupdate || (exit 0);</em></summary>
```Shell
Updating https://github.com/python/black ... already up to date.
Updating https://gitlab.com/pycqa/flake8 ... already up to date.
Updating https://github.com/PyCQA/isort ... [INFO] Initializing environment for https://github.com/PyCQA/isort.
already up to date.
Updating https://github.com/asottile/pyupgrade ... [INFO] Initializing environment for https://github.com/asottile/pyupgrade.
updating v2.9.0 -> v2.10.0.
Updating https://github.com/pre-commit/pygrep-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks.
updating v1.7.0 -> v1.7.1.
Updating https://github.com/asottile/yesqa ... already up to date.
Updating https://github.com/pre-commit/pre-commit-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
already up to date.
Updating https://github.com/codespell-project/codespell ... [INFO] Initializing environment for https://github.com/codespell-project/codespell.
already up to date.
Updating https://github.com/MarcoGorelli/no-string-hints ... [INFO] Initializing environment for https://github.com/MarcoGorelli/no-string-hints.
already up to date.
Updating https://github.com/MarcoGorelli/abs-imports ... [INFO] Initializing environment for https://github.com/MarcoGorelli/abs-imports.
already up to date.
```
</details>
<details>
<summary><em>pre-commit run -a || (exit 0);</em></summary>
```Shell
[INFO] Installing environment for https://github.com/python/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://gitlab.com/pycqa/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/yesqa.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/MarcoGorelli/no-string-hints.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/MarcoGorelli/abs-imports.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
black..................................................................................................Passed
flake8.................................................................................................Passed
flake8 (cython)........................................................................................Passed
flake8 (cython template)...............................................................................Passed
isort..................................................................................................Passed
pyupgrade..............................................................................................Passed
rst ``code`` is two backticks..........................................................................Passed
rst directives end with two colons.....................................................................Passed
rst ``inline code`` next to normal text................................................................Passed
Generate pip dependency from conda.....................................................................Passed
flake8-rst.............................................................................................Passed
Check for non-standard imports.........................................................................Passed
Check for non-standard numpy.random-related imports excluding pandas/_testing.py.......................Passed
Check for non-standard imports in test suite...........................................................Passed
Check for incorrect code block or IPython directives...................................................Passed
Check for use of not concatenated strings..............................................................Passed
Check for strings with wrong placed spaces.............................................................Passed
Check for import of private attributes across modules..................................................Passed
Check for use of private functions across modules......................................................Passed
Check for use of bare pytest raises....................................................................Passed
Check for inconsistent use of pandas namespace in tests................................................Passed
Check for use of Union[Series, DataFrame] instead of FrameOrSeriesUnion alias..........................Passed
Check for use of foo.__class__ instead of type(foo)....................................................Passed
Check for outdated annotation syntax and missing error codes...........................................Passed
Check for use of np.bool instead of np.bool_...........................................................Passed
Check code for instances of os.remove..................................................................Passed
Check code for instances of pd.api.types...............................................................Passed
Strip unnecessary `# noqa`s............................................................................Passed
Fix End of Files.......................................................................................Passed
Trim Trailing Whitespace...............................................................................Passed
codespell..............................................................................................Passed
no-string-hints........................................................................................Passed
abs-imports............................................................................................Passed
```
</details>
</details>
## Changed files
<details>
<summary>Changed file: </summary>
- .pre-commit-config.yaml
</details>
<hr>
[:octocat: Repo](https://github.com/technote-space/create-pr-action) | [:memo: Issues](https://github.com/technote-space/create-pr-action/issues) | [:department_store: Marketplace](https://github.com/marketplace/actions/create-pr-action) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39668/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39668/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39668.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39668",
"merged_at": "2021-02-08T10:02:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39668.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39668"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39669 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39669/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39669/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39669/events | https://github.com/pandas-dev/pandas/pull/39669 | 803,492,693 | MDExOlB1bGxSZXF1ZXN0NTY5NDEzMDU3 | 39,669 | DOC: Start v1.2.3 release notes | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 2 | 2021-02-08T11:54:17Z | 2021-02-09T12:42:24Z | 2021-02-09T12:41:37Z | MEMBER | null | web and docs will fail until 1.2.2 tag exists (can restart just that job after release)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39669/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39669/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39669.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39669",
"merged_at": "2021-02-09T12:41:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39669.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39669"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39670 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39670/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39670/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39670/events | https://github.com/pandas-dev/pandas/pull/39670 | 803,502,093 | MDExOlB1bGxSZXF1ZXN0NTY5NDIxMDQ4 | 39,670 | DOC: 1.2.2 release date | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 2 | 2021-02-08T12:06:37Z | 2021-02-08T13:41:21Z | 2021-02-08T13:39:43Z | 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/39670/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39670/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39670.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39670",
"merged_at": "2021-02-08T13:39:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39670.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39670"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39671 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39671/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39671/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39671/events | https://github.com/pandas-dev/pandas/issues/39671 | 803,546,709 | MDU6SXNzdWU4MDM1NDY3MDk= | 39,671 | BUG: Undesired non-deterministic reordering when indexing by unordered iterable | {
"avatar_url": "https://avatars.githubusercontent.com/u/8483333?v=4",
"events_url": "https://api.github.com/users/Verhoef-W/events{/privacy}",
"followers_url": "https://api.github.com/users/Verhoef-W/followers",
"following_url": "https://api.github.com/users/Verhoef-W/following{/other_user}",
"gists_url": "https://api.github.com/users/Verhoef-W/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Verhoef-W",
"id": 8483333,
"login": "Verhoef-W",
"node_id": "MDQ6VXNlcjg0ODMzMzM=",
"organizations_url": "https://api.github.com/users/Verhoef-W/orgs",
"received_events_url": "https://api.github.com/users/Verhoef-W/received_events",
"repos_url": "https://api.github.com/users/Verhoef-W/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Verhoef-W/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Verhoef-W/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Verhoef-W"
} | [
{
"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": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
},
{
"color": "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 | 2021-02-08T13:04:14Z | 2021-09-24T16:59:33Z | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample
```python
import pandas as pd
df = pd.DataFrame([], columns=[2, 1, 0])
df2 = df[{2, 1, 0}]
# expect column order to be preserved
assert((df.columns == df2.columns).all())
```
#### Problem description
An unordered iterable such as a set iterates in a non-deterministic way. Thus a reordering of the columns when indexing with an unordered iterable would be undesirable. It should be desirable that in those cases a preservation of the order is guaranteed. This should not be considered a breaking change, since the results were never guaranteed to be in a specific ordering in those cases.
#### Expected Output
See Code Sample.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : b5958ee1999e9aead1938c0bba2b674378807b3d
python : 3.6.9.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.1.5
numpy : 1.19.5
pytz : 2020.1
dateutil : 2.8.1
pip : 19.0.3
setuptools : 40.8.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : 1.1
pymysql : 0.9.3
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 1.3.15
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39671/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39671/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39672 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39672/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39672/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39672/events | https://github.com/pandas-dev/pandas/issues/39672 | 803,547,826 | MDU6SXNzdWU4MDM1NDc4MjY= | 39,672 | Pandas dataframe pct_change function arguments | {
"avatar_url": "https://avatars.githubusercontent.com/u/45629172?v=4",
"events_url": "https://api.github.com/users/jpcam/events{/privacy}",
"followers_url": "https://api.github.com/users/jpcam/followers",
"following_url": "https://api.github.com/users/jpcam/following{/other_user}",
"gists_url": "https://api.github.com/users/jpcam/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jpcam",
"id": 45629172,
"login": "jpcam",
"node_id": "MDQ6VXNlcjQ1NjI5MTcy",
"organizations_url": "https://api.github.com/users/jpcam/orgs",
"received_events_url": "https://api.github.com/users/jpcam/received_events",
"repos_url": "https://api.github.com/users/jpcam/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jpcam/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jpcam/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jpcam"
} | [
{
"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/35984969?v=4",
"events_url": "https://api.github.com/users/joybh98/events{/privacy}",
"followers_url": "https://api.github.com/users/joybh98/followers",
"following_url": "https://api.github.com/users/joybh98/following{/other_user}",
"gists_url": "https://api.github.com/users/joybh98/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joybh98",
"id": 35984969,
"login": "joybh98",
"node_id": "MDQ6VXNlcjM1OTg0OTY5",
"organizations_url": "https://api.github.com/users/joybh98/orgs",
"received_events_url": "https://api.github.com/users/joybh98/received_events",
"repos_url": "https://api.github.com/users/joybh98/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joybh98/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joybh98/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joybh98"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/35984969?v=4",
"events_url": "https://api.github.com/users/joybh98/events{/privacy}",
"followers_url": "https://api.github.com/users/joybh98/followers",
"following_url": "https://api.github.com/users/joybh98/following{/other_user}",
"gists_url": "https://api.github.com/users/joybh98/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joybh98",
"id": 35984969,
"login": "joybh98",
"node_id": "MDQ6VXNlcjM1OTg0OTY5",
"organizations_url": "https://api.github.com/users/joybh98/orgs",
"received_events_url": "https://api.github.com/users/joybh98/received_events",
"repos_url": "https://api.github.com/users/joybh98/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joybh98/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joybh98/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joybh98"
}
] | null | 14 | 2021-02-08T13:05:41Z | 2021-03-06T20:40:22Z | 2021-03-06T20:40:22Z | NONE | null | Typically financial data is ordered by columns in reverse chronology ie columns '2020', '2019', '2018', '2017'.. But we need the pct_change function in reverse order. Looking at the Pandas reference (last example): https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pct_change.html?highlight=pct_change#pandas.DataFrame.pct_change
df.pct_change(axis='columns')
2016 2015 2014
GOOG NaN -0.151997 -0.086016
APPL NaN 0.337604 0.012002
Such a calculation makes no sense or at least is not useful. We need to look at change from today over past period, not past period over future period. Other than iterating in reverse order or transposing, can the pct_change function be augmented with a new argument to reverse the calculation to the form: (A0-A1)/A1 instead of (A1-A0)/A0 ?? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39672/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39672/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39673 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39673/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39673/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39673/events | https://github.com/pandas-dev/pandas/pull/39673 | 803,576,745 | MDExOlB1bGxSZXF1ZXN0NTY5NDgyMjA0 | 39,673 | Backport PR #39670 on branch 1.2.x (DOC: 1.2.2 release date) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-08T13:41:10Z | 2021-02-08T14:47:28Z | 2021-02-08T14:47:28Z | NONE | null | Backport PR #39670: DOC: 1.2.2 release date | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39673/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39673/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39673.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39673",
"merged_at": "2021-02-08T14:47:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39673.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39673"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39674 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39674/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39674/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39674/events | https://github.com/pandas-dev/pandas/pull/39674 | 803,580,906 | MDExOlB1bGxSZXF1ZXN0NTY5NDg1NjM5 | 39,674 | Backport PR #39658 on branch 1.2.x (DOC: pin sphinx theme to avoid mobile dropdown bug) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 1 | 2021-02-08T13:46:26Z | 2021-02-08T14:45:17Z | 2021-02-08T14:45:17Z | NONE | null | Backport PR #39658: DOC: pin sphinx theme to avoid mobile dropdown bug | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39674/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39674/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39674.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39674",
"merged_at": "2021-02-08T14:45:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39674.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39674"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39675 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39675/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39675/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39675/events | https://github.com/pandas-dev/pandas/issues/39675 | 803,590,729 | MDU6SXNzdWU4MDM1OTA3Mjk= | 39,675 | BUG: pd.to_timedelta needs rounding argument to eliminate floating-point imprecision | {
"avatar_url": "https://avatars.githubusercontent.com/u/25043401?v=4",
"events_url": "https://api.github.com/users/Caballero93/events{/privacy}",
"followers_url": "https://api.github.com/users/Caballero93/followers",
"following_url": "https://api.github.com/users/Caballero93/following{/other_user}",
"gists_url": "https://api.github.com/users/Caballero93/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Caballero93",
"id": 25043401,
"login": "Caballero93",
"node_id": "MDQ6VXNlcjI1MDQzNDAx",
"organizations_url": "https://api.github.com/users/Caballero93/orgs",
"received_events_url": "https://api.github.com/users/Caballero93/received_events",
"repos_url": "https://api.github.com/users/Caballero93/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Caballero93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Caballero93/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Caballero93"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 1 | 2021-02-08T13:58:29Z | 2021-02-09T04:12:56Z | 2021-02-09T04:12:48Z | NONE | null | - [ ] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
a = 0.00026
print(pd.to_timedelta(a, unit='s'))
```
#### Problem description
As can be seen with the provided code, thanks to floating-point imprecision, the result is 0 days 00:00:00.000259999. The expected result is of course 260us. Because of this, synchronously sampled data can appear as asynchronous, which can cause issues. If this cannot be fixed differently, workaround would be to provide some rounding option to user, so it can be assured that output has the expected value
#### Expected Output
260us
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.8.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Serbian (Latin)_Serbia.1250
pandas : 1.2.1
numpy : 1.19.0
pytz : 2019.1
dateutil : 2.8.0
pip : 21.0
setuptools : 47.1.0
Cython : 0.29.16
pytest : 6.0.1
hypothesis : None
sphinx : 1.7.0
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.1.2
numexpr : 2.7.2
odfpy : None
openpyxl : 1.7.0
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.1
sqlalchemy : None
tables : 3.6.1
tabulate : 0.8.3
xarray : None
xlrd : 2.0.1
xlwt : 1.3.0
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/39675/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39675/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39676 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39676/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39676/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39676/events | https://github.com/pandas-dev/pandas/pull/39676 | 803,608,976 | MDExOlB1bGxSZXF1ZXN0NTY5NTA4NjU4 | 39,676 | Backport PR #39615: BUG: fix Categorical.astype for dtype=np.int32 argument | {
"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": "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": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-08T14:20:30Z | 2021-02-08T16:55:07Z | 2021-02-08T16:15:28Z | MEMBER | null | Backport PR #39615 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39676/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39676/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39676.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39676",
"merged_at": "2021-02-08T16:15:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39676.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39676"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39677 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39677/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39677/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39677/events | https://github.com/pandas-dev/pandas/pull/39677 | 803,628,371 | MDExOlB1bGxSZXF1ZXN0NTY5NTI0MjEy | 39,677 | Backport PR #39655: REGR: fix case all-NaN/numeric object column in groupby | {
"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": "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": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-08T14:43:00Z | 2021-02-08T16:55:47Z | 2021-02-08T16:15:52Z | MEMBER | null | Backport PR #39655 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39677/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39677/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39677.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39677",
"merged_at": "2021-02-08T16:15:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39677.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39677"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39678 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39678/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39678/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39678/events | https://github.com/pandas-dev/pandas/pull/39678 | 803,642,862 | MDExOlB1bGxSZXF1ZXN0NTY5NTM2MjIy | 39,678 | PERF: special case numpy.dtype in is_extension_array_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": "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": "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": "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 | 2021-02-08T14:59:53Z | 2021-02-10T14:32:10Z | 2021-02-10T14:29:17Z | MEMBER | null | Master:
```
dtype = np.dtype(float)
dtype2 = pd.Int32Dtype()
In [2]: %timeit pd.api.types.is_extension_array_dtype(dtype)
645 ns ± 59.1 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
In [3]: %timeit pd.api.types.is_extension_array_dtype(dtype2)
251 ns ± 9.68 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
```
with this branch, it keeps the speed for ExtensionDtype the same, and improves for numpy.dtype (avoiding a extension dtype registry lookup):
```
In [2]: %timeit pd.api.types.is_extension_array_dtype(dtype)
328 ns ± 24.3 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
In [2]: %timeit pd.api.types.is_extension_array_dtype(dtype2)
240 ns ± 19.4 ns per loop (mean ± std. dev. of 7 runs, 1000000 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/39678/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39678/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39678.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39678",
"merged_at": "2021-02-10T14:29:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39678.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39678"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39679 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39679/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39679/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39679/events | https://github.com/pandas-dev/pandas/pull/39679 | 803,656,997 | MDExOlB1bGxSZXF1ZXN0NTY5NTQ4MDc4 | 39,679 | Backport PR #39547 on branch 1.2.x (BUG: read_excel with openpyxl produces trailing rows of nan) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-08T15:16:03Z | 2021-02-08T17:44:16Z | 2021-02-08T17:44:15Z | NONE | null | Backport PR #39547: BUG: read_excel with openpyxl produces trailing rows of nan | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39679/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39679/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39679.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39679",
"merged_at": "2021-02-08T17:44:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39679.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39679"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39680 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39680/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39680/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39680/events | https://github.com/pandas-dev/pandas/issues/39680 | 803,784,422 | MDU6SXNzdWU4MDM3ODQ0MjI= | 39,680 | KeyError: 'UGDS' | {
"avatar_url": "https://avatars.githubusercontent.com/u/78753040?v=4",
"events_url": "https://api.github.com/users/nabilapak/events{/privacy}",
"followers_url": "https://api.github.com/users/nabilapak/followers",
"following_url": "https://api.github.com/users/nabilapak/following{/other_user}",
"gists_url": "https://api.github.com/users/nabilapak/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nabilapak",
"id": 78753040,
"login": "nabilapak",
"node_id": "MDQ6VXNlcjc4NzUzMDQw",
"organizations_url": "https://api.github.com/users/nabilapak/orgs",
"received_events_url": "https://api.github.com/users/nabilapak/received_events",
"repos_url": "https://api.github.com/users/nabilapak/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nabilapak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nabilapak/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nabilapak"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2021-02-08T17:44:27Z | 2021-02-08T17:51:45Z | 2021-02-08T17:51:33Z | NONE | null | college.groupby('STABBR').agg(weighted_math_average).head()
while running this command i am facing above mention Error. while i fellow is not having any error. can you please help me to rectify this issue | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39680/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39680/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39681 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39681/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39681/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39681/events | https://github.com/pandas-dev/pandas/pull/39681 | 803,803,064 | MDExOlB1bGxSZXF1ZXN0NTY5NjcwNTM0 | 39,681 | DOC: update release date for 1.2.2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 2 | 2021-02-08T18:10:16Z | 2021-02-08T18:11:08Z | 2021-02-08T18:10:43Z | 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/39681/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39681/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39681.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39681",
"merged_at": "2021-02-08T18:10:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39681.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39681"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39682 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39682/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39682/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39682/events | https://github.com/pandas-dev/pandas/pull/39682 | 803,803,593 | MDExOlB1bGxSZXF1ZXN0NTY5NjcxMDAw | 39,682 | Backport PR #39681 on branch 1.2.x (DOC: update release date for 1.2.2) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-02-09T11:58:00Z",
"closed_issues": 89,
"created_at": "2021-01-16T01:20:17Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/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": "2021-02-07T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/82",
"id": 6317919,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82/labels",
"node_id": "MDk6TWlsZXN0b25lNjMxNzkxOQ==",
"number": 82,
"open_issues": 0,
"state": "closed",
"title": "1.2.2",
"updated_at": "2021-02-09T21:26:11Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/82"
} | 0 | 2021-02-08T18:10:57Z | 2021-02-08T18:11:26Z | 2021-02-08T18:11:25Z | NONE | null | Backport PR #39681: DOC: update release date for 1.2.2 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39682/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39682/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39682.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39682",
"merged_at": "2021-02-08T18:11:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39682.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39682"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39683 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39683/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39683/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39683/events | https://github.com/pandas-dev/pandas/issues/39683 | 803,862,284 | MDU6SXNzdWU4MDM4NjIyODQ= | 39,683 | DOC: Basic indexing on axis with Multiindex | {
"avatar_url": "https://avatars.githubusercontent.com/u/40714954?v=4",
"events_url": "https://api.github.com/users/sroener/events{/privacy}",
"followers_url": "https://api.github.com/users/sroener/followers",
"following_url": "https://api.github.com/users/sroener/following{/other_user}",
"gists_url": "https://api.github.com/users/sroener/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sroener",
"id": 40714954,
"login": "sroener",
"node_id": "MDQ6VXNlcjQwNzE0OTU0",
"organizations_url": "https://api.github.com/users/sroener/orgs",
"received_events_url": "https://api.github.com/users/sroener/received_events",
"repos_url": "https://api.github.com/users/sroener/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sroener/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sroener/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sroener"
} | [
{
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] | open | false | null | [] | null | 1 | 2021-02-08T19:34:25Z | 2021-06-06T20:54:58Z | null | NONE | null | #### Location of the documentation
[Basic indexing on axis with MultiIndex](https://pandas.pydata.org/pandas-docs/stable/user_guide/advanced.html#basic-indexing-on-axis-with-multiindex)
#### Documentation problem
The following example seems not to work:
```python
arrays = [
np.array(["bar", "bar", "baz", "baz", "foo", "foo", "qux", "qux"]),
np.array(["one", "two", "one", "two", "one", "two", "one", "two"]),
]
df = pd.DataFrame(np.random.randn(8, 4), index=arrays)
df["bar"]
```
The code throws an error:
```python
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-13-6ea2f6413a49> in <module>
----> 1 df["bar"]
~/anaconda3/envs/jupyter/lib/python3.8/site-packages/pandas/core/frame.py in __getitem__(self, key)
3022 if self.columns.nlevels > 1:
3023 return self._getitem_multilevel(key)
-> 3024 indexer = self.columns.get_loc(key)
3025 if is_integer(indexer):
3026 indexer = [indexer]
~/anaconda3/envs/jupyter/lib/python3.8/site-packages/pandas/core/indexes/range.py in get_loc(self, key, method, tolerance)
352 except ValueError as err:
353 raise KeyError(key) from err
--> 354 raise KeyError(key)
355 return super().get_loc(key, method=method, tolerance=tolerance)
356
KeyError: 'bar'
```
When asking for help, it is suggested to use `df.loc["bar"]` instead with as shown in another part of the documentation ([advanced indexing with hierarchical index](https://pandas.pydata.org/docs/dev/user_guide/advanced.html#advanced-indexing-with-hierarchical-index)).
#### Suggested fix for documentation
An explanation for when partial indexing without the usage of `.loc[]` is applicable would be helpful or choosing an example that works in the current version. Trying to reproduce documentation code that does not work leads to confusion.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39683/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39683/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39684 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39684/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39684/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39684/events | https://github.com/pandas-dev/pandas/pull/39684 | 803,866,998 | MDExOlB1bGxSZXF1ZXN0NTY5NzIzOTE2 | 39,684 | TST: split chaining tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 1 | 2021-02-08T19:40:09Z | 2021-02-08T22:53:31Z | 2021-02-08T22:44:54Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39684/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39684/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39684.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39684",
"merged_at": "2021-02-08T22:44:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39684.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39684"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39685 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39685/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39685/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39685/events | https://github.com/pandas-dev/pandas/pull/39685 | 803,867,800 | MDExOlB1bGxSZXF1ZXN0NTY5NzI0NjAx | 39,685 | REF: remove unnecessary PeriodIndex._get_indexer | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
},
{
"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": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] | closed | false | null | [] | {
"closed_at": "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 | 2021-02-08T19:41:06Z | 2021-02-08T22:53:46Z | 2021-02-08T22:44:16Z | 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/39685/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39685/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39685.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39685",
"merged_at": "2021-02-08T22:44:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39685.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39685"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39686 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39686/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39686/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39686/events | https://github.com/pandas-dev/pandas/issues/39686 | 803,947,442 | MDU6SXNzdWU4MDM5NDc0NDI= | 39,686 | DOC: Remove mention that on with MultiIndex is supported with Rolling Groupby | {
"avatar_url": "https://avatars.githubusercontent.com/u/67324321?v=4",
"events_url": "https://api.github.com/users/GeorgievF/events{/privacy}",
"followers_url": "https://api.github.com/users/GeorgievF/followers",
"following_url": "https://api.github.com/users/GeorgievF/following{/other_user}",
"gists_url": "https://api.github.com/users/GeorgievF/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/GeorgievF",
"id": 67324321,
"login": "GeorgievF",
"node_id": "MDQ6VXNlcjY3MzI0MzIx",
"organizations_url": "https://api.github.com/users/GeorgievF/orgs",
"received_events_url": "https://api.github.com/users/GeorgievF/received_events",
"repos_url": "https://api.github.com/users/GeorgievF/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/GeorgievF/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GeorgievF/subscriptions",
"type": "User",
"url": "https://api.github.com/users/GeorgievF"
} | [
{
"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": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"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": "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 | 2021-02-08T20:52:16Z | 2021-02-11T13:46:32Z | 2021-02-11T13:46:32Z | 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.
---
**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
```
dates = pd.date_range(start='2016-01-01 09:30:00', periods=20, freq='s')
df = pd.DataFrame({'A': [1] * 20 + [2] * 12 + [3] * 8,
'B': np.concatenate((dates, dates)),
'C': np.arange(40),})
df.set_index(['A', 'B'], inplace=True)
df.groupby('A').rolling('4s', on='B').C.mean()
```
#### Problem description
Multi-index dataframe gives the following error message:
> ValueError: invalid on specified as B, must be a column (of DataFrame), an Index or None
when one layer of the multi index is used for groupby, while the other is used as a rolling datetime level.
Similar to https://github.com/pandas-dev/pandas/issues/13966
#### Expected Output
```
A B
1 2016-01-01 09:30:00 0.0
2016-01-01 09:30:01 0.5
2016-01-01 09:30:02 1.0
2016-01-01 09:30:03 1.5
2016-01-01 09:30:04 2.5
2016-01-01 09:30:05 3.5
2016-01-01 09:30:06 4.5
2016-01-01 09:30:07 5.5
2016-01-01 09:30:08 6.5
2016-01-01 09:30:09 7.5
2016-01-01 09:30:10 8.5
2016-01-01 09:30:11 9.5
2016-01-01 09:30:12 10.5
2016-01-01 09:30:13 11.5
2016-01-01 09:30:14 12.5
2016-01-01 09:30:15 13.5
2016-01-01 09:30:16 14.5
2016-01-01 09:30:17 15.5
2016-01-01 09:30:18 16.5
2016-01-01 09:30:19 17.5
2 2016-01-01 09:30:00 20.0
2016-01-01 09:30:01 20.5
2016-01-01 09:30:02 21.0
2016-01-01 09:30:03 21.5
2016-01-01 09:30:04 22.5
2016-01-01 09:30:05 23.5
2016-01-01 09:30:06 24.5
2016-01-01 09:30:07 25.5
2016-01-01 09:30:08 26.5
2016-01-01 09:30:09 27.5
2016-01-01 09:30:10 28.5
2016-01-01 09:30:11 29.5
3 2016-01-01 09:30:12 32.0
2016-01-01 09:30:13 32.5
2016-01-01 09:30:14 33.0
2016-01-01 09:30:15 33.5
2016-01-01 09:30:16 34.5
2016-01-01 09:30:17 35.5
2016-01-01 09:30:18 36.5
2016-01-01 09:30:19 37.5
Name: C, dtype: float64
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.8.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United Kingdom.1252
pandas : 1.2.1
numpy : 1.19.2
pytz : 2021.1
dateutil : 2.8.1
pip : 20.3.3
setuptools : 52.0.0.post20210125
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.3
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39686/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39686/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39687 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39687/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39687/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39687/events | https://github.com/pandas-dev/pandas/pull/39687 | 803,991,735 | MDExOlB1bGxSZXF1ZXN0NTY5ODM1NjU0 | 39,687 | TST: split test_indexing tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-08T21:39:44Z | 2021-02-08T22:54:13Z | 2021-02-08T22:45:13Z | MEMBER | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39687/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39687/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39687.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39687",
"merged_at": "2021-02-08T22:45:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39687.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39687"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39688 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39688/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39688/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39688/events | https://github.com/pandas-dev/pandas/issues/39688 | 803,993,751 | MDU6SXNzdWU4MDM5OTM3NTE= | 39,688 | DOC: doc-string validation broken | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] | open | false | null | [] | null | 4 | 2021-02-08T21:43:12Z | 2021-04-12T09:54:22Z | null | CONTRIBUTOR | null | https://github.com/pandas-dev/pandas/pull/39685/checks?check_run_id=1857708224
```
==================================== ERRORS ====================================
__________ ERROR collecting scripts/tests/test_validate_docstrings.py __________
ImportError while importing test module '/home/runner/work/pandas/pandas/scripts/tests/test_validate_docstrings.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/share/miniconda/envs/pandas-dev/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
scripts/tests/test_validate_docstrings.py:5: in <module>
import validate_docstrings
scripts/validate_docstrings.py:50: in <module>
from numpydoc.validate import validate, Docstring # isort:skip
E ImportError: cannot import name 'Docstring' from 'numpydoc.validate' (/usr/share/miniconda/envs/pandas-dev/lib/python3.8/site-packages/numpydoc/validate.py)
=========================== short test summary info ============================
ERROR scripts/tests/test_validate_docstrings.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.54s ===============================
Error: Process completed with exit code 2.
````
cc @pandas-dev/pandas-core
can we pin numpydoc? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39688/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39688/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39689 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39689/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39689/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39689/events | https://github.com/pandas-dev/pandas/pull/39689 | 804,183,377 | MDExOlB1bGxSZXF1ZXN0NTY5OTk0MjEz | 39,689 | CLN: remove unused arg from Index._get_unique_index | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "e99695",
"default": false,
"description": "Related to the Index class or subclasses",
"id": 1218227310,
"name": "Index",
"node_id": "MDU6TGFiZWwxMjE4MjI3MzEw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 0 | 2021-02-09T04:00:55Z | 2021-02-10T16:19:54Z | 2021-02-10T16:17:51Z | MEMBER | null | we'll be able to get rid of get_unique_index altogether following #38140 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39689/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39689/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39689.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39689",
"merged_at": "2021-02-10T16:17:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39689.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39689"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39690 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39690/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39690/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39690/events | https://github.com/pandas-dev/pandas/pull/39690 | 804,344,469 | MDExOlB1bGxSZXF1ZXN0NTcwMTI4Nzk2 | 39,690 | STYLE use ast.parse instead of regex to fixup inconsistencies in namespace | {
"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": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 11 | 2021-02-09T08:52:15Z | 2021-02-19T07:16:47Z | 2021-02-19T01:11:36Z | MEMBER | null | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
The regular expression wasn't working too well, this solution should be better. Also, like this, you can pass `--replace` and have the inconsistencies fixed up for you (though I haven't passed this by default as it may be confusing)
Just running on `pandas/tests/frame/` here, can expand to the rest in separate PRs if this is alright | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39690/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39690/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39690.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39690",
"merged_at": "2021-02-19T01:11:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39690.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39690"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39691 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39691/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39691/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39691/events | https://github.com/pandas-dev/pandas/issues/39691 | 804,349,695 | MDU6SXNzdWU4MDQzNDk2OTU= | 39,691 | There seems to be a difference between .agg and .groupby.agg | {
"avatar_url": "https://avatars.githubusercontent.com/u/1278660?v=4",
"events_url": "https://api.github.com/users/MarcelBeining/events{/privacy}",
"followers_url": "https://api.github.com/users/MarcelBeining/followers",
"following_url": "https://api.github.com/users/MarcelBeining/following{/other_user}",
"gists_url": "https://api.github.com/users/MarcelBeining/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MarcelBeining",
"id": 1278660,
"login": "MarcelBeining",
"node_id": "MDQ6VXNlcjEyNzg2NjA=",
"organizations_url": "https://api.github.com/users/MarcelBeining/orgs",
"received_events_url": "https://api.github.com/users/MarcelBeining/received_events",
"repos_url": "https://api.github.com/users/MarcelBeining/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MarcelBeining/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MarcelBeining/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MarcelBeining"
} | [
{
"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"
}
] | open | false | null | [] | null | 1 | 2021-02-09T08:59:44Z | 2021-08-15T17:35:50Z | null | NONE | null | This
`pd.DataFrame([[1,2,1],[3,4,1]], columns=['a', 'b', 'dummygroup']).groupby('dummygroup').agg({'a': [('spread', lambda x: x.max()-x.min())]})`
works.
This
`pd.DataFrame([[1,2,1],[3,4,1]], columns=['a', 'b', 'dummygroup']).agg({'a': [('spread', lambda x: x.max()-x.min())]})`
raises an error:
> AttributeError: 'spread' is not a valid function for 'Series' object
Only difference is leaving out the dummy grouping.
Using newest pandas version '1.2.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/39691/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39691/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39692 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39692/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39692/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39692/events | https://github.com/pandas-dev/pandas/pull/39692 | 804,393,357 | MDExOlB1bGxSZXF1ZXN0NTcwMTY4Nzg5 | 39,692 | PERF: optimize algos.take for repeated calls | {
"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": "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": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 18 | 2021-02-09T09:58:43Z | 2021-03-05T07:48:06Z | 2021-03-05T01:36:00Z | MEMBER | null | This PR optimizes our internal `take` algorithm, with the following changes:
- Cache the expensive parts that are independent of the actual array values but only dependent on the dtypes / dimension / axis / fill_value (which is often the same for repeated calls), i.e. `maybe_promote` and `_get_take_nd_function`
- The above is done in the generic `take_nd` function as well, but in addition I also added a `take_1d_array` specialized version that assumes the input is already an array and only deals with 1D. This gives a small further speed-up.
An example use case where the effect of this optimization can be noticed nicely is `unstack` in case of the ArrayManager. This is typically a case where we do multiple `take` calls for 1 column (to split it into multiple columns) and thus call it many times for the same dtype/fill_value.
Using the example from the `reshape.py::SimpleReshape` ASV benchmark (this is an example of homogeneous dtype with a single block, so which is fast with the BlockManager using the `_can_fast_transpose` fastpath in `_unstack_frame`):
```python
arrays = [np.arange(100).repeat(100), np.roll(np.tile(np.arange(100), 100), 25)]
index = pd.MultiIndex.from_arrays(arrays)
df = pd.DataFrame(np.random.randn(10000, 4), index=index)
df_am = df._as_manager("array")
```
Master:
```
In [2]: %timeit df.unstack()
1.79 ms ± 108 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
In [3]: %timeit df_am.unstack()
15.1 ms ± 1.3 ms per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
PR:
```
In [2]: %timeit df.unstack()
1.81 ms ± 160 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
In [3]: %timeit df_am.unstack()
3.44 ms ± 69.5 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
So for the BlockManager this doesn't matter (it does only a single call to `take_nd` for the column values), but for the ArrayManager version this gives a nice speedup and brings it within 2x of the BlockManager version (for this benchmark). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39692/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39692/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39692.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39692",
"merged_at": "2021-03-05T01:36:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39692.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39692"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39693 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39693/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39693/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39693/events | https://github.com/pandas-dev/pandas/pull/39693 | 804,492,510 | MDExOlB1bGxSZXF1ZXN0NTcwMjUwMTMz | 39,693 | Backport PR #39526: CI: pin numpy for CI / Checks github action (#39529) | {
"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": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 0 | 2021-02-09T12:07:48Z | 2021-02-09T13:04:27Z | 2021-02-09T13:04:24Z | MEMBER | null | re-apply Backport PR #39526
xref #39641 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39693/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39693/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39693.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39693",
"merged_at": "2021-02-09T13:04:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39693.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39693"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39694 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39694/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39694/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39694/events | https://github.com/pandas-dev/pandas/pull/39694 | 804,517,081 | MDExOlB1bGxSZXF1ZXN0NTcwMjcxMDQ2 | 39,694 | Backport PR #39669 on branch 1.2.x (DOC: Start v1.2.3 release notes) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 0 | 2021-02-09T12:42:17Z | 2021-02-09T13:38:40Z | 2021-02-09T13:38:40Z | NONE | null | Backport PR #39669: DOC: Start v1.2.3 release notes | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39694/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39694/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39694.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39694",
"merged_at": "2021-02-09T13:38:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39694.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39694"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39695 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39695/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39695/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39695/events | https://github.com/pandas-dev/pandas/issues/39695 | 804,521,250 | MDU6SXNzdWU4MDQ1MjEyNTA= | 39,695 | BUG: DataFrame.to_excel() now raises if column parameter contains duplicates | {
"avatar_url": "https://avatars.githubusercontent.com/u/25440862?v=4",
"events_url": "https://api.github.com/users/RagBlufThim/events{/privacy}",
"followers_url": "https://api.github.com/users/RagBlufThim/followers",
"following_url": "https://api.github.com/users/RagBlufThim/following{/other_user}",
"gists_url": "https://api.github.com/users/RagBlufThim/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/RagBlufThim",
"id": 25440862,
"login": "RagBlufThim",
"node_id": "MDQ6VXNlcjI1NDQwODYy",
"organizations_url": "https://api.github.com/users/RagBlufThim/orgs",
"received_events_url": "https://api.github.com/users/RagBlufThim/received_events",
"repos_url": "https://api.github.com/users/RagBlufThim/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/RagBlufThim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RagBlufThim/subscriptions",
"type": "User",
"url": "https://api.github.com/users/RagBlufThim"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/61934744?v=4",
"events_url": "https://api.github.com/users/phofl/events{/privacy}",
"followers_url": "https://api.github.com/users/phofl/followers",
"following_url": "https://api.github.com/users/phofl/following{/other_user}",
"gists_url": "https://api.github.com/users/phofl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/phofl",
"id": 61934744,
"login": "phofl",
"node_id": "MDQ6VXNlcjYxOTM0NzQ0",
"organizations_url": "https://api.github.com/users/phofl/orgs",
"received_events_url": "https://api.github.com/users/phofl/received_events",
"repos_url": "https://api.github.com/users/phofl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/phofl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/phofl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/phofl"
}
] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 3 | 2021-02-09T12:48:21Z | 2021-02-15T22:42:17Z | 2021-02-15T22:42:17Z | 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
dft = pd.DataFrame({"A": [0, 1], "B": [10, 11]})
dft.to_excel(r"c:\test\test3.xlsx", columns=["A", "B", "A"])
```
#### Problem description
The example works with pandas 1.1.0, but not with pandas 1.2.1 any more. With 1.2.1 it raises:
```python-traceback
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\test\venv4\lib\site-packages\pandas\core\generic.py", line 2177, in to_excel
formatter = ExcelFormatter(
File "c:\test\venv4\lib\site-packages\pandas\io\formats\excel.py", line 470, in __init__
raise KeyError("Not all names specified in 'columns' are found")
KeyError: "Not all names specified in 'columns' are found"
```
If the column argument doesn't contain duplicates (e.g. `columns=["A", "B"]`) it works also in 1.2.1
In the documentation of .to_excel() I found no information about an intended change in behaviour.
#### Expected Output
I expected it to work like with pandas 1.1.0, producing an excel file with the following content:

#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.9.1.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : de_DE.cp1252
pandas : 1.2.1
numpy : 1.20.0
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 53.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39695/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39695/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39696 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39696/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39696/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39696/events | https://github.com/pandas-dev/pandas/issues/39696 | 804,522,003 | MDU6SXNzdWU4MDQ1MjIwMDM= | 39,696 | CI: activate Github actions for pushes to backport branch (1.2.x) | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/47963215?v=4",
"events_url": "https://api.github.com/users/lithomas1/events{/privacy}",
"followers_url": "https://api.github.com/users/lithomas1/followers",
"following_url": "https://api.github.com/users/lithomas1/following{/other_user}",
"gists_url": "https://api.github.com/users/lithomas1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lithomas1",
"id": 47963215,
"login": "lithomas1",
"node_id": "MDQ6VXNlcjQ3OTYzMjE1",
"organizations_url": "https://api.github.com/users/lithomas1/orgs",
"received_events_url": "https://api.github.com/users/lithomas1/received_events",
"repos_url": "https://api.github.com/users/lithomas1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lithomas1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lithomas1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lithomas1"
}
] | {
"closed_at": "2021-07-25T07:13:46Z",
"closed_issues": 114,
"created_at": "2021-06-25T09:56:22Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-07-25T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/87",
"id": 6888188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87/labels",
"node_id": "MDk6TWlsZXN0b25lNjg4ODE4OA==",
"number": 87,
"open_issues": 0,
"state": "closed",
"title": "1.3.1",
"updated_at": "2021-07-28T12:08:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/87"
} | 0 | 2021-02-09T12:49:27Z | 2021-07-16T10:38:14Z | 2021-07-16T10:38:14Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/39295#issuecomment-775329397
> for the Github actions issue, I should open a new issue and xref #38360. we may want to activate Github actions for pushes to 1.2.x and update `.github\workflows\ci.yml` which will currently upload docs on a push event...
```
- name: Upload web
run: rsync -az --delete --exclude='pandas-docs' --exclude='docs' --exclude='Pandas_Cheat_Sheet*' web/build/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas
if: github.event_name == 'push'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39696/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39696/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39697 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39697/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39697/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39697/events | https://github.com/pandas-dev/pandas/pull/39697 | 804,540,669 | MDExOlB1bGxSZXF1ZXN0NTcwMjkxMDUz | 39,697 | [ArrayManager] Enable downcast in fillna / enable where indexing tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-09T13:14:51Z | 2021-02-16T08:46:59Z | 2021-02-16T08:46:56Z | MEMBER | null | Instead of https://github.com/pandas-dev/pandas/pull/39539, for now keeping the downcasting behaviour of `fillna`. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39697/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39697/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39697.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39697",
"merged_at": "2021-02-16T08:46:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39697.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39697"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39698 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39698/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39698/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39698/events | https://github.com/pandas-dev/pandas/issues/39698 | 804,562,606 | MDU6SXNzdWU4MDQ1NjI2MDY= | 39,698 | RLS: 1.2.3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
} | [
{
"color": "006b75",
"default": false,
"description": null,
"id": 131473665,
"name": "Release",
"node_id": "MDU6TGFiZWwxMzE0NzM2NjU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release"
}
] | closed | false | null | [] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 6 | 2021-02-09T13:42:05Z | 2021-03-02T22:12:12Z | 2021-03-02T17:15:27Z | MEMBER | null | Tracking issue for the 1.2.3 release.
https://github.com/pandas-dev/pandas/milestone/83
Currently scheduled for March 01, 2021
List of open regressions: https://github.com/pandas-dev/pandas/issues?q=is%3Aopen+is%3Aissue+label%3ARegression | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39698/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39698/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39699 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39699/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39699/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39699/events | https://github.com/pandas-dev/pandas/issues/39699 | 804,671,034 | MDU6SXNzdWU4MDQ2NzEwMzQ= | 39,699 | BUG: TypeError when trying to find intersection between MultiIndex and array since 1.2.0 | {
"avatar_url": "https://avatars.githubusercontent.com/u/62142979?v=4",
"events_url": "https://api.github.com/users/dchigarev/events{/privacy}",
"followers_url": "https://api.github.com/users/dchigarev/followers",
"following_url": "https://api.github.com/users/dchigarev/following{/other_user}",
"gists_url": "https://api.github.com/users/dchigarev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dchigarev",
"id": 62142979,
"login": "dchigarev",
"node_id": "MDQ6VXNlcjYyMTQyOTc5",
"organizations_url": "https://api.github.com/users/dchigarev/orgs",
"received_events_url": "https://api.github.com/users/dchigarev/received_events",
"repos_url": "https://api.github.com/users/dchigarev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dchigarev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dchigarev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dchigarev"
} | [
{
"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"
},
{
"color": "006b75",
"default": false,
"description": "union, intersection, difference, symmetric_difference",
"id": 3073524400,
"name": "setops",
"node_id": "MDU6TGFiZWwzMDczNTI0NDAw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/setops"
}
] | open | false | null | [] | null | 0 | 2021-02-09T15:45:08Z | 2021-08-15T17:36:47Z | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas
multi_index = pandas.MultiIndex.from_arrays([["a", "b"], ["c", "d"]])
try:
result = multi_index.intersection(["some_col"])
except Exception as e:
result = e
print(f"Intersection with a list: {repr(result)}")
result = multi_index.intersection(pandas.Index(["some_col"]))
print(f"Intersection with an Index: {result}")
```
<details><summary>Output for pandas 1.1.5</summary>
```
Intersection with a list: MultiIndex([], )
Intersection with an Index: MultiIndex([], )
```
</details>
<details><summary>Output for pandas 1.2.0+</summary>
```
Intersection with a list: TypeError('other must be a MultiIndex or a list of tuples')
Intersection with an Index: MultiIndex([], )
```
</details>
#### Problem description
It's expected to get an empty index as the result of the intersection, but getting a TypeError.
#### Output of ``pd.show_versions()``
<details>
```
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
python : 3.7.7.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-50-generic
Version : #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.0
numpy : 1.19.0
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 47.3.1.post20200622
Cython : None
pytest : 6.0.2
hypothesis : None
sphinx : None
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : 4.5.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : None
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.4
pandas_gbq : 0.13.2
pyarrow : 1.0.1
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.1
sqlalchemy : 1.3.18
tables : 3.6.1
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : None
numba : None
```
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39699/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39699/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39700 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39700/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39700/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39700/events | https://github.com/pandas-dev/pandas/pull/39700 | 804,679,233 | MDExOlB1bGxSZXF1ZXN0NTcwNDA2NTAw | 39,700 | [ArrayManager] TST: get tests running for /tests/frame | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
}
] | closed | false | null | [] | {
"closed_at": "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 | 2021-02-09T15:53:56Z | 2021-03-05T07:47:55Z | 2021-03-05T01:32:59Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/39146
This is on top of https://github.com/pandas-dev/pandas/pull/39612, so only the last commit is relevant for this PR: https://github.com/pandas-dev/pandas/pull/39700/commits/ec83091284ac9a388ef147e006e2d4d43d946ea7 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39700/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39700/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39700.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39700",
"merged_at": "2021-03-05T01:32:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39700.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39700"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39701 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39701/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39701/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39701/events | https://github.com/pandas-dev/pandas/issues/39701 | 804,723,254 | MDU6SXNzdWU4MDQ3MjMyNTQ= | 39,701 | BUG: pd.show_versions: json.decoder.JSONDecodeError | {
"avatar_url": "https://avatars.githubusercontent.com/u/566650?v=4",
"events_url": "https://api.github.com/users/impredicative/events{/privacy}",
"followers_url": "https://api.github.com/users/impredicative/followers",
"following_url": "https://api.github.com/users/impredicative/following{/other_user}",
"gists_url": "https://api.github.com/users/impredicative/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/impredicative",
"id": 566650,
"login": "impredicative",
"node_id": "MDQ6VXNlcjU2NjY1MA==",
"organizations_url": "https://api.github.com/users/impredicative/orgs",
"received_events_url": "https://api.github.com/users/impredicative/received_events",
"repos_url": "https://api.github.com/users/impredicative/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/impredicative/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/impredicative/subscriptions",
"type": "User",
"url": "https://api.github.com/users/impredicative"
} | [
{
"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": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 8 | 2021-02-09T16:46:08Z | 2021-02-22T18:18:09Z | 2021-02-22T18:18:09Z | 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 contextlib, io, json
import pandas as pd
redirect = io.StringIO()
with contextlib.redirect_stdout(redirect):
pd.show_versions(as_json=True) # produces invalid json
pd_versions = redirect.getvalue()
pd_versions = json.loads(pd_versions) # raises JSONDecodeError
```
#### Problem description
`pd.show_versions(as_json=True)` is supposed to print valid JSON, but it really doesn't. It is supposed to work as advertised but it doesn't. It prints invalid JSON that is not parsable. The following error is printed when attempting to parse it:
> json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
This functionality is important because when running a job in the cloud, it is not feasible to print a multiline output. This is because every printed line has significant attached metadata. It is better to have valid JSON output instead in this case. The implementation of the `show_versions` function looks to be very hacky and poorly reviewed, given that it fails in this very basic way.
#### Expected Output
In the code example, `json.loads(pd_versions)` should have been able to parse the captured text.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 7d32926db8f7541c356066dcadabf854487738de
python : 3.8.6.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.2.2
numpy : 1.19.4
pytz : 2020.4
dateutil : 2.8.1
pip : 21.0.1
setuptools : 50.3.2
Cython : None
pytest : 6.2.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39701/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39701/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39702 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39702/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39702/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39702/events | https://github.com/pandas-dev/pandas/pull/39702 | 804,753,233 | MDExOlB1bGxSZXF1ZXN0NTcwNDY4NDcx | 39,702 | DEP: bump min version of openpyxl to 3.0.0 #39603 | {
"avatar_url": "https://avatars.githubusercontent.com/u/7614606?v=4",
"events_url": "https://api.github.com/users/fangchenli/events{/privacy}",
"followers_url": "https://api.github.com/users/fangchenli/followers",
"following_url": "https://api.github.com/users/fangchenli/following{/other_user}",
"gists_url": "https://api.github.com/users/fangchenli/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/fangchenli",
"id": 7614606,
"login": "fangchenli",
"node_id": "MDQ6VXNlcjc2MTQ2MDY=",
"organizations_url": "https://api.github.com/users/fangchenli/orgs",
"received_events_url": "https://api.github.com/users/fangchenli/received_events",
"repos_url": "https://api.github.com/users/fangchenli/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/fangchenli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fangchenli/subscriptions",
"type": "User",
"url": "https://api.github.com/users/fangchenli"
} | [
{
"color": "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": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-09T17:23:18Z | 2021-03-18T16:36:39Z | 2021-02-15T22:14:02Z | MEMBER | null | - [x] closes #39603
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39702/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39702/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39702.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39702",
"merged_at": "2021-02-15T22:14:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39702.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39702"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39703 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39703/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39703/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39703/events | https://github.com/pandas-dev/pandas/issues/39703 | 804,756,201 | MDU6SXNzdWU4MDQ3NTYyMDE= | 39,703 | BUG: SQLAlchemy Date() classes still written as DateTimes | {
"avatar_url": "https://avatars.githubusercontent.com/u/1515637?v=4",
"events_url": "https://api.github.com/users/EmperorArthur/events{/privacy}",
"followers_url": "https://api.github.com/users/EmperorArthur/followers",
"following_url": "https://api.github.com/users/EmperorArthur/following{/other_user}",
"gists_url": "https://api.github.com/users/EmperorArthur/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/EmperorArthur",
"id": 1515637,
"login": "EmperorArthur",
"node_id": "MDQ6VXNlcjE1MTU2Mzc=",
"organizations_url": "https://api.github.com/users/EmperorArthur/orgs",
"received_events_url": "https://api.github.com/users/EmperorArthur/received_events",
"repos_url": "https://api.github.com/users/EmperorArthur/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/EmperorArthur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EmperorArthur/subscriptions",
"type": "User",
"url": "https://api.github.com/users/EmperorArthur"
} | [
{
"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": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
},
{
"color": "bfd4f2",
"default": false,
"description": "stdlib datetime.date support",
"id": 3059772828,
"name": "datetime.date",
"node_id": "MDU6TGFiZWwzMDU5NzcyODI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/datetime.date"
}
] | open | false | null | [] | null | 0 | 2021-02-09T17:27:10Z | 2021-08-15T17:37:45Z | null | NONE | null | - [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample
```python
from sqlalchemy import create_engine, Date
from pandas import DataFrame
from datetime import datetime
df = DataFrame([{'test': datetime.now()}])
df.to_sql(
'test_table',
create_engine('sqlite:///foo.db'),
dtype={'test': Date()}
)
```
#### Problem description
The above code works, as far as successfully storing the data in the database.
However, **it can not be read back out again.** The entire datetime is stored, instead of just the date!
Python complains and refuses to read the table.
#### Expected Output
Dates are properly stored if passed as an SQLAlchemy dtype.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 7d32926db8f7541c356066dcadabf854487738de
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-65-generic
Version : #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.2
numpy : 1.20.1
pytz : 2021.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 44.0.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.3
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.5
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : None
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : 1.3.23
tables : None
tabulate : None
xarray : 0.16.1
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39703/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39703/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39704 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39704/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39704/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39704/events | https://github.com/pandas-dev/pandas/issues/39704 | 804,805,287 | MDU6SXNzdWU4MDQ4MDUyODc= | 39,704 | February 2021 Developer Meeting | {
"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": "0bbec4",
"default": false,
"description": "Community topics (meetings, etc.)",
"id": 2187005593,
"name": "Community",
"node_id": "MDU6TGFiZWwyMTg3MDA1NTkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Community"
}
] | closed | false | null | [] | null | 2 | 2021-02-09T18:31:24Z | 2021-05-12T12:14:52Z | 2021-02-11T11:35:56Z | MEMBER | null | The monthly dev meeting is Wednesday February 10th, at 18:00 UTC (12 am Central). Our calendar is at https://pandas.pydata.org/docs/development/meeting.html#calendar to check your local time.
Video Call: https://zoom.us/j/942410248?pwd=T2l2Qi9vaC82Z294ZEtFczYxMVM2dz09
Minutes: https://docs.google.com/document/u/1/d/1tGbTiYORHiSPgVMXawiweGJlBw5dOkVJLY-licoBmBU/edit?ouid=102771015311436394588&usp=docs_home&ths=true
Please add items you'd like to see discussed to the agenda. All are welcome to attend.
@pandas-dev/pandas-core @pandas-dev/pandas-triage | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39704/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39704/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39705 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39705/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39705/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39705/events | https://github.com/pandas-dev/pandas/issues/39705 | 804,848,174 | MDU6SXNzdWU4MDQ4NDgxNzQ= | 39,705 | BUG: IndexError when plotting empty dataframe subset with DatetimeIndex on an existing axis | {
"avatar_url": "https://avatars.githubusercontent.com/u/36768177?v=4",
"events_url": "https://api.github.com/users/matthme/events{/privacy}",
"followers_url": "https://api.github.com/users/matthme/followers",
"following_url": "https://api.github.com/users/matthme/following{/other_user}",
"gists_url": "https://api.github.com/users/matthme/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/matthme",
"id": 36768177,
"login": "matthme",
"node_id": "MDQ6VXNlcjM2NzY4MTc3",
"organizations_url": "https://api.github.com/users/matthme/orgs",
"received_events_url": "https://api.github.com/users/matthme/received_events",
"repos_url": "https://api.github.com/users/matthme/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/matthme/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/matthme/subscriptions",
"type": "User",
"url": "https://api.github.com/users/matthme"
} | [
{
"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"
}
] | open | false | null | [] | null | 0 | 2021-02-09T19:20:55Z | 2021-06-06T20:54:41Z | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
# Case 1 - no error raised:
df = pd.DataFrame({"col1":[1,2,3]})
ax = df.plot()
df[df["col1"]==9].plot(ax=ax)
# Case 2 - error raised:
df = pd.DataFrame({"col1":[1,2,3]}, index=pd.date_range("2020-01-01 00:00:00", periods=3, freq="10s"))
ax = df.plot()
df[df["col1"]==9].plot(ax=ax)
```
#### Problem description
IndexError is raised when trying to plot an empty subset of a dataframe that has a DatetimeIndex to an already existing axis (case 2). The better option would be that no error is raised and simply nothing is added to the existing axis as is the case if the index is a normal index instead of a DatetimeIndex (case 1). This is better becaue it allows to plot subsets of a dataframe within a loop or similar without having to care about whether the resulting subset is gonna be empty or not.
#### Expected Output
When adding an empty subset of a dataframe with DatetimeIndex to an existing axis, nothing is added to the plot and no error is raised.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 7d32926db8f7541c356066dcadabf854487738de
python : 3.7.3.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.18362
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 12, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.2.2
numpy : 1.19.5
pytz : 2020.5
dateutil : 2.8.1
pip : 21.0
setuptools : 49.6.0.post20210108
Cython : None
pytest : None
hypothesis : None
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : 1.3.20
tables : None
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39705/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39705/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39706 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39706/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39706/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39706/events | https://github.com/pandas-dev/pandas/issues/39706 | 804,875,174 | MDU6SXNzdWU4MDQ4NzUxNzQ= | 39,706 | DOC: Adding links to the cheat sheets | {
"avatar_url": "https://avatars.githubusercontent.com/u/31124624?v=4",
"events_url": "https://api.github.com/users/OliEfr/events{/privacy}",
"followers_url": "https://api.github.com/users/OliEfr/followers",
"following_url": "https://api.github.com/users/OliEfr/following{/other_user}",
"gists_url": "https://api.github.com/users/OliEfr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OliEfr",
"id": 31124624,
"login": "OliEfr",
"node_id": "MDQ6VXNlcjMxMTI0NjI0",
"organizations_url": "https://api.github.com/users/OliEfr/orgs",
"received_events_url": "https://api.github.com/users/OliEfr/received_events",
"repos_url": "https://api.github.com/users/OliEfr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OliEfr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OliEfr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OliEfr"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-09T19:59:32Z | 2021-02-10T23:43:07Z | 2021-02-10T23:10:01Z | CONTRIBUTOR | null | #### Location of the documentation
Cheat Sheets
#### Documentation problem
It would be great to have web-links to the official pandas docs included in the cheat sheets.
#### Suggested fix for documentation
I already implemented this [here](https://github.com/OliEfr/pandas/blob/master/doc/cheatsheet/Pandas_Cheat_Sheet.pdf). It works well! However, I am not sure how to create a pull request now.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39706/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39706/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39707 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39707/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39707/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39707/events | https://github.com/pandas-dev/pandas/pull/39707 | 804,886,185 | MDExOlB1bGxSZXF1ZXN0NTcwNTgwODE1 | 39,707 | DOCS: Added links to official docs in cheat sheets | {
"avatar_url": "https://avatars.githubusercontent.com/u/31124624?v=4",
"events_url": "https://api.github.com/users/OliEfr/events{/privacy}",
"followers_url": "https://api.github.com/users/OliEfr/followers",
"following_url": "https://api.github.com/users/OliEfr/following{/other_user}",
"gists_url": "https://api.github.com/users/OliEfr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/OliEfr",
"id": 31124624,
"login": "OliEfr",
"node_id": "MDQ6VXNlcjMxMTI0NjI0",
"organizations_url": "https://api.github.com/users/OliEfr/orgs",
"received_events_url": "https://api.github.com/users/OliEfr/received_events",
"repos_url": "https://api.github.com/users/OliEfr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/OliEfr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OliEfr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/OliEfr"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-09T20:15:35Z | 2021-02-10T23:42:38Z | 2021-02-10T23:10:01Z | CONTRIBUTOR | null | - [x] closes #39706
- [x] tests added / passed (not necessary, only edited ppt and pdf)
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them (not necessary, only edited ppt and pdf)
- [x] whatsnew entry (not necesarry)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39707/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39707/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39707.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39707",
"merged_at": "2021-02-10T23:10:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39707.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39707"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39708 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39708/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39708/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39708/events | https://github.com/pandas-dev/pandas/issues/39708 | 804,932,147 | MDU6SXNzdWU4MDQ5MzIxNDc= | 39,708 | BUG: Styler `copy` methods not updated for recent additions | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"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": "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": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
},
{
"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"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/26299608?v=4",
"events_url": "https://api.github.com/users/rlukevie/events{/privacy}",
"followers_url": "https://api.github.com/users/rlukevie/followers",
"following_url": "https://api.github.com/users/rlukevie/following{/other_user}",
"gists_url": "https://api.github.com/users/rlukevie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rlukevie",
"id": 26299608,
"login": "rlukevie",
"node_id": "MDQ6VXNlcjI2Mjk5NjA4",
"organizations_url": "https://api.github.com/users/rlukevie/orgs",
"received_events_url": "https://api.github.com/users/rlukevie/received_events",
"repos_url": "https://api.github.com/users/rlukevie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rlukevie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlukevie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rlukevie"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/26299608?v=4",
"events_url": "https://api.github.com/users/rlukevie/events{/privacy}",
"followers_url": "https://api.github.com/users/rlukevie/followers",
"following_url": "https://api.github.com/users/rlukevie/following{/other_user}",
"gists_url": "https://api.github.com/users/rlukevie/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rlukevie",
"id": 26299608,
"login": "rlukevie",
"node_id": "MDQ6VXNlcjI2Mjk5NjA4",
"organizations_url": "https://api.github.com/users/rlukevie/orgs",
"received_events_url": "https://api.github.com/users/rlukevie/received_events",
"repos_url": "https://api.github.com/users/rlukevie/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rlukevie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlukevie/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rlukevie"
}
] | {
"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"
} | 1 | 2021-02-09T21:18:41Z | 2021-03-05T00:52:34Z | 2021-03-05T00:52:34Z | 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.
---
Recent additions (1.2.0) (1.3.0) to `Styler` have introduced additional class attributes.
The existing `copy` mechanisms catered for older attributes (although not all), but now needs to be reviewed.
Tests should probably be added.
```
def _copy(self, deepcopy: bool = False) -> Styler:
styler = Styler(
self.data,
precision=self.precision,
caption=self.caption,
uuid=self.uuid,
table_styles=self.table_styles,
na_rep=self.na_rep,
)
if deepcopy:
styler.ctx = copy.deepcopy(self.ctx)
styler._todo = copy.deepcopy(self._todo)
else:
styler.ctx = self.ctx
styler._todo = self._todo
return styler
```
And it might also be worth reviewing the `export` and `use` styles methods in case something has been missed. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39708/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39708/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39709 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39709/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39709/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39709/events | https://github.com/pandas-dev/pandas/pull/39709 | 804,970,706 | MDExOlB1bGxSZXF1ZXN0NTcwNjUzMjgz | 39,709 | CI: pin numpydoc | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 3 | 2021-02-09T22:12:35Z | 2021-02-10T02:30:19Z | 2021-02-10T00:32:07Z | MEMBER | null | xref #39688
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] 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/39709/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39709/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39709.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39709",
"merged_at": "2021-02-10T00:32:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39709.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39709"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39710 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39710/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39710/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39710/events | https://github.com/pandas-dev/pandas/issues/39710 | 805,002,594 | MDU6SXNzdWU4MDUwMDI1OTQ= | 39,710 | BUG: Timedelta input string with only symbols and no digits failed to raise an error | {
"avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4",
"events_url": "https://api.github.com/users/avinashpancham/events{/privacy}",
"followers_url": "https://api.github.com/users/avinashpancham/followers",
"following_url": "https://api.github.com/users/avinashpancham/following{/other_user}",
"gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avinashpancham",
"id": 44933366,
"login": "avinashpancham",
"node_id": "MDQ6VXNlcjQ0OTMzMzY2",
"organizations_url": "https://api.github.com/users/avinashpancham/orgs",
"received_events_url": "https://api.github.com/users/avinashpancham/received_events",
"repos_url": "https://api.github.com/users/avinashpancham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avinashpancham"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4",
"events_url": "https://api.github.com/users/avinashpancham/events{/privacy}",
"followers_url": "https://api.github.com/users/avinashpancham/followers",
"following_url": "https://api.github.com/users/avinashpancham/following{/other_user}",
"gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avinashpancham",
"id": 44933366,
"login": "avinashpancham",
"node_id": "MDQ6VXNlcjQ0OTMzMzY2",
"organizations_url": "https://api.github.com/users/avinashpancham/orgs",
"received_events_url": "https://api.github.com/users/avinashpancham/received_events",
"repos_url": "https://api.github.com/users/avinashpancham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avinashpancham"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4",
"events_url": "https://api.github.com/users/avinashpancham/events{/privacy}",
"followers_url": "https://api.github.com/users/avinashpancham/followers",
"following_url": "https://api.github.com/users/avinashpancham/following{/other_user}",
"gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/avinashpancham",
"id": 44933366,
"login": "avinashpancham",
"node_id": "MDQ6VXNlcjQ0OTMzMzY2",
"organizations_url": "https://api.github.com/users/avinashpancham/orgs",
"received_events_url": "https://api.github.com/users/avinashpancham/received_events",
"repos_url": "https://api.github.com/users/avinashpancham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/avinashpancham"
}
] | {
"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"
} | 1 | 2021-02-09T23:10:42Z | 2021-02-10T23:47:33Z | 2021-02-10T23:47:33Z | 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.
---
`pd.Timedelta` with non-digit string input, such as `pd.Timedelta('-')`, successfully processes and returns `Timedelta('0 days 00:00:00')`. From discussion with @jreback in #39497 it was concluded that this is unwanted and that it should raise an error instead.
I found that this appears for string input with `'+'`, `'-'`, `','` and `' '` in various combinations, see below
```python
In [1]: pd.Timedelta('+')
Out[1]: Timedelta('0 days 00:00:00')
In [2]: pd.Timedelta('-')
Out[2]: Timedelta('0 days 00:00:00')
In [3]: pd.Timedelta(' ')
Out[3]: Timedelta('0 days 00:00:00')
In [4]: pd.Timedelta(',')
Out[4]: Timedelta('0 days 00:00:00')
In [5]: pd.Timedelta('++')
Out[5]: Timedelta('0 days 00:00:00')
In [6]: pd.Timedelta('+-')
Out[6]: Timedelta('0 days 00:00:00')
```
#### Problem description
Invalid input should raise an error instead of successfully resolving to 0
#### Expected Output
Raise an error. I would propose to generalize the `ValueError("unit abbreviation w/o a number")` on [L497](https://github.com/pandas-dev/pandas/blob/master/pandas/_libs/tslibs/timedeltas.pyx#L497) of `timedeltas.pyx` to `ValueError("characters w/o a number")` . Since this error also shows up if there are no unit abbrevations, for example:
```python
In [2]: pd.Timedelta('foo')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-06e16138b2f6> in <module>
----> 1 pd.Timedelta('foo')
~/Documents/developer/pandas/pandas/_libs/tslibs/timedeltas.pyx in pandas._libs.tslibs.timedeltas.Timedelta.__new__()
1192 value = parse_iso_format_string(value)
1193 else:
-> 1194 value = parse_timedelta_string(value)
1195 value = np.timedelta64(value)
1196 elif PyDelta_Check(value):
~/Documents/developer/pandas/pandas/_libs/tslibs/timedeltas.pyx in pandas._libs.tslibs.timedeltas.parse_timedelta_string()
429 result += timedelta_as_neg(r, neg)
430 else:
--> 431 raise ValueError("unit abbreviation w/o a number")
432
433 # treat as nanoseconds
ValueError: unit abbreviation w/o a number
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 492c5e00d112f0977a24d219f3758c6757fa2f7c
python : 3.8.6.final.0
python-bits : 64
OS : Darwin
OS-release : 20.2.0
Version : Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 1.2.0.dev0+1259.g492c5e00d1
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 49.6.0.post20201009
Cython : 0.29.21
pytest : 6.1.1
hypothesis : 5.37.3
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.0
html5lib : 1.1
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.4
fastparquet : 0.4.1
gcsfs : 0.7.1
matplotlib : 3.3.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 1.0.1
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.2
sqlalchemy : 1.3.20
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.16.1
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.51.2
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39710/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39710/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39711 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39711/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39711/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39711/events | https://github.com/pandas-dev/pandas/pull/39711 | 805,015,975 | MDExOlB1bGxSZXF1ZXN0NTcwNjkxNDg3 | 39,711 | REF: Rename is_valid_nat_for_dtype -> is_valid_na_for_dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [] | closed | false | null | [] | null | 1 | 2021-02-09T23:36:14Z | 2021-02-10T16:24:03Z | 2021-02-10T09:57:07Z | 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/39711/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39711/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39711.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39711",
"merged_at": "2021-02-10T09:57:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39711.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39711"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/39712 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39712/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39712/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39712/events | https://github.com/pandas-dev/pandas/pull/39712 | 805,044,709 | MDExOlB1bGxSZXF1ZXN0NTcwNzEzOTY0 | 39,712 | Backport PR #39709 on branch 1.2.x (CI: pin numpydoc) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2021-03-02T08:40:51Z",
"closed_issues": 49,
"created_at": "2021-02-07T13:58:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.2.x\r\n\r\n",
"due_on": "2021-03-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/83",
"id": 6402340,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83/labels",
"node_id": "MDk6TWlsZXN0b25lNjQwMjM0MA==",
"number": 83,
"open_issues": 0,
"state": "closed",
"title": "1.2.3",
"updated_at": "2021-03-02T17:15:27Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/83"
} | 0 | 2021-02-10T00:32:25Z | 2021-02-10T10:26:20Z | 2021-02-10T10:26:20Z | NONE | null | Backport PR #39709: CI: pin numpydoc | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39712/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39712/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39712.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39712",
"merged_at": "2021-02-10T10:26:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39712.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39712"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39713 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39713/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39713/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39713/events | https://github.com/pandas-dev/pandas/issues/39713 | 805,169,278 | MDU6SXNzdWU4MDUxNjkyNzg= | 39,713 | ENH: handling units. | {
"avatar_url": "https://avatars.githubusercontent.com/u/25494629?v=4",
"events_url": "https://api.github.com/users/lohraspco/events{/privacy}",
"followers_url": "https://api.github.com/users/lohraspco/followers",
"following_url": "https://api.github.com/users/lohraspco/following{/other_user}",
"gists_url": "https://api.github.com/users/lohraspco/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lohraspco",
"id": 25494629,
"login": "lohraspco",
"node_id": "MDQ6VXNlcjI1NDk0NjI5",
"organizations_url": "https://api.github.com/users/lohraspco/orgs",
"received_events_url": "https://api.github.com/users/lohraspco/received_events",
"repos_url": "https://api.github.com/users/lohraspco/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lohraspco/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lohraspco/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lohraspco"
} | [
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | null | 1 | 2021-02-10T04:58:15Z | 2021-02-10T05:12:38Z | 2021-02-10T05:12:22Z | NONE | null | #### Is your feature request related to a problem?
I wish we could manage units of measurements in pandas.
#### Describe the solution you'd like
For example a temperature column may have the unit of Fahrenheit, if we need to convert the units to Centigrade it will be nice to convert it without creating the convertor functions. Here are some ideas:
Series.unit returns the current unit of measurement (e.g., Fahrenheit).
Series.to_unit() returns a series with the unit in parameter (e.g., Series.to_unit('Fahrenheit')).
More complex units can be electricity consumption and electricity demand.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39713/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39713/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39714 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39714/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39714/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39714/events | https://github.com/pandas-dev/pandas/pull/39714 | 805,186,497 | MDExOlB1bGxSZXF1ZXN0NTcwODMzMTE5 | 39,714 | REF: implement ensure_can_hold_na | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 1 | 2021-02-10T05:33:06Z | 2021-02-10T18:51:57Z | 2021-02-10T18:41:25Z | MEMBER | null | Much simpler than maybe_promote, which for the most part id like to replace with something like
```
def maybe_promote(dtype, fill_value):
inferred, fv = infer_dtype_from(fill_value)
new_dtype = find_common_type([dtype, inferred])
return inferred, fv
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39714/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39714/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39714.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39714",
"merged_at": "2021-02-10T18:41:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39714.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39714"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39715 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39715/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39715/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39715/events | https://github.com/pandas-dev/pandas/pull/39715 | 805,224,368 | MDExOlB1bGxSZXF1ZXN0NTcwODY2MjQz | 39,715 | DOC: Group optional dependencies by category | {
"avatar_url": "https://avatars.githubusercontent.com/u/35386821?v=4",
"events_url": "https://api.github.com/users/nmay231/events{/privacy}",
"followers_url": "https://api.github.com/users/nmay231/followers",
"following_url": "https://api.github.com/users/nmay231/following{/other_user}",
"gists_url": "https://api.github.com/users/nmay231/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nmay231",
"id": 35386821,
"login": "nmay231",
"node_id": "MDQ6VXNlcjM1Mzg2ODIx",
"organizations_url": "https://api.github.com/users/nmay231/orgs",
"received_events_url": "https://api.github.com/users/nmay231/received_events",
"repos_url": "https://api.github.com/users/nmay231/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nmay231/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nmay231/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nmay231"
} | [
{
"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": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 9 | 2021-02-10T06:39:20Z | 2021-02-22T23:50:10Z | 2021-02-22T23:20:50Z | CONTRIBUTOR | null | - [x] closes #39594
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
This PR splits the Optional Dependencies table into multiple tables one for each category. It should help people compare different options when looking for a specific capability, e.g. "I need to read an Excel file. What are my options?".
The specific grouping felt pretty subjective. If you think of a better way to group them, we can do that instead. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39715/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39715/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39715.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39715",
"merged_at": "2021-02-22T23:20:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/39715.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39715"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/39716 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39716/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39716/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39716/events | https://github.com/pandas-dev/pandas/issues/39716 | 805,248,578 | MDU6SXNzdWU4MDUyNDg1Nzg= | 39,716 | BUG: `Style` index name row does not label column class | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"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": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | {
"closed_at": "2021-07-02T07:59:17Z",
"closed_issues": 2396,
"created_at": "2020-11-11T19:05:43Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-06-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/80",
"id": 6095818,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels",
"node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==",
"number": 80,
"open_issues": 1,
"state": "closed",
"title": "1.3",
"updated_at": "2021-08-25T20:34:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80"
} | 2 | 2021-02-10T07:15:33Z | 2021-02-17T00:16:18Z | 2021-02-17T00:16:18Z | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
The `Styler` ignores column class on the `index_name` row and just inputs `blank`, which is a pain for controlling `table_styles` using column selectors.
```
df3 = pd.DataFrame(0, index=['a'], columns=['A','B'])
df3.index.name = 'foo'
print(df3.style.render())
```
```
<style type="text/css">
</style>
<table id="T_a6821_">
<thead>
<tr>
<th class="blank level0" ></th>
<th class="col_heading level0 col0" >A</th>
<th class="col_heading level0 col1" >B</th>
</tr>
<tr>
<th class="index_name level0" >foo</th>
<th class="blank" ></th>
<th class="blank" ></th>
</tr>
</thead>
<tbody>
<tr>
<th id="T_a6821_level0_row0" class="row_heading level0 row0" >a</th>
<td id="T_a6821_row0_col0" class="data row0 col0" >0</td>
<td id="T_a6821_row0_col1" class="data row0 col1" >0</td>
</tr>
</tbody>
</table>
```
Internal mechanics should be fixed to add the col index class.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39716/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39716/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39717 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39717/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39717/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39717/events | https://github.com/pandas-dev/pandas/issues/39717 | 805,299,317 | MDU6SXNzdWU4MDUyOTkzMTc= | 39,717 | BUG: Replacing NaNs with a Series object based on boolean indexing does not replace NaNs | {
"avatar_url": "https://avatars.githubusercontent.com/u/9760865?v=4",
"events_url": "https://api.github.com/users/shivendra90/events{/privacy}",
"followers_url": "https://api.github.com/users/shivendra90/followers",
"following_url": "https://api.github.com/users/shivendra90/following{/other_user}",
"gists_url": "https://api.github.com/users/shivendra90/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/shivendra90",
"id": 9760865,
"login": "shivendra90",
"node_id": "MDQ6VXNlcjk3NjA4NjU=",
"organizations_url": "https://api.github.com/users/shivendra90/orgs",
"received_events_url": "https://api.github.com/users/shivendra90/received_events",
"repos_url": "https://api.github.com/users/shivendra90/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/shivendra90/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shivendra90/subscriptions",
"type": "User",
"url": "https://api.github.com/users/shivendra90"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 3 | 2021-02-10T08:39:58Z | 2021-02-10T13:34:26Z | 2021-02-10T13:34:26Z | 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
diamond_data.isna().sum()
carat 0
cut 0
color 0
clarity 0
depth 691
table 0
x 0
y 0
z 0
price 0
dtype: int64
# Generate random numbers for filling nans
ideal_data = pd.Series(np.random.randint(low=float(diamond_data[diamond_data.cut == "Ideal"]["depth"].min()),
high=float(diamond_data[diamond_data.cut == "Ideal"]["depth"].max()),
size=270)).astype("float")
prem_data = pd.Series(np.random.randint(low=float(diamond_data[diamond_data.cut == "Premium"]["depth"].min()),
high=float(diamond_data[diamond_data.cut == "Premium"]["depth"].max()),
size=192)).astype("float")
vgood_data = pd.Series(np.random.randint(low=float(diamond_data[diamond_data.cut == "Very Good"]["depth"].min()),
high=float(diamond_data[diamond_data.cut == "Very Good"]["depth"].max()),
size=152)).astype("float")
good_data = pd.Series(np.random.randint(low=float(diamond_data[diamond_data.cut == "Good"]["depth"].min()),
high=float(diamond_data[diamond_data.cut == "Good"]["depth"].max()),
size=59)).astype("float")
fair_data = pd.Series(np.random.randint(low=float(diamond_data[diamond_data.cut == "Fair"]["depth"].min()),
high=float(diamond_data[diamond_data.cut == "Fair"]["depth"].max()),
size=24)).astype("float")
# Fill it up
diamond_data.loc[(diamond_data.cut == "Ideal") & (diamond_data.depth.isna()), "depth"] = ideal_data
diamond_data.loc[(diamond_data.cut == "Premium") & (diamond_data.depth.isna()), "depth"] = prem_data
diamond_data.loc[(diamond_data.cut == "Very Good") & (diamond_data.depth.isna()), "depth"] = vgood_data
diamond_data.loc[(diamond_data.cut == "Good") & (diamond_data.depth.isna()), "depth"] = good_data
diamond_data.loc[(diamond_data.cut == "Fair") & (diamond_data.depth.isna()), "depth"] = fair_data
```
#### Problem description
When trying to replace some of the nan values that are spread out randomly on the dataset I'm working on, as shown above through `.loc` indexing, I should get all the values in the`depth` column filled up. Instead, nothing is filled up and running `isna().sum()` shows presence of same missing values.
#### Expected Output
Expected output should be 0 na values for the column `depth`.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 9d598a5e1eee26df95b3910e3f2934890d062caa
python : 3.7.9.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-65-generic
Version : #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.2.1
numpy : 1.19.2
pytz : 2021.1
dateutil : 2.8.1
pip : 20.3.3
setuptools : 52.0.0.post20210125
Cython : None
pytest : 6.2.2
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.20.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.3
fastparquet : None
gcsfs : None
matplotlib : 3.3.2
numexpr : 2.7.2
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.0
sqlalchemy : None
tables : None
tabulate : 0.8.7
xarray : None
xlrd : 2.0.1
xlwt : None
numba : 0.51.2
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39717/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39717/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/39718 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/39718/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/39718/comments | https://api.github.com/repos/pandas-dev/pandas/issues/39718/events | https://github.com/pandas-dev/pandas/pull/39718 | 805,334,528 | MDExOlB1bGxSZXF1ZXN0NTcwOTU1NDYx | 39,718 | CLN: strip whitespaces on `set_td_classes` | {
"avatar_url": "https://avatars.githubusercontent.com/u/24256554?v=4",
"events_url": "https://api.github.com/users/attack68/events{/privacy}",
"followers_url": "https://api.github.com/users/attack68/followers",
"following_url": "https://api.github.com/users/attack68/following{/other_user}",
"gists_url": "https://api.github.com/users/attack68/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/attack68",
"id": 24256554,
"login": "attack68",
"node_id": "MDQ6VXNlcjI0MjU2NTU0",
"organizations_url": "https://api.github.com/users/attack68/orgs",
"received_events_url": "https://api.github.com/users/attack68/received_events",
"repos_url": "https://api.github.com/users/attack68/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/attack68/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/attack68/subscriptions",
"type": "User",
"url": "https://api.github.com/users/attack68"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "006b75",
"default": false,
"description": "conditional formatting using DataFrame.style",
"id": 1728592794,
"name": "Styler",
"node_id": "MDU6TGFiZWwxNzI4NTkyNzk0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Styler"
}
] | closed | false | null | [] | null | 2 | 2021-02-10T09:27:22Z | 2021-02-11T07:02:53Z | 2021-02-10T21:23:45Z | CONTRIBUTOR | null | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
A use case with string DataFrames is to construct multiple and add them, needing space separators:
```
cls1 = pd.DataFrame([['', 'cls1 ']])
cls2 = pd.DataFrame([['cls2 ', '']])
cls3 = pd.DataFrame([['cls3 ', 'cls3 ']])
Styler.set_td_classes(cls1 + cls2 + cls3)
```
Stripping cleans up the output for HTML, and might be helpful in other ways..
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/39718/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/39718/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/39718.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/39718",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/39718.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/39718"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.