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
unknown | updated_at
unknown | closed_at
unknown | 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/43222 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43222/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43222/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43222/events | https://github.com/pandas-dev/pandas/issues/43222 | 979,981,229 | MDU6SXNzdWU5Nzk5ODEyMjk= | 43,222 | BUG: Constructing DataFrame from list of series with MultiIndex, if MultiIndex contains (NaN, NaN) | {
"avatar_url": "https://avatars.githubusercontent.com/u/15675934?v=4",
"events_url": "https://api.github.com/users/sziem/events{/privacy}",
"followers_url": "https://api.github.com/users/sziem/followers",
"following_url": "https://api.github.com/users/sziem/following{/other_user}",
"gists_url": "https://api.github.com/users/sziem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/sziem",
"id": 15675934,
"login": "sziem",
"node_id": "MDQ6VXNlcjE1Njc1OTM0",
"organizations_url": "https://api.github.com/users/sziem/orgs",
"received_events_url": "https://api.github.com/users/sziem/received_events",
"repos_url": "https://api.github.com/users/sziem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/sziem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sziem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/sziem"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "d4c5f9",
"default": false,
"description": "Series/DataFrame/Index/pd.array Constructors",
"id": 1465286368,
"name": "Constructors",
"node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors"
}
] | 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"
} | 4 | "2021-08-26T08:32:56Z" | "2021-10-16T19:30:31Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
I have observed a few issues, when constructing a dataframe from a list of series with multiindices, if any multiindex contains (NaN, NaN).
#### Code Sample, a copy-pastable example
1. In this case I would expect the columns of the dataframe to be the union of the indices of series1 and series2, but ("a", "b") is missing.
```python
import pandas as pd
series1 = pd.Series((1,), index=pd.MultiIndex.from_tuples(((None, None),)))
series2 = pd.Series((10, 20), index=pd.MultiIndex.from_tuples(((None, None), ("a", "b"))))
df = pd.DataFrame([series1, series2])
# NaN
# NaN
# 0 1
# 1 10
```
2. There is another issue, when series1 and series2 are flipped. The columns appear to be correct, but in this case I would expect the value NaN at index 1, column (a,b)):
```python
df = pd.DataFrame([series2, series1])
# a NaN
# b NaN
# 0 20 10
# 1 1 1
```
#### Problem description
#### Expected Output
```python
df = pd.DataFrame([series1, series2])
# a NaN
# b NaN
# 0 NaN 1
# 1 20 10
```
and the reverse case
```python
df = pd.DataFrame([series2, series1])
# a NaN
# b NaN
# 0 20 10
# 1 NaN 1
```
This behavior is not limited to both series containing the MultiIndex (NaN, NaN). Here is an example, where only one series is constructed with (None, None). The column ("a", "b") is missing.
```python
import pandas as pd
series1 = pd.Series((1,), index=pd.MultiIndex.from_tuples((("a", None),)))
series2 = pd.Series((10, 20), index=pd.MultiIndex.from_tuples(((None, None), ("a", "b"))))
df = pd.DataFrame([series1, series2])
# a NaN
# NaN NaN
# 0 1.0 NaN
# 1 NaN 10.0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : f346574c8bb8921664f6d47d2e4b0f1252e181b9
python : 3.9.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.10.59-1-MANJARO
Version : #1 SMP PREEMPT Sun Aug 15 13:11:32 UTC 2021
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.utf8
LOCALE : en_US.UTF-8
pandas : 0+untagged.1.gf346574
numpy : 1.21.1
pytz : 2021.1
dateutil : 2.8.2
pip : 21.1.3
setuptools : 57.4.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.26.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.3
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/43222/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43222/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43223 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43223/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43223/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43223/events | https://github.com/pandas-dev/pandas/issues/43223 | 980,064,497 | MDU6SXNzdWU5ODAwNjQ0OTc= | 43,223 | BUG: Slicing on Datetimeindex fails | {
"avatar_url": "https://avatars.githubusercontent.com/u/9725296?v=4",
"events_url": "https://api.github.com/users/benHeid/events{/privacy}",
"followers_url": "https://api.github.com/users/benHeid/followers",
"following_url": "https://api.github.com/users/benHeid/following{/other_user}",
"gists_url": "https://api.github.com/users/benHeid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benHeid",
"id": 9725296,
"login": "benHeid",
"node_id": "MDQ6VXNlcjk3MjUyOTY=",
"organizations_url": "https://api.github.com/users/benHeid/orgs",
"received_events_url": "https://api.github.com/users/benHeid/received_events",
"repos_url": "https://api.github.com/users/benHeid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benHeid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benHeid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benHeid"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
}
] | closed | false | null | [] | {
"closed_at": "2021-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 3 | "2021-08-26T10:04:41Z" | "2021-09-09T13:51:01Z" | "2021-09-09T13:51:01Z" | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
import pandas as pd
import numpy as np
df = pd.DataFrame(
{'col2': [i for i in range(4)]},
index=pd.DatetimeIndex(["11.01.2011 22:00", "11.01.2011 23:00", "12.01.2011 00:00", "2011-01-13 00:00"]))
df["2011-01-01": "2011-11-01"]
```
Error message:
```
File "...\pandas\core\frame.py", line 3438, in __getitem__
return self._slice(indexer, axis=0)
File "...\pandas\core\generic.py", line 3826, in _slice
assert isinstance(slobj, slice), type(slobj)
AssertionError: <class 'numpy.ndarray'>
```
#### Problem description
The execution of `df["2011-01-01": "2011-11-01"]` fails with the following exception: `AssertionError: <class 'numpy.ndarray'>`. So the first problem is that the error message is not helping to solve the issue. Moreover, I observed that at least in Pandas 1.0.0 the code snippet is executed successfully. Additionally, if the index is sorted the error also does not occur: `df.sort_index()["2011-01-01": "2011-11-01"]`
Note a similar closed issue exists: #35509. With the current version the code snippet from that issue works. However, mine fails.
#### Expected Output
col2
2011-01-13 00:00:00 3
2011-11-01 22:00:00 0
2011-11-01 23:00:00 1
or helpful error message
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 5f648bf1706dd75a9ca0d29f26eadfbb595fe52b
python : 3.8.6.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 : de_DE.cp1252
pandas : 1.3.2
numpy : 1.18.4
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 53.1.0
Cython : None
pytest : 6.2.2
hypothesis : None
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
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.1
sqlalchemy : None
tables : None
tabulate : None
xarray : 0.18.2
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/43223/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43223/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43224 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43224/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43224/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43224/events | https://github.com/pandas-dev/pandas/issues/43224 | 980,074,129 | MDU6SXNzdWU5ODAwNzQxMjk= | 43,224 | ENH: to_csv HTTP options / raw string compression | {
"avatar_url": "https://avatars.githubusercontent.com/u/40593450?v=4",
"events_url": "https://api.github.com/users/NickFillot/events{/privacy}",
"followers_url": "https://api.github.com/users/NickFillot/followers",
"following_url": "https://api.github.com/users/NickFillot/following{/other_user}",
"gists_url": "https://api.github.com/users/NickFillot/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/NickFillot",
"id": 40593450,
"login": "NickFillot",
"node_id": "MDQ6VXNlcjQwNTkzNDUw",
"organizations_url": "https://api.github.com/users/NickFillot/orgs",
"received_events_url": "https://api.github.com/users/NickFillot/received_events",
"repos_url": "https://api.github.com/users/NickFillot/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/NickFillot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NickFillot/subscriptions",
"type": "User",
"url": "https://api.github.com/users/NickFillot"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] | closed | false | null | [] | null | 2 | "2021-08-26T10:15:04Z" | "2021-08-27T06:24:36Z" | "2021-08-27T06:24:36Z" | NONE | null | Hello,
I'm using changed to_csv method to write to correct:
- Raw string/bytes write with compression; when path_or_buf=None, it doesnt allow to compress it
- http(s) files with more options like method, headers (already exists) and other from requests module
If you think it can be added natively, would be nice
Br
Nicolas
```python
import typing, pandas, io
from pandas.core.generic import NDFrame
from urllib.parse import urlparse
def to_csv(
self, path_or_buf: typing.Any = None, sep=',', na_rep='', float_format=None, columns=None, header=True, index=None,
index_label=None, mode='w', encoding=None, compression='infer', quoting=None, quotechar='"',
line_terminator=None, chunksize=None, date_format=None, doublequote=True, escapechar=None, decimal='.',
errors='strict', storage_options=None
):
if index is None:
index = self.index.names[0] is not None # infer index write
# Path/Buffer Check
if isinstance(path_or_buf, str):
url = urlparse(path_or_buf)
if url.scheme in ('http', 'https'):
# request method
if mode.upper() not in ('GET', 'PUT', 'POST', 'UPDATE'):
mode = 'UPDATE' if 'a' in mode else 'POST'
if storage_options is None:
storage_options = {
"method": mode, "verify": False, "headers": {}
}
else:
for k, v in [
('method', mode), ('verify', False), ('headers', {})
]:
storage_options[k] = storage_options.get(k, v)
if compression == 'infer': compression = None
if encoding is None: encoding = 'utf-8'
storage_options['headers']['Content-Type'] = 'text/csv' if compression is None else 'text/%s+csv' % compression
storage_options['headers']['Content-Sep'] = sep
storage_options['headers']['Content-Decimal'] = decimal
storage_options['headers']['Content-Encoding'] = encoding
if compression is not None:
storage_options['headers']['Content-Compression'] = compression
if line_terminator is not None:
storage_options['headers']['Content-Line-Terminator'] = line_terminator
storage_options['data'] = to_csv(
self, path_or_buf=None,
sep=sep, na_rep=na_rep, float_format=float_format, columns=columns, header=header,
index=index, index_label=index_label, mode='w', encoding=encoding, compression=compression,
quoting=quoting, quotechar=quotechar, line_terminator=line_terminator, chunksize=None,
date_format=date_format, doublequote=doublequote, escapechar=escapechar, decimal=decimal,
errors=errors, storage_options=None
)
if isinstance(storage_options['data'], str):
storage_options['data'] = storage_options['data'].encode(encoding)
with requests.request(
url=path_or_buf, **storage_options
) as r:
r.raise_for_status()
return path_or_buf
if '*' in path_or_buf:
path_or_buf = path_or_buf.replace('*', str(uuid.uuid4()))
if path_or_buf is None:
# RuntimeWarning: compression has no effect when passing a non-binary object as input.
if compression is None:
return NDFrame.to_csv(
self, path_or_buf=path_or_buf,
sep=sep, na_rep=na_rep, float_format=float_format, columns=columns, header=header,
index=index, index_label=index_label, mode=mode, encoding=encoding, compression=compression,
quoting=quoting, quotechar=quotechar, line_terminator=line_terminator, chunksize=chunksize,
date_format=date_format, doublequote=doublequote, escapechar=escapechar, decimal=decimal,
errors=errors, storage_options=storage_options
)
path_or_buf = io.BytesIO()
NDFrame.to_csv(
self, path_or_buf=path_or_buf,
sep=sep, na_rep=na_rep, float_format=float_format, columns=columns, header=header,
index=index, index_label=index_label, mode=mode, encoding=encoding, compression=compression,
quoting=quoting, quotechar=quotechar, line_terminator=line_terminator, chunksize=chunksize,
date_format=date_format, doublequote=doublequote, escapechar=escapechar, decimal=decimal,
errors=errors, storage_options=storage_options
)
path_or_buf.seek(0)
return path_or_buf.read()
NDFrame.to_csv(
self, path_or_buf=path_or_buf,
sep=sep, na_rep=na_rep, float_format=float_format, columns=columns, header=header,
index=index, index_label=index_label, mode=mode, encoding=encoding, compression=compression,
quoting=quoting, quotechar=quotechar, line_terminator=line_terminator, chunksize=chunksize,
date_format=date_format, doublequote=doublequote, escapechar=escapechar, decimal=decimal,
errors=errors, storage_options=storage_options
)
return path_or_buf
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43224/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43224/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43225 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43225/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43225/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43225/events | https://github.com/pandas-dev/pandas/pull/43225 | 980,287,684 | MDExOlB1bGxSZXF1ZXN0NzIwNTU0Mzg0 | 43,225 | Added example for Dataframe.align | {
"avatar_url": "https://avatars.githubusercontent.com/u/58251592?v=4",
"events_url": "https://api.github.com/users/oovk/events{/privacy}",
"followers_url": "https://api.github.com/users/oovk/followers",
"following_url": "https://api.github.com/users/oovk/following{/other_user}",
"gists_url": "https://api.github.com/users/oovk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/oovk",
"id": 58251592,
"login": "oovk",
"node_id": "MDQ6VXNlcjU4MjUxNTky",
"organizations_url": "https://api.github.com/users/oovk/orgs",
"received_events_url": "https://api.github.com/users/oovk/received_events",
"repos_url": "https://api.github.com/users/oovk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/oovk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oovk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/oovk"
} | [
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-26T14:05:03Z" | "2021-08-28T19:57:56Z" | "2021-08-28T19:56:49Z" | CONTRIBUTOR | null | - [ ] closes #42125
- [ ] 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
@MarcoGorelli | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43225/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43225/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43225.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43225",
"merged_at": "2021-08-28T19:56:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43225.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43225"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43226 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43226/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43226/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43226/events | https://github.com/pandas-dev/pandas/pull/43226 | 980,300,323 | MDExOlB1bGxSZXF1ZXN0NzIwNTY0NTA0 | 43,226 | Resolving Index Resetting for tz_localize | {
"avatar_url": "https://avatars.githubusercontent.com/u/40196782?v=4",
"events_url": "https://api.github.com/users/kurchi1205/events{/privacy}",
"followers_url": "https://api.github.com/users/kurchi1205/followers",
"following_url": "https://api.github.com/users/kurchi1205/following{/other_user}",
"gists_url": "https://api.github.com/users/kurchi1205/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kurchi1205",
"id": 40196782,
"login": "kurchi1205",
"node_id": "MDQ6VXNlcjQwMTk2Nzgy",
"organizations_url": "https://api.github.com/users/kurchi1205/orgs",
"received_events_url": "https://api.github.com/users/kurchi1205/received_events",
"repos_url": "https://api.github.com/users/kurchi1205/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kurchi1205/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kurchi1205/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kurchi1205"
} | [
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
},
{
"color": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 11 | "2021-08-26T14:15:56Z" | "2021-09-05T10:58:51Z" | "2021-09-05T09:34:06Z" | CONTRIBUTOR | null | - [x] closes #43080
- [x] tests added / passed
I have added a test function `test_series_tz_localize_matching_index` in `test_tz_localize.py`
- [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
Index of the original series is preserved while converting `categorical` data to `datetime`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43226/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43226/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43226.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43226",
"merged_at": "2021-09-05T09:34:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43226.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43226"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43227 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43227/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43227/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43227/events | https://github.com/pandas-dev/pandas/issues/43227 | 980,309,337 | MDU6SXNzdWU5ODAzMDkzMzc= | 43,227 | BUG: GroupBy apply loses NaN groups | {
"avatar_url": "https://avatars.githubusercontent.com/u/23288150?v=4",
"events_url": "https://api.github.com/users/misantroop/events{/privacy}",
"followers_url": "https://api.github.com/users/misantroop/followers",
"following_url": "https://api.github.com/users/misantroop/following{/other_user}",
"gists_url": "https://api.github.com/users/misantroop/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/misantroop",
"id": 23288150,
"login": "misantroop",
"node_id": "MDQ6VXNlcjIzMjg4MTUw",
"organizations_url": "https://api.github.com/users/misantroop/orgs",
"received_events_url": "https://api.github.com/users/misantroop/received_events",
"repos_url": "https://api.github.com/users/misantroop/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/misantroop/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/misantroop/subscriptions",
"type": "User",
"url": "https://api.github.com/users/misantroop"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 2 | "2021-08-26T14:24:11Z" | "2021-08-26T15:19:09Z" | "2021-08-26T15:19: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.
---
Here I'm expecting GroupBy to return an identical structure but NaN groups get removed even with dropna=False. Providing the level argument as a keyword works as expected.
```python
mux = pd.MultiIndex.from_arrays([['a', 'a', np.nan, 'b', 'b'], ['t', 'u', np.nan, 'w', 'y']],
names=['level1', 'level2'])
df = pd.DataFrame({'col': [0, np.nan, np.nan, 3, 4]}, mux)
col
level1 level2
a t 0.0
u NaN
NaN NaN NaN
b w 3.0
y 4.0
df = df.groupby(by='level2', dropna=False).apply(lambda x: x)
col
level1 level2
a t 0.0
u NaN
b w 3.0
y 4.0
df = df.groupby(level='level2', dropna=False).apply(lambda x: x)
col
level1 level2
a t 0.0
u NaN
NaN NaN NaN
b w 3.0
y 4.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/43227/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43227/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43228 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43228/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43228/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43228/events | https://github.com/pandas-dev/pandas/issues/43228 | 980,334,879 | MDU6SXNzdWU5ODAzMzQ4Nzk= | 43,228 | BUG: np.select function does not work with BooleanDtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/38221700?v=4",
"events_url": "https://api.github.com/users/jinlow/events{/privacy}",
"followers_url": "https://api.github.com/users/jinlow/followers",
"following_url": "https://api.github.com/users/jinlow/following{/other_user}",
"gists_url": "https://api.github.com/users/jinlow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jinlow",
"id": 38221700,
"login": "jinlow",
"node_id": "MDQ6VXNlcjM4MjIxNzAw",
"organizations_url": "https://api.github.com/users/jinlow/orgs",
"received_events_url": "https://api.github.com/users/jinlow/received_events",
"repos_url": "https://api.github.com/users/jinlow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jinlow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jinlow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jinlow"
} | [
{
"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": "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"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | "2021-08-26T14:47:55Z" | "2021-08-29T06:29:05Z" | 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.
---
#### Code Sample
```python
import numpy as np
import pandas as pd
df = pd.DataFrame({"col1": list("ABBC"), "col2": list("ZZXY")}).astype("string")
conditions = [
(df["col2"] == "Z") & (df["col1"] == "A"),
(df["col2"] == "Z") & (df["col1"] == "B"),
(df["col1"] == "B"),
]
print((df["col2"] == "Z").dtype) #BooleanDtype
choices = ['yellow', 'blue', 'purple']
df['color'] = np.select(conditions, choices, default='black')
# TypeError: invalid entry 0 in condlist: should be boolean ndarray
```
#### Problem description
When this string dataframe is cast to dtype "string", it seems subsequent columns created from it default to pandas built in types. For instance, now a boolean field created from one of these columns is of type `BooleanDtype`, pandas nullable boolean type.
```python
print((df["col2"] == "Z").dtype) #BooleanDtype
```
However for some reason numpy is not seeing it as a boolean.
If all of the conditions are first cast to type `bool` then it works.
```python
conditions = [i.astype(bool) for i in conditions]
df['color'] = np.select(conditions, choices, default='black')
```
#### Expected Output
I would expect the `np.select` function to work, even with `BooleanDtype` columns.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 5f648bf1706dd75a9ca0d29f26eadfbb595fe52b
python : 3.8.11.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19042
machine : AMD64
processor : Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 1.3.2
numpy : 1.21.2
pytz : 2021.1
dateutil : 2.8.2
pip : 21.0.1
setuptools : 52.0.0.post20210125
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 3.0.1
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.26.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.4.3
numexpr : None
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.7.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43228/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43228/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43229 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43229/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43229/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43229/events | https://github.com/pandas-dev/pandas/pull/43229 | 980,338,991 | MDExOlB1bGxSZXF1ZXN0NzIwNTk2MDcz | 43,229 | CLN: remove _index_data | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 5 | "2021-08-26T14:51:39Z" | "2021-09-02T23:17:43Z" | "2021-09-02T23:16:22Z" | 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/43229/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43229/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43229.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43229",
"merged_at": "2021-09-02T23:16:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43229.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43229"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43230 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43230/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43230/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43230/events | https://github.com/pandas-dev/pandas/pull/43230 | 980,374,022 | MDExOlB1bGxSZXF1ZXN0NzIwNjI0OTc1 | 43,230 | EA: fillna should accept same type #32414 | {
"avatar_url": "https://avatars.githubusercontent.com/u/56443877?v=4",
"events_url": "https://api.github.com/users/Bhavay192/events{/privacy}",
"followers_url": "https://api.github.com/users/Bhavay192/followers",
"following_url": "https://api.github.com/users/Bhavay192/following{/other_user}",
"gists_url": "https://api.github.com/users/Bhavay192/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Bhavay192",
"id": 56443877,
"login": "Bhavay192",
"node_id": "MDQ6VXNlcjU2NDQzODc3",
"organizations_url": "https://api.github.com/users/Bhavay192/orgs",
"received_events_url": "https://api.github.com/users/Bhavay192/received_events",
"repos_url": "https://api.github.com/users/Bhavay192/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Bhavay192/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Bhavay192/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Bhavay192"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | open | false | null | [] | null | 36 | "2021-08-26T15:24:50Z" | "2021-11-20T17:19:41Z" | null | NONE | null | A unit test has been added to check the validity of pd.Categorical() . This PR is with respect to the GitHub issue no. 32414.
Thanks
- [x] closes #32414 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43230/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43230/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43230.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43230",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43230.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43230"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43231 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43231/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43231/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43231/events | https://github.com/pandas-dev/pandas/pull/43231 | 980,411,106 | MDExOlB1bGxSZXF1ZXN0NzIwNjU0NDc4 | 43,231 | CLN: remove unused pandas-gbq tests | {
"avatar_url": "https://avatars.githubusercontent.com/u/247555?v=4",
"events_url": "https://api.github.com/users/tswast/events{/privacy}",
"followers_url": "https://api.github.com/users/tswast/followers",
"following_url": "https://api.github.com/users/tswast/following{/other_user}",
"gists_url": "https://api.github.com/users/tswast/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tswast",
"id": 247555,
"login": "tswast",
"node_id": "MDQ6VXNlcjI0NzU1NQ==",
"organizations_url": "https://api.github.com/users/tswast/orgs",
"received_events_url": "https://api.github.com/users/tswast/received_events",
"repos_url": "https://api.github.com/users/tswast/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tswast/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tswast/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tswast"
} | [
{
"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": "0052cc",
"default": false,
"description": "pandas-gbq compatability",
"id": 57351315,
"name": "IO Google",
"node_id": "MDU6TGFiZWw1NzM1MTMxNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-26T16:02:36Z" | "2021-08-26T20:27:16Z" | "2021-08-26T18:26:35Z" | CONTRIBUTOR | null | Closes #43214
These tests are not run in CI. I'll replace these with tests in the pandas-gbq repo (https://github.com/googleapis/python-bigquery-pandas/issues/379)
- [x] 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
- [x] whatsnew entry (N/A) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43231/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43231/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43231.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43231",
"merged_at": "2021-08-26T18:26:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43231.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43231"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43232 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43232/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43232/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43232/events | https://github.com/pandas-dev/pandas/issues/43232 | 980,415,394 | MDU6SXNzdWU5ODA0MTUzOTQ= | 43,232 | BUG: `reorder_categories` with `inplace=True` is not changing the `dtype.categories` | {
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
} | [
{
"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": "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 | {
"avatar_url": "https://avatars.githubusercontent.com/u/45710269?v=4",
"events_url": "https://api.github.com/users/LobRockyl/events{/privacy}",
"followers_url": "https://api.github.com/users/LobRockyl/followers",
"following_url": "https://api.github.com/users/LobRockyl/following{/other_user}",
"gists_url": "https://api.github.com/users/LobRockyl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LobRockyl",
"id": 45710269,
"login": "LobRockyl",
"node_id": "MDQ6VXNlcjQ1NzEwMjY5",
"organizations_url": "https://api.github.com/users/LobRockyl/orgs",
"received_events_url": "https://api.github.com/users/LobRockyl/received_events",
"repos_url": "https://api.github.com/users/LobRockyl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LobRockyl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LobRockyl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LobRockyl"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/45710269?v=4",
"events_url": "https://api.github.com/users/LobRockyl/events{/privacy}",
"followers_url": "https://api.github.com/users/LobRockyl/followers",
"following_url": "https://api.github.com/users/LobRockyl/following{/other_user}",
"gists_url": "https://api.github.com/users/LobRockyl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/LobRockyl",
"id": 45710269,
"login": "LobRockyl",
"node_id": "MDQ6VXNlcjQ1NzEwMjY5",
"organizations_url": "https://api.github.com/users/LobRockyl/orgs",
"received_events_url": "https://api.github.com/users/LobRockyl/received_events",
"repos_url": "https://api.github.com/users/LobRockyl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/LobRockyl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LobRockyl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/LobRockyl"
}
] | {
"closed_at": "2021-10-17T11:06:28Z",
"closed_issues": 77,
"created_at": "2021-09-10T19:48:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-10-17T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/90",
"id": 7142224,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90/labels",
"node_id": "MI_kwDOAA0YD84AbPtQ",
"number": 90,
"open_issues": 0,
"state": "closed",
"title": "1.3.4",
"updated_at": "2021-10-18T11:00:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90"
} | 16 | "2021-08-26T16:07:12Z" | "2021-09-17T16:32:02Z" | "2021-09-17T16:32:02Z" | 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
In [1]: import pandas as pd
In [2]: pd.__version__
Out[2]: '1.3.2'
In [3]: sr = pd.Series(['a', 'b', 'c'], dtype='category')
In [4]: sr
Out[4]:
0 a
1 b
2 c
dtype: category
Categories (3, object): ['a', 'b', 'c']
In [5]: new = sr.cat.reorder_categories(['c', 'b', 'a'])
In [6]: new
Out[6]:
0 a
1 b
2 c
dtype: category
Categories (3, object): ['c', 'b', 'a']
In [7]: new.dtype.categories
Out[7]: Index(['c', 'b', 'a'], dtype='object')
In [8]: sr.cat.reorder_categories(['c', 'b', 'a'], inplace=True)
pandas/core/arrays/categorical.py:2630: FutureWarning: The `inplace` parameter in pandas.Categorical.reorder_categories is deprecated and will be removed in a future version. Removing unused categories will always return a new Categorical object.
res = method(*args, **kwargs)
In [9]: sr
Out[9]:
0 a
1 b
2 c
dtype: category
Categories (3, object): ['c', 'b', 'a']
In [10]: sr.dtype.categories
Out[10]: Index(['a', 'b', 'c'], dtype='object')
```
#### Problem description
When we perform `reorder_categories` operation as an inplace op, the `categories` attribute of `CategoricalDtype` is not updated.
#### Expected Output
```python
In [7]: sr.dtype.categories
Out[7]: Index(['c', 'b', 'a'], dtype='object')
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 5f648bf1706dd75a9ca0d29f26eadfbb595fe52b
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.0-27-generic
Version : #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58: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.3.2
numpy : 1.21.2
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.4
setuptools : 57.4.0
Cython : 0.29.24
pytest : 6.2.4
hypothesis : 6.15.0
sphinx : 4.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.26.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 2021.07.0
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 5.0.0
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.53.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43232/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43232/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43233 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43233/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43233/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43233/events | https://github.com/pandas-dev/pandas/pull/43233 | 980,430,970 | MDExOlB1bGxSZXF1ZXN0NzIwNjcwNDQ1 | 43,233 | Added example to Dataframe.get docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/58251592?v=4",
"events_url": "https://api.github.com/users/oovk/events{/privacy}",
"followers_url": "https://api.github.com/users/oovk/followers",
"following_url": "https://api.github.com/users/oovk/following{/other_user}",
"gists_url": "https://api.github.com/users/oovk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/oovk",
"id": 58251592,
"login": "oovk",
"node_id": "MDQ6VXNlcjU4MjUxNTky",
"organizations_url": "https://api.github.com/users/oovk/orgs",
"received_events_url": "https://api.github.com/users/oovk/received_events",
"repos_url": "https://api.github.com/users/oovk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/oovk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/oovk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/oovk"
} | [
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 6 | "2021-08-26T16:23:51Z" | "2021-08-27T11:21:50Z" | "2021-08-27T10:56:35Z" | CONTRIBUTOR | 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
@MarcoGorelli
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43233/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43233/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43233.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43233",
"merged_at": "2021-08-27T10:56:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43233.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43233"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43234 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43234/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43234/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43234/events | https://github.com/pandas-dev/pandas/issues/43234 | 980,437,895 | MDU6SXNzdWU5ODA0Mzc4OTU= | 43,234 | ENH: Add .sem() to .describe() | {
"avatar_url": "https://avatars.githubusercontent.com/u/33978275?v=4",
"events_url": "https://api.github.com/users/Karim-53/events{/privacy}",
"followers_url": "https://api.github.com/users/Karim-53/followers",
"following_url": "https://api.github.com/users/Karim-53/following{/other_user}",
"gists_url": "https://api.github.com/users/Karim-53/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Karim-53",
"id": 33978275,
"login": "Karim-53",
"node_id": "MDQ6VXNlcjMzOTc4Mjc1",
"organizations_url": "https://api.github.com/users/Karim-53/orgs",
"received_events_url": "https://api.github.com/users/Karim-53/received_events",
"repos_url": "https://api.github.com/users/Karim-53/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Karim-53/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Karim-53/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Karim-53"
} | [
{
"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": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] | open | false | null | [] | null | 1 | "2021-08-26T16:31:42Z" | "2021-09-30T23:07:49Z" | null | NONE | null | Hi,
The standard error of the mean is quite an interesting statistic. But many didn't hear about it.
It would be nice to add it to ``.describe()`` hoping that people would ask themself about the difference between ``.sem()`` and ``.std()``
```python
series = pd.Series([1,2,3,4])
print(series.sem())
print(series.describe())
```
If many people like the idea then I would create a PR to add this feature :) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43234/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43234/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43235 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43235/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43235/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43235/events | https://github.com/pandas-dev/pandas/pull/43235 | 980,449,800 | MDExOlB1bGxSZXF1ZXN0NzIwNjg1MjQy | 43,235 | Update indexing.rst | {
"avatar_url": "https://avatars.githubusercontent.com/u/62473329?v=4",
"events_url": "https://api.github.com/users/Allan0820/events{/privacy}",
"followers_url": "https://api.github.com/users/Allan0820/followers",
"following_url": "https://api.github.com/users/Allan0820/following{/other_user}",
"gists_url": "https://api.github.com/users/Allan0820/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Allan0820",
"id": 62473329,
"login": "Allan0820",
"node_id": "MDQ6VXNlcjYyNDczMzI5",
"organizations_url": "https://api.github.com/users/Allan0820/orgs",
"received_events_url": "https://api.github.com/users/Allan0820/received_events",
"repos_url": "https://api.github.com/users/Allan0820/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Allan0820/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Allan0820/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Allan0820"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | null | 3 | "2021-08-26T16:46:28Z" | "2021-08-26T17:44:13Z" | "2021-08-26T17:13:36Z" | NONE | null | I have added a much clear and professional documentation for the note above which is clear and easy to understand.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43235/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43235/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43235.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43235",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43235.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43235"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43236 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43236/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43236/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43236/events | https://github.com/pandas-dev/pandas/pull/43236 | 980,452,055 | MDExOlB1bGxSZXF1ZXN0NzIwNjg3MDkz | 43,236 | BUG: groupby.apply incorrectly dropping nan | {
"avatar_url": "https://avatars.githubusercontent.com/u/6472290?v=4",
"events_url": "https://api.github.com/users/debnathshoham/events{/privacy}",
"followers_url": "https://api.github.com/users/debnathshoham/followers",
"following_url": "https://api.github.com/users/debnathshoham/following{/other_user}",
"gists_url": "https://api.github.com/users/debnathshoham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/debnathshoham",
"id": 6472290,
"login": "debnathshoham",
"node_id": "MDQ6VXNlcjY0NzIyOTA=",
"organizations_url": "https://api.github.com/users/debnathshoham/orgs",
"received_events_url": "https://api.github.com/users/debnathshoham/received_events",
"repos_url": "https://api.github.com/users/debnathshoham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/debnathshoham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debnathshoham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/debnathshoham"
} | [
{
"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-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 6 | "2021-08-26T16:49:20Z" | "2021-09-07T09:00:31Z" | "2021-09-06T15:19:38Z" | CONTRIBUTOR | null | - [x] closes #43205
- [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/43236/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43236/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43236.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43236",
"merged_at": "2021-09-06T15:19:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43236.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43236"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43237 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43237/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43237/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43237/events | https://github.com/pandas-dev/pandas/pull/43237 | 980,462,468 | MDExOlB1bGxSZXF1ZXN0NzIwNjk1Njcx | 43,237 | PERF: DataFrame(dict_of_categoricals) | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-26T17:02:57Z" | "2021-08-27T00:53:17Z" | "2021-08-27T00:04:00Z" | MEMBER | null | ```
from asv_bench.benchmarks.frame_ctor import *
self = FromDicts()
self.setup()
%timeit self.time_dict_of_categoricals()
1.48 ms ± 61.1 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- master
528 µs ± 2.75 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43237/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43237/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43237.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43237",
"merged_at": "2021-08-27T00:04:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43237.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43237"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43238 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43238/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43238/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43238/events | https://github.com/pandas-dev/pandas/pull/43238 | 980,617,401 | MDExOlB1bGxSZXF1ZXN0NzIwODIyMTgz | 43,238 | REF: avoid _get_engine_target in _get_nearest_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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-26T20:28:29Z" | "2021-09-13T14:39:44Z" | "2021-09-13T13:18:32Z" | MEMBER | null | A step towards supporting arbitrary EA-backed Indexes | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43238/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43238/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43238.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43238",
"merged_at": "2021-09-13T13:18:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43238.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43238"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43239 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43239/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43239/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43239/events | https://github.com/pandas-dev/pandas/pull/43239 | 980,695,245 | MDExOlB1bGxSZXF1ZXN0NzIwODg2MjE2 | 43,239 | ENH: Add Storage Options kwarg to read_table | {
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
} | [
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-26T22:29:29Z" | "2021-08-31T13:13:23Z" | "2021-08-31T13:13:23Z" | CONTRIBUTOR | null | - [x] closes #39167
- [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
Follow up from https://github.com/pandas-dev/pandas/pull/35381 - looks like this was missed
Not sure if this is an enhancements or a bug given the docs already mention this arg is supported.
https://pandas.pydata.org/docs/reference/api/pandas.read_table.html | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43239/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43239/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43239.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43239",
"merged_at": "2021-08-31T13:13:22Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43239.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43239"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43240 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43240/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43240/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43240/events | https://github.com/pandas-dev/pandas/issues/43240 | 980,726,043 | MDU6SXNzdWU5ODA3MjYwNDM= | 43,240 | BUG: `RangeIndex.where` throws AssertionError | {
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
} | [
{
"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": "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-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 1 | "2021-08-26T23:32:11Z" | "2021-08-27T18:16:24Z" | "2021-08-27T18:16:24Z" | 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
>>> pd.__version__
'1.3.2'
>>> s = pd.RangeIndex(0, 5)
>>> s
RangeIndex(start=0, stop=5, step=1)
>>> import numpy as np
>>> v = np.array([False, False, True, True, True])
>>> s.where(v, 10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 4472, in where
return self.putmask(~cond, other)
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 4727, in putmask
return type(self)._simple_new(values, name=self.name)
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.8/site-packages/pandas/core/indexes/range.py", line 164, in _simple_new
assert isinstance(values, range)
AssertionError
```
#### Problem description
pandas RangeIndex is not allowing a `where` operation to be performed which was working in older versions of pandas i.e., `1.2.5`
#### Expected Output
```python
>>> import pandas as pd
>>> pd.__version__
'1.2.5'
>>> s = pd.RangeIndex(0, 5)
>>> s
RangeIndex(start=0, stop=5, step=1)
>>> import numpy as np
>>> v = np.array([False, False, True, True, True])
>>> s.where(v, 10)
Int64Index([10, 10, 2, 3, 4], dtype='int64')
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 5f648bf1706dd75a9ca0d29f26eadfbb595fe52b
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.0-27-generic
Version : #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58: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.3.2
numpy : 1.21.2
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.4
setuptools : 57.4.0
Cython : 0.29.24
pytest : 6.2.4
hypothesis : 6.15.0
sphinx : 4.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.26.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 2021.07.0
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 5.0.0
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.53.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43240/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43240/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43241 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43241/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43241/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43241/events | https://github.com/pandas-dev/pandas/pull/43241 | 980,747,554 | MDExOlB1bGxSZXF1ZXN0NzIwOTI4Nzgx | 43,241 | DOC: Update minimum pip version | {
"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"
} | [
{
"color": "75507B",
"default": false,
"description": "Library building on various platforms",
"id": 129350,
"name": "Build",
"node_id": "MDU6TGFiZWwxMjkzNTA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build"
},
{
"color": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-27T00:17:37Z" | "2021-08-27T15:28:49Z" | "2021-08-27T13:51:09Z" | MEMBER | null | - [ ] closes #42745
- [ ] 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/43241/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43241/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43241.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43241",
"merged_at": "2021-08-27T13:51:09Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43241.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43241"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43242 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43242/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43242/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43242/events | https://github.com/pandas-dev/pandas/issues/43242 | 980,751,178 | MDU6SXNzdWU5ODA3NTExNzg= | 43,242 | DEPR: squeeze() argument in read_csv/read_table | {
"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"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | {
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 7 | "2021-08-27T00:24:53Z" | "2021-09-10T13:45:47Z" | "2021-09-10T13:45:47Z" | MEMBER | null | I'm pretty sure you can do this directly with a .squeeze() afterwards.
The code does look pretty similar
squeeze()
https://github.com/pandas-dev/pandas/blob/5f648bf1706dd75a9ca0d29f26eadfbb595fe52b/pandas/core/generic.py#L979-L985
vs
read_csv(squeeze=True)
https://github.com/pandas-dev/pandas/blob/15302106ef41e562d2f80c6d1ecffdd4aea7158a/pandas/io/parsers/readers.py#L1063-L1064 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43242/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43242/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43243 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43243/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43243/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43243/events | https://github.com/pandas-dev/pandas/pull/43243 | 980,818,423 | MDExOlB1bGxSZXF1ZXN0NzIwOTg1NTMw | 43,243 | PERF: DataFrame._reduce | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-27T02:53:04Z" | "2021-08-30T15:16:32Z" | "2021-08-30T15:14:33Z" | MEMBER | null | ```
from asv_bench.benchmarks.groupby import *
self = GroupByMethods()
self.setup("int", "skew", "direct", 2)
%timeit self.time_dtype_as_group("int", "skew", "direct", 2)
434 ms ± 17.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master
367 ms ± 8.51 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43243/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43243/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43243.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43243",
"merged_at": "2021-08-30T15:14:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43243.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43243"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43244 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43244/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43244/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43244/events | https://github.com/pandas-dev/pandas/pull/43244 | 980,833,526 | MDExOlB1bGxSZXF1ZXN0NzIwOTk3NjQ5 | 43,244 | TST: Add test for col names during groupby().agg() | {
"avatar_url": "https://avatars.githubusercontent.com/u/18680207?v=4",
"events_url": "https://api.github.com/users/calvh/events{/privacy}",
"followers_url": "https://api.github.com/users/calvh/followers",
"following_url": "https://api.github.com/users/calvh/following{/other_user}",
"gists_url": "https://api.github.com/users/calvh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/calvh",
"id": 18680207,
"login": "calvh",
"node_id": "MDQ6VXNlcjE4NjgwMjA3",
"organizations_url": "https://api.github.com/users/calvh/orgs",
"received_events_url": "https://api.github.com/users/calvh/received_events",
"repos_url": "https://api.github.com/users/calvh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/calvh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/calvh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/calvh"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 3 | "2021-08-27T03:26:17Z" | "2021-10-31T00:52:19Z" | "2021-10-31T00:52:18Z" | CONTRIBUTOR | null | Column names should consistently be retained when using df.groupby().agg()
- [x] closes #42332
- [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
Whats new:
Add a test to `pandas/tests/groupby/aggregate/test_aggregate.py`
The issue appears to be fixed now:
Tested on 1.4.0.dev0+508.g5fe02971f8

Output of `pd.show_versions()`
INSTALLED VERSIONS
------------------
commit : 5fe02971f8bc40a6bbb742f1f376b3650c3c8eaa
python : 3.9.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.0-31-generic
Version : #33-Ubuntu SMP Wed Aug 11 13:19:04 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_CA.UTF-8
LOCALE : en_CA.UTF-8
pandas : 1.4.0.dev0+508.g5fe02971f8
numpy : 1.20.3
pytz : 2021.1
dateutil : 2.8.2
pip : 20.3.4
setuptools : 57.4.0
Cython : 0.29.24
pytest : 6.2.4
hypothesis : 6.14.9
sphinx : 4.1.2
blosc : 1.10.4
feather : None
xlsxwriter : 3.0.1
lxml.etree : 4.6.3
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.26.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 2021.05.0
fastparquet : 0.7.1
gcsfs : 2021.05.0
matplotlib : 3.4.3
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : 5.0.0
pyxlsb : None
s3fs : 2021.05.0
scipy : 1.7.1
sqlalchemy : 1.4.23
tables : 3.6.1
tabulate : 0.8.9
xarray : 0.18.2
xlrd : 2.0.1
xlwt : 1.3.0
numba : 0.54.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/43244/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43244/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43244.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43244",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43244.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43244"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43245 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43245/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43245/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43245/events | https://github.com/pandas-dev/pandas/issues/43245 | 980,971,623 | MDU6SXNzdWU5ODA5NzE2MjM= | 43,245 | iterrows does not preserve dtypes | {
"avatar_url": "https://avatars.githubusercontent.com/u/23587658?v=4",
"events_url": "https://api.github.com/users/George3d6/events{/privacy}",
"followers_url": "https://api.github.com/users/George3d6/followers",
"following_url": "https://api.github.com/users/George3d6/following{/other_user}",
"gists_url": "https://api.github.com/users/George3d6/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/George3d6",
"id": 23587658,
"login": "George3d6",
"node_id": "MDQ6VXNlcjIzNTg3NjU4",
"organizations_url": "https://api.github.com/users/George3d6/orgs",
"received_events_url": "https://api.github.com/users/George3d6/received_events",
"repos_url": "https://api.github.com/users/George3d6/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/George3d6/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/George3d6/subscriptions",
"type": "User",
"url": "https://api.github.com/users/George3d6"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 10 | "2021-08-27T07:44:42Z" | "2021-10-04T05:55:27Z" | "2021-09-30T23:08:39Z" | NONE | null | #### Is your feature request related to a problem?
I wish I could use pandas in a way that does not cause bug-hunting for hours to look for a specific spot where nonsensical behavior occurs.
#### Describe the solution you'd like
The iterrow function (https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.iterrows.html) and a few other ways of access do not preserve data types, this is very counterintuitive behavior (unless reading the docs, and making a comment about it for the next guy that maintain the code to see).
Fixing this would involve making sure they return the correct types *and* potentially adding a `breaking_iterrow` function that can be used for more efficient type-unaware iteration.
#### API breaking implications
Would involve changing the behavior of iterrows, might break a few pieces of code that rely upon the arbitrary types this generates (likely without the author realizing)
#### Describe alternatives you've considered
Leaving comments every time I use pandas iterrows.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43245/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43245/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43246 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43246/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43246/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43246/events | https://github.com/pandas-dev/pandas/pull/43246 | 980,985,466 | MDExOlB1bGxSZXF1ZXN0NzIxMTE3MjUw | 43,246 | DOC PR09 Add "." on to_hdf format parameter | {
"avatar_url": "https://avatars.githubusercontent.com/u/36736733?v=4",
"events_url": "https://api.github.com/users/marvintensuan/events{/privacy}",
"followers_url": "https://api.github.com/users/marvintensuan/followers",
"following_url": "https://api.github.com/users/marvintensuan/following{/other_user}",
"gists_url": "https://api.github.com/users/marvintensuan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/marvintensuan",
"id": 36736733,
"login": "marvintensuan",
"node_id": "MDQ6VXNlcjM2NzM2NzMz",
"organizations_url": "https://api.github.com/users/marvintensuan/orgs",
"received_events_url": "https://api.github.com/users/marvintensuan/received_events",
"repos_url": "https://api.github.com/users/marvintensuan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/marvintensuan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/marvintensuan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/marvintensuan"
} | [
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-27T08:03:16Z" | "2021-08-27T08:45:44Z" | "2021-08-27T08:09:21Z" | CONTRIBUTOR | 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
From #28602:
```
pandas.Series.to_hdf: Parameter "format" description should finish with "."
pandas.DataFrame.to_hdf: Parameter "format" description should finish with "."
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43246/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43246/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43246.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43246",
"merged_at": "2021-08-27T08:09:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43246.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43246"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43247 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43247/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43247/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43247/events | https://github.com/pandas-dev/pandas/pull/43247 | 981,024,777 | MDExOlB1bGxSZXF1ZXN0NzIxMTQ5MDQ4 | 43,247 | Warn on du parse | {
"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": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 2 | "2021-08-27T08:52:35Z" | "2021-10-01T08:48:57Z" | "2021-10-01T08:48:56Z" | MEMBER | null | - [ ] closes #12585
- [ ] 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/43247/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43247/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43247.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43247",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43247.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43247"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43248 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43248/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43248/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43248/events | https://github.com/pandas-dev/pandas/pull/43248 | 981,096,182 | MDExOlB1bGxSZXF1ZXN0NzIxMjA3ODA4 | 43,248 | ENH: consistency of input args for boundaries in DataFrame.between_time() #40245 | {
"avatar_url": "https://avatars.githubusercontent.com/u/45630098?v=4",
"events_url": "https://api.github.com/users/suyashgupta01/events{/privacy}",
"followers_url": "https://api.github.com/users/suyashgupta01/followers",
"following_url": "https://api.github.com/users/suyashgupta01/following{/other_user}",
"gists_url": "https://api.github.com/users/suyashgupta01/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/suyashgupta01",
"id": 45630098,
"login": "suyashgupta01",
"node_id": "MDQ6VXNlcjQ1NjMwMDk4",
"organizations_url": "https://api.github.com/users/suyashgupta01/orgs",
"received_events_url": "https://api.github.com/users/suyashgupta01/received_events",
"repos_url": "https://api.github.com/users/suyashgupta01/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/suyashgupta01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/suyashgupta01/subscriptions",
"type": "User",
"url": "https://api.github.com/users/suyashgupta01"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0052cc",
"default": false,
"description": "pandas 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"
},
{
"color": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 34 | "2021-08-27T10:17:39Z" | "2021-09-27T11:39:31Z" | "2021-09-10T17:17:38Z" | CONTRIBUTOR | null | - [ ] xref #40245
- [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/43248/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43248/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43248.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43248",
"merged_at": "2021-09-10T17:17:38Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43248.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43248"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43249 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43249/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43249/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43249/events | https://github.com/pandas-dev/pandas/pull/43249 | 981,220,935 | MDExOlB1bGxSZXF1ZXN0NzIxMzEwOTkw | 43,249 | converted the assert error to TypeError with proper informative message | {
"avatar_url": "https://avatars.githubusercontent.com/u/43116538?v=4",
"events_url": "https://api.github.com/users/harshitsinha6/events{/privacy}",
"followers_url": "https://api.github.com/users/harshitsinha6/followers",
"following_url": "https://api.github.com/users/harshitsinha6/following{/other_user}",
"gists_url": "https://api.github.com/users/harshitsinha6/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/harshitsinha6",
"id": 43116538,
"login": "harshitsinha6",
"node_id": "MDQ6VXNlcjQzMTE2NTM4",
"organizations_url": "https://api.github.com/users/harshitsinha6/orgs",
"received_events_url": "https://api.github.com/users/harshitsinha6/received_events",
"repos_url": "https://api.github.com/users/harshitsinha6/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/harshitsinha6/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/harshitsinha6/subscriptions",
"type": "User",
"url": "https://api.github.com/users/harshitsinha6"
} | [] | closed | false | null | [] | null | 10 | "2021-08-27T12:53:39Z" | "2021-08-31T23:29:33Z" | "2021-08-31T23:29:33Z" | NONE | 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/43249/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43249/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43249.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43249",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43249.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43249"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43250 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43250/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43250/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43250/events | https://github.com/pandas-dev/pandas/pull/43250 | 981,273,829 | MDExOlB1bGxSZXF1ZXN0NzIxMzU0MzU1 | 43,250 | Backport PR #43172 on branch 1.3.x (BUG: Pass index data correctly in groupby.transform/agg w/ engine=numba) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "5319e7",
"default": false,
"description": "numba-accelerated operations",
"id": 2138993554,
"name": "numba",
"node_id": "MDU6TGFiZWwyMTM4OTkzNTU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/numba"
}
] | closed | false | null | [] | {
"closed_at": "2021-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 0 | "2021-08-27T13:52:52Z" | "2021-08-27T18:12:42Z" | "2021-08-27T18:12:42Z" | NONE | null | Backport PR #43172: BUG: Pass index data correctly in groupby.transform/agg w/ engine=numba | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43250/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43250/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43250.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43250",
"merged_at": "2021-08-27T18:12:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43250.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43250"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43251 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43251/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43251/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43251/events | https://github.com/pandas-dev/pandas/pull/43251 | 981,309,785 | MDExOlB1bGxSZXF1ZXN0NzIxMzg0MjAy | 43,251 | Bug in RangeIndex.where raising AssertionError when result is not from RangeIndex | {
"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": "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": "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-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 1 | "2021-08-27T14:31:54Z" | "2021-08-27T18:17:33Z" | "2021-08-27T18:16:25Z" | MEMBER | null | - [x] closes #43240
- [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
cc @jbrockmendel
2 options here:
- calling ``_shallow_copy`` which handles the cast to Int64Index in theses cases
- implementing a similar logic in ``_simple_new`` passing the call through to Int64Index or Float64Index depending on the dtype
But not sure if this would be counterintuitive for ``_simple_new``. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43251/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43251/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43251.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43251",
"merged_at": "2021-08-27T18:16:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43251.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43251"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43252 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43252/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43252/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43252/events | https://github.com/pandas-dev/pandas/pull/43252 | 981,415,265 | MDExOlB1bGxSZXF1ZXN0NzIxNDcwMDAx | 43,252 | TYP: cache_readonly | {
"avatar_url": "https://avatars.githubusercontent.com/u/6618166?v=4",
"events_url": "https://api.github.com/users/twoertwein/events{/privacy}",
"followers_url": "https://api.github.com/users/twoertwein/followers",
"following_url": "https://api.github.com/users/twoertwein/following{/other_user}",
"gists_url": "https://api.github.com/users/twoertwein/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twoertwein",
"id": 6618166,
"login": "twoertwein",
"node_id": "MDQ6VXNlcjY2MTgxNjY=",
"organizations_url": "https://api.github.com/users/twoertwein/orgs",
"received_events_url": "https://api.github.com/users/twoertwein/received_events",
"repos_url": "https://api.github.com/users/twoertwein/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twoertwein/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twoertwein/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twoertwein"
} | [
{
"color": "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 | [] | null | 4 | "2021-08-27T16:38:47Z" | "2021-09-02T13:07:42Z" | "2021-09-02T13:07:42Z" | CONTRIBUTOR | null | - [x] closes #41588
- [ ] 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
I'm not sure how to test this on the CI - pyright is happy on my machine:
```py
import pandas as pd
index: pd.IntervalIndex = pd.IntervalIndex.from_arrays([1], [2])
reveal_type(index)
reveal_type(index.right)
```
```
info: Type of "index" is "IntervalIndex"
info: Type of "index.right" is "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/43252/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43252/timeline | null | 1 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43252.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43252",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43252.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43252"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43253 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43253/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43253/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43253/events | https://github.com/pandas-dev/pandas/pull/43253 | 981,419,374 | MDExOlB1bGxSZXF1ZXN0NzIxNDczMjY5 | 43,253 | BUG: fix is_named_tuple for objects that are not subclass of tuple #40682 | {
"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": "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"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-27T16:44:41Z" | "2021-09-04T14:33:30Z" | "2021-09-04T14:33:27Z" | MEMBER | null | - [x] closes #40682
- [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/43253/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43253/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43253.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43253",
"merged_at": "2021-09-04T14:33:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43253.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43253"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43254 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43254/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43254/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43254/events | https://github.com/pandas-dev/pandas/issues/43254 | 981,419,550 | MDU6SXNzdWU5ODE0MTk1NTA= | 43,254 | WEB add missing maintainers to web/pandas/config.yml | {
"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": "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": "23ef97",
"default": false,
"description": "pandas website",
"id": 1508144531,
"name": "Web",
"node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web"
}
] | closed | false | null | [] | null | 0 | "2021-08-27T16:44:56Z" | "2021-08-27T18:40:02Z" | "2021-08-27T18:40:02Z" | MEMBER | null | Looks like there's a few names missing from
https://github.com/pandas-dev/pandas/blob/b9e90dc8acf003588678196e7dc8294114918bb2/web/pandas/config.yml#L65-L89
we need to add:
- @attack68
- @fangchenli
- @twoertwein
- @tswast
Anyone want to open a PR to add them?
----
For anyone wondering about the process behind joining the core team, see https://github.com/pandas-dev/pandas-governance/blob/master/governance.md#core-team | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43254/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43254/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43255 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43255/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43255/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43255/events | https://github.com/pandas-dev/pandas/pull/43255 | 981,427,306 | MDExOlB1bGxSZXF1ZXN0NzIxNDc5NjM4 | 43,255 | WEB: Updated list of active maintainers #43254 | {
"avatar_url": "https://avatars.githubusercontent.com/u/53790060?v=4",
"events_url": "https://api.github.com/users/DeviousLab/events{/privacy}",
"followers_url": "https://api.github.com/users/DeviousLab/followers",
"following_url": "https://api.github.com/users/DeviousLab/following{/other_user}",
"gists_url": "https://api.github.com/users/DeviousLab/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DeviousLab",
"id": 53790060,
"login": "DeviousLab",
"node_id": "MDQ6VXNlcjUzNzkwMDYw",
"organizations_url": "https://api.github.com/users/DeviousLab/orgs",
"received_events_url": "https://api.github.com/users/DeviousLab/received_events",
"repos_url": "https://api.github.com/users/DeviousLab/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DeviousLab/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeviousLab/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DeviousLab"
} | [
{
"color": "23ef97",
"default": false,
"description": "pandas website",
"id": 1508144531,
"name": "Web",
"node_id": "MDU6TGFiZWwxNTA4MTQ0NTMx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Web"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-27T16:56:15Z" | "2021-08-27T18:40:03Z" | "2021-08-27T18:40:02Z" | CONTRIBUTOR | null | Added *attack68, fangchenli, twoertwein, tswast* to the list of active maintainers.
- [X] closes #43254
- [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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43255/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43255/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43255.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43255",
"merged_at": "2021-08-27T18:40:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43255.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43255"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43256 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43256/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43256/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43256/events | https://github.com/pandas-dev/pandas/pull/43256 | 981,450,170 | MDExOlB1bGxSZXF1ZXN0NzIxNDk3OTkw | 43,256 | ENH: `styler.format` options | {
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-27T17:27:56Z" | "2021-08-31T20:56:45Z" | "2021-08-31T20:03:48Z" | CONTRIBUTOR | null | - [x] adds to #41395
- [x] add options
- [x] add tests
- [x] update `Styler.format` docstring
- [x] update `options.rst`
- [x] update `Styler` init docstring
- [x] whatsnew
update user guide **will be a follow-on when all options are merged**

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43256/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43256/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43256.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43256",
"merged_at": "2021-08-31T20:03:48Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43256.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43256"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43257 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43257/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43257/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43257/events | https://github.com/pandas-dev/pandas/issues/43257 | 981,453,298 | MDU6SXNzdWU5ODE0NTMyOTg= | 43,257 | DEPS: Bump minimum Numba version | {
"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": "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": "5319e7",
"default": false,
"description": "numba-accelerated operations",
"id": 2138993554,
"name": "numba",
"node_id": "MDU6TGFiZWwyMTM4OTkzNTU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/numba"
}
] | closed | false | null | [] | null | 2 | "2021-08-27T17:32:43Z" | "2021-08-27T20:41:25Z" | "2021-08-27T20:41:25Z" | MEMBER | null | xref https://github.com/pandas-dev/pandas/pull/43172#discussion_r697458641
The current min version is 0.46.0 which came out 2019-10-10.
Bumping to at least 0.49.0 (which came out 2020-04-17) would allow this version check to be removed:
https://github.com/pandas-dev/pandas/blob/b9e90dc8acf003588678196e7dc8294114918bb2/pandas/core/util/numba_.py#L90
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43257/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43257/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43258 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43258/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43258/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43258/events | https://github.com/pandas-dev/pandas/pull/43258 | 981,480,094 | MDExOlB1bGxSZXF1ZXN0NzIxNTIxNDMy | 43,258 | TST: added tests for to_json when called on complex data (GH41174) | {
"avatar_url": "https://avatars.githubusercontent.com/u/63981558?v=4",
"events_url": "https://api.github.com/users/lorenzophys/events{/privacy}",
"followers_url": "https://api.github.com/users/lorenzophys/followers",
"following_url": "https://api.github.com/users/lorenzophys/following{/other_user}",
"gists_url": "https://api.github.com/users/lorenzophys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lorenzophys",
"id": 63981558,
"login": "lorenzophys",
"node_id": "MDQ6VXNlcjYzOTgxNTU4",
"organizations_url": "https://api.github.com/users/lorenzophys/orgs",
"received_events_url": "https://api.github.com/users/lorenzophys/received_events",
"repos_url": "https://api.github.com/users/lorenzophys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lorenzophys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorenzophys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lorenzophys"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-27T18:11:18Z" | "2021-08-30T07:52:37Z" | "2021-08-30T07:52:26Z" | CONTRIBUTOR | null | - [x] closes #41174
- [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
Provided tests for `to_json` when called on complex data on both `Series` and `DataFrame`. Coefficients are both `int` and `float`.
Tests and linter pass locally.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43258/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43258/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43258.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43258",
"merged_at": "2021-08-30T07:52:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43258.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43258"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43259 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43259/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43259/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43259/events | https://github.com/pandas-dev/pandas/pull/43259 | 981,484,073 | MDExOlB1bGxSZXF1ZXN0NzIxNTI0Njg3 | 43,259 | Backport PR #43251 on branch 1.3.x (Bug in RangeIndex.where raising AssertionError when result is not from RangeIndex) | {
"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": "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": "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-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 0 | "2021-08-27T18:16:33Z" | "2021-08-28T07:46:58Z" | "2021-08-28T07:46:58Z" | NONE | null | Backport PR #43251: Bug in RangeIndex.where raising AssertionError when result is not from RangeIndex | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43259/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43259/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43259.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43259",
"merged_at": "2021-08-28T07:46:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43259.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43259"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43260 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43260/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43260/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43260/events | https://github.com/pandas-dev/pandas/pull/43260 | 981,500,964 | MDExOlB1bGxSZXF1ZXN0NzIxNTM4MDI3 | 43,260 | CI: Remove aiobotocore pin again | {
"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": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "d93f0b",
"default": false,
"description": "Required and optional dependencies",
"id": 527603109,
"name": "Dependencies",
"node_id": "MDU6TGFiZWw1Mjc2MDMxMDk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dependencies"
}
] | closed | false | null | [] | {
"closed_at": "2021-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 3 | "2021-08-27T18:41:19Z" | "2021-08-28T22:34:47Z" | "2021-08-28T22:34:44Z" | MEMBER | null | - [x] closes #43168
This should be fixed 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/43260/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43260/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43260.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43260",
"merged_at": "2021-08-28T22:34:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43260.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43260"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43261 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43261/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43261/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43261/events | https://github.com/pandas-dev/pandas/pull/43261 | 981,536,945 | MDExOlB1bGxSZXF1ZXN0NzIxNTY2MzEz | 43,261 | BUG: rolling.corr with MultiIndex columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-27T19:31:50Z" | "2021-09-07T05:18:03Z" | "2021-09-07T05:18:00Z" | MEMBER | null | - [x] closes #21157
- [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/43261/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43261/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43261.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43261",
"merged_at": "2021-09-07T05:18:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43261.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43261"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43262 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43262/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43262/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43262/events | https://github.com/pandas-dev/pandas/issues/43262 | 981,552,696 | MDU6SXNzdWU5ODE1NTI2OTY= | 43,262 | DOC: pandas.Series.str.replace inconsistent parameter (regex) | {
"avatar_url": "https://avatars.githubusercontent.com/u/49494071?v=4",
"events_url": "https://api.github.com/users/abadrinath15/events{/privacy}",
"followers_url": "https://api.github.com/users/abadrinath15/followers",
"following_url": "https://api.github.com/users/abadrinath15/following{/other_user}",
"gists_url": "https://api.github.com/users/abadrinath15/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/abadrinath15",
"id": 49494071,
"login": "abadrinath15",
"node_id": "MDQ6VXNlcjQ5NDk0MDcx",
"organizations_url": "https://api.github.com/users/abadrinath15/orgs",
"received_events_url": "https://api.github.com/users/abadrinath15/received_events",
"repos_url": "https://api.github.com/users/abadrinath15/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/abadrinath15/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abadrinath15/subscriptions",
"type": "User",
"url": "https://api.github.com/users/abadrinath15"
} | [
{
"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": "0052cc",
"default": false,
"description": "Issue that has not been reviewed by a pandas team member",
"id": 1954720290,
"name": "Needs Triage",
"node_id": "MDU6TGFiZWwxOTU0NzIwMjkw",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Triage"
}
] | closed | false | null | [] | null | 1 | "2021-08-27T19:56:16Z" | "2021-08-27T20:07:52Z" | "2021-08-27T20:07:51Z" | NONE | null | ###
- [X] I have checked that the issue still exists on the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/)
### Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.str.replace.html
### Documentation problem
The method description lists regex=None as the default, while the argument and examples list regex=True. In addition, the argument description does not list None as a possibility.
### Suggested fix for documentation
Change method description to regex=True as that seems to be accurate behavior. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43262/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43262/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43263 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43263/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43263/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43263/events | https://github.com/pandas-dev/pandas/pull/43263 | 981,585,087 | MDExOlB1bGxSZXF1ZXN0NzIxNjA0Mjkw | 43,263 | REF get-axis-number | {
"avatar_url": "https://avatars.githubusercontent.com/u/80621216?v=4",
"events_url": "https://api.github.com/users/ForthenchoPacino/events{/privacy}",
"followers_url": "https://api.github.com/users/ForthenchoPacino/followers",
"following_url": "https://api.github.com/users/ForthenchoPacino/following{/other_user}",
"gists_url": "https://api.github.com/users/ForthenchoPacino/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ForthenchoPacino",
"id": 80621216,
"login": "ForthenchoPacino",
"node_id": "MDQ6VXNlcjgwNjIxMjE2",
"organizations_url": "https://api.github.com/users/ForthenchoPacino/orgs",
"received_events_url": "https://api.github.com/users/ForthenchoPacino/received_events",
"repos_url": "https://api.github.com/users/ForthenchoPacino/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ForthenchoPacino/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ForthenchoPacino/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ForthenchoPacino"
} | [] | closed | false | null | [] | null | 4 | "2021-08-27T20:46:08Z" | "2021-08-30T11:43:14Z" | "2021-08-30T11:43:14Z" | NONE | null | - [ ] closes #43408
- [ ] whatsnew entry
- [ ] 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
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43263/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43263/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43263.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43263",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43263.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43263"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43264 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43264/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43264/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43264/events | https://github.com/pandas-dev/pandas/pull/43264 | 981,636,135 | MDExOlB1bGxSZXF1ZXN0NzIxNjQ1MzA2 | 43,264 | TYP: nanops | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
},
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-27T22:25:19Z" | "2021-08-30T14:48:26Z" | "2021-08-30T07:50:06Z" | 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/43264/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43264/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43264.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43264",
"merged_at": "2021-08-30T07:50:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43264.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43264"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43265 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43265/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43265/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43265/events | https://github.com/pandas-dev/pandas/pull/43265 | 981,664,728 | MDExOlB1bGxSZXF1ZXN0NzIxNjY3ODU1 | 43,265 | DEPR: Passing in a string column label for DataFrame.ewm(times=...) | {
"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": "5319e7",
"default": false,
"description": "Functionality to remove in pandas",
"id": 87485152,
"name": "Deprecate",
"node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate"
},
{
"color": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 3 | "2021-08-27T23:43:08Z" | "2021-09-05T02:48:57Z" | "2021-09-05T01:43:20Z" | MEMBER | null | - [x] xref https://github.com/pandas-dev/pandas/pull/42834#discussion_r680451102
- [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/43265/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43265/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43265.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43265",
"merged_at": "2021-09-05T01:43:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43265.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43265"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43266 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43266/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43266/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43266/events | https://github.com/pandas-dev/pandas/pull/43266 | 981,665,855 | MDExOlB1bGxSZXF1ZXN0NzIxNjY4NzIx | 43,266 | REF: Remove Numba compat pre 0.50.1 | {
"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": "5319e7",
"default": false,
"description": "numba-accelerated operations",
"id": 2138993554,
"name": "numba",
"node_id": "MDU6TGFiZWwyMTM4OTkzNTU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/numba"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 3 | "2021-08-27T23:47:34Z" | "2021-08-30T16:53:36Z" | "2021-08-30T07:50:59Z" | MEMBER | null | No longer needed since the bump https://github.com/pandas-dev/pandas/issues/43257#issuecomment-907452377 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43266/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43266/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43266.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43266",
"merged_at": "2021-08-30T07:50:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43266.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43266"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43267 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43267/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43267/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43267/events | https://github.com/pandas-dev/pandas/issues/43267 | 981,705,059 | MDU6SXNzdWU5ODE3MDUwNTk= | 43,267 | BUG: crash in df.groupby.rolling.mean with forward window indexer | {
"avatar_url": "https://avatars.githubusercontent.com/u/31037879?v=4",
"events_url": "https://api.github.com/users/mIgLLL/events{/privacy}",
"followers_url": "https://api.github.com/users/mIgLLL/followers",
"following_url": "https://api.github.com/users/mIgLLL/following{/other_user}",
"gists_url": "https://api.github.com/users/mIgLLL/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mIgLLL",
"id": 31037879,
"login": "mIgLLL",
"node_id": "MDQ6VXNlcjMxMDM3ODc5",
"organizations_url": "https://api.github.com/users/mIgLLL/orgs",
"received_events_url": "https://api.github.com/users/mIgLLL/received_events",
"repos_url": "https://api.github.com/users/mIgLLL/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mIgLLL/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mIgLLL/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mIgLLL"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "d4c5f9",
"default": false,
"description": "rolling, ewma, expanding",
"id": 1045950827,
"name": "Window",
"node_id": "MDU6TGFiZWwxMDQ1OTUwODI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window"
},
{
"color": "36ede0",
"default": false,
"description": "Non-Recoverable Error",
"id": 1121248195,
"name": "Segfault",
"node_id": "MDU6TGFiZWwxMTIxMjQ4MTk1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Segfault"
}
] | closed | false | null | [] | {
"closed_at": "2021-10-17T11:06:28Z",
"closed_issues": 77,
"created_at": "2021-09-10T19:48:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-10-17T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/90",
"id": 7142224,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90/labels",
"node_id": "MI_kwDOAA0YD84AbPtQ",
"number": 90,
"open_issues": 0,
"state": "closed",
"title": "1.3.4",
"updated_at": "2021-10-18T11:00:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90"
} | 8 | "2021-08-28T02:45:58Z" | "2021-10-16T20:26:52Z" | "2021-10-16T20:26:52Z" | 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
# Your code here
Here is a replicate code:
df = pd.DataFrame({'B': [np.nan, 1, 2, np.nan, 4,5,6,7,8,9,10,11,12,13,14,15]})
df['A']=1
indexer = pd.api.indexers.FixedForwardWindowIndexer(window_size=12) # forward 12 period
# First time is OK
df['mean']=df.groupby('A')['B'].rolling(window=indexer, min_periods=1).mean().reset_index().loc[:,'B']
# Second time would crash!
df['mean']=df.groupby('A')['B'].rolling(window=indexer, min_periods=1).mean().reset_index().loc[:,'B']
If don't have groupby, it won't crash.
If don't forward window indexer, it won't crash.
If in the first time, it won't crash.
```
#### Problem description
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution]
When you use df.groupby.rolling.mean with a forward-looking period, it would crash if you run the df.groupby.rolling.mean again.
#### Expected Output
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : c7f7443c1bad8262358114d5e88cd9c8a308e8aa
python : 3.8.11.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19042
machine : AMD64
processor : Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
byteorder : little
LC_ALL : None
LANG : zh_CN
LOCALE : Chinese (Simplified)_China.936
pandas : 1.3.1
numpy : 1.20.3
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.2
setuptools : 52.0.0.post20210125
Cython : 0.29.24
pytest : 6.2.4
hypothesis : None
sphinx : 4.0.2
blosc : None
feather : None
xlsxwriter : 3.0.1
lxml.etree : 4.6.3
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.26.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 2021.07.0
fastparquet : None
gcsfs : None
matplotlib : 3.4.2
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.6.2
sqlalchemy : 1.4.22
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 2.0.1
xlwt : 1.3.0
numba : 0.53.1
[paste the output of ``pd.show_versions()`` here leaving a blank line after the details tag]
</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/43267/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43267/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43268 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43268/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43268/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43268/events | https://github.com/pandas-dev/pandas/pull/43268 | 981,767,971 | MDExOlB1bGxSZXF1ZXN0NzIxNzQwNzMy | 43,268 | PERF: to_datetime with uint | {
"avatar_url": "https://avatars.githubusercontent.com/u/6472290?v=4",
"events_url": "https://api.github.com/users/debnathshoham/events{/privacy}",
"followers_url": "https://api.github.com/users/debnathshoham/followers",
"following_url": "https://api.github.com/users/debnathshoham/following{/other_user}",
"gists_url": "https://api.github.com/users/debnathshoham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/debnathshoham",
"id": 6472290,
"login": "debnathshoham",
"node_id": "MDQ6VXNlcjY0NzIyOTA=",
"organizations_url": "https://api.github.com/users/debnathshoham/orgs",
"received_events_url": "https://api.github.com/users/debnathshoham/received_events",
"repos_url": "https://api.github.com/users/debnathshoham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/debnathshoham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debnathshoham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/debnathshoham"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-28T07:56:35Z" | "2021-08-30T13:48:35Z" | "2021-08-30T13:12:40Z" | CONTRIBUTOR | null | - [x] closes #42606
- [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
```python
#PR
In [3]: %time index = pd.to_datetime(np.arange(1_000_000).astype("uint64"), unit="s", utc=True)
CPU times: user 20.6 ms, sys: 19.9 ms, total: 40.5 ms
Wall time: 39.2 ms
In [4]: %time index = pd.to_datetime(np.arange(1_000_000).astype("uint32"), unit="s", utc=True)
CPU times: user 16.3 ms, sys: 6.58 ms, total: 22.8 ms
Wall time: 21.2 ms
#master
In [3]: %time index = pd.to_datetime(np.arange(1_000_000).astype("uint64"), unit="s", utc=True)
CPU times: user 12.6 s, sys: 44.3 ms, total: 12.7 s
Wall time: 12.7 s
In [4]: %time index = pd.to_datetime(np.arange(1_000_000).astype("uint32"), unit="s", utc=True)
CPU times: user 5.88 s, sys: 21.2 ms, total: 5.9 s
Wall time: 5.92 s
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43268/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43268/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43268.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43268",
"merged_at": "2021-08-30T13:12:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43268.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43268"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43269 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43269/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43269/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43269/events | https://github.com/pandas-dev/pandas/pull/43269 | 981,809,546 | MDExOlB1bGxSZXF1ZXN0NzIxNzY4OTQ0 | 43,269 | BENCH: update `class SelectDtypes` to allow testing against 1.3.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": "ae68cc",
"default": false,
"description": "Performance (ASV) benchmarks",
"id": 732775912,
"name": "Benchmark",
"node_id": "MDU6TGFiZWw3MzI3NzU5MTI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-28T11:16:16Z" | "2021-09-01T10:09:36Z" | "2021-08-31T23:29:59Z" | MEMBER | null | doesn't need backport since benchmarks on master are used for comparing branches and finding performance regressions
xref #43047 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43269/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43269/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43269.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43269",
"merged_at": "2021-08-31T23:29:58Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43269.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43269"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43270 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43270/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43270/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43270/events | https://github.com/pandas-dev/pandas/pull/43270 | 981,873,251 | MDExOlB1bGxSZXF1ZXN0NzIxODEwOTE2 | 43,270 | TST: added test for ea dtypes conversion to datetimetzdtype (GH37553) | {
"avatar_url": "https://avatars.githubusercontent.com/u/63981558?v=4",
"events_url": "https://api.github.com/users/lorenzophys/events{/privacy}",
"followers_url": "https://api.github.com/users/lorenzophys/followers",
"following_url": "https://api.github.com/users/lorenzophys/following{/other_user}",
"gists_url": "https://api.github.com/users/lorenzophys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lorenzophys",
"id": 63981558,
"login": "lorenzophys",
"node_id": "MDQ6VXNlcjYzOTgxNTU4",
"organizations_url": "https://api.github.com/users/lorenzophys/orgs",
"received_events_url": "https://api.github.com/users/lorenzophys/received_events",
"repos_url": "https://api.github.com/users/lorenzophys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lorenzophys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorenzophys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lorenzophys"
} | [
{
"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": "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": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
},
{
"color": "6138b5",
"default": false,
"description": "Extending pandas with custom dtypes or arrays.",
"id": 849023693,
"name": "ExtensionArray",
"node_id": "MDU6TGFiZWw4NDkwMjM2OTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/ExtensionArray"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-28T16:21:54Z" | "2021-08-31T23:32:37Z" | "2021-08-31T23:32:33Z" | CONTRIBUTOR | null | - [x] closes #37553
- [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
Provided tests for type cast `ExtensionDtypes` -> `DatetimeTZDtype`.
Tests and linter pass locally. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43270/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43270/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43270.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43270",
"merged_at": "2021-08-31T23:32:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43270.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43270"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43271 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43271/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43271/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43271/events | https://github.com/pandas-dev/pandas/pull/43271 | 981,873,761 | MDExOlB1bGxSZXF1ZXN0NzIxODExMjQz | 43,271 | DOC: erroneous initialization of a DataFrame with Series objects GH42818 | {
"avatar_url": "https://avatars.githubusercontent.com/u/54001098?v=4",
"events_url": "https://api.github.com/users/Stark-developer01/events{/privacy}",
"followers_url": "https://api.github.com/users/Stark-developer01/followers",
"following_url": "https://api.github.com/users/Stark-developer01/following{/other_user}",
"gists_url": "https://api.github.com/users/Stark-developer01/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Stark-developer01",
"id": 54001098,
"login": "Stark-developer01",
"node_id": "MDQ6VXNlcjU0MDAxMDk4",
"organizations_url": "https://api.github.com/users/Stark-developer01/orgs",
"received_events_url": "https://api.github.com/users/Stark-developer01/received_events",
"repos_url": "https://api.github.com/users/Stark-developer01/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Stark-developer01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Stark-developer01/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Stark-developer01"
} | [] | closed | false | null | [] | null | 2 | "2021-08-28T16:24:28Z" | "2021-08-28T17:32:33Z" | "2021-08-28T17:32:33Z" | NONE | null | - [ ] closes #42818
- [ ] 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
- [ ] modified `azure-pipelines.yml`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43271/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43271/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43271.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43271",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43271.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43271"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43272 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43272/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43272/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43272/events | https://github.com/pandas-dev/pandas/pull/43272 | 981,875,677 | MDExOlB1bGxSZXF1ZXN0NzIxODEyNDM3 | 43,272 | PERF: _getitem_view | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
] | closed | false | null | [] | null | 0 | "2021-08-28T16:33:32Z" | "2021-08-30T04:00:41Z" | "2021-08-30T04:00:31Z" | 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/43272/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43272/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43272.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43272",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43272.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43272"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43273 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43273/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43273/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43273/events | https://github.com/pandas-dev/pandas/pull/43273 | 981,877,441 | MDExOlB1bGxSZXF1ZXN0NzIxODEzNTM2 | 43,273 | TYP: indexes | {
"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": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-28T16:42:02Z" | "2021-08-29T14:05:06Z" | "2021-08-29T09:00:53Z" | 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/43273/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43273/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43273.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43273",
"merged_at": "2021-08-29T09:00:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43273.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43273"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43274 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43274/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43274/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43274/events | https://github.com/pandas-dev/pandas/pull/43274 | 981,895,641 | MDExOlB1bGxSZXF1ZXN0NzIxODI0NzA2 | 43,274 | PERF: indexing | {
"avatar_url": "https://avatars.githubusercontent.com/u/6472290?v=4",
"events_url": "https://api.github.com/users/debnathshoham/events{/privacy}",
"followers_url": "https://api.github.com/users/debnathshoham/followers",
"following_url": "https://api.github.com/users/debnathshoham/following{/other_user}",
"gists_url": "https://api.github.com/users/debnathshoham/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/debnathshoham",
"id": 6472290,
"login": "debnathshoham",
"node_id": "MDQ6VXNlcjY0NzIyOTA=",
"organizations_url": "https://api.github.com/users/debnathshoham/orgs",
"received_events_url": "https://api.github.com/users/debnathshoham/received_events",
"repos_url": "https://api.github.com/users/debnathshoham/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/debnathshoham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/debnathshoham/subscriptions",
"type": "User",
"url": "https://api.github.com/users/debnathshoham"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2021-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 11 | "2021-08-28T18:07:09Z" | "2021-08-30T15:49:36Z" | "2021-08-30T15:48:51Z" | CONTRIBUTOR | 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
Added a check as suggested in https://github.com/pandas-dev/pandas/pull/39280#issuecomment-764753400
```python
In [1]: from asv_bench.benchmarks.indexing import InsertColumns
In [2]: self = InsertColumns()
In [3]: self.setup()
In [4]: %timeit self.time_assign_with_setitem()
27.6 ms ± 68.1 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) #master
In [4]: %timeit self.time_assign_with_setitem()
8.6 ms ± 6.43 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) #PR
```
Edit:
```
before after ratio
[2b3a9b16] [fa9c7140]
<master> <indexing.InsertColumns.time_assign_with_setitem>
- 179±4μs 163±0.6μs 0.91 indexing.NumericSeriesIndexing.time_iloc_array(<class 'pandas.core.indexes.numeric.UInt64Index'>, 'unique_monotonic_inc')
- 838±50μs 759±7μs 0.90 indexing.NonNumericSeriesIndexing.time_getitem_list_like('datetime', 'nonunique_monotonic_inc')
- 37.7±4μs 34.0±0.5μs 0.90 indexing.NumericSeriesIndexing.time_getitem_slice(<class 'pandas.core.indexes.numeric.UInt64Index'>, 'nonunique_monotonic_inc')
- 2.91±0.09ms 2.61±0.1ms 0.90 indexing.NumericSeriesIndexing.time_loc_list_like(<class 'pandas.core.indexes.numeric.UInt64Index'>, 'unique_monotonic_inc')
- 60.1±2μs 54.0±0.5μs 0.90 indexing.NumericSeriesIndexing.time_iloc_list_like(<class 'pandas.core.indexes.numeric.Int64Index'>, 'unique_monotonic_inc')
- 1.56±0.03ms 1.40±0.04ms 0.90 indexing.NumericSeriesIndexing.time_loc_list_like(<class 'pandas.core.indexes.numeric.Int64Index'>, 'nonunique_monotonic_inc')
- 183±20μs 164±1μs 0.89 indexing.NumericSeriesIndexing.time_iloc_array(<class 'pandas.core.indexes.numeric.Int64Index'>, 'unique_monotonic_inc')
- 2.39±0.05ms 2.14±0ms 0.89 indexing.NumericSeriesIndexing.time_getitem_list_like(<class 'pandas.core.indexes.numeric.UInt64Index'>, 'nonunique_monotonic_inc')
- 879±30μs 780±50μs 0.89 indexing.CategoricalIndexIndexing.time_get_indexer_list('monotonic_incr')
- 184±20μs 163±1μs 0.88 indexing.NumericSeriesIndexing.time_iloc_array(<class 'pandas.core.indexes.numeric.Int64Index'>, 'nonunique_monotonic_inc')
- 131±7μs 115±4μs 0.87 indexing.NumericSeriesIndexing.time_loc_scalar(<class 'pandas.core.indexes.numeric.Float64Index'>, 'nonunique_monotonic_inc')
- 3.02±0.03ms 2.63±0.09ms 0.87 indexing.NumericSeriesIndexing.time_loc_list_like(<class 'pandas.core.indexes.numeric.Float64Index'>, 'nonunique_monotonic_inc')
- 3.19±0.04ms 2.78±0.04ms 0.87 indexing.NumericSeriesIndexing.time_getitem_list_like(<class 'pandas.core.indexes.numeric.Float64Index'>, 'nonunique_monotonic_inc')
- 11.7±0.2ms 10.2±0.2ms 0.87 indexing.NumericSeriesIndexing.time_loc_array(<class 'pandas.core.indexes.numeric.Float64Index'>, 'unique_monotonic_inc')
- 1.89±0.04ms 1.65±0ms 0.87 indexing.NumericSeriesIndexing.time_getitem_list_like(<class 'pandas.core.indexes.numeric.Int64Index'>, 'unique_monotonic_inc')
- 4.63±0.1ms 3.99±0.02ms 0.86 indexing.NumericSeriesIndexing.time_getitem_array(<class 'pandas.core.indexes.numeric.Int64Index'>, 'unique_monotonic_inc')
- 1.82±0.04ms 1.56±0.01ms 0.86 indexing.NumericSeriesIndexing.time_getitem_list_like(<class 'pandas.core.indexes.numeric.Int64Index'>, 'nonunique_monotonic_inc')
- 3.69±0.1ms 3.14±0.1ms 0.85 indexing.NumericSeriesIndexing.time_loc_list_like(<class 'pandas.core.indexes.numeric.Float64Index'>, 'unique_monotonic_inc')
- 4.08±0.06ms 3.43±0.02ms 0.84 indexing.NumericSeriesIndexing.time_getitem_list_like(<class 'pandas.core.indexes.numeric.Float64Index'>, 'unique_monotonic_inc')
- 150±30μs 120±3μs 0.80 indexing.NumericSeriesIndexing.time_loc_slice(<class 'pandas.core.indexes.numeric.UInt64Index'>, 'unique_monotonic_inc')
- 961±30μs 762±20μs 0.79 indexing.CategoricalIndexIndexing.time_get_indexer_list('monotonic_decr')
- 295±30μs 231±3μs 0.78 indexing.NumericSeriesIndexing.time_loc_slice(<class 'pandas.core.indexes.numeric.Int64Index'>, 'nonunique_monotonic_inc')
- 1.11±0.3ms 825±20μs 0.74 indexing_engines.NumericEngineIndexing.time_get_loc((<class 'pandas._libs.index.UInt8Engine'>, <class 'numpy.uint8'>), 'monotonic_incr')
- 741±80μs 288±9μs 0.39 indexing.AssignTimeseriesIndex.time_frame_assign_timeseries_index
- 49.3±2ms 18.2±0.2ms 0.37 indexing.InsertColumns.time_assign_with_setitem
- 54.3±20ms 18.5±1ms 0.34 indexing.InsertColumns.time_assign_list_like_with_setitem
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43274/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43274/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43274.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43274",
"merged_at": "2021-08-30T15:48:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43274.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43274"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43275 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43275/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43275/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43275/events | https://github.com/pandas-dev/pandas/pull/43275 | 981,897,051 | MDExOlB1bGxSZXF1ZXN0NzIxODI1NjU5 | 43,275 | TST: makeMultiIndex not respecting k parameter | {
"avatar_url": "https://avatars.githubusercontent.com/u/24571294?v=4",
"events_url": "https://api.github.com/users/ShreyasPatel031/events{/privacy}",
"followers_url": "https://api.github.com/users/ShreyasPatel031/followers",
"following_url": "https://api.github.com/users/ShreyasPatel031/following{/other_user}",
"gists_url": "https://api.github.com/users/ShreyasPatel031/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShreyasPatel031",
"id": 24571294,
"login": "ShreyasPatel031",
"node_id": "MDQ6VXNlcjI0NTcxMjk0",
"organizations_url": "https://api.github.com/users/ShreyasPatel031/orgs",
"received_events_url": "https://api.github.com/users/ShreyasPatel031/received_events",
"repos_url": "https://api.github.com/users/ShreyasPatel031/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShreyasPatel031/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShreyasPatel031/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShreyasPatel031"
} | [
{
"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": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 3 | "2021-08-28T18:14:13Z" | "2021-10-31T00:53:50Z" | "2021-10-31T00:53:50Z" | NONE | null | - [x] closes #38795
- [x] 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/43275/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43275/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43275.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43275",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43275.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43275"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43276 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43276/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43276/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43276/events | https://github.com/pandas-dev/pandas/issues/43276 | 981,899,783 | MDU6SXNzdWU5ODE4OTk3ODM= | 43,276 | DOC: `Styler` user guide limitations out of date | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"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 | 0 | "2021-08-28T18:28:38Z" | "2021-11-20T15:56:51Z" | "2021-11-20T15:56:51Z" | CONTRIBUTOR | null | ###
- [X] I have checked that the issue still exists on the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/)
### Location of the documentation
https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html
### Documentation problem
The limitations section is out of date given many of the PRs submitted in last few months.
### Suggested fix for documentation
Update it. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43276/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43276/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43277 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43277/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43277/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43277/events | https://github.com/pandas-dev/pandas/pull/43277 | 981,903,947 | MDExOlB1bGxSZXF1ZXN0NzIxODMwMjI5 | 43,277 | PERF: read_stata | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default": false,
"description": "read_stata, to_stata",
"id": 104865385,
"name": "IO Stata",
"node_id": "MDU6TGFiZWwxMDQ4NjUzODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-28T18:51:27Z" | "2021-08-30T14:43:15Z" | "2021-08-30T13:27:32Z" | MEMBER | null | ```
from asv_bench.benchmarks.io.stata import *
self = StataMissing()
self.setup("td")
%timeit self.time_read_stata("td")
113 ms ± 1.44 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master
94.4 ms ± 1.72 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR
```
cc @bashtage | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43277/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43277/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43277.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43277",
"merged_at": "2021-08-30T13:27:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43277.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43277"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43278 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43278/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43278/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43278/events | https://github.com/pandas-dev/pandas/pull/43278 | 981,929,437 | MDExOlB1bGxSZXF1ZXN0NzIxODQ2OTU3 | 43,278 | PERF: column_arrays | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 5 | "2021-08-28T21:13:47Z" | "2021-09-11T17:02:47Z" | "2021-09-11T14:53:40Z" | MEMBER | null | Shaves a couple percent off of time_to_json_wide asv
Reprises #42824. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43278/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43278/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43278.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43278",
"merged_at": "2021-09-11T14:53:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43278.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43278"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43279 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43279/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43279/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43279/events | https://github.com/pandas-dev/pandas/pull/43279 | 981,942,044 | MDExOlB1bGxSZXF1ZXN0NzIxODU0OTI5 | 43,279 | Backport PR #43260 on branch 1.3.x (CI: Remove aiobotocore pin again) | {
"avatar_url": "https://avatars.githubusercontent.com/u/39504233?v=4",
"events_url": "https://api.github.com/users/meeseeksmachine/events{/privacy}",
"followers_url": "https://api.github.com/users/meeseeksmachine/followers",
"following_url": "https://api.github.com/users/meeseeksmachine/following{/other_user}",
"gists_url": "https://api.github.com/users/meeseeksmachine/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/meeseeksmachine",
"id": 39504233,
"login": "meeseeksmachine",
"node_id": "MDQ6VXNlcjM5NTA0MjMz",
"organizations_url": "https://api.github.com/users/meeseeksmachine/orgs",
"received_events_url": "https://api.github.com/users/meeseeksmachine/received_events",
"repos_url": "https://api.github.com/users/meeseeksmachine/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/meeseeksmachine/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/meeseeksmachine/subscriptions",
"type": "User",
"url": "https://api.github.com/users/meeseeksmachine"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"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-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 0 | "2021-08-28T22:35:13Z" | "2021-08-29T07:53:04Z" | "2021-08-29T07:53:04Z" | NONE | null | Backport PR #43260: CI: Remove aiobotocore pin again | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43279/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43279/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43279.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43279",
"merged_at": "2021-08-29T07:53:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43279.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43279"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43280 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43280/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43280/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43280/events | https://github.com/pandas-dev/pandas/issues/43280 | 981,966,660 | MDU6SXNzdWU5ODE5NjY2NjA= | 43,280 | BUG: `pd.to_numeric` has an inconsistent behavior for `datetime` objects | {
"avatar_url": "https://avatars.githubusercontent.com/u/53947956?v=4",
"events_url": "https://api.github.com/users/hec10r/events{/privacy}",
"followers_url": "https://api.github.com/users/hec10r/followers",
"following_url": "https://api.github.com/users/hec10r/following{/other_user}",
"gists_url": "https://api.github.com/users/hec10r/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hec10r",
"id": 53947956,
"login": "hec10r",
"node_id": "MDQ6VXNlcjUzOTQ3OTU2",
"organizations_url": "https://api.github.com/users/hec10r/orgs",
"received_events_url": "https://api.github.com/users/hec10r/received_events",
"repos_url": "https://api.github.com/users/hec10r/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hec10r/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hec10r/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hec10r"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] | open | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/53947956?v=4",
"events_url": "https://api.github.com/users/hec10r/events{/privacy}",
"followers_url": "https://api.github.com/users/hec10r/followers",
"following_url": "https://api.github.com/users/hec10r/following{/other_user}",
"gists_url": "https://api.github.com/users/hec10r/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hec10r",
"id": 53947956,
"login": "hec10r",
"node_id": "MDQ6VXNlcjUzOTQ3OTU2",
"organizations_url": "https://api.github.com/users/hec10r/orgs",
"received_events_url": "https://api.github.com/users/hec10r/received_events",
"repos_url": "https://api.github.com/users/hec10r/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hec10r/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hec10r/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hec10r"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/53947956?v=4",
"events_url": "https://api.github.com/users/hec10r/events{/privacy}",
"followers_url": "https://api.github.com/users/hec10r/followers",
"following_url": "https://api.github.com/users/hec10r/following{/other_user}",
"gists_url": "https://api.github.com/users/hec10r/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hec10r",
"id": 53947956,
"login": "hec10r",
"node_id": "MDQ6VXNlcjUzOTQ3OTU2",
"organizations_url": "https://api.github.com/users/hec10r/orgs",
"received_events_url": "https://api.github.com/users/hec10r/received_events",
"repos_url": "https://api.github.com/users/hec10r/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hec10r/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hec10r/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hec10r"
}
] | null | 15 | "2021-08-29T01:18:43Z" | "2021-09-30T23:09: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.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
>>> import pandas as pd
>>> from datetime import datetime
>>> pd.to_numeric(datetime(2021, 8, 22), errors="coerce")
nan
>>> pd.to_numeric(pd.Series(datetime(2021, 8, 22)), errors="coerce")
0 1629590400000000000
dtype: int64
>>> pd.Series([datetime(2021, 8, 22)]).apply(partial(pd.to_numeric), errors="coerce")
0 NaN
dtype: float64
>>>
>>> pd.to_numeric(pd.NaT, errors="coerce")
nan
>>> pd.to_numeric(pd.Series(pd.NaT), errors="coerce")
0 -9223372036854775808
dtype: int64
>>> pd.Series([pd.NaT]).apply(partial(pd.to_numeric), errors="coerce")
0 NaN
dtype: float64
```
#### Problem description
When using `pd.to_numeric` to convert a `pd.Series` with dtype `datetime64[ns]`, it returns different values than converting the series *value by value*
#### Expected Output
Converting a `pd.Series` as a *whole* should be the same than converting it *value by value*.
I am not sure about what the correct output should be, but IMO the output should be consistent in these two scenarios.
What I suggest:
- For no-null values, returns the same value. Maybe the integer?
- For `pd.NaT`, always returns `np.NaN`
#### Output of ``pd.show_versions()``
I am using the latest version of `master` until today
<details>
INSTALLED VERSIONS
------------------
commit : e39ea3024cebb4e7a7fd35972a44637de6c41650
python : 3.8.3.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Tue Jun 22 19:49:55 PDT 2021; root:xnu-6153.141.35~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.4.0.dev0+517.gc3761e24d8
numpy : 1.18.5
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.2.0.post20200714
Cython : 0.29.21
pytest : 5.4.3
hypothesis : None
sphinx : 3.1.2
blosc : None
feather : None
xlsxwriter : 1.2.9
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.1
bottleneck : 1.3.2
fsspec : 0.7.4
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.4
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.5.0
sqlalchemy : 1.3.18
tables : 3.6.1
tabulate : 0.8.9
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.50.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43280/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43280/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43281 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43281/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43281/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43281/events | https://github.com/pandas-dev/pandas/pull/43281 | 981,984,388 | MDExOlB1bGxSZXF1ZXN0NzIxODgxMDQ4 | 43,281 | PERF: DataFrame floordiv | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-29T03:39:09Z" | "2021-08-29T14:05:40Z" | "2021-08-29T09:02:00Z" | MEMBER | null | ```
from asv_bench.benchmarks.arithmetic import *
self = MixedFrameWithSeriesAxis()
self.setup("floordiv")
%timeit self.time_frame_op_with_series_axis1("floordiv")
27.9 ms ± 987 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master
23.7 ms ± 630 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43281/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43281/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43281.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43281",
"merged_at": "2021-08-29T09:02:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43281.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43281"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43282 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43282/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43282/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43282/events | https://github.com/pandas-dev/pandas/issues/43282 | 982,024,560 | MDU6SXNzdWU5ODIwMjQ1NjA= | 43,282 | STYLE use yaml anchors in .pre-commit-config.yaml for flake8 | {
"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"
},
{
"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 | [] | null | 15 | "2021-08-29T07:52:09Z" | "2021-10-25T14:04:54Z" | "2021-10-25T14:04:54Z" | MEMBER | null | Instead of duplicating these lines
https://github.com/pandas-dev/pandas/blob/e39ea3024cebb4e7a7fd35972a44637de6c41650/.pre-commit-config.yaml#L42-L45
https://github.com/pandas-dev/pandas/blob/e39ea3024cebb4e7a7fd35972a44637de6c41650/.pre-commit-config.yaml#L79-L83
we would use a [yaml anchor](https://ktomk.github.io/writing/yaml-anchor-alias-and-merge-key.html)
See here for an example of how that works https://github.com/psf/black/pull/2459/files
---
This would also mean being able to get rid of a big part of https://github.com/pandas-dev/pandas/blob/e39ea3024cebb4e7a7fd35972a44637de6c41650/scripts/sync_flake8_versions.py | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43282/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43282/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43283 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43283/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43283/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43283/events | https://github.com/pandas-dev/pandas/pull/43283 | 982,025,681 | MDExOlB1bGxSZXF1ZXN0NzIxOTA2MDkz | 43,283 | ENH: `styler.html.mathjax` option | {
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-29T07:57:36Z" | "2021-09-01T17:57:37Z" | "2021-09-01T17:50:00Z" | CONTRIBUTOR | null | This pandas option is added to allow the `Styler` options to be independent from the others. See #41395
- [x] add option in config
- [x] add tests
- [x] whats new
- [x] `options.rst`
will update styler user guide as a follow on when all options PRs merged.

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43283/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43283/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43283.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43283",
"merged_at": "2021-09-01T17:50:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43283.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43283"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43284 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43284/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43284/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43284/events | https://github.com/pandas-dev/pandas/pull/43284 | 982,064,738 | MDExOlB1bGxSZXF1ZXN0NzIxOTI5MzYw | 43,284 | ENH: `styler.latex` options | {
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "to_latex",
"id": 251382258,
"name": "IO LaTeX",
"node_id": "MDU6TGFiZWwyNTEzODIyNTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20LaTeX"
},
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-29T10:49:31Z" | "2021-09-01T21:50:56Z" | "2021-09-01T19:36:08Z" | CONTRIBUTOR | null | adds item to #41395
- [x] added to config
- [x] method and docstrings added
- [x] options.rst docs
- [x] adds tests
- [x] whatsnew entry
will update user guide as a follow on after all options added.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43284/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43284/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43284.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43284",
"merged_at": "2021-09-01T19:36:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43284.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43284"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43285 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43285/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43285/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43285/events | https://github.com/pandas-dev/pandas/pull/43285 | 982,115,396 | MDExOlB1bGxSZXF1ZXN0NzIxOTYyODc2 | 43,285 | PERF: Styler | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-29T14:35:11Z" | "2021-08-30T14:42:34Z" | "2021-08-30T13:10:30Z" | MEMBER | null | ```
from asv_bench.benchmarks.io.style import *
self = Render()
self.setup(36, 12)
%timeit self.setup(36, 12); self.time_apply_render(36, 12)
29.2 ms ± 1.2 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master
9.98 ms ± 706 µs per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- PR
```
cc @attack68 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43285/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43285/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43285.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43285",
"merged_at": "2021-08-30T13:10:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43285.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43285"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43286 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43286/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43286/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43286/events | https://github.com/pandas-dev/pandas/pull/43286 | 982,137,872 | MDExOlB1bGxSZXF1ZXN0NzIxOTc3NTQz | 43,286 | Cleanup in hist.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/65748688?v=4",
"events_url": "https://api.github.com/users/Gowthami-R/events{/privacy}",
"followers_url": "https://api.github.com/users/Gowthami-R/followers",
"following_url": "https://api.github.com/users/Gowthami-R/following{/other_user}",
"gists_url": "https://api.github.com/users/Gowthami-R/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Gowthami-R",
"id": 65748688,
"login": "Gowthami-R",
"node_id": "MDQ6VXNlcjY1NzQ4Njg4",
"organizations_url": "https://api.github.com/users/Gowthami-R/orgs",
"received_events_url": "https://api.github.com/users/Gowthami-R/received_events",
"repos_url": "https://api.github.com/users/Gowthami-R/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Gowthami-R/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Gowthami-R/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Gowthami-R"
} | [] | closed | false | null | [] | null | 1 | "2021-08-29T16:05:36Z" | "2021-08-29T16:15:01Z" | "2021-08-29T16:15:01Z" | NONE | null | Found a small typo in hist.py
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43286/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43286/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43286.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43286",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43286.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43286"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43287 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43287/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43287/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43287/events | https://github.com/pandas-dev/pandas/pull/43287 | 982,152,381 | MDExOlB1bGxSZXF1ZXN0NzIxOTg2ODgx | 43,287 | PERF: Styler 2 | {
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "006b75",
"default": false,
"description": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-29T17:07:11Z" | "2021-08-31T04:48:29Z" | "2021-08-30T22:58:12Z" | CONTRIBUTOR | null | extends the idea pushed by @jbrockmendel in #43285
```python
>>> df = pd.DataFrame(np.random.randn(10000, 1))
>>> % timeit df.style.applymap_index(lambda v: "color: blue;")._compute()
29.7 ms ± 396 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # Master
24.4 ms ± 347 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43287/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43287/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43287.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43287",
"merged_at": "2021-08-30T22:58:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43287.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43287"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43288 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43288/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43288/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43288/events | https://github.com/pandas-dev/pandas/pull/43288 | 982,169,545 | MDExOlB1bGxSZXF1ZXN0NzIxOTk3ODUw | 43,288 | DOC: Updated doc with imp note(#39130) | {
"avatar_url": "https://avatars.githubusercontent.com/u/44003074?v=4",
"events_url": "https://api.github.com/users/Rishabhdhyani/events{/privacy}",
"followers_url": "https://api.github.com/users/Rishabhdhyani/followers",
"following_url": "https://api.github.com/users/Rishabhdhyani/following{/other_user}",
"gists_url": "https://api.github.com/users/Rishabhdhyani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Rishabhdhyani",
"id": 44003074,
"login": "Rishabhdhyani",
"node_id": "MDQ6VXNlcjQ0MDAzMDc0",
"organizations_url": "https://api.github.com/users/Rishabhdhyani/orgs",
"received_events_url": "https://api.github.com/users/Rishabhdhyani/received_events",
"repos_url": "https://api.github.com/users/Rishabhdhyani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Rishabhdhyani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rishabhdhyani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Rishabhdhyani"
} | [] | closed | false | null | [] | null | 0 | "2021-08-29T18:24:19Z" | "2021-08-30T07:14:52Z" | "2021-08-29T22:38:29Z" | NONE | null | Updated the file doc/source/getting_started/comparison/comparison_with_sql.rst with an important note which suggests readers to execute the code block in notebook to follow the documentation's tutorial.
- [x] closes #39130
- [ ] 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/43288/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43288/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43288.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43288",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43288.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43288"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43289 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43289/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43289/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43289/events | https://github.com/pandas-dev/pandas/pull/43289 | 982,203,582 | MDExOlB1bGxSZXF1ZXN0NzIyMDE4ODg5 | 43,289 | modified changes for datetime and NaT Objects Behavior closes #43280 | {
"avatar_url": "https://avatars.githubusercontent.com/u/65003256?v=4",
"events_url": "https://api.github.com/users/Navaneethan2503/events{/privacy}",
"followers_url": "https://api.github.com/users/Navaneethan2503/followers",
"following_url": "https://api.github.com/users/Navaneethan2503/following{/other_user}",
"gists_url": "https://api.github.com/users/Navaneethan2503/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Navaneethan2503",
"id": 65003256,
"login": "Navaneethan2503",
"node_id": "MDQ6VXNlcjY1MDAzMjU2",
"organizations_url": "https://api.github.com/users/Navaneethan2503/orgs",
"received_events_url": "https://api.github.com/users/Navaneethan2503/received_events",
"repos_url": "https://api.github.com/users/Navaneethan2503/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Navaneethan2503/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Navaneethan2503/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Navaneethan2503"
} | [] | closed | false | null | [] | null | 5 | "2021-08-29T21:07:00Z" | "2021-08-31T18:57:12Z" | "2021-08-31T18:57:11Z" | NONE | null | - [ #] Closes #43280
- [ #] tests added / passed
**Modified datatime object 👍 **
i have changed view values to numeric of date and missing data found in pd series is returns Nan when coerce errors .
**Example for solved changes 💯 **
```
>>> pd.to_numeric(pd.Series(datetime(2021, 8, 22)), errors="coerce")
[OUT]
0 20210822
dtype: int64
>>> pd.to_numeric(pd.Series(pd.NaT), errors="coerce")
[OUT]
0 NaN
dtype: float64
>>> s = pd.to_numeric(datetime(2021, 8, 22), errors="coerce")
0 20210822
dtype: Int64
>>> s = pd.to_numeric(pd.NaT, errors="coerce")
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/43289/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43289/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43289.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43289",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43289.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43289"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43290 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43290/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43290/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43290/events | https://github.com/pandas-dev/pandas/pull/43290 | 982,263,102 | MDExOlB1bGxSZXF1ZXN0NzIyMDYwMTA1 | 43,290 | Just added asterisk | {
"avatar_url": "https://avatars.githubusercontent.com/u/22400005?v=4",
"events_url": "https://api.github.com/users/antitikhsha/events{/privacy}",
"followers_url": "https://api.github.com/users/antitikhsha/followers",
"following_url": "https://api.github.com/users/antitikhsha/following{/other_user}",
"gists_url": "https://api.github.com/users/antitikhsha/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/antitikhsha",
"id": 22400005,
"login": "antitikhsha",
"node_id": "MDQ6VXNlcjIyNDAwMDA1",
"organizations_url": "https://api.github.com/users/antitikhsha/orgs",
"received_events_url": "https://api.github.com/users/antitikhsha/received_events",
"repos_url": "https://api.github.com/users/antitikhsha/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/antitikhsha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/antitikhsha/subscriptions",
"type": "User",
"url": "https://api.github.com/users/antitikhsha"
} | [] | closed | false | null | [] | null | 1 | "2021-08-30T00:55:21Z" | "2021-08-30T01:47:03Z" | "2021-08-30T01:47:03Z" | NONE | 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/43290/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43290/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43290.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43290",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43290.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43290"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43291 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43291/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43291/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43291/events | https://github.com/pandas-dev/pandas/pull/43291 | 982,267,762 | MDExOlB1bGxSZXF1ZXN0NzIyMDYzOTI2 | 43,291 | BUG: Fixes to FixedForwardWindowIndexer and GroupbyIndexer (#43267) | {
"avatar_url": "https://avatars.githubusercontent.com/u/980054?v=4",
"events_url": "https://api.github.com/users/dsm054/events{/privacy}",
"followers_url": "https://api.github.com/users/dsm054/followers",
"following_url": "https://api.github.com/users/dsm054/following{/other_user}",
"gists_url": "https://api.github.com/users/dsm054/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsm054",
"id": 980054,
"login": "dsm054",
"node_id": "MDQ6VXNlcjk4MDA1NA==",
"organizations_url": "https://api.github.com/users/dsm054/orgs",
"received_events_url": "https://api.github.com/users/dsm054/received_events",
"repos_url": "https://api.github.com/users/dsm054/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsm054/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsm054/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsm054"
} | [
{
"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"
},
{
"color": "36ede0",
"default": false,
"description": "Non-Recoverable Error",
"id": 1121248195,
"name": "Segfault",
"node_id": "MDU6TGFiZWwxMTIxMjQ4MTk1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Segfault"
}
] | closed | false | null | [] | {
"closed_at": "2021-10-17T11:06:28Z",
"closed_issues": 77,
"created_at": "2021-09-10T19:48:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-10-17T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/90",
"id": 7142224,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90/labels",
"node_id": "MI_kwDOAA0YD84AbPtQ",
"number": 90,
"open_issues": 0,
"state": "closed",
"title": "1.3.4",
"updated_at": "2021-10-18T11:00:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90"
} | 16 | "2021-08-30T01:02:42Z" | "2021-10-16T20:39:23Z" | "2021-10-16T20:26:52Z" | CONTRIBUTOR | null | - [x] closes https://github.com/pandas-dev/pandas/issues/43267
This PR addresses three issues, two major and one minor:
(1) If you repeated the use of a FixedForwardWindowIndexer, the indexer would be mutated and a window_size of 0 would be used. This would lead to an empty end array which unsurprisingly led to segfaults on the second run. Similar issues could be produced with other BaseIndexer subclasses, this one was simply the loudest.
(2) The end array generated by FixedForwardWindowIndexer.get_window_bounds was the wrong length, leading to longer arrays than necessary. When there was only one involved, it didn't matter much: the extra ones were simply ignored. But in the case of a groupby, these end arrays were concatenated, meaning that end values for the first group could leak into the second, and so on.
(3) There were some typos for "indices". | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43291/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43291/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43291.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43291",
"merged_at": "2021-10-16T20:26:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43291.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43291"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43292 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43292/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43292/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43292/events | https://github.com/pandas-dev/pandas/issues/43292 | 982,328,712 | MDU6SXNzdWU5ODIzMjg3MTI= | 43,292 | BUG: inconsistent result when groupby then sum values that contain inf | {
"avatar_url": "https://avatars.githubusercontent.com/u/15094347?v=4",
"events_url": "https://api.github.com/users/jerrytim/events{/privacy}",
"followers_url": "https://api.github.com/users/jerrytim/followers",
"following_url": "https://api.github.com/users/jerrytim/following{/other_user}",
"gists_url": "https://api.github.com/users/jerrytim/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jerrytim",
"id": 15094347,
"login": "jerrytim",
"node_id": "MDQ6VXNlcjE1MDk0MzQ3",
"organizations_url": "https://api.github.com/users/jerrytim/orgs",
"received_events_url": "https://api.github.com/users/jerrytim/received_events",
"repos_url": "https://api.github.com/users/jerrytim/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jerrytim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jerrytim/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jerrytim"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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": "547c03",
"default": false,
"description": "sum, mean, min, max, etc.",
"id": 2365504383,
"name": "Reduction Operations",
"node_id": "MDU6TGFiZWwyMzY1NTA0Mzgz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reduction%20Operations"
}
] | open | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/44003074?v=4",
"events_url": "https://api.github.com/users/Rishabhdhyani/events{/privacy}",
"followers_url": "https://api.github.com/users/Rishabhdhyani/followers",
"following_url": "https://api.github.com/users/Rishabhdhyani/following{/other_user}",
"gists_url": "https://api.github.com/users/Rishabhdhyani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Rishabhdhyani",
"id": 44003074,
"login": "Rishabhdhyani",
"node_id": "MDQ6VXNlcjQ0MDAzMDc0",
"organizations_url": "https://api.github.com/users/Rishabhdhyani/orgs",
"received_events_url": "https://api.github.com/users/Rishabhdhyani/received_events",
"repos_url": "https://api.github.com/users/Rishabhdhyani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Rishabhdhyani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rishabhdhyani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Rishabhdhyani"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/44003074?v=4",
"events_url": "https://api.github.com/users/Rishabhdhyani/events{/privacy}",
"followers_url": "https://api.github.com/users/Rishabhdhyani/followers",
"following_url": "https://api.github.com/users/Rishabhdhyani/following{/other_user}",
"gists_url": "https://api.github.com/users/Rishabhdhyani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Rishabhdhyani",
"id": 44003074,
"login": "Rishabhdhyani",
"node_id": "MDQ6VXNlcjQ0MDAzMDc0",
"organizations_url": "https://api.github.com/users/Rishabhdhyani/orgs",
"received_events_url": "https://api.github.com/users/Rishabhdhyani/received_events",
"repos_url": "https://api.github.com/users/Rishabhdhyani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Rishabhdhyani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rishabhdhyani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Rishabhdhyani"
}
] | {
"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"
} | 9 | "2021-08-30T03:10:28Z" | "2021-10-29T15:07:32Z" | null | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
#### Code Sample, a copy-pastable example
```python
import pandas as pd
>>> df = pd.DataFrame({'a': ['hello', 'hello', 'world', 'world'], 'b': [np.inf, 10, np.nan, 10]})
>>> gb = df.groupby('a')
>>> gb.sum()
b
a
hello NaN
world 10.0
>>> gb.get_group('hello').b.sum()
inf
```
#### Problem description
while directly doing `groupby.sum`, the group with `inf` will return `np.nan`, but if we get the group and do `sum`, it returns `np.inf`
#### Expected Output
`groupby.sum` should also return `np.inf` if the values contian `np.inf`
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : c7f7443c1bad8262358114d5e88cd9c8a308e8aa
python : 3.7.6.final.0
python-bits : 64
OS : Darwin
OS-release : 18.2.0
Version : Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : en_US.UTF-8
pandas : 1.3.1
numpy : 1.21.1
pytz : 2021.1
dateutil : 2.8.2
pip : 21.1.2
setuptools : 57.0.0
Cython : None
pytest : 4.5.0
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : 0.7.11.None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.26.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : 2.7.3
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 3.0.0
pyxlsb : None
s3fs : None
scipy : 1.1.0
sqlalchemy : 1.3.24
tables : 3.5.2
tabulate : 0.7.7
xarray : None
xlrd : None
xlwt : None
numba : None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43292/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43292/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43293 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43293/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43293/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43293/events | https://github.com/pandas-dev/pandas/pull/43293 | 982,348,682 | MDExOlB1bGxSZXF1ZXN0NzIyMTI3Nzgw | 43,293 | Updated yaml anchors in additional dependencies | {
"avatar_url": "https://avatars.githubusercontent.com/u/66488262?v=4",
"events_url": "https://api.github.com/users/Kunsh-Manghwani/events{/privacy}",
"followers_url": "https://api.github.com/users/Kunsh-Manghwani/followers",
"following_url": "https://api.github.com/users/Kunsh-Manghwani/following{/other_user}",
"gists_url": "https://api.github.com/users/Kunsh-Manghwani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Kunsh-Manghwani",
"id": 66488262,
"login": "Kunsh-Manghwani",
"node_id": "MDQ6VXNlcjY2NDg4MjYy",
"organizations_url": "https://api.github.com/users/Kunsh-Manghwani/orgs",
"received_events_url": "https://api.github.com/users/Kunsh-Manghwani/received_events",
"repos_url": "https://api.github.com/users/Kunsh-Manghwani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Kunsh-Manghwani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kunsh-Manghwani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Kunsh-Manghwani"
} | [] | closed | false | null | [] | null | 0 | "2021-08-30T03:55:17Z" | "2021-08-30T05:39:31Z" | "2021-08-30T05:39:31Z" | NONE | null | - [x] 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/43293/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43293/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43293.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43293",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43293.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43293"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43294 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43294/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43294/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43294/events | https://github.com/pandas-dev/pandas/pull/43294 | 982,413,507 | MDExOlB1bGxSZXF1ZXN0NzIyMTgxMjAx | 43,294 | updated yaml anchors in additional dependencies | {
"avatar_url": "https://avatars.githubusercontent.com/u/66488262?v=4",
"events_url": "https://api.github.com/users/Kunsh-Manghwani/events{/privacy}",
"followers_url": "https://api.github.com/users/Kunsh-Manghwani/followers",
"following_url": "https://api.github.com/users/Kunsh-Manghwani/following{/other_user}",
"gists_url": "https://api.github.com/users/Kunsh-Manghwani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Kunsh-Manghwani",
"id": 66488262,
"login": "Kunsh-Manghwani",
"node_id": "MDQ6VXNlcjY2NDg4MjYy",
"organizations_url": "https://api.github.com/users/Kunsh-Manghwani/orgs",
"received_events_url": "https://api.github.com/users/Kunsh-Manghwani/received_events",
"repos_url": "https://api.github.com/users/Kunsh-Manghwani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Kunsh-Manghwani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kunsh-Manghwani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Kunsh-Manghwani"
} | [] | closed | false | null | [] | null | 7 | "2021-08-30T05:47:13Z" | "2021-08-30T15:46:49Z" | "2021-08-30T15:46:49Z" | NONE | 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/43294/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43294/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43294.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43294",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43294.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43294"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43295 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43295/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43295/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43295/events | https://github.com/pandas-dev/pandas/pull/43295 | 982,468,615 | MDExOlB1bGxSZXF1ZXN0NzIyMjI2NTM0 | 43,295 | ⬆️ 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"
} | [] | closed | false | null | [] | null | 1 | "2021-08-30T07:10:56Z" | "2021-08-30T07:17:03Z" | "2021-08-30T07:17:03Z" | 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.14.1-py2.py3-none-any.whl (189 kB)
Collecting nodeenv>=0.11.1
Using cached nodeenv-1.6.0-py2.py3-none-any.whl (21 kB)
Collecting pyyaml>=5.1
Using cached PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting cfgv>=2.0.0
Downloading cfgv-3.3.1-py2.py3-none-any.whl (7.3 kB)
Collecting virtualenv>=20.0.8
Downloading virtualenv-20.7.2-py2.py3-none-any.whl (5.3 MB)
Collecting identify>=1.0.0
Downloading identify-2.2.13-py2.py3-none-any.whl (98 kB)
Collecting filelock<4,>=3.0.0
Using cached filelock-3.0.12-py3-none-any.whl (7.6 kB)
Collecting platformdirs<3,>=2
Downloading platformdirs-2.2.0-py3-none-any.whl (13 kB)
Collecting backports.entry-points-selectable>=1.0.4
Downloading backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl (6.2 kB)
Collecting six<2,>=1.9.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting distlib<1,>=0.3.1
Downloading distlib-0.3.2-py2.py3-none-any.whl (338 kB)
Installing collected packages: six, platformdirs, filelock, distlib, backports.entry-points-selectable, virtualenv, toml, pyyaml, nodeenv, identify, cfgv, pre-commit
Successfully installed backports.entry-points-selectable-1.1.0 cfgv-3.3.1 distlib-0.3.2 filelock-3.0.12 identify-2.2.13 nodeenv-1.6.0 platformdirs-2.2.0 pre-commit-2.14.1 pyyaml-5.4.1 six-1.16.0 toml-0.10.2 virtualenv-20.7.2
```
</details>
<details>
<summary><em>pre-commit autoupdate || (exit 0);</em></summary>
```Shell
Updating https://github.com/MarcoGorelli/absolufy-imports ... already up to date.
Updating https://github.com/python/black ... [INFO] Initializing environment for https://github.com/python/black.
updating 21.7b0 -> 21.8b0.
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/pre-commit/pre-commit-hooks ... already up to date.
Updating https://github.com/cpplint/cpplint ... [INFO] Initializing environment for https://github.com/cpplint/cpplint.
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.24.0 -> v2.25.0.
Updating https://github.com/pre-commit/pygrep-hooks ... [INFO] Initializing environment for https://github.com/pre-commit/pygrep-hooks.
already up to date.
Updating https://github.com/asottile/yesqa ... already up to date.
```
</details>
<details>
<summary><em>pre-commit run -a || (exit 0);</em></summary>
```Shell
[INFO] Initializing environment for local:pyyaml,toml.
[INFO] Installing environment for https://github.com/MarcoGorelli/absolufy-imports.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[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://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/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/cpplint/cpplint.
[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 https://github.com/asottile/yesqa.
[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 local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
absolufy-imports................................................................................................Passed
black...........................................................................................................Passed
codespell.......................................................................................................Passed
Debug Statements (Python).......................................................................................Passed
Fix End of Files................................................................................................Passed
Trim Trailing Whitespace........................................................................................Passed
cpplint.........................................................................................................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
Strip unnecessary `# noqa`s.....................................................................................Passed
flake8-rst......................................................................................................Passed
Unwanted patterns...............................................................................................Passed
Check Cython casting is `<type>obj`, not `<type> obj`...........................................................Passed
Check for backticks incorrectly rendering because of missing spaces.............................................Passed
Check for unnecessary random seeds in asv benchmarks............................................................Passed
Check for invalid EA testing....................................................................................Passed
Generate pip dependency from conda..............................................................................Passed
Check flake8 version is synced across flake8, yesqa, and environment.yml........................................Passed
Validate correct capitalization among titles in documentation...................................................Passed
Import pandas.array as pd_array in core.........................................................................Passed
Use bool_t instead of bool in pandas/core/generic.py............................................................Passed
Ensure pandas errors are documented in doc/source/reference/general_utility_functions.rst.......................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/43295/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43295/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43295.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43295",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43295.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43295"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43296 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43296/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43296/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43296/events | https://github.com/pandas-dev/pandas/pull/43296 | 982,504,094 | MDExOlB1bGxSZXF1ZXN0NzIyMjU1NTcw | 43,296 | Update range.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/50440681?v=4",
"events_url": "https://api.github.com/users/augas2k1/events{/privacy}",
"followers_url": "https://api.github.com/users/augas2k1/followers",
"following_url": "https://api.github.com/users/augas2k1/following{/other_user}",
"gists_url": "https://api.github.com/users/augas2k1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/augas2k1",
"id": 50440681,
"login": "augas2k1",
"node_id": "MDQ6VXNlcjUwNDQwNjgx",
"organizations_url": "https://api.github.com/users/augas2k1/orgs",
"received_events_url": "https://api.github.com/users/augas2k1/received_events",
"repos_url": "https://api.github.com/users/augas2k1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/augas2k1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/augas2k1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/augas2k1"
} | [] | closed | true | null | [] | null | 1 | "2021-08-30T08:00:02Z" | "2021-08-30T15:55:21Z" | "2021-08-30T08:00:22Z" | NONE | spam | Now it will work
- [ ] 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/43296/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43296/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43296.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43296",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43296.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43296"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43297 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43297/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43297/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43297/events | https://github.com/pandas-dev/pandas/pull/43297 | 982,549,311 | MDExOlB1bGxSZXF1ZXN0NzIyMjkxMDkx | 43,297 | 1.1.x | {
"avatar_url": "https://avatars.githubusercontent.com/u/89772322?v=4",
"events_url": "https://api.github.com/users/Bheemlanayak9/events{/privacy}",
"followers_url": "https://api.github.com/users/Bheemlanayak9/followers",
"following_url": "https://api.github.com/users/Bheemlanayak9/following{/other_user}",
"gists_url": "https://api.github.com/users/Bheemlanayak9/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Bheemlanayak9",
"id": 89772322,
"login": "Bheemlanayak9",
"node_id": "MDQ6VXNlcjg5NzcyMzIy",
"organizations_url": "https://api.github.com/users/Bheemlanayak9/orgs",
"received_events_url": "https://api.github.com/users/Bheemlanayak9/received_events",
"repos_url": "https://api.github.com/users/Bheemlanayak9/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Bheemlanayak9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Bheemlanayak9/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Bheemlanayak9"
} | [] | closed | false | null | [] | null | 1 | "2021-08-30T08:48:52Z" | "2021-08-30T08:58:31Z" | "2021-08-30T08:58:31Z" | NONE | 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
found a small typo in the README | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43297/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43297/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43297.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43297",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43297.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43297"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43298 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43298/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43298/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43298/events | https://github.com/pandas-dev/pandas/pull/43298 | 982,578,063 | MDExOlB1bGxSZXF1ZXN0NzIyMzEyOTE2 | 43,298 | PERF: use _get_axis_number instead of if axis in [...]: #43048 | {
"avatar_url": "https://avatars.githubusercontent.com/u/49370990?v=4",
"events_url": "https://api.github.com/users/KiranHipparagi/events{/privacy}",
"followers_url": "https://api.github.com/users/KiranHipparagi/followers",
"following_url": "https://api.github.com/users/KiranHipparagi/following{/other_user}",
"gists_url": "https://api.github.com/users/KiranHipparagi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KiranHipparagi",
"id": 49370990,
"login": "KiranHipparagi",
"node_id": "MDQ6VXNlcjQ5MzcwOTkw",
"organizations_url": "https://api.github.com/users/KiranHipparagi/orgs",
"received_events_url": "https://api.github.com/users/KiranHipparagi/received_events",
"repos_url": "https://api.github.com/users/KiranHipparagi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KiranHipparagi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KiranHipparagi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KiranHipparagi"
} | [] | closed | false | null | [] | null | 4 | "2021-08-30T09:16:54Z" | "2021-08-30T14:06:10Z" | "2021-08-30T10:14:02Z" | NONE | null | Added _get_axis_number in test_at_time.py as per the standards
```
if axis in ["index", 0]: #<- master
expected = ts.loc[indices, :]
elif axis in ["columns", 1]:
expected = ts.loc[:, indices]
axis = self.data._get_axis_number(axis) #<- PR
expected = ts.loc[indices, :] if axis == 0 else ts.loc[:, indices]
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43298/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43298/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43298.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43298",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43298.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43298"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43299 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43299/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43299/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43299/events | https://github.com/pandas-dev/pandas/pull/43299 | 982,585,182 | MDExOlB1bGxSZXF1ZXN0NzIyMzE4MzE2 | 43,299 | ENH: Added multi index functionality (new level kwarg) to Dataframe.filter | {
"avatar_url": "https://avatars.githubusercontent.com/u/24571294?v=4",
"events_url": "https://api.github.com/users/ShreyasPatel031/events{/privacy}",
"followers_url": "https://api.github.com/users/ShreyasPatel031/followers",
"following_url": "https://api.github.com/users/ShreyasPatel031/following{/other_user}",
"gists_url": "https://api.github.com/users/ShreyasPatel031/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShreyasPatel031",
"id": 24571294,
"login": "ShreyasPatel031",
"node_id": "MDQ6VXNlcjI0NTcxMjk0",
"organizations_url": "https://api.github.com/users/ShreyasPatel031/orgs",
"received_events_url": "https://api.github.com/users/ShreyasPatel031/received_events",
"repos_url": "https://api.github.com/users/ShreyasPatel031/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShreyasPatel031/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShreyasPatel031/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShreyasPatel031"
} | [
{
"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": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 5 | "2021-08-30T09:23:57Z" | "2021-10-31T01:05:26Z" | "2021-10-31T01:05:26Z" | NONE | null | - [x] closes #42970
- [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/43299/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43299/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43299.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43299",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43299.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43299"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43300 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43300/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43300/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43300/events | https://github.com/pandas-dev/pandas/pull/43300 | 982,636,278 | MDExOlB1bGxSZXF1ZXN0NzIyMzU5MjIw | 43,300 | TST: added test for to_string when max_rows is zero (GH35394) | {
"avatar_url": "https://avatars.githubusercontent.com/u/63981558?v=4",
"events_url": "https://api.github.com/users/lorenzophys/events{/privacy}",
"followers_url": "https://api.github.com/users/lorenzophys/followers",
"following_url": "https://api.github.com/users/lorenzophys/following{/other_user}",
"gists_url": "https://api.github.com/users/lorenzophys/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lorenzophys",
"id": 63981558,
"login": "lorenzophys",
"node_id": "MDQ6VXNlcjYzOTgxNTU4",
"organizations_url": "https://api.github.com/users/lorenzophys/orgs",
"received_events_url": "https://api.github.com/users/lorenzophys/received_events",
"repos_url": "https://api.github.com/users/lorenzophys/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lorenzophys/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorenzophys/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lorenzophys"
} | [
{
"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": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 4 | "2021-08-30T10:20:01Z" | "2021-09-01T18:08:28Z" | "2021-09-01T18:08:25Z" | CONTRIBUTOR | null | - [x] closes #35394
- [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
Provided tests for `to_string` when `max_rows=0`.
Tests and linter pass locally. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43300/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43300/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43300.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43300",
"merged_at": "2021-09-01T18:08:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43300.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43300"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43301 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43301/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43301/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43301/events | https://github.com/pandas-dev/pandas/pull/43301 | 982,731,538 | MDExOlB1bGxSZXF1ZXN0NzIyNDQwMTQy | 43,301 | BUG: Solves errors when calling series methods in DataFrame.query with numexpr | {
"avatar_url": "https://avatars.githubusercontent.com/u/10117348?v=4",
"events_url": "https://api.github.com/users/AlexisMignon/events{/privacy}",
"followers_url": "https://api.github.com/users/AlexisMignon/followers",
"following_url": "https://api.github.com/users/AlexisMignon/following{/other_user}",
"gists_url": "https://api.github.com/users/AlexisMignon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AlexisMignon",
"id": 10117348,
"login": "AlexisMignon",
"node_id": "MDQ6VXNlcjEwMTE3MzQ4",
"organizations_url": "https://api.github.com/users/AlexisMignon/orgs",
"received_events_url": "https://api.github.com/users/AlexisMignon/received_events",
"repos_url": "https://api.github.com/users/AlexisMignon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AlexisMignon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlexisMignon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AlexisMignon"
} | [
{
"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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 3 | "2021-08-30T12:19:11Z" | "2021-09-25T15:31:09Z" | "2021-09-25T15:31:04Z" | CONTRIBUTOR | null | - [x] closes #22435
- [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
The initial issue #22435 (check that there is no conflicting names failing) was actually hiding a deeper one leading to a failure when calling `numexpr.evaluate()`.
The commit proposed here solves both issues by adding a temporary variable to the scope for the results of function / method calls when using numexpr engine. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 1,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43301/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43301/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43301.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43301",
"merged_at": "2021-09-25T15:31:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43301.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43301"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43302 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43302/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43302/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43302/events | https://github.com/pandas-dev/pandas/pull/43302 | 982,919,045 | MDExOlB1bGxSZXF1ZXN0NzIyNTkwNzY3 | 43,302 | Update conftest.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/82256264?v=4",
"events_url": "https://api.github.com/users/DeepakPareta/events{/privacy}",
"followers_url": "https://api.github.com/users/DeepakPareta/followers",
"following_url": "https://api.github.com/users/DeepakPareta/following{/other_user}",
"gists_url": "https://api.github.com/users/DeepakPareta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DeepakPareta",
"id": 82256264,
"login": "DeepakPareta",
"node_id": "MDQ6VXNlcjgyMjU2MjY0",
"organizations_url": "https://api.github.com/users/DeepakPareta/orgs",
"received_events_url": "https://api.github.com/users/DeepakPareta/received_events",
"repos_url": "https://api.github.com/users/DeepakPareta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DeepakPareta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeepakPareta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DeepakPareta"
} | [] | closed | true | null | [] | null | 3 | "2021-08-30T15:27:39Z" | "2021-08-30T15:44:56Z" | "2021-08-30T15:33:17Z" | NONE | spam | - [x] 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/43302/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43302/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43302.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43302",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43302.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43302"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43303 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43303/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43303/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43303/events | https://github.com/pandas-dev/pandas/pull/43303 | 982,938,635 | MDExOlB1bGxSZXF1ZXN0NzIyNjA2MTA3 | 43,303 | Backport PR #43274 on branch 1.3.x (PERF: indexing) | {
"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": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2021-09-12T08:21:30Z",
"closed_issues": 79,
"created_at": "2021-08-15T08:07:48Z",
"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-09-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/89",
"id": 7059576,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89/labels",
"node_id": "MI_kwDOAA0YD84Aa7h4",
"number": 89,
"open_issues": 0,
"state": "closed",
"title": "1.3.3",
"updated_at": "2021-09-12T20:30:04Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/89"
} | 0 | "2021-08-30T15:49:24Z" | "2021-08-30T18:13:46Z" | "2021-08-30T18:13:45Z" | NONE | null | Backport PR #43274: PERF: indexing | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43303/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43303/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43303.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43303",
"merged_at": "2021-08-30T18:13:45Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43303.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43303"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43304 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43304/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43304/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43304/events | https://github.com/pandas-dev/pandas/issues/43304 | 982,969,623 | MDU6SXNzdWU5ODI5Njk2MjM= | 43,304 | BUG: pd.json_normalize() does not handle index while working with Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/74418133?v=4",
"events_url": "https://api.github.com/users/tommasogallingani/events{/privacy}",
"followers_url": "https://api.github.com/users/tommasogallingani/followers",
"following_url": "https://api.github.com/users/tommasogallingani/following{/other_user}",
"gists_url": "https://api.github.com/users/tommasogallingani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tommasogallingani",
"id": 74418133,
"login": "tommasogallingani",
"node_id": "MDQ6VXNlcjc0NDE4MTMz",
"organizations_url": "https://api.github.com/users/tommasogallingani/orgs",
"received_events_url": "https://api.github.com/users/tommasogallingani/received_events",
"repos_url": "https://api.github.com/users/tommasogallingani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tommasogallingani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tommasogallingani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tommasogallingani"
} | [
{
"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": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "be21f2",
"default": false,
"description": "May be closeable, needs more eyeballs",
"id": 2365504893,
"name": "Closing Candidate",
"node_id": "MDU6TGFiZWwyMzY1NTA0ODkz",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Closing%20Candidate"
}
] | closed | false | null | [] | null | 4 | "2021-08-30T16:21:36Z" | "2021-09-30T23:11:34Z" | "2021-09-30T23:11:33Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
pd.json_normalize(test_data['mycol'])
import pandas as pd
test_data = pd.DataFrame([[{'a':1,'b':4,'c':0}],[ {'a':10,'b':10,'c':10}],[{'a':0,'b':0,'c':0}]], index=[5,2,3], columns=['mycol'])
pd.json_normalize(test_data['mycol'])
a b c
0 1 4 0
1 10 10 10
2 0 0 0
```
#### Problem description
When a Series is passed to json_normalize the function returns a re-indexed dataframe without taking into account the index passed through the Series. This beahaviour is absolutely unexpected while working with Series
#### Expected Output
```python
a b c
5 1 4 0
2 10 10 10
3 0 0 0
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 3e89b4c4b1580aa890023fc550774e63d499da25
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 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Italian_Italy.1252
pandas : 1.2.0
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.2
pip : 20.3.3
setuptools : 51.1.2.post20210112
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : 2.8.6 (dt dec pq3 ext lo64)
jinja2 : 3.0.1
IPython : 7.26.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.5
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : 0.5.2
scipy : 1.6.0
sqlalchemy : 1.3.22
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/43304/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43304/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43305 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43305/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43305/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43305/events | https://github.com/pandas-dev/pandas/issues/43305 | 983,006,964 | MDU6SXNzdWU5ODMwMDY5NjQ= | 43,305 | BUG: Styler IndexError when rendering an empty DataFrame | {
"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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-30T17:03:25Z" | "2021-08-31T14:59:10Z" | "2021-08-31T14:59:10Z" | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [ ] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
```python
df = pd.DataFrame()
midx = pd.MultiIndex.from_arrays([["A", "B"], [1, 2]], names=["zero", "one"])
df.style # OK
df.index=[0,1]
df.style # OK
df.index=midx
df.style # IndexError
```
The error here was not the use of MultiIndex but of the index name display row when there are no columns. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43305/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43305/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43306 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43306/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43306/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43306/events | https://github.com/pandas-dev/pandas/pull/43306 | 983,046,344 | MDExOlB1bGxSZXF1ZXN0NzIyNjkyMTcw | 43,306 | PERF: use _get_axis_number instead of if axis in [...] | {
"avatar_url": "https://avatars.githubusercontent.com/u/49370990?v=4",
"events_url": "https://api.github.com/users/KiranHipparagi/events{/privacy}",
"followers_url": "https://api.github.com/users/KiranHipparagi/followers",
"following_url": "https://api.github.com/users/KiranHipparagi/following{/other_user}",
"gists_url": "https://api.github.com/users/KiranHipparagi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/KiranHipparagi",
"id": 49370990,
"login": "KiranHipparagi",
"node_id": "MDQ6VXNlcjQ5MzcwOTkw",
"organizations_url": "https://api.github.com/users/KiranHipparagi/orgs",
"received_events_url": "https://api.github.com/users/KiranHipparagi/received_events",
"repos_url": "https://api.github.com/users/KiranHipparagi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/KiranHipparagi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KiranHipparagi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/KiranHipparagi"
} | [] | closed | false | null | [] | null | 8 | "2021-08-30T17:51:12Z" | "2021-08-31T10:03:29Z" | "2021-08-31T10:03:29Z" | NONE | null | Added _get_axis_number in style.py as per the standards
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43306/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43306/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43306.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43306",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43306.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43306"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43307 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43307/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43307/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43307/events | https://github.com/pandas-dev/pandas/pull/43307 | 983,083,354 | MDExOlB1bGxSZXF1ZXN0NzIyNzIyMzcz | 43,307 | PERF: DataFrame(ndarray) | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-30T18:34:41Z" | "2021-08-30T19:40:13Z" | "2021-08-30T19:36:39Z" | MEMBER | null | ```
from asv_bench.benchmarks.frame_ctor import *
self = FromNDArray()
self.setup()
%timeit self.time_frame_from_ndarray()
37.9 µs ± 1.17 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master
29.8 µs ± 549 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43307/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43307/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43307.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43307",
"merged_at": "2021-08-30T19:36:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43307.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43307"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43308 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43308/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43308/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43308/events | https://github.com/pandas-dev/pandas/pull/43308 | 983,166,020 | MDExOlB1bGxSZXF1ZXN0NzIyNzg4ODEx | 43,308 | PERF: setting PeriodDtype column | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "eb6420",
"default": false,
"description": "Period data type",
"id": 60635328,
"name": "Period",
"node_id": "MDU6TGFiZWw2MDYzNTMyOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-30T20:16:05Z" | "2021-08-30T23:47:42Z" | "2021-08-30T23:28:30Z" | MEMBER | null | ```
from asv_bench.benchmarks.period import *
self = DataFramePeriodColumn()
self.setup()
%timeit self.time_setitem_period_column()
59.8 µs ± 2.19 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master
33 µs ± 933 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43308/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43308/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43308.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43308",
"merged_at": "2021-08-30T23:28:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43308.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43308"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43309 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43309/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43309/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43309/events | https://github.com/pandas-dev/pandas/pull/43309 | 983,177,473 | MDExOlB1bGxSZXF1ZXN0NzIyNzk4NTYy | 43,309 | PERF: GroupBy.cumsum | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 0 | "2021-08-30T20:30:04Z" | "2021-08-30T21:54:38Z" | "2021-08-30T21:45:33Z" | MEMBER | null | ```
from asv_bench.benchmarks.groupby import *
self = GroupByMethods()
self.setup('int', 'cumsum', 'transformation', 2)
%timeit self.time_dtype_as_group('int', 'cumsum', 'transformation', 2)
128 µs ± 7.81 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master
99.7 µs ± 1.13 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43309/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43309/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43309.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43309",
"merged_at": "2021-08-30T21:45:33Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43309.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43309"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43310 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43310/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43310/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43310/events | https://github.com/pandas-dev/pandas/issues/43310 | 983,181,634 | MDU6SXNzdWU5ODMxODE2MzQ= | 43,310 | BUG: `DataFrame.rank` & `Series.rank` results are inconsistent | {
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
} | [
{
"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 | 5 | "2021-08-30T20:36:04Z" | "2021-08-30T22:18:35Z" | "2021-08-30T21:51:29Z" | NONE | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [ ] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
>>> import pandas as pd
>>> import numpy as np
>>> values = [-np.inf, 0, np.inf, np.nan, 2, np.nan]
>>> s = pd.Series(values)
>>> s
0 -inf
1 0.0
2 inf
3 NaN
4 2.0
5 NaN
dtype: float64
>>> kwargs = {'method': 'dense', 'na_option': 'bottom', 'ascending': False, 'pct': False, 'numeric_only': False}
>>> s.rank(**kwargs)
0 4.0
1 3.0
2 1.0
3 5.0
4 2.0
5 5.0
dtype: float64
>>> pd.DataFrame({'a':s}).rank(**kwargs)
a
0 4.0
1 3.0
2 1.0
3 4.0
4 2.0
5 4.0
>>>
```
#### Problem description
The results being returned by `Series.rank` & `DataFrame.rank` seem to be inconsistent.
#### Expected Output
Output of `DataFrame.rank` must be returned correctly(as is being done by `Series.rank`)
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 5f648bf1706dd75a9ca0d29f26eadfbb595fe52b
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.0-27-generic
Version : #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58: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.3.2
numpy : 1.21.2
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.4
setuptools : 57.4.0
Cython : 0.29.24
pytest : 6.2.4
hypothesis : 6.17.2
sphinx : 4.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.27.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 2021.07.0
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 5.0.0
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.53.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43310/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43310/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43311 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43311/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43311/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43311/events | https://github.com/pandas-dev/pandas/pull/43311 | 983,190,924 | MDExOlB1bGxSZXF1ZXN0NzIyODA5ODY3 | 43,311 | PERF: nanops | {
"avatar_url": "https://avatars.githubusercontent.com/u/8078968?v=4",
"events_url": "https://api.github.com/users/jbrockmendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jbrockmendel/followers",
"following_url": "https://api.github.com/users/jbrockmendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jbrockmendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jbrockmendel",
"id": 8078968,
"login": "jbrockmendel",
"node_id": "MDQ6VXNlcjgwNzg5Njg=",
"organizations_url": "https://api.github.com/users/jbrockmendel/orgs",
"received_events_url": "https://api.github.com/users/jbrockmendel/received_events",
"repos_url": "https://api.github.com/users/jbrockmendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jbrockmendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jbrockmendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jbrockmendel"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-30T20:49:49Z" | "2021-08-31T18:32:22Z" | "2021-08-31T18:31:30Z" | MEMBER | null | ```
from asv_bench.benchmarks.stat_ops import *
self = FrameOps()
self.setup("skew", "float", 0)
%timeit self.time_op("skew", "float", 0)
3.22 ms ± 235 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
2.06 ms ± 71.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
%timeit self.time_op("skew", "int", 0)
3.81 ms ± 294 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
2.3 ms ± 79.7 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
%timeit self.time_op("kurt", "float", 0)
2.79 ms ± 153 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
2.2 ms ± 85.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR
%timeit self.time_op("kurt", "int", 0)
3.29 ms ± 131 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
2.35 ms ± 69.6 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
%timeit self.time_op("prod", "float", 0)
2.9 ms ± 116 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
2.23 ms ± 40.2 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
%timeit self.time_op("sum", "float", 0)
2.9 ms ± 194 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master
2.14 ms ± 130 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43311/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43311/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43311.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43311",
"merged_at": "2021-08-31T18:31:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43311.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43311"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43312 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43312/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43312/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43312/events | https://github.com/pandas-dev/pandas/pull/43312 | 983,198,256 | MDExOlB1bGxSZXF1ZXN0NzIyODE1ODU3 | 43,312 | BUG: Fix some parse dates tests for the Arrow CSV reader | {
"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"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "f9d0c4",
"default": false,
"description": "",
"id": 3303158446,
"name": "Arrow",
"node_id": "MDU6TGFiZWwzMzAzMTU4NDQ2",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Arrow"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 1 | "2021-08-30T21:00:27Z" | "2021-09-05T18:07:53Z" | "2021-09-03T00:01:07Z" | 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
Fixes around 21 tests. This fix was left out of the original PR in the interest of keeping that one small.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43312/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43312/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43312.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43312",
"merged_at": "2021-09-03T00:01:07Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43312.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43312"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43313 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43313/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43313/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43313/events | https://github.com/pandas-dev/pandas/issues/43313 | 983,213,936 | MDU6SXNzdWU5ODMyMTM5MzY= | 43,313 | DIS: Keywords for multi-threading capabilities | {
"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"
} | [
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "207de5",
"default": false,
"description": "Requires discussion from core team before further action",
"id": 219960758,
"name": "Needs Discussion",
"node_id": "MDU6TGFiZWwyMTk5NjA3NTg=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion"
}
] | open | false | null | [] | null | 4 | "2021-08-30T21:18:11Z" | "2021-09-02T01:31:25Z" | null | MEMBER | null | With the addition of the new pyarrow engine, we now have the option to use multiple threads to read a CSV file. (This is also controllable through the ``pyarrow.set_cpu_count`` option).
Should we expose a keyword(such as ``num_threads`` maybe) to the user as a keyword, or just add an example in the docs(for this case, redirecting to ``pyarrow.set_cpu_count``? In the case of ``read_csv``, this keyword would probably only apply to the ``pyarrow`` engines, however it is worth noting that we have had multiple feature requests for parallel CSV reading (e.g. #37955), and it is probably worth it to be configure the number of threads used if we offer multithreading.
Personally, I would prefer having a keyword, as if we decide to add more I/O engines with multithreading capabilities, it would be more convenient to be able to control this option through a keyword.
cc @pandas-dev/pandas-core | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43313/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43313/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43314 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43314/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43314/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43314/events | https://github.com/pandas-dev/pandas/issues/43314 | 983,288,921 | MDU6SXNzdWU5ODMyODg5MjE= | 43,314 | BUG: `DataFrame.explode` is failing on scalar `int` value. | {
"avatar_url": "https://avatars.githubusercontent.com/u/11664259?v=4",
"events_url": "https://api.github.com/users/galipremsagar/events{/privacy}",
"followers_url": "https://api.github.com/users/galipremsagar/followers",
"following_url": "https://api.github.com/users/galipremsagar/following{/other_user}",
"gists_url": "https://api.github.com/users/galipremsagar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/galipremsagar",
"id": 11664259,
"login": "galipremsagar",
"node_id": "MDQ6VXNlcjExNjY0MjU5",
"organizations_url": "https://api.github.com/users/galipremsagar/orgs",
"received_events_url": "https://api.github.com/users/galipremsagar/received_events",
"repos_url": "https://api.github.com/users/galipremsagar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/galipremsagar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/galipremsagar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/galipremsagar"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"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-10-17T11:06:28Z",
"closed_issues": 77,
"created_at": "2021-09-10T19:48:56Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/13159005?v=4",
"events_url": "https://api.github.com/users/simonjayhawkins/events{/privacy}",
"followers_url": "https://api.github.com/users/simonjayhawkins/followers",
"following_url": "https://api.github.com/users/simonjayhawkins/following{/other_user}",
"gists_url": "https://api.github.com/users/simonjayhawkins/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/simonjayhawkins",
"id": 13159005,
"login": "simonjayhawkins",
"node_id": "MDQ6VXNlcjEzMTU5MDA1",
"organizations_url": "https://api.github.com/users/simonjayhawkins/orgs",
"received_events_url": "https://api.github.com/users/simonjayhawkins/received_events",
"repos_url": "https://api.github.com/users/simonjayhawkins/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/simonjayhawkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonjayhawkins/subscriptions",
"type": "User",
"url": "https://api.github.com/users/simonjayhawkins"
},
"description": "on-merge: backport to 1.3.x",
"due_on": "2021-10-17T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/90",
"id": 7142224,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90/labels",
"node_id": "MI_kwDOAA0YD84AbPtQ",
"number": 90,
"open_issues": 0,
"state": "closed",
"title": "1.3.4",
"updated_at": "2021-10-18T11:00:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/90"
} | 2 | "2021-08-30T23:20:25Z" | "2021-09-30T12:54:17Z" | "2021-09-30T12:54: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.
---
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to provide the necessary information for us to reproduce your bug.
#### Code Sample, a copy-pastable example
```python
>>> import pandas as pd
>>> import numpy as np
>>> df = pd.DataFrame({0: [[0, 1, 2], 'foo', [], [3, 4]],
... 1: 1,
... 2: [['a', 'b', 'c'], np.nan, [], ['d', 'e']]})
>>> df
0 1 2
0 [0, 1, 2] 1 [a, b, c]
1 foo 1 NaN
2 [] 1 []
3 [3, 4] 1 [d, e]
>>> df.columns
Int64Index([0, 1, 2], dtype='int64')
>>> df.explode(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pgali/anaconda3/envs/cudf_dev/lib/python3.8/site-packages/pandas/core/frame.py", line 8229, in explode
assert isinstance(column, (str, tuple))
AssertionError
>>> df.explode([0])
0 1 2
0 0 1 [a, b, c]
0 1 1 [a, b, c]
0 2 1 [a, b, c]
1 foo 1 NaN
2 NaN 1 []
3 3 1 [d, e]
3 4 1 [d, e]
>>>
```
#### Problem description
Looks like passing a scalar `int` to `column` is causing a failure in `DataFrame.explode`, but passing a list of int's is working.
#### Expected Output
```python
>>> df.explode(0)
0 1 2
0 0 1 [a, b, c]
0 1 1 [a, b, c]
0 2 1 [a, b, c]
1 foo 1 NaN
2 NaN 1 []
3 3 1 [d, e]
3 4 1 [d, e]
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : 5f648bf1706dd75a9ca0d29f26eadfbb595fe52b
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.0-27-generic
Version : #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58: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.3.2
numpy : 1.21.2
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.4
setuptools : 57.4.0
Cython : 0.29.24
pytest : 6.2.4
hypothesis : 6.17.2
sphinx : 4.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.27.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 2021.07.0
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 5.0.0
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.53.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43314/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43314/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43315 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43315/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43315/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43315/events | https://github.com/pandas-dev/pandas/pull/43315 | 983,310,053 | MDExOlB1bGxSZXF1ZXN0NzIyOTA4NDU5 | 43,315 | BUG: Fix `pd.to_numeric` to have consistent behavior for date-like arguments | {
"avatar_url": "https://avatars.githubusercontent.com/u/53947956?v=4",
"events_url": "https://api.github.com/users/hec10r/events{/privacy}",
"followers_url": "https://api.github.com/users/hec10r/followers",
"following_url": "https://api.github.com/users/hec10r/following{/other_user}",
"gists_url": "https://api.github.com/users/hec10r/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hec10r",
"id": 53947956,
"login": "hec10r",
"node_id": "MDQ6VXNlcjUzOTQ3OTU2",
"organizations_url": "https://api.github.com/users/hec10r/orgs",
"received_events_url": "https://api.github.com/users/hec10r/received_events",
"repos_url": "https://api.github.com/users/hec10r/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hec10r/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hec10r/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hec10r"
} | [
{
"color": "7fcce8",
"default": false,
"description": "",
"id": 2347992045,
"name": "Stale",
"node_id": "MDU6TGFiZWwyMzQ3OTkyMDQ1",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Stale"
}
] | closed | false | null | [] | null | 5 | "2021-08-31T00:08:14Z" | "2021-10-16T20:19:20Z" | "2021-10-16T20:19:19Z" | NONE | null | - [ ] closes #43280
- [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
`pd.to_numeric` was having an inconsistent behavior when using in datelike objects and was returning wrong result when using with `pd.NaT`
**In master:**
```python
>>> import pandas as pd
>>> from datetime import datetime
>>> from functools import partial
>>> pd.to_numeric(datetime(2021, 8, 22), errors="coerce")
nan
>>> pd.to_numeric(pd.Series(datetime(2021, 8, 22)), errors="coerce")
0 1629590400000000000
dtype: int64
>>> pd.Series([datetime(2021, 8, 22)]).apply(partial(pd.to_numeric), errors="coerce")
0 NaN
dtype: float64
>>>
>>> pd.to_numeric(pd.NaT, errors="coerce")
nan
>>> pd.to_numeric(pd.Series(pd.NaT), errors="coerce")
0 -9223372036854775808
dtype: int64
>>> pd.Series(pd.NaT).apply(partial(pd.to_numeric), errors="coerce")
0 NaN
dtype: float64
```
**In this PR:**
```python
>>> import pandas as pd
>>> from datetime import datetime
>>> from functools import partial
>>> pd.to_numeric(datetime(2021, 8, 22), errors="coerce")
nan
>>> pd.to_numeric(pd.Series(datetime(2021, 8, 22)), errors="coerce")
0 NaN
dtype: float64
>>> pd.Series([datetime(2021, 8, 22)]).apply(partial(pd.to_numeric), errors="coerce")
0 NaN
dtype: float64
>>>
>>> pd.to_numeric(pd.NaT, errors="coerce")
nan
>>> pd.to_numeric(pd.Series(pd.NaT), errors="coerce")
0 NaN
dtype: float64
>>> pd.Series(pd.NaT).apply(partial(pd.to_numeric), errors="coerce")
0 NaN
dtype: float64
```
Please let me know if this approach makes sense so I can add the tests. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43315/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43315/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43315.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43315",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43315.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43315"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43316 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43316/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43316/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43316/events | https://github.com/pandas-dev/pandas/pull/43316 | 983,347,361 | MDExOlB1bGxSZXF1ZXN0NzIyOTM5NzUw | 43,316 | PERF: DataFrame[object].fillna | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-31T01:29:17Z" | "2021-09-03T01:13:35Z" | "2021-09-02T23:55:01Z" | MEMBER | null | ```
from asv_bench.benchmarks.frame_methods import *
self5 = Fillna()
self5.setup(False, 'pad', 'object')
%timeit self5.time_frame_fillna(False, 'pad', 'object')
191 ms ± 5.41 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master
127 ms ± 5.03 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43316/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43316/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43316.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43316",
"merged_at": "2021-09-02T23:55:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43316.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43316"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43317 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43317/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43317/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43317/events | https://github.com/pandas-dev/pandas/pull/43317 | 983,430,628 | MDExOlB1bGxSZXF1ZXN0NzIzMDA5Mjgy | 43,317 | BENCH: tighter targeting on ChainedIndexing benchmark | {
"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": "ae68cc",
"default": false,
"description": "Performance (ASV) benchmarks",
"id": 732775912,
"name": "Benchmark",
"node_id": "MDU6TGFiZWw3MzI3NzU5MTI=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Benchmark"
}
] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/16733618?v=4",
"events_url": "https://api.github.com/users/alimcmaster1/events{/privacy}",
"followers_url": "https://api.github.com/users/alimcmaster1/followers",
"following_url": "https://api.github.com/users/alimcmaster1/following{/other_user}",
"gists_url": "https://api.github.com/users/alimcmaster1/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alimcmaster1",
"id": 16733618,
"login": "alimcmaster1",
"node_id": "MDQ6VXNlcjE2NzMzNjE4",
"organizations_url": "https://api.github.com/users/alimcmaster1/orgs",
"received_events_url": "https://api.github.com/users/alimcmaster1/received_events",
"repos_url": "https://api.github.com/users/alimcmaster1/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alimcmaster1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alimcmaster1/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alimcmaster1"
}
] | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 6 | "2021-08-31T04:29:59Z" | "2021-08-31T15:58:32Z" | "2021-08-31T15:44:12Z" | MEMBER | null | ATM almost half of the benchmark runtime is in the DataFrame constructor. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43317/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43317/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43317.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43317",
"merged_at": "2021-08-31T15:44:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43317.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43317"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43318 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43318/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43318/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43318/events | https://github.com/pandas-dev/pandas/pull/43318 | 983,448,270 | MDExOlB1bGxSZXF1ZXN0NzIzMDIzMzY0 | 43,318 | REF: `Styler.export` | {
"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": "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": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 2 | "2021-08-31T05:07:44Z" | "2021-10-23T12:20:00Z" | "2021-10-23T12:19:57Z" | CONTRIBUTOR | null | - [x] closes #40675
- [x] tests added / passed
- [x] whatsnew entry
Finishes a series of PRs for the tracker
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43318/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43318/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43318.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43318",
"merged_at": "2021-10-23T12:19:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/43318.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43318"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43319 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43319/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43319/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43319/events | https://github.com/pandas-dev/pandas/issues/43319 | 983,492,102 | MDU6SXNzdWU5ODM0OTIxMDI= | 43,319 | bug are there | {
"avatar_url": "https://avatars.githubusercontent.com/u/89829947?v=4",
"events_url": "https://api.github.com/users/vikramkanishka/events{/privacy}",
"followers_url": "https://api.github.com/users/vikramkanishka/followers",
"following_url": "https://api.github.com/users/vikramkanishka/following{/other_user}",
"gists_url": "https://api.github.com/users/vikramkanishka/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vikramkanishka",
"id": 89829947,
"login": "vikramkanishka",
"node_id": "MDQ6VXNlcjg5ODI5OTQ3",
"organizations_url": "https://api.github.com/users/vikramkanishka/orgs",
"received_events_url": "https://api.github.com/users/vikramkanishka/received_events",
"repos_url": "https://api.github.com/users/vikramkanishka/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vikramkanishka/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vikramkanishka/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vikramkanishka"
} | [
{
"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": "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"
},
{
"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 | 3 | "2021-08-31T06:27:09Z" | "2021-08-31T11:47:51Z" | "2021-08-31T11:47:51Z" | NONE | null | ###
- [X] I have checked that the issue still exists on the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/)
### Location of the documentation
```
import pandas as pd
a = pd.DataFrame({"A": pd.array(['a', 'b'], dtype=pd.StringDtype("pyarrow"))})
a2 = pd.DataFrame({"A": pd.array(['a', 'b'], dtype=pd.StringDtype("python"))})
a.to_parquet("test.parquet")
with pd.option_context("string_storage", "pyarrow"):
b = pd.read_parquet("test.parquet")
pd.testing.assert_frame_equal(b, a)
a2.to_parquet("test.parquet")
with pd.option_context("string_storage", "pyarrow"):
b = pd.read_parquet("test.parquet")
pd.testing.assert_frame_equal(b, a)
```
### Documentation problem
```
import pandas as pd
a = pd.DataFrame({"A": pd.array(['a', 'b'], dtype=pd.StringDtype("pyarrow"))})
a2 = pd.DataFrame({"A": pd.array(['a', 'b'], dtype=pd.StringDtype("python"))})
a.to_parquet("test.parquet")
with pd.option_context("string_storage", "pyarrow"):
b = pd.read_parquet("test.parquet")
pd.testing.assert_frame_equal(b, a)
a2.to_parquet("test.parquet")
with pd.option_context("string_storage", "pyarrow"):
b = pd.read_parquet("test.parquet")
pd.testing.assert_frame_equal(b, a)
```
### Suggested fix for documentation
```
import pandas as pd
a = pd.DataFrame({"A": pd.array(['a', 'b'], dtype=pd.StringDtype("pyarrow"))})
a2 = pd.DataFrame({"A": pd.array(['a', 'b'], dtype=pd.StringDtype("python"))})
a.to_parquet("test.parquet")
with pd.option_context("string_storage", "pyarrow"):
b = pd.read_parquet("test.parquet")
pd.testing.assert_frame_equal(b, a)
a2.to_parquet("test.parquet")
with pd.option_context("string_storage", "pyarrow"):
b = pd.read_parquet("test.parquet")
pd.testing.assert_frame_equal(b, a)
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43319/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43319/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/43320 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43320/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43320/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43320/events | https://github.com/pandas-dev/pandas/pull/43320 | 983,635,445 | MDExOlB1bGxSZXF1ZXN0NzIzMTgwNTU4 | 43,320 | Update Dockerfile | {
"avatar_url": "https://avatars.githubusercontent.com/u/82256264?v=4",
"events_url": "https://api.github.com/users/DeepakPareta/events{/privacy}",
"followers_url": "https://api.github.com/users/DeepakPareta/followers",
"following_url": "https://api.github.com/users/DeepakPareta/following{/other_user}",
"gists_url": "https://api.github.com/users/DeepakPareta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/DeepakPareta",
"id": 82256264,
"login": "DeepakPareta",
"node_id": "MDQ6VXNlcjgyMjU2MjY0",
"organizations_url": "https://api.github.com/users/DeepakPareta/orgs",
"received_events_url": "https://api.github.com/users/DeepakPareta/received_events",
"repos_url": "https://api.github.com/users/DeepakPareta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/DeepakPareta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeepakPareta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/DeepakPareta"
} | [] | closed | true | null | [] | null | 2 | "2021-08-31T09:18:12Z" | "2021-08-31T09:31:16Z" | "2021-08-31T09:18:46Z" | NONE | spam | - [ ] 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/43320/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43320/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/43320.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/43320",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/43320.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/43320"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/43321 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/43321/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/43321/comments | https://api.github.com/repos/pandas-dev/pandas/issues/43321/events | https://github.com/pandas-dev/pandas/issues/43321 | 983,659,707 | MDU6SXNzdWU5ODM2NTk3MDc= | 43,321 | BUG: alignment in operations with multi-index | {
"avatar_url": "https://avatars.githubusercontent.com/u/23625371?v=4",
"events_url": "https://api.github.com/users/znicholls/events{/privacy}",
"followers_url": "https://api.github.com/users/znicholls/followers",
"following_url": "https://api.github.com/users/znicholls/following{/other_user}",
"gists_url": "https://api.github.com/users/znicholls/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/znicholls",
"id": 23625371,
"login": "znicholls",
"node_id": "MDQ6VXNlcjIzNjI1Mzcx",
"organizations_url": "https://api.github.com/users/znicholls/orgs",
"received_events_url": "https://api.github.com/users/znicholls/received_events",
"repos_url": "https://api.github.com/users/znicholls/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/znicholls/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/znicholls/subscriptions",
"type": "User",
"url": "https://api.github.com/users/znicholls"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"color": "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 | 0 | "2021-08-31T09:44:24Z" | "2021-09-30T23:12:57Z" | null | CONTRIBUTOR | null | - [x] I have checked that this issue has not already been reported.
- [x] I have confirmed this bug exists on the latest version of pandas.
- [x] (optional) I have confirmed this bug exists on the master branch of pandas.
---
**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 = pd.DataFrame(
{2010: [1, 2, 3], 2020: [3, 4, 5]},
index=pd.MultiIndex.from_product(
[["a"], ["b"], [0, 1, 2]], names=["scen", "mod", "id"]
),
)
# yes the example is just a scalar so this is overkill but
# it illustrates a bigger problem
b = pd.Series(
[0.4],
index=pd.MultiIndex.from_product(
[["b"], ["a"]], names=["mod", "scen"]
),
)
a.add(b, axis=0)
# result (below) is full of nans
2010 2020
scen mod id
a b 0 NaN NaN
1 NaN NaN
2 NaN NaN
```
#### Problem description
The output is all nans even though these two objects can be sensibly aligned (see workaround below).
#### Expected Output
```python
2010 2020
mod scen id
b a 0 1.4 3.4
1 2.4 4.4
2 3.4 5.4
```
There is a simple workaround, simply align before doing the operation (rather than letting the operation align for you).
```python
b_aligned, a_aligned = b.align(a)
a_aligned.add(b_aligned, axis=0)
# gives result above
```
Given that there's such a simple workaround, it could just be worth noting this in the docs (i.e. saying that alignment can be tricky and won't always work internally, in which case the user can align themselves before performing the operation) rather than changing the code. I'm happy to add such a line to the docs if helpful.
If code changes are a better route, then flipping the way alignment is done in https://github.com/pandas-dev/pandas/blob/e4a2196e83d61d14789edf44b0f135fcda4ec11e/pandas/core/ops/__init__.py#L306 (i.e. doing `right, left = right.align(left...)` rather than the current `left, right = left.align(right...`) fixes the problem but fails other tests so the simplest solution doesn't seem to be an acceptable one in this case.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit : b577f0b4a6862dbb3329a23b5c2d6b6dc045996a
python : 3.8.5.final.0
python-bits : 64
OS : Darwin
OS-release : 19.6.0
Version : Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_AU.UTF-8
LOCALE : en_AU.UTF-8
pandas : 1.4.0.dev0+538.gb577f0b4a6
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 49.1.0.post20200704
Cython : 0.29.21
pytest : 6.1.1
hypothesis : 5.37.1
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : 1.3.6
lxml.etree : 4.5.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.3
fastparquet : 0.4.0
gcsfs : 0.7.1
matplotlib : 3.2.2
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.5
pandas_gbq : None
pyarrow : 0.17.1
pyxlsb : None
s3fs : 0.4.2
scipy : 1.5.1
sqlalchemy : 1.3.19
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.15.1
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.48.0
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/43321/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/43321/timeline | null | null | null |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.